From f001447d4f90837f07845a7ebd0cdf8fe3cc9ced Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu Date: Wed, 23 Sep 2020 12:12:04 +0800 Subject: [PATCH] Add FullIdentification to chainx_types.json (#263) * Add FullIdentification type * Update res/chainx_types.json --- scripts/chainx-js/chainx_types_manual.json | 1 + scripts/chainx-js/res/chainx_types.json | 21 +++++---------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/scripts/chainx-js/chainx_types_manual.json b/scripts/chainx-js/chainx_types_manual.json index 5b45fddedddd1..8642b3a4c456a 100644 --- a/scripts/chainx-js/chainx_types_manual.json +++ b/scripts/chainx-js/chainx_types_manual.json @@ -259,6 +259,7 @@ }, "OrderInfo": "Order", "HandicapInfo": "Handicap", + "FullIdentification": "ValidatorId", "Price": "Balance", "WithdrawalRecordOf": "WithdrawalRecord", "WithdrawalRecordForRpc": { diff --git a/scripts/chainx-js/res/chainx_types.json b/scripts/chainx-js/res/chainx_types.json index 062c0ea54b108..2d8f9d337543c 100644 --- a/scripts/chainx-js/res/chainx_types.json +++ b/scripts/chainx-js/res/chainx_types.json @@ -17,17 +17,6 @@ "Polkadot" ] }, - "XRC20Selector": { - "_enum": [ - "BalanceOf", - "TotalSupply", - "Name", - "Symbol", - "Decimals", - "Issue", - "Destroy" - ] - }, "OrderType": { "_enum": [ "Limit", @@ -54,11 +43,11 @@ }, "Memo": "Text", "AssetInfo": { - "token": "Token", - "tokenName": "Token", + "token": "String", + "tokenName": "String", "chain": "Chain", "decimals": "Decimals", - "desc": "Desc" + "desc": "String" }, "TradingPairProfile": { "id": "TradingPairId", @@ -165,7 +154,6 @@ "Desc": "Text", "Token": "Text", "AddrStr": "Text", - "Selector": "[u8; 4]", "HandicapInfo": "Handicap", "Price": "Balance", "OrderId": "u64", @@ -410,6 +398,7 @@ "String": "Text", "Balance": "u128", "MiningPower": "u128", + "FullIdentification": "ValidatorId", "WithdrawalRecordOf": "WithdrawalRecord", "WithdrawalRecordForRpc": { "assetId": "AssetId", @@ -420,4 +409,4 @@ "height": "BlockNumber", "state": "WithdrawalState" } -} +} \ No newline at end of file