SubGame add new types (#6216)
* feat: add SubGame asset, swap pallet types * feat:chagne subgame type * fix: SubGame types Extra space * fix: SubGame Unexpected trailing comma comma-dangle error Co-authored-by: ss910316 <ss910316@gmail.com>
This commit is contained in:
parent
bc7bacab8a
commit
14f678e153
@ -14,8 +14,6 @@ const definitions: OverrideBundleDefinition = {
|
||||
types: {
|
||||
GameIndex: 'u32',
|
||||
GameMode: 'u8',
|
||||
CommodityId: 'u128',
|
||||
CommodityInfo: 'Vec<u8>',
|
||||
CommodityLimit: 'u128',
|
||||
UserCommodityLimit: 'u64',
|
||||
ChipBalance: 'u128',
|
||||
@ -71,6 +69,53 @@ const definitions: OverrideBundleDefinition = {
|
||||
balance: 'u64',
|
||||
isFrozen: 'bool',
|
||||
isZombie: 'bool'
|
||||
},
|
||||
SGAssetBalance: 'u64',
|
||||
CommodityId: 'Hash',
|
||||
Commodity: {
|
||||
id: 'CommodityId',
|
||||
info: 'Vec<u8>'
|
||||
},
|
||||
ProgramId: 'u64',
|
||||
Program: {
|
||||
program_id: 'ProgramId',
|
||||
stake_amount: 'u128',
|
||||
valid_day_count: 'u64'
|
||||
},
|
||||
PalletId: 'u64',
|
||||
PalletInfo: {
|
||||
pallet_id: 'PalletId',
|
||||
name: 'Vec<u8>'
|
||||
},
|
||||
NftId: 'Hash',
|
||||
LeaseInfo: {
|
||||
pallet_id: 'PalletId',
|
||||
nft_id: 'NftId'
|
||||
},
|
||||
StakeInfo: {
|
||||
pallet_id: 'PalletId',
|
||||
program_id: 'ProgramId',
|
||||
stake_amount: 'Balance',
|
||||
expires_at: 'Moment',
|
||||
nft_id: 'NftId'
|
||||
},
|
||||
Moment: 'u64',
|
||||
MomentOf: 'Moment',
|
||||
SwapId: 'u32',
|
||||
SwapSender: 'AccountId',
|
||||
SwapPoolOwner: 'AccountId',
|
||||
SwapAssetX: 'u32',
|
||||
SwapAssetY: 'u32',
|
||||
SwapAmountX: 'u64',
|
||||
SwapAmountY: 'u64',
|
||||
SwapAmountLP: 'u64',
|
||||
SwapPoolDetails: {
|
||||
swap_id: 'u32',
|
||||
account: 'AccountId',
|
||||
asset_a: 'u32',
|
||||
asset_b: 'u32',
|
||||
asset_lp: 'u32',
|
||||
swap_k: 'u128'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user