-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pick hotfixes from 1.8 branch (#5645)
* fix: delete Solana channel state when closed * chore: CHANGELOG and a version bump * test: invalid fetches should not block valid fetches * fix: only decrement counter if we can actually fetch * feat: add account id / withdrawal address to affiliate events (#5634) * feat: Added broker_id to WithdrawalRequest event * chore: changed broker_id to account_id I think this is a better name since it could be either a broker or an affiliate but in the end both is an account. * feat: Added withdrawal address to AffiliateRegistration * feat: returning detailed account information for affiliate in the cf_account_info rpc for brokers (#5641) * feat: Added asset_balances to Unregistered Account variant * chore: added deprecate note * fix: simplify asset map conversion * feat: add optional affiliate withdrawal address to broker account info * fix: clippy and test * fix: make BrokerInfo non-breaking * fix: unused import --------- Co-authored-by: Daniel <daniel@chainflip.io> * fix: ensure correct affiliate account creation/removal * fix: typo * fix: missing version bumps --------- Co-authored-by: kylezs <kyle@chainflip.io> Co-authored-by: Janislav <jan@chainflip.io>
- Loading branch information
1 parent
50a300d
commit 4cc134d
Showing
16 changed files
with
349 additions
and
174 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
39 changes: 36 additions & 3 deletions
39
state-chain/custom-rpc/src/snapshots/custom_rpc__test__broker_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 |
---|---|---|
@@ -1,6 +1,39 @@ | ||
--- | ||
source: state-chain/custom-rpc/src/lib.rs | ||
expression: "serde_json::to_value(broker).unwrap()" | ||
snapshot_kind: text | ||
expression: broker | ||
--- | ||
{"affiliates":[[1,"5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT"]],"bond":"0x0","btc_vault_deposit_address":"tb1pqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsn60vlk","earned_fees":{"Arbitrum":{"ETH":"0x0","USDC":"0x0"},"Bitcoin":{"BTC":"0x0"},"Ethereum":{"ETH":"0x0","FLIP":"0xde0b6b3a7640000","USDC":"0x0","USDT":"0x0"},"Polkadot":{"DOT":"0x0"},"Solana":{"SOL":"0x0","USDC":"0x0"}},"flip_balance":"0x0","role":"broker"} | ||
{ | ||
"role": "broker", | ||
"flip_balance": "0x0", | ||
"bond": "0x0", | ||
"earned_fees": { | ||
"Ethereum": { | ||
"ETH": "0x0", | ||
"FLIP": "0xde0b6b3a7640000", | ||
"USDC": "0x0", | ||
"USDT": "0x0" | ||
}, | ||
"Polkadot": { | ||
"DOT": "0x0" | ||
}, | ||
"Bitcoin": { | ||
"BTC": "0x0" | ||
}, | ||
"Arbitrum": { | ||
"ETH": "0x0", | ||
"USDC": "0x0" | ||
}, | ||
"Solana": { | ||
"SOL": "0x0", | ||
"USDC": "0x0" | ||
} | ||
}, | ||
"affiliates": [ | ||
{ | ||
"account_id": "5C62Ck4UrFPiBtoCmeSrgF7x9yv9mn38446dhCpsi2mLHiFT", | ||
"short_id": 1, | ||
"withdrawal_address": "0xcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcf" | ||
} | ||
], | ||
"btc_vault_deposit_address": "tb1pqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsn60vlk" | ||
} |
5 changes: 3 additions & 2 deletions
5
state-chain/custom-rpc/src/snapshots/custom_rpc__test__no_account_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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: state-chain/custom-rpc/src/lib.rs | ||
expression: "serde_json::to_value(RpcAccountInfo::unregistered(0)).unwrap()" | ||
expression: "serde_json::to_value(RpcAccountInfo::unregistered(0,\nany::AssetMap::default())).unwrap()" | ||
snapshot_kind: text | ||
--- | ||
{"flip_balance":"0x0","role":"unregistered"} | ||
{"asset_balances":{"Arbitrum":{"ETH":"0x0","USDC":"0x0"},"Bitcoin":{"BTC":"0x0"},"Ethereum":{"ETH":"0x0","FLIP":"0x0","USDC":"0x0","USDT":"0x0"},"Polkadot":{"DOT":"0x0"},"Solana":{"SOL":"0x0","USDC":"0x0"}},"flip_balance":"0x0","role":"unregistered"} |
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.