Skip to content

Commit

Permalink
feat: update rpc methods
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanco committed Sep 25, 2023
1 parent b5ba0cd commit 6939ce4
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ export const mTypes = {
seed: "ShufflingSeed",
count: "BlockNumber"
},
VestingInfo: {
locked: "Balance",
perBlock: "Balance",
startingBlock: "BlockNumber"
RpcAssetMetadata: {
token_id: "TokenId",
decimals: "u32",
name: "Vec<u8>",
symbol: "Vec<u8>"
},
TokenId: "u32",
VestingInfosWithLockedAt: {
vestingInfosWithLockedAt:
"Vec<(VestingInfo<Balance, BlockNumber>, Balance)>"
}
};

export const mRpc = {
Expand Down Expand Up @@ -208,22 +205,16 @@ export const mRpc = {
}
],
type: "Option<bool>"
}
},
vesting: {
getVestingLockedAt: {
},
get_tradeable_tokens: {
description: "",
params: [
{
name: "who",
type: "AccountId"
},
{
name: "token_id",
type: "TokenId"
}
],
type: "VestingInfosWithLockedAt<Balance, BlockNumber>"
params: [],
type: "Vec<RpcAssetMetadata<TokenId>>"
},
get_liq_tokens_for_trading: {
description: "",
params: [],
type: "Vec<TokenId>"
}
}
};
Expand Down

0 comments on commit 6939ce4

Please sign in to comment.