Name | Lookup | Parameters | |
|---|---|---|---|
| set_fee_receiver | 5000 | 1 | |
| set_fee_point | 5001 | 1 | |
| transfer | 5002 | 3 | |
| create_pair | 5003 | 3 | |
| add_liquidity | 5004 | 7 | |
| remove_liquidity | 5005 | 7 | |
| swap_exact_assets_for_assets | 5006 | 5 | |
| swap_assets_for_exact_assets | 5007 | 5 | |
| bootstrap_create | 5008 | 9 | |
| bootstrap_contribute | 5009 | 5 | |
| bootstrap_claim | 500a | 4 | |
| bootstrap_end | 500b | 2 | |
| bootstrap_update | 500c | 9 | |
| bootstrap_refund | 500d | 2 | |
| bootstrap_charge_reward | 500e | 3 | |
| bootstrap_withdraw_reward | 500f | 3 | |
| set_new_fee_receiver | 5010 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Transferred | 5000 | ["AssetId","AccountId","AccountId","AssetBalance"] | |
| Burned | 5001 | ["AssetId","AccountId","AssetBalance"] | |
| Minted | 5002 | ["AssetId","AccountId","AssetBalance"] | |
| PairCreated | 5003 | ["AssetId","AssetId"] | |
| LiquidityAdded | 5004 | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
| LiquidityRemoved | 5005 | ["AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
| AssetSwap | 5006 | ["AccountId","AccountId","Vec<AssetId>","Vec<AssetBalance>"] | |
| TransferredToParachain | 5007 | ["AssetId","AccountId","ParaId","AccountId","AssetBalance","u64"] | |
| BootstrapContribute | 5008 | ["AccountId","AssetId","AssetBalance","AssetId","AssetBalance"] | |
| BootstrapEnd | 5009 | ["AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
| BootstrapCreated | 500a | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance","AssetBalance","BlockNumberFor"] | |
| BootstrapClaim | 500b | ["AccountId","AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
| BootstrapUpdate | 500c | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance","AssetBalance","BlockNumberFor"] | |
| BootstrapRefund | 500d | ["AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance"] | |
| DistributeReward | 500e | ["AssetId","AssetId","AccountId","Vec<(AssetId, AssetBalance)>"] | |
| ChargeReward | 500f | ["AssetId","AssetId","AccountId","Vec<(AssetId, AssetBalance)>"] | |
| WithdrawReward | 5010 | ["AssetId","AssetId","AccountId"] |
Name | Type | |
|---|---|---|
| ForeignLedger | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdAccountId"],"value":"U128","keys_id":922,"value_id":6}} | |
| ForeignMeta | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["zenlink_protocol:primitives:AssetId"],"value":"U128","keys_id":342,"value_id":6}} | |
| ForeignList | {"origin":"PlainType","plain_type":"Vec<zenlink_protocol:primitives:AssetId>","PlainTypeValue":343} | |
| KLast | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetId"],"value":"U256","keys_id":923,"value_id":312}} | |
| FeeMeta | {"origin":"PlainType","plain_type":"Tuple:option<AccountId>U8","PlainTypeValue":924} | |
| FeeReceiver | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["zenlink_protocol:primitives:AssetId"],"value":"AccountId","keys_id":342,"value_id":0}} | |
| LiquidityPairs | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetId"],"value":"option<zenlink_protocol:primitives:AssetId>","keys_id":923,"value_id":925}} | |
| PairStatuses | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetId"],"value":"zenlink_protocol:primitives:PairStatus","keys_id":923,"value_id":926}} | |
| BootstrapPersonalSupply | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetIdAccountId"],"value":"Tuple:U128U128","keys_id":929,"value_id":503}} | |
| BootstrapEndStatus | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetId"],"value":"zenlink_protocol:primitives:PairStatus","keys_id":923,"value_id":926}} | |
| BootstrapRewards | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetId"],"value":"Vec<Tuple:zenlink_protocol:primitives:AssetIdU128>","keys_id":923,"value_id":930}} | |
| BootstrapLimits | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:zenlink_protocol:primitives:AssetIdzenlink_protocol:primitives:AssetId"],"value":"Vec<Tuple:zenlink_protocol:primitives:AssetIdU128>","keys_id":923,"value_id":930}} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 2f7a656e6c696e6b |
Name | Docs |
|---|---|
| RequireProtocolAdmin | Require the admin who can reset the admin and receiver of the protocol fee. |
| RequireProtocolAdminCandidate | Require the admin candidate who can become new admin after confirm. |
| InvalidFeePoint | Invalid fee_point |
| UnsupportedAssetType | Unsupported AssetId by this ZenlinkProtocol Version. |
| InsufficientAssetBalance | Account balance must be greater than or equal to the transfer amount. |
| NativeBalanceTooLow | Account native currency balance must be greater than ExistentialDeposit. |
| DeniedCreatePair | Trading pair can't be created. |
| PairAlreadyExists | Trading pair already exists. |
| PairNotExists | Trading pair does not exist. |
| AssetNotExists | Asset does not exist. |
| InsufficientLiquidity | Liquidity is not enough. |
| InsufficientPairReserve | Trading pair does have enough foreign. |
| InsufficientTargetAmount | Get target amount is less than exception. |
| ExcessiveSoldAmount | Sold amount is more than exception. |
| InvalidPath | Can't find pair though trading path. |
| IncorrectAssetAmountRange | Incorrect foreign amount range. |
| Overflow | Overflow. |
| Deadline | Transaction block number is larger than the end block number. |
| AccountIdBadLocation | Location given was invalid or unsupported. |
| ExecutionFailed | XCM execution failed. |
| DeniedTransferToSelf | Transfer to self by XCM message. |
| TargetChainNotRegistered | Not in ZenlinkRegistedParaChains. |
| InvariantCheckFailed | Can't pass the K value check |
| PairCreateForbidden | Created pair can't create now |
| NotInBootstrap | Pair is not in bootstrap |
| InvalidContributionAmount | Amount of contribution is invalid. |
| UnqualifiedBootstrap | Amount of contribution is invalid. |
| ZeroContribute | Zero contribute in bootstrap |
| DenyRefund | Bootstrap deny refund |
| DisableBootstrap | Bootstrap is disable |
| NotQualifiedAccount | Not eligible to contribute |
| NoRewardTokens | Reward of bootstrap is not set. |
| ChargeRewardParamsError | Charge bootstrap extrinsic args has error, |
| ExistRewardsInBootstrap | Exist some reward in bootstrap, |