Open zyd82 opened 3 years ago
在下一个版本更新,待验证是否满足讨论结果的要求
@caivega ,目前的版本可以发行"swt"本地代币,这个应该也禁止吧。
{
"jsonrpc": "2.0",
"method": "jt_getAccount",
"params": [
"jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
"swt",
"jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J"
],
"id": 1
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"Account": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
"Balance": {
"currency": "swt",
"issuer": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
"value": "1100000"
},
"Hash": "0000000000000000000000000000000000000000000000000000000000000000",
"LedgerEntryType": "AccountRoot",
"Sequence": 12
}
}
@caivega 另外在尝试发行“SWT”全局币的时候,返回的错误信息是telINSUF_FUND,这个可以考虑改一下
{
"jsonrpc": "2.0",
"method": "jt_sendTransaction",
"params": [
{
"type": "IssueCoin",
"from": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
"secret": "shhquPeZm7uQ6Rvjrqn6L2cR6H33u",
"name": "ZYDDD Token",
"symbol": "SWT",
"decimals": "8",
"total_supply": "10",
"flags": 196608
}
],
"id": 1
}
{
"id": 1,
"jsonrpc": "2.0",
"message": {
"reason": "1 errors",
"result": [
{
"error": "failed to submit transaction 5F20580D293DB7D2CFD447CB840D4C0BE0CC3B3627428FE16BED705F7F694937",
"message": {
"engine_result": "telINSUF_FUND",
"engine_result_code": -386,
"engine_result_message": "Fund insufficient.",
"tx_blob": "1200012280030000240000000c68400000000000000a6c40000000009896807321034153eebb406b3593aa7f31a4908e56ed820031db87f4f2e868fb8e1686d5e1e374473045022100f995287e54da1b59ca80e80f0c1338db2abf2947b3c67fda06625928a71d623a02200eb7873078344b0b1ec01ae2d155a81cbd5c1181bec36160d2a066a3e5c60e1b8114f8500d9a44fce19e8d873b0661a2be53557bb43c8214f8500d9a44fce19e8d873b0661a2be53557bb43c910b5a5944444420546f6b656e041008",
"tx_json": {
"TransactionType": "IssueCoin",
"Flags": 2147680256,
"Account": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
"Sequence": 12,
"Fee": "10",
"SigningPubKey": "034153EEBB406B3593AA7F31A4908E56ED820031DB87F4F2E868FB8E1686D5E1E3",
"TxnSignature": "3045022100F995287E54DA1B59CA80E80F0C1338DB2ABF2947B3C67FDA06625928A71D623A02200EB7873078344B0B1EC01AE2D155A81CBD5C1181BEC36160D2A066A3E5C60E1B",
"hash": "5F20580D293DB7D2CFD447CB840D4C0BE0CC3B3627428FE16BED705F7F694937",
"Name": "ZYDDD Token",
"Decimals": 8,
"TotalSupply": "10000000",
"Owner": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J"
}
},
"status": -278
}
]
},
"result": [
""
],
"status": -278
}
1、发行一个代币时,其symbol可以包含大小写字母,且对大小写字母进行区分,比如“AAA”和“aaa”可以代表不同的代币symbol
2、为了保证底层币SWT的大写的唯一,代币不得有与底层一样或者转成大写以后一样的symbol,比如不能发行symbol为“swt”、“sWt”等的代币