generated from PolymeshAssociation/typescript-boilerplate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use different values for different batch extrinsics
- Loading branch information
Showing
6 changed files
with
57 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import BigNumber from 'bignumber.js'; | ||
|
||
import { TxTags } from '~/polkadot'; | ||
|
||
export const MAX_DECIMALS = 6; | ||
export const MAX_TICKER_LENGTH = 12; | ||
export const MAX_TOKEN_AMOUNT = new BigNumber(Math.pow(10, 12)); | ||
export const DUMMY_ACCOUNT_ID = '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'; | ||
export const HARVESTER_ENDPOINT = | ||
'https://24pha89jxg.execute-api.us-east-1.amazonaws.com/dev/graphql'; | ||
export const MAX_BATCH_ELEMENTS = 500; | ||
export const MAX_BATCH_ELEMENTS = { | ||
[TxTags.asset.BatchIssue]: 500, | ||
[TxTags.identity.BatchAcceptAuthorization]: 500, | ||
[TxTags.identity.BatchRemoveAuthorization]: 500, | ||
[TxTags.identity.AddClaimsBatch]: 500, | ||
[TxTags.identity.RevokeClaimsBatch]: 500, | ||
[TxTags.complianceManager.RemoveDefaultTrustedClaimIssuersBatch]: 500, | ||
[TxTags.complianceManager.AddDefaultTrustedClaimIssuersBatch]: 500, | ||
}; |