Skip to content

Commit

Permalink
Chaintypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly committed Mar 5, 2024
1 parent cb3124f commit c039266
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Reef/reef-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"@subql/node": "latest"
},
"exports": {
"chaintypes": "src/chaintypes.ts"
"chaintypes": "src/chaintypes.json"
}
}
232 changes: 232 additions & 0 deletions Reef/reef-starter/src/chaintypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
{
"CallOf": "Call",
"DispatchTime": {
"_enum": {
"At": "BlockNumber",
"After": "BlockNumber"
}
},
"ScheduleTaskIndex": "u32",
"DelayedOrigin": {
"delay": "BlockNumber",
"origin": "PalletsOrigin"
},
"StorageValue": "Vec<u8>",
"GraduallyUpdate": {
"key": "StorageKey",
"targetValue": "StorageValue",
"perBlock": "StorageValue"
},
"StorageKeyBytes": "Vec<u8>",
"StorageValueBytes": "Vec<u8>",
"RpcDataProviderId": "Text",
"OrderedSet": "Vec<AccountId>",
"OrmlAccountData": {
"free": "Balance",
"frozen": "Balance",
"reserved": "Balance"
},
"OrmlBalanceLock": {
"amount": "Balance",
"id": "LockIdentifier"
},
"DelayedDispatchTime": {
"_enum": {
"At": "BlockNumber",
"After": "BlockNumber"
}
},
"DispatchId": "u32",
"Price": "FixedU128",
"OrmlVestingSchedule": {
"start": "BlockNumber",
"period": "BlockNumber",
"periodCount": "u32",
"perPeriod": "Compact<Balance>"
},
"VestingScheduleOf": "OrmlVestingSchedule",
"PalletBalanceOf": "Balance",
"ChangeBalance": {
"_enum": {
"NoChange": "Null",
"NewValue": "Balance"
}
},
"BalanceWrapper": {
"amount": "Balance"
},
"BalanceRequest": {
"amount": "Balance"
},
"EvmAccountInfo": {
"nonce": "Index",
"contractInfo": "Option<EvmContractInfo>",
"developerDeposit": "Option<Balance>"
},
"CodeInfo": {
"codeSize": "u32",
"refCount": "u32"
},
"EvmContractInfo": {
"codeHash": "H256",
"maintainer": "H160",
"deployed": "bool"
},
"EvmAddress": "H160",
"CallRequest": {
"from": "Option<H160>",
"to": "Option<H160>",
"gasLimit": "Option<u32>",
"storageLimit": "Option<u32>",
"value": "Option<U128>",
"data": "Option<Bytes>"
},
"CID": "Vec<u8>",
"ClassId": "u32",
"ClassIdOf": "ClassId",
"TokenId": "u64",
"TokenIdOf": "TokenId",
"TokenInfoOf": {
"metadata": "CID",
"owner": "AccountId",
"data": "TokenData"
},
"TokenData": {
"deposit": "Balance"
},
"Properties": {
"_set": {
"_bitLength": 8,
"Transferable": 1,
"Burnable": 2
}
},
"BondingLedger": {
"total": "Compact<Balance>",
"active": "Compact<Balance>",
"unlocking": "Vec<UnlockChunk>"
},
"Amount": "i128",
"AmountOf": "Amount",
"AuctionId": "u32",
"AuctionIdOf": "AuctionId",
"TokenSymbol": {
"_enum": {
"REEF": 0,
"RUSD": 1
}
},
"CurrencyId": {
"_enum": {
"Token": "TokenSymbol",
"DEXShare": "(TokenSymbol, TokenSymbol)",
"ERC20": "EvmAddress"
}
},
"CurrencyIdOf": "CurrencyId",
"AuthoritysOriginId": {
"_enum": ["Root"]
},
"TradingPair": "(CurrencyId, CurrencyId)",
"AsOriginId": "AuthoritysOriginId",
"SubAccountStatus": {
"bonded": "Balance",
"available": "Balance",
"unbonding": "Vec<(EraIndex,Balance)>",
"mockRewardRate": "Rate"
},
"Params": {
"targetMaxFreeUnbondedRatio": "Ratio",
"targetMinFreeUnbondedRatio": "Ratio",
"targetUnbondingToFreeRatio": "Ratio",
"unbondingToFreeAdjustment": "Ratio",
"baseFeeRate": "Rate"
},
"Ledger": {
"bonded": "Balance",
"unbondingToFree": "Balance",
"freePool": "Balance",
"toUnbondNextEra": "(Balance, Balance)"
},
"ChangeRate": {
"_enum": {
"NoChange": "Null",
"NewValue": "Rate"
}
},
"ChangeRatio": {
"_enum": {
"NoChange": "Null",
"NewValue": "Ratio"
}
},
"BalanceInfo": {
"amount": "Balance"
},
"Rate": "FixedU128",
"Ratio": "FixedU128",
"PublicKey": "[u8; 20]",
"DestAddress": "Vec<u8>",
"Keys": "SessionKeys2",
"PalletsOrigin": {
"_enum": {
"System": "SystemOrigin",
"Timestamp": "Null",
"RandomnessCollectiveFlip": "Null",
"Balances": "Null",
"Accounts": "Null",
"Currencies": "Null",
"Tokens": "Null",
"Vesting": "Null",
"Utility": "Null",
"Multisig": "Null",
"Recovery": "Null",
"Proxy": "Null",
"Scheduler": "Null",
"Indices": "Null",
"GraduallyUpdate": "Null",
"Authorship": "Null",
"Babe": "Null",
"Grandpa": "Null",
"Staking": "Null",
"Session": "Null",
"Historical": "Null",
"Authority": "DelayedOrigin",
"ElectionsPhragmen": "Null",
"Contracts": "Null",
"EVM": "Null",
"Sudo": "Null",
"TransactionPayment": "Null"
}
},
"LockState": {
"_enum": {
"Committed": "None",
"Unbonding": "BlockNumber"
}
},
"LockDuration": {
"_enum": ["OneMonth", "OneYear", "TenYears"]
},
"EraIndex": "u32",
"Era": {
"index": "EraIndex",
"start": "BlockNumber"
},
"Commitment": {
"state": "LockState",
"duration": "LockDuration",
"amount": "Balance",
"candidate": "AccountId"
},
"Multisig": {
"when": "Timepoint",
"deposit": "Balance",
"depositor": "AccountId",
"approvals": "Vec<AccountId>"
},
"Timepoint": {
"height": "BlockNumber",
"index": "u32"
}
}
22 changes: 0 additions & 22 deletions Reef/reef-starter/src/chaintypes.ts

This file was deleted.

0 comments on commit c039266

Please sign in to comment.