-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(AccountsAssets): historicApi for AccountsAssets, bug fixes, error…
… handling, e2e-tests (#721) * switch asset service to historicApi * fix: bug * throw appropriate error for missing pallet * lint * asset-balance e2e tests for statemint * add more tests for asset balances * e2e for statemine * lint * Update src/services/accounts/AccountsAssetsService.ts Co-authored-by: David <dvdplm@gmail.com> * adjust the returned error when assets pallets doesnt exist * fix comment Co-authored-by: David <dvdplm@gmail.com>
- Loading branch information
Showing
21 changed files
with
2,109 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { IChains } from '../types'; | ||
import { kusamaEndpoints } from './kusama'; | ||
import { polkadotEndpoints } from './polkadot'; | ||
import { statemineEndpoints } from './statemine'; | ||
import { westendEndpoints } from './westend'; | ||
|
||
export const endpoints: IChains = { | ||
kusama: kusamaEndpoints, | ||
polkadot: polkadotEndpoints, | ||
westend: westendEndpoints, | ||
statemine: statemineEndpoints, | ||
}; |
8 changes: 8 additions & 0 deletions
8
e2e-tests/endpoints/statemine/accounts/asset-approvals/993480.json
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,8 @@ | ||
{ | ||
"at": { | ||
"hash": "0x1f09372636107591e983dc1234fd27dc5d2bb463c5ed5e8bf62fefbad65df758", | ||
"height": "993480" | ||
}, | ||
"amount": null, | ||
"deposit": null | ||
} |
8 changes: 8 additions & 0 deletions
8
e2e-tests/endpoints/statemine/accounts/asset-approvals/index.ts
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,8 @@ | ||
import accountsApprovals993480 from './993480.json'; | ||
|
||
export const statemineAccountsApprovalsEndpoints = [ | ||
[ | ||
'/accounts/CwqsPsimisa33niBsKd513TBne4PnTHvfhyLR6Vh73DBQMY/asset-approvals?assetId=100&delegate=CwqsPsimisa33niBsKd513TBne4PnTHvfhyLR6Vh73DBQMY&at=993480', | ||
JSON.stringify(accountsApprovals993480), | ||
], | ||
]; |
Oops, something went wrong.