-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cf_boost_pool_details rpc (#4780)
* feat: cf_boost_pool_details rpc * feat: update boost rpc schema * feat: maps -> lists in boost rpc; amounts as hex * feat: optional asset param in boost deatils rpc * feat: flatten asset in boost rpc response * fix: derive serde attributes conditionally
- Loading branch information
Showing
10 changed files
with
372 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
state-chain/custom-rpc/src/snapshots/custom_rpc__test__boost_depth_serialization.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: state-chain/custom-rpc/src/lib.rs | ||
expression: val | ||
--- | ||
[ | ||
{ | ||
"chain": "Ethereum", | ||
"asset": "FLIP", | ||
"tier": 10, | ||
"available_amount": "0x33b2e3c9fd0803ce8000000" | ||
}, | ||
{ | ||
"chain": "Ethereum", | ||
"asset": "FLIP", | ||
"tier": 30, | ||
"available_amount": "0x0" | ||
} | ||
] |
77 changes: 77 additions & 0 deletions
77
state-chain/custom-rpc/src/snapshots/custom_rpc__test__boost_details_serialization.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
source: state-chain/custom-rpc/src/lib.rs | ||
expression: val | ||
--- | ||
[ | ||
{ | ||
"fee_tier": 10, | ||
"chain": "Arbitrum", | ||
"asset": "ETH", | ||
"available_amounts": [ | ||
{ | ||
"account_id": "5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT", | ||
"amount": "0x2710" | ||
} | ||
], | ||
"deposits_pending_finalization": [ | ||
{ | ||
"deposit_id": 0, | ||
"owed_amounts": [ | ||
{ | ||
"account_id": "5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT", | ||
"amount": "0xc8" | ||
}, | ||
{ | ||
"account_id": "5C7LYpP2ZH3tpKbvVvwiVe54AapxErdPBbvkYhe6y9ZBkqWt", | ||
"amount": "0x7d0" | ||
} | ||
] | ||
}, | ||
{ | ||
"deposit_id": 1, | ||
"owed_amounts": [ | ||
{ | ||
"account_id": "5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT", | ||
"amount": "0x3e8" | ||
} | ||
] | ||
} | ||
], | ||
"pending_withdrawals": [] | ||
}, | ||
{ | ||
"fee_tier": 30, | ||
"chain": "Bitcoin", | ||
"asset": "BTC", | ||
"available_amounts": [], | ||
"deposits_pending_finalization": [ | ||
{ | ||
"deposit_id": 0, | ||
"owed_amounts": [ | ||
{ | ||
"account_id": "5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT", | ||
"amount": "0x3e8" | ||
}, | ||
{ | ||
"account_id": "5C7LYpP2ZH3tpKbvVvwiVe54AapxErdPBbvkYhe6y9ZBkqWt", | ||
"amount": "0x7d0" | ||
} | ||
] | ||
} | ||
], | ||
"pending_withdrawals": [ | ||
{ | ||
"account_id": "5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT", | ||
"pending_deposits": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"account_id": "5C7LYpP2ZH3tpKbvVvwiVe54AapxErdPBbvkYhe6y9ZBkqWt", | ||
"pending_deposits": [ | ||
0 | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.