File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,13 +30,25 @@ function getSponsorship (collection) {
3030 return result ;
3131}
3232
33+ function getSponsoredRateLimit ( sourceLimit ) {
34+ if ( sourceLimit === 'SponsoringDisabled' ) {
35+ return - 1 ;
36+ }
37+
38+ if ( Number . isInteger ( sourceLimit ?. blocks ) ) {
39+ return sourceLimit . blocks ;
40+ }
41+
42+ return null ;
43+ }
44+
3345function getLimits ( collection ) {
3446 const limits = collection . Limits ;
3547 const result = { } ;
3648 result . tokenLimit = limits . TokenLimit || 0 ;
3749 result . limitsAccoutOwnership = limits . AccountTokenOwnershipLimit || 0 ;
3850 result . limitsSponsoreDataSize = limits . SponsoredDataSize ;
39- result . limitsSponsoreDataRate = limits . SponsoredDataRateLimit ;
51+ result . limitsSponsoreDataRate = getSponsoredRateLimit ( limits . SponsoredDataRateLimit ) ;
4052 result . ownerCanTrasfer = limits . OwnerCanTransfer ;
4153 result . ownerCanDestroy = limits . OwnerCanDestroy ;
4254 return result ;
Original file line number Diff line number Diff line change 66 "types" : " module" ,
77 "scripts" : {
88 "start" : " npm run migration && node -r dotenv/config index.js" ,
9+ "debug" : " npm run migration && node inspect -r dotenv/config index.js" ,
910 "docker" : " docker-compose --env-file .env -f docker/polkastats-backend/docker-compose.yml up -d" ,
1011 "docker:polkadot" : " docker-compose -f docker/polkastats-backend/docker-compose.yml up" ,
1112 "docker:local" : " docker-compose --env-file .env -f docker/polkastats-backend/docker-compose.local.yml up" ,
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ module . exports = {
4+ up : async ( queryInterface , Sequelize ) => {
5+ return queryInterface . sequelize . query ( 'DROP INDEX IF EXISTS extrinsic_args_idx;' ) ;
6+ } ,
7+
8+ down : async ( queryInterface , Sequelize ) => { }
9+ } ;
You can’t perform that action at this time.
0 commit comments