Skip to content

Commit

Permalink
fix: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanco committed Aug 24, 2023
1 parent cb64b81 commit 4871fdf
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ export const mTypes = {
seed: "ShufflingSeed",
count: "BlockNumber"
},
NumberOrHex: {
_enum: {
Number: "u64",
Hex: "U256"
}
},
VestingInfo: {
locked: "Balance",
perBlock: "Balance",
Expand All @@ -40,15 +34,15 @@ export const mRpc = {
params: [
{
name: "input_reserve",
type: "NumberOrHex"
type: "Balance"
},
{
name: "output_reserve",
type: "NumberOrHex"
type: "Balance"
},
{
name: "sell_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Balance"
Expand All @@ -59,15 +53,15 @@ export const mRpc = {
params: [
{
name: "input_reserve",
type: "NumberOrHex"
type: "Balance"
},
{
name: "output_reserve",
type: "NumberOrHex"
type: "Balance"
},
{
name: "sell_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Balance"
Expand All @@ -86,7 +80,7 @@ export const mRpc = {
},
{
name: "liquidity_asset_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "(Balance,Balance)"
Expand All @@ -105,7 +99,7 @@ export const mRpc = {
},
{
name: "sell_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Balance"
Expand All @@ -124,7 +118,7 @@ export const mRpc = {
},
{
name: "buy_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Balance"
Expand All @@ -150,11 +144,11 @@ export const mRpc = {
params: [
{
name: "total_amount",
type: "NumberOrHex"
type: "Balance"
},
{
name: "reserve_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Balance"
Expand Down Expand Up @@ -196,7 +190,7 @@ export const mRpc = {
},
{
name: "input_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Option<bool>"
Expand All @@ -210,7 +204,7 @@ export const mRpc = {
},
{
name: "input_amount",
type: "NumberOrHex"
type: "Balance"
}
],
type: "Option<bool>"
Expand Down

0 comments on commit 4871fdf

Please sign in to comment.