This commit is contained in:
aozhiwei 2023-08-08 10:44:02 +08:00
commit 128b7ac3cb
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,4 @@
address,type,item_id,level,quality,token_id,
0x441d546c98ee30018f3deba407522d1e997619e2,hero,30900,1,2,6230804010000001,
0x85dc1136068d770be2f478b2c4e8177ead149a72,hero,30600,1,2,6230804010000002,
0xb3239e3826d7588b0a061cfbb3673324e2e5e275,hero,30400,1,2,6230804010000003,
1 address type item_id level quality token_id
2 0x441d546c98ee30018f3deba407522d1e997619e2 hero 30900 1 2 6230804010000001
3 0x85dc1136068d770be2f478b2c4e8177ead149a72 hero 30600 1 2 6230804010000002
4 0xb3239e3826d7588b0a061cfbb3673324e2e5e275 hero 30400 1 2 6230804010000003

View File

@ -0,0 +1,26 @@
[
{
"address": "0x441d546c98ee30018f3deba407522d1e997619e2",
"type": "hero",
"item_id": 30900,
"level": 1,
"quality": 2,
"token_id": "6230804010000001"
},
{
"address": "0x85dc1136068d770be2f478b2c4e8177ead149a72",
"type": "hero",
"item_id": 30600,
"level": 1,
"quality": 2,
"token_id": "6230804010000002"
},
{
"address": "0xb3239e3826d7588b0a061cfbb3673324e2e5e275",
"type": "hero",
"item_id": 30400,
"level": 1,
"quality": 2,
"token_id": "6230804010000003"
}
]

View File

@ -0,0 +1,11 @@
[
{
"address": "0x441D546C98Ee30018F3Deba407522D1e997619e2"
},
{
"address": "0x85dC1136068D770be2f478b2C4E8177eaD149A72"
},
{
"address": "0xB3239E3826d7588b0A061cfbb3673324E2e5e275"
}
]

View File

@ -43,6 +43,10 @@ class BlockChain extends BaseService {
return c ? c['address'] : '';
}
getCurrencyAddressByName(currencyName) {
return this.#bc.getCurrencyAddressByName(currencyName);
}
async soliditySha3Sign(...args) {
const signStr = await this.#bc.web3.utils.soliditySha3(...args);
let signature = await this.#bc.web3.eth.sign(signStr, this.getUserAddress());