From 9eb0f7241d258e3959844bb7aa40cf3040fd6838 Mon Sep 17 00:00:00 2001 From: dafuga Date: Tue, 28 Nov 2023 16:25:22 -0800 Subject: [PATCH] fix: stop lowercasing struct field names --- src/commands/contract/structs.ts | 2 +- test/data/contracts/mock-atomicassets.ts | 338 ++++----- test/data/contracts/mock-boid.ts | 592 +++++++-------- test/data/contracts/mock-eosio.msig.ts | 98 +-- test/data/contracts/mock-eosio.token.ts | 40 +- test/data/contracts/mock-eosio.ts | 708 +++++++++--------- test/data/contracts/mock-hegemon.hgm.ts | 898 +++++++++++------------ test/data/contracts/mock-rewards.gm.ts | 48 +- 8 files changed, 1362 insertions(+), 1362 deletions(-) diff --git a/src/commands/contract/structs.ts b/src/commands/contract/structs.ts index cca69f9..82c4020 100644 --- a/src/commands/contract/structs.ts +++ b/src/commands/contract/structs.ts @@ -166,7 +166,7 @@ export function generateField( namespace: string | undefined, abi: ABI.Def ): ts.PropertyDeclaration { - const fieldName = field.name.toLowerCase() + const fieldName = field.name const isArray = field.type.endsWith('[]') diff --git a/test/data/contracts/mock-atomicassets.ts b/test/data/contracts/mock-atomicassets.ts index 23723d5..23cda43 100644 --- a/test/data/contracts/mock-atomicassets.ts +++ b/test/data/contracts/mock-atomicassets.ts @@ -338,479 +338,479 @@ export namespace Types { @Struct.type('FORMAT') export class FORMAT extends Struct { @Struct.field('string') - name!: string + Name!: string @Struct.field('string') - type!: string + Type!: string } @Struct.type('acceptoffer') export class acceptoffer extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 } @Struct.type('addcolauth') export class addcolauth extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - account_to_add!: Name + Account_to_add!: Name } @Struct.type('addconftoken') export class addconftoken extends Struct { @Struct.field(Name) - token_contract!: Name + Token_contract!: Name @Struct.field(Asset.Symbol) - token_symbol!: Asset.Symbol + Token_symbol!: Asset.Symbol } @Struct.type('addnotifyacc') export class addnotifyacc extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - account_to_add!: Name + Account_to_add!: Name } @Struct.type('admincoledit') export class admincoledit extends Struct { @Struct.field(FORMAT, {array: true}) - collection_format_extension!: FORMAT[] + Collection_format_extension!: FORMAT[] } @Struct.type('announcedepo') export class announcedepo extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset.Symbol) - symbol_to_announce!: Asset.Symbol + Symbol_to_announce!: Asset.Symbol } @Struct.type('assets_s') export class assets_s extends Struct { @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(Name) - ram_payer!: Name + Ram_payer!: Name @Struct.field(Asset, {array: true}) - backed_tokens!: Asset[] + Backed_tokens!: Asset[] @Struct.field(UInt8, {array: true}) - immutable_serialized_data!: UInt8[] + Immutable_serialized_data!: UInt8[] @Struct.field(UInt8, {array: true}) - mutable_serialized_data!: UInt8[] + Mutable_serialized_data!: UInt8[] } @Struct.type('backasset') export class backasset extends Struct { @Struct.field(Name) - payer!: Name + Payer!: Name @Struct.field(Name) - asset_owner!: Name + Asset_owner!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(Asset) - token_to_back!: Asset + Token_to_back!: Asset } @Struct.type('balances_s') export class balances_s extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset, {array: true}) - quantities!: Asset[] + Quantities!: Asset[] } @Struct.type('burnasset') export class burnasset extends Struct { @Struct.field(Name) - asset_owner!: Name + Asset_owner!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 } @Struct.type('canceloffer') export class canceloffer extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 } @Struct.type('collections_s') export class collections_s extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - author!: Name + Author!: Name @Struct.field('bool') - allow_notify!: boolean + Allow_notify!: boolean @Struct.field(Name, {array: true}) - authorized_accounts!: Name[] + Authorized_accounts!: Name[] @Struct.field(Name, {array: true}) - notify_accounts!: Name[] + Notify_accounts!: Name[] @Struct.field(Float64) - market_fee!: Float64 + Market_fee!: Float64 @Struct.field(UInt8, {array: true}) - serialized_data!: UInt8[] + Serialized_data!: UInt8[] } @Struct.type('extended_symbol') export class extended_symbol extends Struct { @Struct.field(Asset.Symbol) - sym!: Asset.Symbol + Sym!: Asset.Symbol @Struct.field(Name) - contract!: Name + Contract!: Name } @Struct.type('config_s') export class config_s extends Struct { @Struct.field(UInt64) - asset_counter!: UInt64 + Asset_counter!: UInt64 @Struct.field(Int32) - template_counter!: Int32 + Template_counter!: Int32 @Struct.field(UInt64) - offer_counter!: UInt64 + Offer_counter!: UInt64 @Struct.field(FORMAT, {array: true}) - collection_format!: FORMAT[] + Collection_format!: FORMAT[] @Struct.field(extended_symbol, {array: true}) - supported_tokens!: extended_symbol[] + Supported_tokens!: extended_symbol[] } @Struct.type('pair_string_ATOMIC_ATTRIBUTE') export class pair_string_ATOMIC_ATTRIBUTE extends Struct { @Struct.field('string') - key!: string + Key!: string @Struct.field( variant_int8_int16_int32_int64_uint8_uint16_uint32_uint64_float32_float64_string_INT8_VEC_INT16_VEC_INT32_VEC_INT64_VEC_UINT8_VEC_UINT16_VEC_UINT32_VEC_UINT64_VEC_FLOAT_VEC_DOUBLE_VEC_STRING_VEC ) - value!: variant_int8_int16_int32_int64_uint8_uint16_uint32_uint64_float32_float64_string_INT8_VEC_INT16_VEC_INT32_VEC_INT64_VEC_UINT8_VEC_UINT16_VEC_UINT32_VEC_UINT64_VEC_FLOAT_VEC_DOUBLE_VEC_STRING_VEC + Value!: variant_int8_int16_int32_int64_uint8_uint16_uint32_uint64_float32_float64_string_INT8_VEC_INT16_VEC_INT32_VEC_INT64_VEC_UINT8_VEC_UINT16_VEC_UINT32_VEC_UINT64_VEC_FLOAT_VEC_DOUBLE_VEC_STRING_VEC } @Struct.type('createcol') export class createcol extends Struct { @Struct.field(Name) - author!: Name + Author!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field('bool') - allow_notify!: boolean + Allow_notify!: boolean @Struct.field(Name, {array: true}) - authorized_accounts!: Name[] + Authorized_accounts!: Name[] @Struct.field(Name, {array: true}) - notify_accounts!: Name[] + Notify_accounts!: Name[] @Struct.field(Float64) - market_fee!: Float64 + Market_fee!: Float64 @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - data!: pair_string_ATOMIC_ATTRIBUTE + Data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('createoffer') export class createoffer extends Struct { @Struct.field(Name) - sender!: Name + Sender!: Name @Struct.field(Name) - recipient!: Name + Recipient!: Name @Struct.field(UInt64, {array: true}) - sender_asset_ids!: UInt64[] + Sender_asset_ids!: UInt64[] @Struct.field(UInt64, {array: true}) - recipient_asset_ids!: UInt64[] + Recipient_asset_ids!: UInt64[] @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('createschema') export class createschema extends Struct { @Struct.field(Name) - authorized_creator!: Name + Authorized_creator!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(FORMAT, {array: true}) - schema_format!: FORMAT[] + Schema_format!: FORMAT[] } @Struct.type('createtempl') export class createtempl extends Struct { @Struct.field(Name) - authorized_creator!: Name + Authorized_creator!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field('bool') - transferable!: boolean + Transferable!: boolean @Struct.field('bool') - burnable!: boolean + Burnable!: boolean @Struct.field(UInt32) - max_supply!: UInt32 + Max_supply!: UInt32 @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - immutable_data!: pair_string_ATOMIC_ATTRIBUTE + Immutable_data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('declineoffer') export class declineoffer extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 } @Struct.type('extendschema') export class extendschema extends Struct { @Struct.field(Name) - authorized_editor!: Name + Authorized_editor!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(FORMAT, {array: true}) - schema_format_extension!: FORMAT[] + Schema_format_extension!: FORMAT[] } @Struct.type('forbidnotify') export class forbidnotify extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name } @Struct.type('init') export class init extends Struct {} @Struct.type('locktemplate') export class locktemplate extends Struct { @Struct.field(Name) - authorized_editor!: Name + Authorized_editor!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 } @Struct.type('logbackasset') export class logbackasset extends Struct { @Struct.field(Name) - asset_owner!: Name + Asset_owner!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(Asset) - backed_token!: Asset + Backed_token!: Asset } @Struct.type('logburnasset') export class logburnasset extends Struct { @Struct.field(Name) - asset_owner!: Name + Asset_owner!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(Asset, {array: true}) - backed_tokens!: Asset[] + Backed_tokens!: Asset[] @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - old_immutable_data!: pair_string_ATOMIC_ATTRIBUTE + Old_immutable_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - old_mutable_data!: pair_string_ATOMIC_ATTRIBUTE + Old_mutable_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(Name) - asset_ram_payer!: Name + Asset_ram_payer!: Name } @Struct.type('logmint') export class logmint extends Struct { @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(Name) - authorized_minter!: Name + Authorized_minter!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(Name) - new_asset_owner!: Name + New_asset_owner!: Name @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - immutable_data!: pair_string_ATOMIC_ATTRIBUTE + Immutable_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - mutable_data!: pair_string_ATOMIC_ATTRIBUTE + Mutable_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(Asset, {array: true}) - backed_tokens!: Asset[] + Backed_tokens!: Asset[] @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - immutable_template_data!: pair_string_ATOMIC_ATTRIBUTE + Immutable_template_data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('lognewoffer') export class lognewoffer extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 @Struct.field(Name) - sender!: Name + Sender!: Name @Struct.field(Name) - recipient!: Name + Recipient!: Name @Struct.field(UInt64, {array: true}) - sender_asset_ids!: UInt64[] + Sender_asset_ids!: UInt64[] @Struct.field(UInt64, {array: true}) - recipient_asset_ids!: UInt64[] + Recipient_asset_ids!: UInt64[] @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('lognewtempl') export class lognewtempl extends Struct { @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(Name) - authorized_creator!: Name + Authorized_creator!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field('bool') - transferable!: boolean + Transferable!: boolean @Struct.field('bool') - burnable!: boolean + Burnable!: boolean @Struct.field(UInt32) - max_supply!: UInt32 + Max_supply!: UInt32 @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - immutable_data!: pair_string_ATOMIC_ATTRIBUTE + Immutable_data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('logsetdata') export class logsetdata extends Struct { @Struct.field(Name) - asset_owner!: Name + Asset_owner!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - old_data!: pair_string_ATOMIC_ATTRIBUTE + Old_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - new_data!: pair_string_ATOMIC_ATTRIBUTE + New_data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('logtransfer') export class logtransfer extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - to!: Name + To!: Name @Struct.field(UInt64, {array: true}) - asset_ids!: UInt64[] + Asset_ids!: UInt64[] @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('mintasset') export class mintasset extends Struct { @Struct.field(Name) - authorized_minter!: Name + Authorized_minter!: Name @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(Name) - new_asset_owner!: Name + New_asset_owner!: Name @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - immutable_data!: pair_string_ATOMIC_ATTRIBUTE + Immutable_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - mutable_data!: pair_string_ATOMIC_ATTRIBUTE + Mutable_data!: pair_string_ATOMIC_ATTRIBUTE @Struct.field(Asset, {array: true}) - tokens_to_back!: Asset[] + Tokens_to_back!: Asset[] } @Struct.type('offers_s') export class offers_s extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 @Struct.field(Name) - sender!: Name + Sender!: Name @Struct.field(Name) - recipient!: Name + Recipient!: Name @Struct.field(UInt64, {array: true}) - sender_asset_ids!: UInt64[] + Sender_asset_ids!: UInt64[] @Struct.field(UInt64, {array: true}) - recipient_asset_ids!: UInt64[] + Recipient_asset_ids!: UInt64[] @Struct.field('string') - memo!: string + Memo!: string @Struct.field(Name) - ram_payer!: Name + Ram_payer!: Name } @Struct.type('payofferram') export class payofferram extends Struct { @Struct.field(Name) - payer!: Name + Payer!: Name @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 } @Struct.type('remcolauth') export class remcolauth extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - account_to_remove!: Name + Account_to_remove!: Name } @Struct.type('remnotifyacc') export class remnotifyacc extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - account_to_remove!: Name + Account_to_remove!: Name } @Struct.type('schemas_s') export class schemas_s extends Struct { @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(FORMAT, {array: true}) - format!: FORMAT[] + Format!: FORMAT[] } @Struct.type('setassetdata') export class setassetdata extends Struct { @Struct.field(Name) - authorized_editor!: Name + Authorized_editor!: Name @Struct.field(Name) - asset_owner!: Name + Asset_owner!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - new_mutable_data!: pair_string_ATOMIC_ATTRIBUTE + New_mutable_data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('setcoldata') export class setcoldata extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(pair_string_ATOMIC_ATTRIBUTE) - data!: pair_string_ATOMIC_ATTRIBUTE + Data!: pair_string_ATOMIC_ATTRIBUTE } @Struct.type('setmarketfee') export class setmarketfee extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Float64) - market_fee!: Float64 + Market_fee!: Float64 } @Struct.type('setversion') export class setversion extends Struct { @Struct.field('string') - new_version!: string + New_version!: string } @Struct.type('templates_s') export class templates_s extends Struct { @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field('bool') - transferable!: boolean + Transferable!: boolean @Struct.field('bool') - burnable!: boolean + Burnable!: boolean @Struct.field(UInt32) - max_supply!: UInt32 + Max_supply!: UInt32 @Struct.field(UInt32) - issued_supply!: UInt32 + Issued_supply!: UInt32 @Struct.field(UInt8, {array: true}) - immutable_serialized_data!: UInt8[] + Immutable_serialized_data!: UInt8[] } @Struct.type('tokenconfigs_s') export class tokenconfigs_s extends Struct { @Struct.field(Name) - standard!: Name + Standard!: Name @Struct.field('string') - version!: string + Version!: string } @Struct.type('transfer') export class transfer extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - to!: Name + To!: Name @Struct.field(UInt64, {array: true}) - asset_ids!: UInt64[] + Asset_ids!: UInt64[] @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('withdraw') export class withdraw extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - token_to_withdraw!: Asset + Token_to_withdraw!: Asset } } export const TableMap = { diff --git a/test/data/contracts/mock-boid.ts b/test/data/contracts/mock-boid.ts index 81e9048..f405e8c 100644 --- a/test/data/contracts/mock-boid.ts +++ b/test/data/contracts/mock-boid.ts @@ -401,543 +401,543 @@ export namespace Types { @Struct.type('AccountAuth') export class AccountAuth extends Struct { @Struct.field(PublicKey, {array: true}) - keys!: PublicKey[] + Keys!: PublicKey[] @Struct.field(UInt8) - nonce!: UInt8 + Nonce!: UInt8 } @Struct.type('TokenUnstake') export class TokenUnstake extends Struct { @Struct.field(UInt16) - redeemable_after_round!: UInt16 + Redeemable_after_round!: UInt16 @Struct.field(UInt32) - quantity!: UInt32 + Quantity!: UInt32 } @Struct.type('AccountStake') export class AccountStake extends Struct { @Struct.field(TokenUnstake, {array: true}) - unstaking!: TokenUnstake[] + Unstaking!: TokenUnstake[] @Struct.field(UInt32) - self_staked!: UInt32 + Self_staked!: UInt32 @Struct.field(UInt16) - received_delegated_stake!: UInt16 + Received_delegated_stake!: UInt16 } @Struct.type('AccountBooster') export class AccountBooster extends Struct { @Struct.field(UInt8) - pwr_multiplier!: UInt8 + Pwr_multiplier!: UInt8 @Struct.field(UInt16) - pwr_add_per_round!: UInt16 + Pwr_add_per_round!: UInt16 @Struct.field(UInt16) - expires_round!: UInt16 + Expires_round!: UInt16 @Struct.field(UInt32) - aggregate_pwr_remaining!: UInt32 + Aggregate_pwr_remaining!: UInt32 } @Struct.type('AccountPower') export class AccountPower extends Struct { @Struct.field(UInt16) - last_claimed_round!: UInt16 + Last_claimed_round!: UInt16 @Struct.field(UInt16) - last_added_round!: UInt16 + Last_added_round!: UInt16 @Struct.field(UInt32) - rating!: UInt32 + Rating!: UInt32 @Struct.field(UInt16, {array: true}) - history!: UInt16[] + History!: UInt16[] @Struct.field(AccountBooster, {array: true}) - mods!: AccountBooster[] + Mods!: AccountBooster[] } @Struct.type('AccountTeam') export class AccountTeam extends Struct { @Struct.field(UInt8) - team_id!: UInt8 + Team_id!: UInt8 @Struct.field(UInt16) - last_edit_round!: UInt16 + Last_edit_round!: UInt16 @Struct.field(UInt8) - team_tax_mult!: UInt8 + Team_tax_mult!: UInt8 @Struct.field(UInt32) - team_cumulative_contribution!: UInt32 + Team_cumulative_contribution!: UInt32 } @Struct.type('Account') export class Account extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Name, {array: true}) - owners!: Name[] + Owners!: Name[] @Struct.field(AccountAuth) - auth!: AccountAuth + Auth!: AccountAuth @Struct.field(Name, {array: true}) - sponsors!: Name[] + Sponsors!: Name[] @Struct.field(AccountStake) - stake!: AccountStake + Stake!: AccountStake @Struct.field(AccountPower) - power!: AccountPower + Power!: AccountPower @Struct.field(AccountTeam) - team!: AccountTeam + Team!: AccountTeam @Struct.field(UInt32) - balance!: UInt32 + Balance!: UInt32 @Struct.field(UInt16) - nft_balance!: UInt16 + Nft_balance!: UInt16 @Struct.field('bool') - recoverable!: boolean + Recoverable!: boolean } @Struct.type('AccountCreate') export class AccountCreate extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(PublicKey, {array: true}) - keys!: PublicKey[] + Keys!: PublicKey[] @Struct.field(Name, {array: true}) - owners!: Name[] + Owners!: Name[] } @Struct.type('AcctMeta') export class AcctMeta extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Bytes) - meta!: Bytes + Meta!: Bytes } @Struct.type('PermissionLevel') export class PermissionLevel extends Struct { @Struct.field(Name) - actor!: Name + Actor!: Name @Struct.field(Name) - permission!: Name + Permission!: Name } @Struct.type('Action') export class Action extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name) - name!: Name + Name!: Name @Struct.field(PermissionLevel, {array: true}) - authorization!: PermissionLevel[] + Authorization!: PermissionLevel[] @Struct.field(Bytes) - data!: Bytes + Data!: Bytes } @Struct.type('AtomicAttribute') export class AtomicAttribute extends Struct { @Struct.field('string') - key!: string + Key!: string @Struct.field(AtomicValue) - value!: AtomicValue + Value!: AtomicValue } @Struct.type('AtomicFormat') export class AtomicFormat extends Struct { @Struct.field('string') - name!: string + Name!: string @Struct.field('string') - type!: string + Type!: string } @Struct.type('Auth') export class Auth extends Struct { @Struct.field(Name) - boid_id_auth!: Name + Boid_id_auth!: Name } @Struct.type('Booster') export class Booster extends Struct { @Struct.field(UInt8) - mod_id!: UInt8 + Mod_id!: UInt8 @Struct.field(UInt8) - pwr_multiplier!: UInt8 + Pwr_multiplier!: UInt8 @Struct.field(UInt16) - pwr_add_per_round!: UInt16 + Pwr_add_per_round!: UInt16 @Struct.field(UInt16) - expire_after_elapsed_rounds!: UInt16 + Expire_after_elapsed_rounds!: UInt16 @Struct.field(UInt32) - aggregate_pwr_capacity!: UInt32 + Aggregate_pwr_capacity!: UInt32 } @Struct.type('ConfigAccount') export class ConfigAccount extends Struct { @Struct.field(UInt32) - invite_price!: UInt32 + Invite_price!: UInt32 @Struct.field(UInt32) - premium_purchase_price!: UInt32 + Premium_purchase_price!: UInt32 @Struct.field(UInt8) - max_premium_prefix!: UInt8 + Max_premium_prefix!: UInt8 @Struct.field(UInt8) - max_owners!: UInt8 + Max_owners!: UInt8 @Struct.field(UInt8) - max_boosters!: UInt8 + Max_boosters!: UInt8 @Struct.field(Name, {array: true}) - suffix_whitelist!: Name[] + Suffix_whitelist!: Name[] @Struct.field(UInt32) - remove_sponsor_price!: UInt32 + Remove_sponsor_price!: UInt32 @Struct.field(UInt8) - sponsor_max_invite_codes!: UInt8 + Sponsor_max_invite_codes!: UInt8 @Struct.field(UInt16) - invite_code_expire_rounds!: UInt16 + Invite_code_expire_rounds!: UInt16 } @Struct.type('ConfigPower') export class ConfigPower extends Struct { @Struct.field(Float32) - sponsor_tax_mult!: Float32 + Sponsor_tax_mult!: Float32 @Struct.field(Float32) - powered_stake_mult!: Float32 + Powered_stake_mult!: Float32 @Struct.field(UInt16) - claim_maximum_elapsed_rounds!: UInt16 + Claim_maximum_elapsed_rounds!: UInt16 @Struct.field(UInt16) - soft_max_pwr_add!: UInt16 + Soft_max_pwr_add!: UInt16 @Struct.field(UInt8) - history_slots_length!: UInt8 + History_slots_length!: UInt8 } @Struct.type('ConfigMint') export class ConfigMint extends Struct { @Struct.field(Float32) - round_powered_stake_mult!: Float32 + Round_powered_stake_mult!: Float32 @Struct.field(Float32) - round_power_mult!: Float32 + Round_power_mult!: Float32 } @Struct.type('ConfigTeam') export class ConfigTeam extends Struct { @Struct.field(UInt16) - change_min_rounds!: UInt16 + Change_min_rounds!: UInt16 @Struct.field(UInt16) - edit_team_min_rounds!: UInt16 + Edit_team_min_rounds!: UInt16 @Struct.field(UInt16) - team_edit_max_pct_change!: UInt16 + Team_edit_max_pct_change!: UInt16 @Struct.field(UInt32) - buy_team_cost!: UInt32 + Buy_team_cost!: UInt32 @Struct.field(UInt32) - owner_stake_required!: UInt32 + Owner_stake_required!: UInt32 @Struct.field(UInt16) - owner_future_stake_lock_rounds_required!: UInt16 + Owner_future_stake_lock_rounds_required!: UInt16 } @Struct.type('ConfigStake') export class ConfigStake extends Struct { @Struct.field(UInt8) - unstake_rounds!: UInt8 + Unstake_rounds!: UInt8 @Struct.field(UInt8) - extra_stake_min_locked_rounds!: UInt8 + Extra_stake_min_locked_rounds!: UInt8 } @Struct.type('ConfigTime') export class ConfigTime extends Struct { @Struct.field(UInt32) - rounds_start_sec_since_epoch!: UInt32 + Rounds_start_sec_since_epoch!: UInt32 @Struct.field(UInt32) - round_length_sec!: UInt32 + Round_length_sec!: UInt32 } @Struct.type('ConfigAuth') export class ConfigAuth extends Struct { @Struct.field(Name, {array: true}) - key_actions_whitelist!: Name[] + Key_actions_whitelist!: Name[] @Struct.field(UInt32) - key_account_max_stake!: UInt32 + Key_account_max_stake!: UInt32 @Struct.field(UInt32) - key_account_max_balance!: UInt32 + Key_account_max_balance!: UInt32 @Struct.field(UInt8) - account_max_keys!: UInt8 + Account_max_keys!: UInt8 @Struct.field(UInt32) - worker_max_bill_per_action!: UInt32 + Worker_max_bill_per_action!: UInt32 } @Struct.type('ConfigNft') export class ConfigNft extends Struct { @Struct.field(UInt16) - boid_id_maximum_nfts!: UInt16 + Boid_id_maximum_nfts!: UInt16 @Struct.field(Name, {array: true}) - whitelist_collections!: Name[] + Whitelist_collections!: Name[] } @Struct.type('Config') export class Config extends Struct { @Struct.field(ConfigAccount) - account!: ConfigAccount + Account!: ConfigAccount @Struct.field(ConfigPower) - power!: ConfigPower + Power!: ConfigPower @Struct.field(ConfigMint) - mint!: ConfigMint + Mint!: ConfigMint @Struct.field(ConfigTeam) - team!: ConfigTeam + Team!: ConfigTeam @Struct.field(ConfigStake) - stake!: ConfigStake + Stake!: ConfigStake @Struct.field(ConfigTime) - time!: ConfigTime + Time!: ConfigTime @Struct.field(ConfigAuth) - auth!: ConfigAuth + Auth!: ConfigAuth @Struct.field(ConfigNft) - nft!: ConfigNft + Nft!: ConfigNft @Struct.field('bool') - paused!: boolean + Paused!: boolean @Struct.field('bool') - allow_deposits!: boolean + Allow_deposits!: boolean @Struct.field('bool') - allow_withdrawals!: boolean + Allow_withdrawals!: boolean @Struct.field(Name) - recoveryaccount!: Name + RecoveryAccount!: Name } @Struct.type('ExtendedSymbol') export class ExtendedSymbol extends Struct { @Struct.field(Asset.Symbol) - sym!: Asset.Symbol + Sym!: Asset.Symbol @Struct.field(Name) - contract!: Name + Contract!: Name } @Struct.type('Global') export class Global extends Struct { @Struct.field(Name) - chain_name!: Name + Chain_name!: Name @Struct.field(UInt64) - total_power!: UInt64 + Total_power!: UInt64 @Struct.field(UInt16) - last_inflation_adjust_round!: UInt16 + Last_inflation_adjust_round!: UInt16 } @Struct.type('Invite') export class Invite extends Struct { @Struct.field(UInt64) - invite_code!: UInt64 + Invite_code!: UInt64 @Struct.field(PublicKey) - key!: PublicKey + Key!: PublicKey @Struct.field(UInt16) - created_round!: UInt16 + Created_round!: UInt16 } @Struct.type('MintLog') export class MintLog extends Struct { @Struct.field(UInt32) - power_mint!: UInt32 + Power_mint!: UInt32 @Struct.field(UInt32) - powered_stake_mint!: UInt32 + Powered_stake_mint!: UInt32 @Struct.field(UInt32) - account_earned!: UInt32 + Account_earned!: UInt32 @Struct.field(UInt32) - team_cut!: UInt32 + Team_cut!: UInt32 @Struct.field(UInt32) - team_owner_earned!: UInt32 + Team_owner_earned!: UInt32 @Struct.field(UInt32) - overstake_mint!: UInt32 + Overstake_mint!: UInt32 @Struct.field(UInt32) - total!: UInt32 + Total!: UInt32 } @Struct.type('NFT') export class NFT extends Struct { @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(UInt16) - locked_until_round!: UInt16 + Locked_until_round!: UInt16 } @Struct.type('NFTMint') export class NFTMint extends Struct { @Struct.field(Name) - mint_receiver_boid_id!: Name + Mint_receiver_boid_id!: Name @Struct.field(UInt16) - mint_quantity_remaining!: UInt16 + Mint_quantity_remaining!: UInt16 } @Struct.type('NftAction') export class NftAction extends Struct { @Struct.field(Name) - collection_name!: Name + Collection_name!: Name @Struct.field(Name) - schema_name!: Name + Schema_name!: Name @Struct.field(Int32) - template_id!: Int32 + Template_id!: Int32 @Struct.field(AtomicAttribute, {array: true}) - match_immutable_attributes!: AtomicAttribute[] + Match_immutable_attributes!: AtomicAttribute[] @Struct.field(AtomicAttribute, {array: true}) - match_mutable_attributes!: AtomicAttribute[] + Match_mutable_attributes!: AtomicAttribute[] @Struct.field('bool') - burn!: boolean + Burn!: boolean @Struct.field(UInt16) - lock_rounds!: UInt16 + Lock_rounds!: UInt16 } @Struct.type('NftMint') export class NftMint extends Struct { @Struct.field(Int32) - mint_template_id!: Int32 + Mint_template_id!: Int32 @Struct.field(Name) - mint_schema_name!: Name + Mint_schema_name!: Name @Struct.field(Name) - mint_collection_name!: Name + Mint_collection_name!: Name @Struct.field(AtomicAttribute, {array: true}) - immutable_data!: AtomicAttribute[] + Immutable_data!: AtomicAttribute[] @Struct.field(AtomicAttribute, {array: true}) - mutable_data!: AtomicAttribute[] + Mutable_data!: AtomicAttribute[] @Struct.field(UInt8) - quantity!: UInt8 + Quantity!: UInt8 } @Struct.type('OfferRequirements') export class OfferRequirements extends Struct { @Struct.field(Bytes) - team_id!: Bytes + Team_id!: Bytes @Struct.field(UInt16) - min_power!: UInt16 + Min_power!: UInt16 @Struct.field(UInt32) - min_balance!: UInt32 + Min_balance!: UInt32 @Struct.field(UInt32) - min_stake!: UInt32 + Min_stake!: UInt32 @Struct.field(UInt32) - min_cumulative_team_contribution!: UInt32 + Min_cumulative_team_contribution!: UInt32 } @Struct.type('OfferAction') export class OfferAction extends Struct { @Struct.field(UInt16) - delegated_stake!: UInt16 + Delegated_stake!: UInt16 @Struct.field(UInt16) - stake_locked_additional_rounds!: UInt16 + Stake_locked_additional_rounds!: UInt16 @Struct.field(NftAction, {array: true}) - nft_actions!: NftAction[] + Nft_actions!: NftAction[] @Struct.field(UInt32) - balance_payment!: UInt32 + Balance_payment!: UInt32 } @Struct.type('OfferRewards') export class OfferRewards extends Struct { @Struct.field(NftMint, {array: true}) - nft_mints!: NftMint[] + Nft_mints!: NftMint[] @Struct.field(UInt32) - balance_deposit!: UInt32 + Balance_deposit!: UInt32 @Struct.field(UInt16) - delegated_stake!: UInt16 + Delegated_stake!: UInt16 @Struct.field(UInt16) - stake_locked_additional_rounds!: UInt16 + Stake_locked_additional_rounds!: UInt16 @Struct.field(Bytes) - activate_powermod_ids!: Bytes + Activate_powermod_ids!: Bytes } @Struct.type('OfferLimits') export class OfferLimits extends Struct { @Struct.field(UInt32) - offer_quantity_remaining!: UInt32 + Offer_quantity_remaining!: UInt32 @Struct.field(UInt16) - available_until_round!: UInt16 + Available_until_round!: UInt16 } @Struct.type('Offer') export class Offer extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 @Struct.field(OfferRequirements) - requirements!: OfferRequirements + Requirements!: OfferRequirements @Struct.field(OfferAction) - actions!: OfferAction + Actions!: OfferAction @Struct.field(OfferRewards) - rewards!: OfferRewards + Rewards!: OfferRewards @Struct.field(OfferLimits) - limits!: OfferLimits + Limits!: OfferLimits @Struct.field(UInt32) - total_claimed!: UInt32 + Total_claimed!: UInt32 } @Struct.type('PowerClaimLog') export class PowerClaimLog extends Struct { @Struct.field(UInt32) - before!: UInt32 + Before!: UInt32 @Struct.field(UInt32) - after!: UInt32 + After!: UInt32 @Struct.field(UInt32) - from_boosters!: UInt32 + From_boosters!: UInt32 @Struct.field(UInt16) - elapsed_rounds!: UInt16 + Elapsed_rounds!: UInt16 } @Struct.type('Sponsor') export class Sponsor extends Struct { @Struct.field(Name) - sponsor_boid_id!: Name + Sponsor_boid_id!: Name @Struct.field(UInt16) - invites_balance!: UInt16 + Invites_balance!: UInt16 @Struct.field(UInt16) - invite_codes_unclaimed!: UInt16 + Invite_codes_unclaimed!: UInt16 @Struct.field(UInt32) - invite_codes_claimed!: UInt32 + Invite_codes_claimed!: UInt32 @Struct.field(UInt32) - sponsored_upgrades!: UInt32 + Sponsored_upgrades!: UInt32 @Struct.field(UInt32) - upgrades_total_earned!: UInt32 + Upgrades_total_earned!: UInt32 } @Struct.type('Stake') export class Stake extends Struct { @Struct.field(UInt64) - stake_id!: UInt64 + Stake_id!: UInt64 @Struct.field(Name) - from_boid_id!: Name + From_boid_id!: Name @Struct.field(Name) - to_boid_id!: Name + To_boid_id!: Name @Struct.field(UInt16) - stake_quantity!: UInt16 + Stake_quantity!: UInt16 @Struct.field(UInt16) - locked_until_round!: UInt16 + Locked_until_round!: UInt16 } @Struct.type('Team') export class Team extends Struct { @Struct.field(UInt16) - team_id!: UInt16 + Team_id!: UInt16 @Struct.field(UInt32) - balance!: UInt32 + Balance!: UInt32 @Struct.field(AccountStake) - stake!: AccountStake + Stake!: AccountStake @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Name, {array: true}) - managers!: Name[] + Managers!: Name[] @Struct.field(UInt8) - min_pwr_tax_mult!: UInt8 + Min_pwr_tax_mult!: UInt8 @Struct.field(UInt8) - owner_cut_mult!: UInt8 + Owner_cut_mult!: UInt8 @Struct.field('string') - url_safe_name!: string + Url_safe_name!: string @Struct.field(UInt64) - power!: UInt64 + Power!: UInt64 @Struct.field(UInt32) - members!: UInt32 + Members!: UInt32 @Struct.field(UInt16) - last_edit_round!: UInt16 + Last_edit_round!: UInt16 @Struct.field(Bytes) - meta!: Bytes + Meta!: Bytes } @Struct.type('account.add') export class accountadd extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Name, {array: true}) - owners!: Name[] + Owners!: Name[] @Struct.field(Name, {array: true}) - sponsors!: Name[] + Sponsors!: Name[] @Struct.field(PublicKey, {array: true}) - keys!: PublicKey[] + Keys!: PublicKey[] } @Struct.type('account.buy') export class accountbuy extends Struct { @Struct.field(Name) - payer_boid_id!: Name + Payer_boid_id!: Name @Struct.field(AccountCreate) - new_account!: AccountCreate + New_account!: AccountCreate } @Struct.type('account.edit') export class accountedit extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Bytes) - meta!: Bytes + Meta!: Bytes } @Struct.type('account.free') export class accountfree extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name } @Struct.type('account.mod') export class accountmod extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt16) - received_delegated_stake!: UInt16 + Received_delegated_stake!: UInt16 } @Struct.type('account.rm') export class accountrm extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name } @Struct.type('accounts.clr') export class accountsclr extends Struct {} @Struct.type('auth') export class auth extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Action, {array: true}) - actions!: Action[] + Actions!: Action[] @Struct.field(Signature) - sig!: Signature + Sig!: Signature @Struct.field(Int32) - keyindex!: Int32 + KeyIndex!: Int32 @Struct.field(UInt32) - expires_utc_sec!: UInt32 + Expires_utc_sec!: UInt32 } @Struct.type('auth.addkey') export class authaddkey extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(PublicKey) - key!: PublicKey + Key!: PublicKey } @Struct.type('auth.clear') export class authclear extends Struct {} @@ -946,341 +946,341 @@ export namespace Types { @Struct.type('auth.rmkey') export class authrmkey extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Int32) - keyindex!: Int32 + KeyIndex!: Int32 } @Struct.type('booster.add') export class boosteradd extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt8) - mod_id!: UInt8 + Mod_id!: UInt8 } @Struct.type('booster.new') export class boosternew extends Struct { @Struct.field(Booster) - mod!: Booster + Mod!: Booster } @Struct.type('booster.rm') export class boosterrm extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Int32, {array: true}) - booster_index!: Int32[] + Booster_index!: Int32[] } @Struct.type('config.clear') export class configclear extends Struct {} @Struct.type('config.set') export class configset extends Struct { @Struct.field(Config) - config!: Config + Config!: Config } @Struct.type('global.chain') export class globalchain extends Struct { @Struct.field(Name) - chain_name!: Name + Chain_name!: Name } @Struct.type('global.clear') export class globalclear extends Struct {} @Struct.type('global.set') export class globalset extends Struct { @Struct.field(Global) - globaldata!: Global + GlobalData!: Global } @Struct.type('internalxfer') export class internalxfer extends Struct { @Struct.field(Name) - from_boid_id!: Name + From_boid_id!: Name @Struct.field(Name) - to_boid_id!: Name + To_boid_id!: Name @Struct.field(UInt32) - quantity!: UInt32 + Quantity!: UInt32 @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('invite.add') export class inviteadd extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt64) - invite_code!: UInt64 + Invite_code!: UInt64 @Struct.field(PublicKey) - key!: PublicKey + Key!: PublicKey } @Struct.type('invite.buy') export class invitebuy extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt16) - quantity!: UInt16 + Quantity!: UInt16 } @Struct.type('invite.claim') export class inviteclaim extends Struct { @Struct.field(Name) - sponsor_boid_id!: Name + Sponsor_boid_id!: Name @Struct.field(UInt64) - invite_code!: UInt64 + Invite_code!: UInt64 @Struct.field(Signature) - sig!: Signature + Sig!: Signature @Struct.field(AccountCreate) - new_account!: AccountCreate + New_account!: AccountCreate } @Struct.type('invite.rm') export class inviterm extends Struct { @Struct.field(Name) - sponsor_boid_id!: Name + Sponsor_boid_id!: Name @Struct.field(UInt64) - invite_code!: UInt64 + Invite_code!: UInt64 } @Struct.type('logpwradd') export class logpwradd extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt16) - received!: UInt16 + Received!: UInt16 @Struct.field(UInt16) - from_mult_mods!: UInt16 + From_mult_mods!: UInt16 @Struct.field(UInt16) - diverted_to_sponsor!: UInt16 + Diverted_to_sponsor!: UInt16 @Struct.field(UInt16) - power_increased!: UInt16 + Power_increased!: UInt16 @Struct.field(Name) - orign!: Name + Orign!: Name } @Struct.type('logpwrclaim') export class logpwrclaim extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(PowerClaimLog) - power!: PowerClaimLog + Power!: PowerClaimLog @Struct.field(MintLog) - mint!: MintLog + Mint!: MintLog } @Struct.type('meta.clean') export class metaclean extends Struct {} @Struct.type('mint') export class mint extends Struct { @Struct.field(Name) - to!: Name + To!: Name @Struct.field(UInt32) - whole_quantity!: UInt32 + Whole_quantity!: UInt32 } @Struct.type('nft.lock') export class nftlock extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt64) - asset_id!: UInt64 + Asset_id!: UInt64 @Struct.field(UInt16) - locked_until_round!: UInt16 + Locked_until_round!: UInt16 } @Struct.type('nft.receiver') export class nftreceiver extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt16) - mint_quantity!: UInt16 + Mint_quantity!: UInt16 } @Struct.type('nft.withdraw') export class nftwithdraw extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt64, {array: true}) - asset_ids!: UInt64[] + Asset_ids!: UInt64[] @Struct.field(Name) - to!: Name + To!: Name } @Struct.type('nft.xfer') export class nftxfer extends Struct { @Struct.field(Name) - from_boid_id!: Name + From_boid_id!: Name @Struct.field(Name) - to_boid_id!: Name + To_boid_id!: Name @Struct.field(UInt64, {array: true}) - asset_ids!: UInt64[] + Asset_ids!: UInt64[] } @Struct.type('offer.add') export class offeradd extends Struct { @Struct.field(OfferRequirements) - requirements!: OfferRequirements + Requirements!: OfferRequirements @Struct.field(OfferAction) - actions!: OfferAction + Actions!: OfferAction @Struct.field(OfferRewards) - rewards!: OfferRewards + Rewards!: OfferRewards @Struct.field(OfferLimits) - limits!: OfferLimits + Limits!: OfferLimits } @Struct.type('offer.claim') export class offerclaim extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 @Struct.field(UInt64, {array: true}) - required_nft_action_ids!: UInt64[] + Required_nft_action_ids!: UInt64[] } @Struct.type('offer.clean') export class offerclean extends Struct {} @Struct.type('offer.rm') export class offerrm extends Struct { @Struct.field(UInt64) - offer_id!: UInt64 + Offer_id!: UInt64 } @Struct.type('owner.add') export class owneradd extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('owner.rm') export class ownerrm extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('power.add') export class poweradd extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt16) - power!: UInt16 + Power!: UInt16 } @Struct.type('power.claim') export class powerclaim extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name } @Struct.type('rmdelegstake') export class rmdelegstake extends Struct { @Struct.field(UInt64) - stake_id!: UInt64 + Stake_id!: UInt64 } @Struct.type('sponsor.rm') export class sponsorrm extends Struct { @Struct.field(Name) - sponsor_boid_id!: Name + Sponsor_boid_id!: Name } @Struct.type('sponsor.set') export class sponsorset extends Struct { @Struct.field(Sponsor) - row!: Sponsor + Row!: Sponsor } @Struct.type('stake') export class stake extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt32) - quantity!: UInt32 + Quantity!: UInt32 } @Struct.type('stake.deleg') export class stakedeleg extends Struct { @Struct.field(Name) - from_boid_id!: Name + From_boid_id!: Name @Struct.field(Name) - to_boid_id!: Name + To_boid_id!: Name @Struct.field(UInt16) - stake_quantity!: UInt16 + Stake_quantity!: UInt16 @Struct.field(UInt16) - lock_until_round!: UInt16 + Lock_until_round!: UInt16 } @Struct.type('team.change') export class teamchange extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt8) - new_team_id!: UInt8 + New_team_id!: UInt8 @Struct.field(UInt8) - new_pwr_tax_mult!: UInt8 + New_pwr_tax_mult!: UInt8 } @Struct.type('team.create') export class teamcreate extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(UInt8) - min_pwr_tax_mult!: UInt8 + Min_pwr_tax_mult!: UInt8 @Struct.field(UInt8) - owner_cut_mult!: UInt8 + Owner_cut_mult!: UInt8 @Struct.field('string') - url_safe_name!: string + Url_safe_name!: string } @Struct.type('team.edit') export class teamedit extends Struct { @Struct.field(UInt8) - team_id!: UInt8 + Team_id!: UInt8 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Name, {array: true}) - managers!: Name[] + Managers!: Name[] @Struct.field(UInt8) - min_pwr_tax_mult!: UInt8 + Min_pwr_tax_mult!: UInt8 @Struct.field(UInt8) - owner_cut_mult!: UInt8 + Owner_cut_mult!: UInt8 @Struct.field('string') - url_safe_name!: string + Url_safe_name!: string @Struct.field(Bytes) - meta!: Bytes + Meta!: Bytes } @Struct.type('team.rm') export class teamrm extends Struct { @Struct.field(UInt8) - team_id!: UInt8 + Team_id!: UInt8 } @Struct.type('team.setmem') export class teamsetmem extends Struct { @Struct.field(UInt8) - team_id!: UInt8 + Team_id!: UInt8 @Struct.field(UInt32) - new_members!: UInt32 + New_members!: UInt32 } @Struct.type('team.setpwr') export class teamsetpwr extends Struct { @Struct.field(UInt8) - team_id!: UInt8 + Team_id!: UInt8 @Struct.field(UInt32) - new_power!: UInt32 + New_power!: UInt32 } @Struct.type('team.taxrate') export class teamtaxrate extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt8) - new_pwr_tax_mult!: UInt8 + New_pwr_tax_mult!: UInt8 } @Struct.type('thisround') export class thisround extends Struct {} @Struct.type('unstake.end') export class unstakeend extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name } @Struct.type('unstake.init') export class unstakeinit extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt32) - quantity!: UInt32 + Quantity!: UInt32 } @Struct.type('unstake.stop') export class unstakestop extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name } @Struct.type('unstke.deleg') export class unstkedeleg extends Struct { @Struct.field(UInt64) - stake_id!: UInt64 + Stake_id!: UInt64 } @Struct.type('withdraw') export class withdraw extends Struct { @Struct.field(Name) - boid_id!: Name + Boid_id!: Name @Struct.field(UInt32) - quantity!: UInt32 + Quantity!: UInt32 @Struct.field(Name) - to!: Name + To!: Name } } export const TableMap = { diff --git a/test/data/contracts/mock-eosio.msig.ts b/test/data/contracts/mock-eosio.msig.ts index 4fa3ffe..0f155ed 100644 --- a/test/data/contracts/mock-eosio.msig.ts +++ b/test/data/contracts/mock-eosio.msig.ts @@ -82,148 +82,148 @@ export namespace Types { @Struct.type('permission_level') export class permission_level extends Struct { @Struct.field(Name) - actor!: Name + Actor!: Name @Struct.field(Name) - permission!: Name + Permission!: Name } @Struct.type('action') export class action extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name) - name!: Name + Name!: Name @Struct.field(permission_level, {array: true}) - authorization!: permission_level[] + Authorization!: permission_level[] @Struct.field(Bytes) - data!: Bytes + Data!: Bytes } @Struct.type('approval') export class approval extends Struct { @Struct.field(permission_level) - level!: permission_level + Level!: permission_level @Struct.field(TimePoint) - time!: TimePoint + Time!: TimePoint } @Struct.type('approvals_info') export class approvals_info extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(approval, {array: true}) - requested_approvals!: approval[] + Requested_approvals!: approval[] @Struct.field(approval, {array: true}) - provided_approvals!: approval[] + Provided_approvals!: approval[] } @Struct.type('approve') export class approve extends Struct { @Struct.field(Name) - proposer!: Name + Proposer!: Name @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(permission_level) - level!: permission_level + Level!: permission_level @Struct.field(Checksum256, {optional: true}) - proposal_hash?: Checksum256 + Proposal_hash?: Checksum256 } @Struct.type('cancel') export class cancel extends Struct { @Struct.field(Name) - proposer!: Name + Proposer!: Name @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(Name) - canceler!: Name + Canceler!: Name } @Struct.type('exec') export class exec extends Struct { @Struct.field(Name) - proposer!: Name + Proposer!: Name @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(Name) - executer!: Name + Executer!: Name } @Struct.type('extension') export class extension extends Struct { @Struct.field(UInt16) - type!: UInt16 + Type!: UInt16 @Struct.field(Bytes) - data!: Bytes + Data!: Bytes } @Struct.type('invalidate') export class invalidate extends Struct { @Struct.field(Name) - account!: Name + Account!: Name } @Struct.type('invalidation') export class invalidation extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(TimePoint) - last_invalidation_time!: TimePoint + Last_invalidation_time!: TimePoint } @Struct.type('old_approvals_info') export class old_approvals_info extends Struct { @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(permission_level, {array: true}) - requested_approvals!: permission_level[] + Requested_approvals!: permission_level[] @Struct.field(permission_level, {array: true}) - provided_approvals!: permission_level[] + Provided_approvals!: permission_level[] } @Struct.type('proposal') export class proposal extends Struct { @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(Bytes) - packed_transaction!: Bytes + Packed_transaction!: Bytes @Struct.field(TimePoint, {optional: true}) - earliest_exec_time?: TimePoint + Earliest_exec_time?: TimePoint } @Struct.type('transaction') export class transaction extends Struct { @Struct.field(action, {array: true}) - context_free_actions!: action[] + Context_free_actions!: action[] @Struct.field(action, {array: true}) - actions!: action[] + Actions!: action[] @Struct.field(extension, {array: true}) - transaction_extensions!: extension[] + Transaction_extensions!: extension[] } @Struct.type('propose') export class propose extends Struct { @Struct.field(Name) - proposer!: Name + Proposer!: Name @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(permission_level, {array: true}) - requested!: permission_level[] + Requested!: permission_level[] @Struct.field(transaction) - trx!: transaction + Trx!: transaction } @Struct.type('transaction_header') export class transaction_header extends Struct { @Struct.field(TimePointSec) - expiration!: TimePointSec + Expiration!: TimePointSec @Struct.field(UInt16) - ref_block_num!: UInt16 + Ref_block_num!: UInt16 @Struct.field(UInt32) - ref_block_prefix!: UInt32 + Ref_block_prefix!: UInt32 @Struct.field(VarUInt) - max_net_usage_words!: VarUInt + Max_net_usage_words!: VarUInt @Struct.field(UInt8) - max_cpu_usage_ms!: UInt8 + Max_cpu_usage_ms!: UInt8 @Struct.field(VarUInt) - delay_sec!: VarUInt + Delay_sec!: VarUInt } @Struct.type('unapprove') export class unapprove extends Struct { @Struct.field(Name) - proposer!: Name + Proposer!: Name @Struct.field(Name) - proposal_name!: Name + Proposal_name!: Name @Struct.field(permission_level) - level!: permission_level + Level!: permission_level } } export const TableMap = { diff --git a/test/data/contracts/mock-eosio.token.ts b/test/data/contracts/mock-eosio.token.ts index 9539005..e40d7da 100644 --- a/test/data/contracts/mock-eosio.token.ts +++ b/test/data/contracts/mock-eosio.token.ts @@ -67,66 +67,66 @@ export namespace Types { @Struct.type('account') export class account extends Struct { @Struct.field(Asset) - balance!: Asset + Balance!: Asset } @Struct.type('close') export class close extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset.Symbol) - symbol!: Asset.Symbol + Symbol!: Asset.Symbol } @Struct.type('create') export class create extends Struct { @Struct.field(Name) - issuer!: Name + Issuer!: Name @Struct.field(Asset) - maximum_supply!: Asset + Maximum_supply!: Asset } @Struct.type('currency_stats') export class currency_stats extends Struct { @Struct.field(Asset) - supply!: Asset + Supply!: Asset @Struct.field(Asset) - max_supply!: Asset + Max_supply!: Asset @Struct.field(Name) - issuer!: Name + Issuer!: Name } @Struct.type('issue') export class issue extends Struct { @Struct.field(Name) - to!: Name + To!: Name @Struct.field(Asset) - quantity!: Asset + Quantity!: Asset @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('open') export class open extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset.Symbol) - symbol!: Asset.Symbol + Symbol!: Asset.Symbol @Struct.field(Name) - ram_payer!: Name + Ram_payer!: Name } @Struct.type('retire') export class retire extends Struct { @Struct.field(Asset) - quantity!: Asset + Quantity!: Asset @Struct.field('string') - memo!: string + Memo!: string } @Struct.type('transfer') export class transfer extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - to!: Name + To!: Name @Struct.field(Asset) - quantity!: Asset + Quantity!: Asset @Struct.field('string') - memo!: string + Memo!: string } } export const TableMap = { diff --git a/test/data/contracts/mock-eosio.ts b/test/data/contracts/mock-eosio.ts index df4c94d..e448855 100644 --- a/test/data/contracts/mock-eosio.ts +++ b/test/data/contracts/mock-eosio.ts @@ -406,16 +406,16 @@ export namespace Types { @Struct.type('key_weight') export class key_weight extends Struct { @Struct.field(PublicKey) - key!: PublicKey + Key!: PublicKey @Struct.field(UInt16) - weight!: UInt16 + Weight!: UInt16 } @Struct.type('block_signing_authority_v0') export class block_signing_authority_v0 extends Struct { @Struct.field(UInt32) - threshold!: UInt32 + Threshold!: UInt32 @Struct.field(key_weight, {array: true}) - keys!: key_weight[] + Keys!: key_weight[] } @Variant.type('variant_block_signing_authority_v0', [block_signing_authority_v0]) export class variant_block_signing_authority_v0 extends Struct { @@ -424,1005 +424,1005 @@ export namespace Types { @Struct.type('abi_hash') export class abi_hash extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Checksum256) - hash!: Checksum256 + Hash!: Checksum256 } @Struct.type('activate') export class activate extends Struct { @Struct.field(Checksum256) - feature_digest!: Checksum256 + Feature_digest!: Checksum256 } @Struct.type('permission_level') export class permission_level extends Struct { @Struct.field(Name) - actor!: Name + Actor!: Name @Struct.field(Name) - permission!: Name + Permission!: Name } @Struct.type('permission_level_weight') export class permission_level_weight extends Struct { @Struct.field(permission_level) - permission!: permission_level + Permission!: permission_level @Struct.field(UInt16) - weight!: UInt16 + Weight!: UInt16 } @Struct.type('wait_weight') export class wait_weight extends Struct { @Struct.field(UInt32) - wait_sec!: UInt32 + Wait_sec!: UInt32 @Struct.field(UInt16) - weight!: UInt16 + Weight!: UInt16 } @Struct.type('authority') export class authority extends Struct { @Struct.field(UInt32) - threshold!: UInt32 + Threshold!: UInt32 @Struct.field(key_weight, {array: true}) - keys!: key_weight[] + Keys!: key_weight[] @Struct.field(permission_level_weight, {array: true}) - accounts!: permission_level_weight[] + Accounts!: permission_level_weight[] @Struct.field(wait_weight, {array: true}) - waits!: wait_weight[] + Waits!: wait_weight[] } @Struct.type('bid_refund') export class bid_refund extends Struct { @Struct.field(Name) - bidder!: Name + Bidder!: Name @Struct.field(Asset) - amount!: Asset + Amount!: Asset } @Struct.type('bidname') export class bidname extends Struct { @Struct.field(Name) - bidder!: Name + Bidder!: Name @Struct.field(Name) - newname!: Name + Newname!: Name @Struct.field(Asset) - bid!: Asset + Bid!: Asset } @Struct.type('bidrefund') export class bidrefund extends Struct { @Struct.field(Name) - bidder!: Name + Bidder!: Name @Struct.field(Name) - newname!: Name + Newname!: Name } @Struct.type('producer_key') export class producer_key extends Struct { @Struct.field(Name) - producer_name!: Name + Producer_name!: Name @Struct.field(PublicKey) - block_signing_key!: PublicKey + Block_signing_key!: PublicKey } @Struct.type('producer_schedule') export class producer_schedule extends Struct { @Struct.field(UInt32) - version!: UInt32 + Version!: UInt32 @Struct.field(producer_key, {array: true}) - producers!: producer_key[] + Producers!: producer_key[] } @Struct.type('block_header') export class block_header extends Struct { @Struct.field(UInt32) - timestamp!: UInt32 + Timestamp!: UInt32 @Struct.field(Name) - producer!: Name + Producer!: Name @Struct.field(UInt16) - confirmed!: UInt16 + Confirmed!: UInt16 @Struct.field(Checksum256) - previous!: Checksum256 + Previous!: Checksum256 @Struct.field(Checksum256) - transaction_mroot!: Checksum256 + Transaction_mroot!: Checksum256 @Struct.field(Checksum256) - action_mroot!: Checksum256 + Action_mroot!: Checksum256 @Struct.field(UInt32) - schedule_version!: UInt32 + Schedule_version!: UInt32 @Struct.field(producer_schedule, {optional: true}) - new_producers?: producer_schedule + New_producers?: producer_schedule } @Struct.type('block_info_record') export class block_info_record extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(UInt32) - block_height!: UInt32 + Block_height!: UInt32 @Struct.field(TimePoint) - block_timestamp!: TimePoint + Block_timestamp!: TimePoint } @Struct.type('blockchain_parameters') export class blockchain_parameters extends Struct { @Struct.field(UInt64) - max_block_net_usage!: UInt64 + Max_block_net_usage!: UInt64 @Struct.field(UInt32) - target_block_net_usage_pct!: UInt32 + Target_block_net_usage_pct!: UInt32 @Struct.field(UInt32) - max_transaction_net_usage!: UInt32 + Max_transaction_net_usage!: UInt32 @Struct.field(UInt32) - base_per_transaction_net_usage!: UInt32 + Base_per_transaction_net_usage!: UInt32 @Struct.field(UInt32) - net_usage_leeway!: UInt32 + Net_usage_leeway!: UInt32 @Struct.field(UInt32) - context_free_discount_net_usage_num!: UInt32 + Context_free_discount_net_usage_num!: UInt32 @Struct.field(UInt32) - context_free_discount_net_usage_den!: UInt32 + Context_free_discount_net_usage_den!: UInt32 @Struct.field(UInt32) - max_block_cpu_usage!: UInt32 + Max_block_cpu_usage!: UInt32 @Struct.field(UInt32) - target_block_cpu_usage_pct!: UInt32 + Target_block_cpu_usage_pct!: UInt32 @Struct.field(UInt32) - max_transaction_cpu_usage!: UInt32 + Max_transaction_cpu_usage!: UInt32 @Struct.field(UInt32) - min_transaction_cpu_usage!: UInt32 + Min_transaction_cpu_usage!: UInt32 @Struct.field(UInt32) - max_transaction_lifetime!: UInt32 + Max_transaction_lifetime!: UInt32 @Struct.field(UInt32) - deferred_trx_expiration_window!: UInt32 + Deferred_trx_expiration_window!: UInt32 @Struct.field(UInt32) - max_transaction_delay!: UInt32 + Max_transaction_delay!: UInt32 @Struct.field(UInt32) - max_inline_action_size!: UInt32 + Max_inline_action_size!: UInt32 @Struct.field(UInt16) - max_inline_action_depth!: UInt16 + Max_inline_action_depth!: UInt16 @Struct.field(UInt16) - max_authority_depth!: UInt16 + Max_authority_depth!: UInt16 } @Struct.type('blockchain_parameters_v1') export class blockchain_parameters_v1 extends Struct { @Struct.field(UInt32, {optional: true}) - max_action_return_value_size?: UInt32 + Max_action_return_value_size?: UInt32 } @Struct.type('buyram') export class buyram extends Struct { @Struct.field(Name) - payer!: Name + Payer!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - quant!: Asset + Quant!: Asset } @Struct.type('buyrambytes') export class buyrambytes extends Struct { @Struct.field(Name) - payer!: Name + Payer!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(UInt32) - bytes!: UInt32 + Bytes!: UInt32 } @Struct.type('buyrex') export class buyrex extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Asset) - amount!: Asset + Amount!: Asset } @Struct.type('canceldelay') export class canceldelay extends Struct { @Struct.field(permission_level) - canceling_auth!: permission_level + Canceling_auth!: permission_level @Struct.field(Checksum256) - trx_id!: Checksum256 + Trx_id!: Checksum256 } @Struct.type('powerup_config_resource') export class powerup_config_resource extends Struct { @Struct.field(Int64, {optional: true}) - current_weight_ratio?: Int64 + Current_weight_ratio?: Int64 @Struct.field(Int64, {optional: true}) - target_weight_ratio?: Int64 + Target_weight_ratio?: Int64 @Struct.field(Int64, {optional: true}) - assumed_stake_weight?: Int64 + Assumed_stake_weight?: Int64 @Struct.field(TimePointSec, {optional: true}) - target_timestamp?: TimePointSec + Target_timestamp?: TimePointSec @Struct.field(Float64, {optional: true}) - exponent?: Float64 + Exponent?: Float64 @Struct.field(UInt32, {optional: true}) - decay_secs?: UInt32 + Decay_secs?: UInt32 @Struct.field(Asset, {optional: true}) - min_price?: Asset + Min_price?: Asset @Struct.field(Asset, {optional: true}) - max_price?: Asset + Max_price?: Asset } @Struct.type('powerup_config') export class powerup_config extends Struct { @Struct.field(powerup_config_resource) - net!: powerup_config_resource + Net!: powerup_config_resource @Struct.field(powerup_config_resource) - cpu!: powerup_config_resource + Cpu!: powerup_config_resource @Struct.field(UInt32, {optional: true}) - powerup_days?: UInt32 + Powerup_days?: UInt32 @Struct.field(Asset, {optional: true}) - min_powerup_fee?: Asset + Min_powerup_fee?: Asset } @Struct.type('cfgpowerup') export class cfgpowerup extends Struct { @Struct.field(powerup_config) - args!: powerup_config + Args!: powerup_config } @Struct.type('claimrewards') export class claimrewards extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('closerex') export class closerex extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('cnclrexorder') export class cnclrexorder extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('connector') export class connector extends Struct { @Struct.field(Asset) - balance!: Asset + Balance!: Asset @Struct.field(Float64) - weight!: Float64 + Weight!: Float64 } @Struct.type('consolidate') export class consolidate extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('defcpuloan') export class defcpuloan extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(UInt64) - loan_num!: UInt64 + Loan_num!: UInt64 @Struct.field(Asset) - amount!: Asset + Amount!: Asset } @Struct.type('defnetloan') export class defnetloan extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(UInt64) - loan_num!: UInt64 + Loan_num!: UInt64 @Struct.field(Asset) - amount!: Asset + Amount!: Asset } @Struct.type('delegatebw') export class delegatebw extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - stake_net_quantity!: Asset + Stake_net_quantity!: Asset @Struct.field(Asset) - stake_cpu_quantity!: Asset + Stake_cpu_quantity!: Asset @Struct.field('bool') - transfer!: boolean + Transfer!: boolean } @Struct.type('delegated_bandwidth') export class delegated_bandwidth extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - to!: Name + To!: Name @Struct.field(Asset) - net_weight!: Asset + Net_weight!: Asset @Struct.field(Asset) - cpu_weight!: Asset + Cpu_weight!: Asset } @Struct.type('deleteauth') export class deleteauth extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name) - permission!: Name + Permission!: Name @Struct.field(Name, {optional: true}) - authorized_by?: Name + Authorized_by?: Name } @Struct.type('deposit') export class deposit extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - amount!: Asset + Amount!: Asset } @Struct.type('eosio_global_state') export class eosio_global_state extends Struct { @Struct.field(UInt64) - max_ram_size!: UInt64 + Max_ram_size!: UInt64 @Struct.field(UInt64) - total_ram_bytes_reserved!: UInt64 + Total_ram_bytes_reserved!: UInt64 @Struct.field(Int64) - total_ram_stake!: Int64 + Total_ram_stake!: Int64 @Struct.field(BlockTimestamp) - last_producer_schedule_update!: BlockTimestamp + Last_producer_schedule_update!: BlockTimestamp @Struct.field(TimePoint) - last_pervote_bucket_fill!: TimePoint + Last_pervote_bucket_fill!: TimePoint @Struct.field(Int64) - pervote_bucket!: Int64 + Pervote_bucket!: Int64 @Struct.field(Int64) - perblock_bucket!: Int64 + Perblock_bucket!: Int64 @Struct.field(UInt32) - total_unpaid_blocks!: UInt32 + Total_unpaid_blocks!: UInt32 @Struct.field(Int64) - total_activated_stake!: Int64 + Total_activated_stake!: Int64 @Struct.field(TimePoint) - thresh_activated_stake_time!: TimePoint + Thresh_activated_stake_time!: TimePoint @Struct.field(UInt16) - last_producer_schedule_size!: UInt16 + Last_producer_schedule_size!: UInt16 @Struct.field(Float64) - total_producer_vote_weight!: Float64 + Total_producer_vote_weight!: Float64 @Struct.field(BlockTimestamp) - last_name_close!: BlockTimestamp + Last_name_close!: BlockTimestamp } @Struct.type('eosio_global_state2') export class eosio_global_state2 extends Struct { @Struct.field(UInt16) - new_ram_per_block!: UInt16 + New_ram_per_block!: UInt16 @Struct.field(BlockTimestamp) - last_ram_increase!: BlockTimestamp + Last_ram_increase!: BlockTimestamp @Struct.field(BlockTimestamp) - last_block_num!: BlockTimestamp + Last_block_num!: BlockTimestamp @Struct.field(Float64) - total_producer_votepay_share!: Float64 + Total_producer_votepay_share!: Float64 @Struct.field(UInt8) - revision!: UInt8 + Revision!: UInt8 } @Struct.type('eosio_global_state3') export class eosio_global_state3 extends Struct { @Struct.field(TimePoint) - last_vpay_state_update!: TimePoint + Last_vpay_state_update!: TimePoint @Struct.field(Float64) - total_vpay_share_change_rate!: Float64 + Total_vpay_share_change_rate!: Float64 } @Struct.type('eosio_global_state4') export class eosio_global_state4 extends Struct { @Struct.field(Float64) - continuous_rate!: Float64 + Continuous_rate!: Float64 @Struct.field(Int64) - inflation_pay_factor!: Int64 + Inflation_pay_factor!: Int64 @Struct.field(Int64) - votepay_factor!: Int64 + Votepay_factor!: Int64 } @Struct.type('exchange_state') export class exchange_state extends Struct { @Struct.field(Asset) - supply!: Asset + Supply!: Asset @Struct.field(connector) - base!: connector + Base!: connector @Struct.field(connector) - quote!: connector + Quote!: connector } @Struct.type('fundcpuloan') export class fundcpuloan extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(UInt64) - loan_num!: UInt64 + Loan_num!: UInt64 @Struct.field(Asset) - payment!: Asset + Payment!: Asset } @Struct.type('fundnetloan') export class fundnetloan extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(UInt64) - loan_num!: UInt64 + Loan_num!: UInt64 @Struct.field(Asset) - payment!: Asset + Payment!: Asset } @Struct.type('init') export class init extends Struct { @Struct.field(VarUInt) - version!: VarUInt + Version!: VarUInt @Struct.field(Asset.Symbol) - core!: Asset.Symbol + Core!: Asset.Symbol } @Struct.type('limitauthchg') export class limitauthchg extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name, {array: true}) - allow_perms!: Name[] + Allow_perms!: Name[] @Struct.field(Name, {array: true}) - disallow_perms!: Name[] + Disallow_perms!: Name[] } @Struct.type('linkauth') export class linkauth extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name) - code!: Name + Code!: Name @Struct.field(Name) - type!: Name + Type!: Name @Struct.field(Name) - requirement!: Name + Requirement!: Name @Struct.field(Name, {optional: true}) - authorized_by?: Name + Authorized_by?: Name } @Struct.type('mvfrsavings') export class mvfrsavings extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - rex!: Asset + Rex!: Asset } @Struct.type('mvtosavings') export class mvtosavings extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - rex!: Asset + Rex!: Asset } @Struct.type('name_bid') export class name_bid extends Struct { @Struct.field(Name) - newname!: Name + Newname!: Name @Struct.field(Name) - high_bidder!: Name + High_bidder!: Name @Struct.field(Int64) - high_bid!: Int64 + High_bid!: Int64 @Struct.field(TimePoint) - last_bid_time!: TimePoint + Last_bid_time!: TimePoint } @Struct.type('newaccount') export class newaccount extends Struct { @Struct.field(Name) - creator!: Name + Creator!: Name @Struct.field(Name) - name!: Name + Name!: Name @Struct.field(authority) - owner!: authority + Owner!: authority @Struct.field(authority) - active!: authority + Active!: authority } @Struct.type('onblock') export class onblock extends Struct { @Struct.field(block_header) - header!: block_header + Header!: block_header } @Struct.type('onerror') export class onerror extends Struct { @Struct.field(UInt128) - sender_id!: UInt128 + Sender_id!: UInt128 @Struct.field(Bytes) - sent_trx!: Bytes + Sent_trx!: Bytes } @Struct.type('pair_time_point_sec_int64') export class pair_time_point_sec_int64 extends Struct { @Struct.field(TimePointSec) - first!: TimePointSec + First!: TimePointSec @Struct.field(Int64) - second!: Int64 + Second!: Int64 } @Struct.type('powerup') export class powerup extends Struct { @Struct.field(Name) - payer!: Name + Payer!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(UInt32) - days!: UInt32 + Days!: UInt32 @Struct.field(Int64) - net_frac!: Int64 + Net_frac!: Int64 @Struct.field(Int64) - cpu_frac!: Int64 + Cpu_frac!: Int64 @Struct.field(Asset) - max_payment!: Asset + Max_payment!: Asset } @Struct.type('powerup_order') export class powerup_order extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Int64) - net_weight!: Int64 + Net_weight!: Int64 @Struct.field(Int64) - cpu_weight!: Int64 + Cpu_weight!: Int64 @Struct.field(TimePointSec) - expires!: TimePointSec + Expires!: TimePointSec } @Struct.type('powerup_state_resource') export class powerup_state_resource extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Int64) - weight!: Int64 + Weight!: Int64 @Struct.field(Int64) - weight_ratio!: Int64 + Weight_ratio!: Int64 @Struct.field(Int64) - assumed_stake_weight!: Int64 + Assumed_stake_weight!: Int64 @Struct.field(Int64) - initial_weight_ratio!: Int64 + Initial_weight_ratio!: Int64 @Struct.field(Int64) - target_weight_ratio!: Int64 + Target_weight_ratio!: Int64 @Struct.field(TimePointSec) - initial_timestamp!: TimePointSec + Initial_timestamp!: TimePointSec @Struct.field(TimePointSec) - target_timestamp!: TimePointSec + Target_timestamp!: TimePointSec @Struct.field(Float64) - exponent!: Float64 + Exponent!: Float64 @Struct.field(UInt32) - decay_secs!: UInt32 + Decay_secs!: UInt32 @Struct.field(Asset) - min_price!: Asset + Min_price!: Asset @Struct.field(Asset) - max_price!: Asset + Max_price!: Asset @Struct.field(Int64) - utilization!: Int64 + Utilization!: Int64 @Struct.field(Int64) - adjusted_utilization!: Int64 + Adjusted_utilization!: Int64 @Struct.field(TimePointSec) - utilization_timestamp!: TimePointSec + Utilization_timestamp!: TimePointSec } @Struct.type('powerup_state') export class powerup_state extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(powerup_state_resource) - net!: powerup_state_resource + Net!: powerup_state_resource @Struct.field(powerup_state_resource) - cpu!: powerup_state_resource + Cpu!: powerup_state_resource @Struct.field(UInt32) - powerup_days!: UInt32 + Powerup_days!: UInt32 @Struct.field(Asset) - min_powerup_fee!: Asset + Min_powerup_fee!: Asset } @Struct.type('powerupexec') export class powerupexec extends Struct { @Struct.field(Name) - user!: Name + User!: Name @Struct.field(UInt16) - max!: UInt16 + Max!: UInt16 } @Struct.type('producer_info') export class producer_info extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Float64) - total_votes!: Float64 + Total_votes!: Float64 @Struct.field(PublicKey) - producer_key!: PublicKey + Producer_key!: PublicKey @Struct.field('bool') - is_active!: boolean + Is_active!: boolean @Struct.field('string') - url!: string + Url!: string @Struct.field(UInt32) - unpaid_blocks!: UInt32 + Unpaid_blocks!: UInt32 @Struct.field(TimePoint) - last_claim_time!: TimePoint + Last_claim_time!: TimePoint @Struct.field(UInt16) - location!: UInt16 + Location!: UInt16 @Struct.field(variant_block_signing_authority_v0, {optional: true}) - producer_authority?: variant_block_signing_authority_v0 + Producer_authority?: variant_block_signing_authority_v0 } @Struct.type('producer_info2') export class producer_info2 extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Float64) - votepay_share!: Float64 + Votepay_share!: Float64 @Struct.field(TimePoint) - last_votepay_share_update!: TimePoint + Last_votepay_share_update!: TimePoint } @Struct.type('refund') export class refund extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('refund_request') export class refund_request extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(TimePointSec) - request_time!: TimePointSec + Request_time!: TimePointSec @Struct.field(Asset) - net_amount!: Asset + Net_amount!: Asset @Struct.field(Asset) - cpu_amount!: Asset + Cpu_amount!: Asset } @Struct.type('regproducer') export class regproducer extends Struct { @Struct.field(Name) - producer!: Name + Producer!: Name @Struct.field(PublicKey) - producer_key!: PublicKey + Producer_key!: PublicKey @Struct.field('string') - url!: string + Url!: string @Struct.field(UInt16) - location!: UInt16 + Location!: UInt16 } @Struct.type('regproducer2') export class regproducer2 extends Struct { @Struct.field(Name) - producer!: Name + Producer!: Name @Struct.field(variant_block_signing_authority_v0) - producer_authority!: variant_block_signing_authority_v0 + Producer_authority!: variant_block_signing_authority_v0 @Struct.field('string') - url!: string + Url!: string @Struct.field(UInt16) - location!: UInt16 + Location!: UInt16 } @Struct.type('regproxy') export class regproxy extends Struct { @Struct.field(Name) - proxy!: Name + Proxy!: Name @Struct.field('bool') - isproxy!: boolean + Isproxy!: boolean } @Struct.type('rentcpu') export class rentcpu extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - loan_payment!: Asset + Loan_payment!: Asset @Struct.field(Asset) - loan_fund!: Asset + Loan_fund!: Asset } @Struct.type('rentnet') export class rentnet extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - loan_payment!: Asset + Loan_payment!: Asset @Struct.field(Asset) - loan_fund!: Asset + Loan_fund!: Asset } @Struct.type('rex_balance') export class rex_balance extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - vote_stake!: Asset + Vote_stake!: Asset @Struct.field(Asset) - rex_balance!: Asset + Rex_balance!: Asset @Struct.field(Int64) - matured_rex!: Int64 + Matured_rex!: Int64 @Struct.field(pair_time_point_sec_int64, {array: true}) - rex_maturities!: pair_time_point_sec_int64[] + Rex_maturities!: pair_time_point_sec_int64[] } @Struct.type('rex_fund') export class rex_fund extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - balance!: Asset + Balance!: Asset } @Struct.type('rex_loan') export class rex_loan extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - payment!: Asset + Payment!: Asset @Struct.field(Asset) - balance!: Asset + Balance!: Asset @Struct.field(Asset) - total_staked!: Asset + Total_staked!: Asset @Struct.field(UInt64) - loan_num!: UInt64 + Loan_num!: UInt64 @Struct.field(TimePoint) - expiration!: TimePoint + Expiration!: TimePoint } @Struct.type('rex_order') export class rex_order extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - rex_requested!: Asset + Rex_requested!: Asset @Struct.field(Asset) - proceeds!: Asset + Proceeds!: Asset @Struct.field(Asset) - stake_change!: Asset + Stake_change!: Asset @Struct.field(TimePoint) - order_time!: TimePoint + Order_time!: TimePoint @Struct.field('bool') - is_open!: boolean + Is_open!: boolean } @Struct.type('rex_pool') export class rex_pool extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Asset) - total_lent!: Asset + Total_lent!: Asset @Struct.field(Asset) - total_unlent!: Asset + Total_unlent!: Asset @Struct.field(Asset) - total_rent!: Asset + Total_rent!: Asset @Struct.field(Asset) - total_lendable!: Asset + Total_lendable!: Asset @Struct.field(Asset) - total_rex!: Asset + Total_rex!: Asset @Struct.field(Asset) - namebid_proceeds!: Asset + Namebid_proceeds!: Asset @Struct.field(UInt64) - loan_num!: UInt64 + Loan_num!: UInt64 } @Struct.type('rex_return_buckets') export class rex_return_buckets extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(pair_time_point_sec_int64, {array: true}) - return_buckets!: pair_time_point_sec_int64[] + Return_buckets!: pair_time_point_sec_int64[] } @Struct.type('rex_return_pool') export class rex_return_pool extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(TimePointSec) - last_dist_time!: TimePointSec + Last_dist_time!: TimePointSec @Struct.field(TimePointSec) - pending_bucket_time!: TimePointSec + Pending_bucket_time!: TimePointSec @Struct.field(TimePointSec) - oldest_bucket_time!: TimePointSec + Oldest_bucket_time!: TimePointSec @Struct.field(Int64) - pending_bucket_proceeds!: Int64 + Pending_bucket_proceeds!: Int64 @Struct.field(Int64) - current_rate_of_increase!: Int64 + Current_rate_of_increase!: Int64 @Struct.field(Int64) - proceeds!: Int64 + Proceeds!: Int64 } @Struct.type('rexexec') export class rexexec extends Struct { @Struct.field(Name) - user!: Name + User!: Name @Struct.field(UInt16) - max!: UInt16 + Max!: UInt16 } @Struct.type('rmvproducer') export class rmvproducer extends Struct { @Struct.field(Name) - producer!: Name + Producer!: Name } @Struct.type('sellram') export class sellram extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Int64) - bytes!: Int64 + Bytes!: Int64 } @Struct.type('sellrex') export class sellrex extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Asset) - rex!: Asset + Rex!: Asset } @Struct.type('setabi') export class setabi extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Bytes) - abi!: Bytes + Abi!: Bytes @Struct.field('string', {optional: true}) - memo?: string + Memo?: string } @Struct.type('setacctcpu') export class setacctcpu extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Int64, {optional: true}) - cpu_weight?: Int64 + Cpu_weight?: Int64 } @Struct.type('setacctnet') export class setacctnet extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Int64, {optional: true}) - net_weight?: Int64 + Net_weight?: Int64 } @Struct.type('setacctram') export class setacctram extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Int64, {optional: true}) - ram_bytes?: Int64 + Ram_bytes?: Int64 } @Struct.type('setalimits') export class setalimits extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Int64) - ram_bytes!: Int64 + Ram_bytes!: Int64 @Struct.field(Int64) - net_weight!: Int64 + Net_weight!: Int64 @Struct.field(Int64) - cpu_weight!: Int64 + Cpu_weight!: Int64 } @Struct.type('setcode') export class setcode extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(UInt8) - vmtype!: UInt8 + Vmtype!: UInt8 @Struct.field(UInt8) - vmversion!: UInt8 + Vmversion!: UInt8 @Struct.field(Bytes) - code!: Bytes + Code!: Bytes @Struct.field('string', {optional: true}) - memo?: string + Memo?: string } @Struct.type('setinflation') export class setinflation extends Struct { @Struct.field(Int64) - annual_rate!: Int64 + Annual_rate!: Int64 @Struct.field(Int64) - inflation_pay_factor!: Int64 + Inflation_pay_factor!: Int64 @Struct.field(Int64) - votepay_factor!: Int64 + Votepay_factor!: Int64 } @Struct.type('setparams') export class setparams extends Struct { @Struct.field(blockchain_parameters_v1) - params!: blockchain_parameters_v1 + Params!: blockchain_parameters_v1 } @Struct.type('setpriv') export class setpriv extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(UInt8) - is_priv!: UInt8 + Is_priv!: UInt8 } @Struct.type('setram') export class setram extends Struct { @Struct.field(UInt64) - max_ram_size!: UInt64 + Max_ram_size!: UInt64 } @Struct.type('setramrate') export class setramrate extends Struct { @Struct.field(UInt16) - bytes_per_block!: UInt16 + Bytes_per_block!: UInt16 } @Struct.type('setrex') export class setrex extends Struct { @Struct.field(Asset) - balance!: Asset + Balance!: Asset } @Struct.type('undelegatebw') export class undelegatebw extends Struct { @Struct.field(Name) - from!: Name + From!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - unstake_net_quantity!: Asset + Unstake_net_quantity!: Asset @Struct.field(Asset) - unstake_cpu_quantity!: Asset + Unstake_cpu_quantity!: Asset } @Struct.type('unlinkauth') export class unlinkauth extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name) - code!: Name + Code!: Name @Struct.field(Name) - type!: Name + Type!: Name @Struct.field(Name, {optional: true}) - authorized_by?: Name + Authorized_by?: Name } @Struct.type('unregprod') export class unregprod extends Struct { @Struct.field(Name) - producer!: Name + Producer!: Name } @Struct.type('unstaketorex') export class unstaketorex extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Name) - receiver!: Name + Receiver!: Name @Struct.field(Asset) - from_net!: Asset + From_net!: Asset @Struct.field(Asset) - from_cpu!: Asset + From_cpu!: Asset } @Struct.type('updateauth') export class updateauth extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name) - permission!: Name + Permission!: Name @Struct.field(Name) - parent!: Name + Parent!: Name @Struct.field(authority) - auth!: authority + Auth!: authority @Struct.field(Name, {optional: true}) - authorized_by?: Name + Authorized_by?: Name } @Struct.type('updaterex') export class updaterex extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('updtrevision') export class updtrevision extends Struct { @Struct.field(UInt8) - revision!: UInt8 + Revision!: UInt8 } @Struct.type('user_resources') export class user_resources extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - net_weight!: Asset + Net_weight!: Asset @Struct.field(Asset) - cpu_weight!: Asset + Cpu_weight!: Asset @Struct.field(Int64) - ram_bytes!: Int64 + Ram_bytes!: Int64 } @Struct.type('voteproducer') export class voteproducer extends Struct { @Struct.field(Name) - voter!: Name + Voter!: Name @Struct.field(Name) - proxy!: Name + Proxy!: Name @Struct.field(Name, {array: true}) - producers!: Name[] + Producers!: Name[] } @Struct.type('voter_info') export class voter_info extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Name) - proxy!: Name + Proxy!: Name @Struct.field(Name, {array: true}) - producers!: Name[] + Producers!: Name[] @Struct.field(Int64) - staked!: Int64 + Staked!: Int64 @Struct.field(Float64) - last_vote_weight!: Float64 + Last_vote_weight!: Float64 @Struct.field(Float64) - proxied_vote_weight!: Float64 + Proxied_vote_weight!: Float64 @Struct.field('bool') - is_proxy!: boolean + Is_proxy!: boolean @Struct.field(UInt32) - flags1!: UInt32 + Flags1!: UInt32 @Struct.field(UInt32) - reserved2!: UInt32 + Reserved2!: UInt32 @Struct.field(Asset) - reserved3!: Asset + Reserved3!: Asset } @Struct.type('voteupdate') export class voteupdate extends Struct { @Struct.field(Name) - voter_name!: Name + Voter_name!: Name } @Struct.type('wasmcfg') export class wasmcfg extends Struct { @Struct.field(Name) - settings!: Name + Settings!: Name } @Struct.type('withdraw') export class withdraw extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Asset) - amount!: Asset + Amount!: Asset } @Struct.type('limit_auth_change') export class limit_auth_change extends Struct { @Struct.field(UInt8) - version!: UInt8 + Version!: UInt8 @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Name, {array: true}) - allow_perms!: Name[] + Allow_perms!: Name[] @Struct.field(Name, {array: true}) - disallow_perms!: Name[] + Disallow_perms!: Name[] } } export const TableMap = { diff --git a/test/data/contracts/mock-hegemon.hgm.ts b/test/data/contracts/mock-hegemon.hgm.ts index aa857cb..852c20e 100644 --- a/test/data/contracts/mock-hegemon.hgm.ts +++ b/test/data/contracts/mock-hegemon.hgm.ts @@ -486,646 +486,646 @@ export namespace Types { @Struct.type('addbuilding') export class addbuilding extends Struct { @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field(UInt64) - tile_id!: UInt64 + Tile_id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('adddeposit') export class adddeposit extends Struct { @Struct.field(UInt64) - resource_type_id!: UInt64 + Resource_type_id!: UInt64 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 } @Struct.type('addfaction') export class addfaction extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field('string') - flag_asset_url!: string + Flag_asset_url!: string } @Struct.type('pair_uint32_uint64') export class pair_uint32_uint64 extends Struct { @Struct.field(UInt32) - first!: UInt32 + First!: UInt32 @Struct.field(UInt64) - second!: UInt64 + Second!: UInt64 } @Struct.type('addinventory') export class addinventory extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(pair_uint32_uint64, {array: true}) - ingredients!: pair_uint32_uint64[] + Ingredients!: pair_uint32_uint64[] } @Struct.type('addmap') export class addmap extends Struct { @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(UInt8) - r_color!: UInt8 + R_color!: UInt8 @Struct.field(UInt8) - g_color!: UInt8 + G_color!: UInt8 @Struct.field(UInt8) - b_color!: UInt8 + B_color!: UInt8 } @Struct.type('addplanet') export class addplanet extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field(Int8) - q_coord!: Int8 + Q_coord!: Int8 @Struct.field(Int8) - r_coord!: Int8 + R_coord!: Int8 @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(UInt8) - r_color!: UInt8 + R_color!: UInt8 @Struct.field(UInt8) - g_color!: UInt8 + G_color!: UInt8 @Struct.field(UInt8) - b_color!: UInt8 + B_color!: UInt8 } @Struct.type('addregion') export class addregion extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name } @Struct.type('addresource') export class addresource extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field('string') - name!: string + Name!: string @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(UInt32) - difficulty!: UInt32 + Difficulty!: UInt32 } @Struct.type('addterrain') export class addterrain extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field('string') - type!: string + Type!: string @Struct.field('string', {array: true}) - map_asset_urls!: string[] + Map_asset_urls!: string[] @Struct.field('string') - background_asset_url!: string + Background_asset_url!: string @Struct.field(UInt8) - building_slots!: UInt8 + Building_slots!: UInt8 @Struct.field(UInt64, {array: true}) - effects!: UInt64[] + Effects!: UInt64[] } @Struct.type('addtile') export class addtile extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field(UInt64) - region_id!: UInt64 + Region_id!: UInt64 @Struct.field(Int8) - q_coord!: Int8 + Q_coord!: Int8 @Struct.field(Int8) - r_coord!: Int8 + R_coord!: Int8 @Struct.field(UInt64) - terrain_type!: UInt64 + Terrain_type!: UInt64 } @Struct.type('addunit') export class addunit extends Struct { @Struct.field(UInt64) - unit_type_id!: UInt64 + Unit_type_id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('addvehicle') export class addvehicle extends Struct { @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field(UInt64) - tile_id!: UInt64 + Tile_id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name } @Struct.type('battle') export class battle extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(UInt64) - attacking_faction_id!: UInt64 + Attacking_faction_id!: UInt64 @Struct.field(UInt64) - defending_faction_id!: UInt64 + Defending_faction_id!: UInt64 @Struct.field(TimePoint) - battle_start!: TimePoint + Battle_start!: TimePoint @Struct.field(UInt32) - battle_round!: UInt32 + Battle_round!: UInt32 } @Struct.type('battleunit') export class battleunit extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(UInt64) - battle_id!: UInt64 + Battle_id!: UInt64 @Struct.field(UInt64) - external_id!: UInt64 + External_id!: UInt64 @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 @Struct.field(UInt32) - hp!: UInt32 + Hp!: UInt32 @Struct.field(UInt32) - max_hp!: UInt32 + Max_hp!: UInt32 @Struct.field('bool') - is_character!: boolean + Is_character!: boolean @Struct.field('bool') - is_garrison!: boolean + Is_garrison!: boolean @Struct.field(UInt64) - retreat_to_tile!: UInt64 + Retreat_to_tile!: UInt64 } @Struct.type('building') export class building extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field('bool') - is_owner_faction!: boolean + Is_owner_faction!: boolean @Struct.field('bool') - disabled!: boolean + Disabled!: boolean @Struct.field(UInt32) - hp!: UInt32 + Hp!: UInt32 @Struct.field(UInt32) - max_hp!: UInt32 + Max_hp!: UInt32 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(TimePoint) - next_upkeep!: TimePoint + Next_upkeep!: TimePoint @Struct.field(pair_uint32_uint64, {array: true}) - inventory!: pair_uint32_uint64[] + Inventory!: pair_uint32_uint64[] } @Struct.type('calcenergy') export class calcenergy extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('character') export class character extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field('string') - first_name!: string + First_name!: string @Struct.field('string') - middle_name!: string + Middle_name!: string @Struct.field('string') - last_name!: string + Last_name!: string @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(Float64) - energy!: Float64 + Energy!: Float64 @Struct.field(Float64) - max_energy!: Float64 + Max_energy!: Float64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(TimePoint) - last_action_time!: TimePoint + Last_action_time!: TimePoint @Struct.field(TimePoint) - time_last_fed!: TimePoint + Time_last_fed!: TimePoint @Struct.field(UInt64) - tool_equipped!: UInt64 + Tool_equipped!: UInt64 @Struct.field(UInt64) - armor_equipped!: UInt64 + Armor_equipped!: UInt64 @Struct.field(UInt64) - melee_weapon_equipped!: UInt64 + Melee_weapon_equipped!: UInt64 @Struct.field(UInt64) - ranged_weapon_equipped!: UInt64 + Ranged_weapon_equipped!: UInt64 @Struct.field(UInt64) - on_board_vehicle!: UInt64 + On_board_vehicle!: UInt64 @Struct.field(UInt64, {array: true}) - active_effects!: UInt64[] + Active_effects!: UInt64[] @Struct.field(UInt8) - base_character_role!: UInt8 + Base_character_role!: UInt8 @Struct.field(UInt8) - mid_character_role!: UInt8 + Mid_character_role!: UInt8 @Struct.field(UInt8) - character_role!: UInt8 + Character_role!: UInt8 @Struct.field(UInt32) - experience_level!: UInt32 + Experience_level!: UInt32 @Struct.field(UInt32) - experience_points!: UInt32 + Experience_points!: UInt32 @Struct.field(UInt32) - hp!: UInt32 + Hp!: UInt32 @Struct.field(UInt32) - max_hp!: UInt32 + Max_hp!: UInt32 @Struct.field('bool') - alive!: boolean + Alive!: boolean @Struct.field(UInt8) - temporal_deja_vu_score!: UInt8 + Temporal_deja_vu_score!: UInt8 } @Struct.type('clear') export class clear extends Struct {} @Struct.type('clearprim') export class clearprim extends Struct { @Struct.field(Name) - table_name!: Name + Table_name!: Name @Struct.field(Name) - scope!: Name + Scope!: Name } @Struct.type('clearsec1') export class clearsec1 extends Struct { @Struct.field(Name) - table_name!: Name + Table_name!: Name @Struct.field(UInt8) - index_num!: UInt8 + Index_num!: UInt8 @Struct.field(Name) - scope!: Name + Scope!: Name } @Struct.type('clearsec2') export class clearsec2 extends Struct { @Struct.field(Name) - table_name!: Name + Table_name!: Name @Struct.field(UInt8) - index_num!: UInt8 + Index_num!: UInt8 @Struct.field(Name) - scope!: Name + Scope!: Name } @Struct.type('combatant') export class combatant extends Struct { @Struct.field(UInt64) - player_id!: UInt64 + Player_id!: UInt64 @Struct.field(UInt64) - battle_id!: UInt64 + Battle_id!: UInt64 @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 @Struct.field(UInt64) - retreat_to_tile!: UInt64 + Retreat_to_tile!: UInt64 } @Struct.type('cooldown') export class cooldown extends Struct { @Struct.field(UInt8) - cooldown_type!: UInt8 + Cooldown_type!: UInt8 @Struct.field(TimePoint) - time_started!: TimePoint + Time_started!: TimePoint @Struct.field(UInt32) - cooldown_duration!: UInt32 + Cooldown_duration!: UInt32 } @Struct.type('createchar') export class createchar extends Struct { @Struct.field(Name) - player!: Name + Player!: Name } @Struct.type('crew') export class crew extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 @Struct.field(UInt8) - role!: UInt8 + Role!: UInt8 } @Struct.type('day') export class day extends Struct { @Struct.field(TimePoint) - day_start!: TimePoint + Day_start!: TimePoint @Struct.field(TimePoint) - day_end!: TimePoint + Day_end!: TimePoint @Struct.field(UInt32) - total_active_players!: UInt32 + Total_active_players!: UInt32 @Struct.field(Float64) - energy_spent!: Float64 + Energy_spent!: Float64 } @Struct.type('deposit') export class deposit extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - resource_type_id!: UInt64 + Resource_type_id!: UInt64 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 } @Struct.type('detokenize') export class detokenize extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(Asset) - resource!: Asset + Resource!: Asset } @Struct.type('discardchar') export class discardchar extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('doaddmats') export class doaddmats extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - project_id!: UInt64 + Project_id!: UInt64 @Struct.field(pair_uint32_uint64) - materials!: pair_uint32_uint64 + Materials!: pair_uint32_uint64 } @Struct.type('doaddproj') export class doaddproj extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - blueprint_id!: UInt64 + Blueprint_id!: UInt64 } @Struct.type('dobuild') export class dobuild extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - project_id!: UInt64 + Project_id!: UInt64 } @Struct.type('docancelproj') export class docancelproj extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - project_id!: UInt64 + Project_id!: UInt64 } @Struct.type('docombat') export class docombat extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 } @Struct.type('doconquer') export class doconquer extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - target_tile_id!: UInt64 + Target_tile_id!: UInt64 } @Struct.type('docontrol') export class docontrol extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('docraft') export class docraft extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - recipe_id!: UInt64 + Recipe_id!: UInt64 } @Struct.type('docreateship') export class docreateship extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64, {array: true}) - shipmodules!: UInt64[] + Shipmodules!: UInt64[] } @Struct.type('dodemobilize') export class dodemobilize extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64, {array: true}) - units!: UInt64[] + Units!: UInt64[] } @Struct.type('dodevelop') export class dodevelop extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('dodisband') export class dodisband extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - unit_id!: UInt64 + Unit_id!: UInt64 } @Struct.type('dodisembark') export class dodisembark extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('dodropoff') export class dodropoff extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(pair_uint32_uint64) - items!: pair_uint32_uint64 + Items!: pair_uint32_uint64 } @Struct.type('doeat') export class doeat extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('doembark') export class doembark extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - vehicle_id!: UInt64 + Vehicle_id!: UInt64 } @Struct.type('doentership') export class doentership extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 } @Struct.type('doequip') export class doequip extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 } @Struct.type('dogive') export class dogive extends Struct { @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Name) - recipient!: Name + Recipient!: Name @Struct.field(pair_uint32_uint64, {array: true}) - items!: pair_uint32_uint64[] + Items!: pair_uint32_uint64[] } @Struct.type('doheal') export class doheal extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - patient_id!: UInt64 + Patient_id!: UInt64 @Struct.field('bool') - is_character!: boolean + Is_character!: boolean } @Struct.type('dojoinbattle') export class dojoinbattle extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - battle_id!: UInt64 + Battle_id!: UInt64 } @Struct.type('doland') export class doland extends Struct { @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 @Struct.field(UInt64) - tile_id!: UInt64 + Tile_id!: UInt64 } @Struct.type('dolaunch') export class dolaunch extends Struct { @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 } @Struct.type('doleaveship') export class doleaveship extends Struct { @Struct.field(Name) - player!: Name + Player!: Name } @Struct.type('doload') export class doload extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - vehicle_id!: UInt64 + Vehicle_id!: UInt64 @Struct.field(pair_uint32_uint64) - items!: pair_uint32_uint64 + Items!: pair_uint32_uint64 } @Struct.type('domobilize') export class domobilize extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64, {array: true}) - units!: UInt64[] + Units!: UInt64[] } @Struct.type('domove') export class domove extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - destination_tile_id!: UInt64 + Destination_tile_id!: UInt64 } @Struct.type('domoveship') export class domoveship extends Struct { @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 @Struct.field(UInt64) - tile_id!: UInt64 + Tile_id!: UInt64 } @Struct.type('dopayupkeep') export class dopayupkeep extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt8) - type!: UInt8 + Type!: UInt8 @Struct.field(UInt64) - entity!: UInt64 + Entity!: UInt64 } @Struct.type('dopickup') export class dopickup extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(pair_uint32_uint64) - items!: pair_uint32_uint64 + Items!: pair_uint32_uint64 } @Struct.type('dorepair') export class dorepair extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - entity_id!: UInt64 + Entity_id!: UInt64 @Struct.field(UInt8) - type!: UInt8 + Type!: UInt8 } @Struct.type('doresearch') export class doresearch extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - technology_id!: UInt64 + Technology_id!: UInt64 } @Struct.type('doretreat') export class doretreat extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - destination_tile_id!: UInt64 + Destination_tile_id!: UInt64 } @Struct.type('dotrain') export class dotrain extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt64) - recipe_id!: UInt64 + Recipe_id!: UInt64 @Struct.field('bool') - mobilize!: boolean + Mobilize!: boolean } @Struct.type('dotransfer') export class dotransfer extends Struct { @Struct.field(UInt64) - entity_id!: UInt64 + Entity_id!: UInt64 @Struct.field(UInt8) - type!: UInt8 + Type!: UInt8 @Struct.field(Name) - new_owner!: Name + New_owner!: Name } @Struct.type('dounequip') export class dounequip extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt8) - item_type!: UInt8 + Item_type!: UInt8 } @Struct.type('dounload') export class dounload extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - vehicle_id!: UInt64 + Vehicle_id!: UInt64 @Struct.field(pair_uint32_uint64) - items!: pair_uint32_uint64 + Items!: pair_uint32_uint64 } @Struct.type('dowork') export class dowork extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt8) - activity!: UInt8 + Activity!: UInt8 } @Struct.type('electresult') export class electresult extends Struct { @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 @Struct.field(UInt64) - leader!: UInt64 + Leader!: UInt64 @Struct.field(UInt64, {array: true}) - officers!: UInt64[] + Officers!: UInt64[] } @Struct.type('endday') export class endday extends Struct {} @@ -1134,597 +1134,597 @@ export namespace Types { @Struct.type('faction') export class faction extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field('string') - flag_asset_url!: string + Flag_asset_url!: string @Struct.field('bool') - activated!: boolean + Activated!: boolean @Struct.field(UInt64) - leader!: UInt64 + Leader!: UInt64 @Struct.field(UInt64, {array: true}) - officers!: UInt64[] + Officers!: UInt64[] @Struct.field(UInt32) - total_players!: UInt32 + Total_players!: UInt32 @Struct.field(UInt64, {array: true}) - mining_characters!: UInt64[] + Mining_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - engineering_characters!: UInt64[] + Engineering_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - farming_characters!: UInt64[] + Farming_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - logistics_characters!: UInt64[] + Logistics_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - health_care_characters!: UInt64[] + Health_care_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - commerce_characters!: UInt64[] + Commerce_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - civil_service_characters!: UInt64[] + Civil_service_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - intelligence_characters!: UInt64[] + Intelligence_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - military_characters!: UInt64[] + Military_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - research_characters!: UInt64[] + Research_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - energy_characters!: UInt64[] + Energy_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - infrastructure_characters!: UInt64[] + Infrastructure_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - operations_characters!: UInt64[] + Operations_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - governance_characters!: UInt64[] + Governance_characters!: UInt64[] @Struct.field(UInt64, {array: true}) - diplomacy_characters!: UInt64[] + Diplomacy_characters!: UInt64[] @Struct.field(day) - day_stats!: day + Day_stats!: day @Struct.field(UInt64, {array: true}) - active_effects!: UInt64[] + Active_effects!: UInt64[] } @Struct.type('global') export class global extends Struct { @Struct.field(Name) - game_master!: Name + Game_master!: Name @Struct.field(TimePoint) - game_started!: TimePoint + Game_started!: TimePoint @Struct.field(TimePoint) - game_end!: TimePoint + Game_end!: TimePoint @Struct.field(UInt8) - current_epoch!: UInt8 + Current_epoch!: UInt8 @Struct.field(UInt8) - current_period!: UInt8 + Current_period!: UInt8 @Struct.field(UInt8) - current_cycle!: UInt8 + Current_cycle!: UInt8 @Struct.field(UInt8) - current_day!: UInt8 + Current_day!: UInt8 @Struct.field(UInt32) - total_days!: UInt32 + Total_days!: UInt32 @Struct.field(Float64) - total_energy!: Float64 + Total_energy!: Float64 @Struct.field(UInt32) - total_players!: UInt32 + Total_players!: UInt32 @Struct.field(UInt32) - total_characters!: UInt32 + Total_characters!: UInt32 @Struct.field(TimePoint) - last_oracle_timestamp!: TimePoint + Last_oracle_timestamp!: TimePoint @Struct.field(Checksum256) - last_oracle_hash!: Checksum256 + Last_oracle_hash!: Checksum256 @Struct.field(day) - day_stats!: day + Day_stats!: day @Struct.field(day) - ind_day_stats!: day + Ind_day_stats!: day @Struct.field('bool') - players_inflation_bucket_active!: boolean + Players_inflation_bucket_active!: boolean @Struct.field('bool') - factions_inflation_bucket_active!: boolean + Factions_inflation_bucket_active!: boolean @Struct.field('bool') - regions_inflation_bucket_active!: boolean + Regions_inflation_bucket_active!: boolean @Struct.field('bool') - planets_inflation_bucket_active!: boolean + Planets_inflation_bucket_active!: boolean } @Struct.type('grantspoils') export class grantspoils extends Struct { @Struct.field(Name) - beneficiary!: Name + Beneficiary!: Name @Struct.field(UInt64) - entity_id!: UInt64 + Entity_id!: UInt64 @Struct.field(UInt8) - entity_type!: UInt8 + Entity_type!: UInt8 } @Struct.type('hashes') export class hashes extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Checksum256) - multiparty!: Checksum256 + Multiparty!: Checksum256 @Struct.field(Checksum256) - hash!: Checksum256 + Hash!: Checksum256 @Struct.field('string') - reveal!: string + Reveal!: string @Struct.field(TimePoint) - timestamp!: TimePoint + Timestamp!: TimePoint } @Struct.type('init') export class init extends Struct { @Struct.field(UInt8) - epoch!: UInt8 + Epoch!: UInt8 } @Struct.type('joinfaction') export class joinfaction extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 } @Struct.type('killchar') export class killchar extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('map') export class map extends Struct { @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(day) - day_stats!: day + Day_stats!: day @Struct.field(UInt8) - r_color!: UInt8 + R_color!: UInt8 @Struct.field(UInt8) - g_color!: UInt8 + G_color!: UInt8 @Struct.field(UInt8) - b_color!: UInt8 + B_color!: UInt8 } @Struct.type('msigsuccess') export class msigsuccess extends Struct { @Struct.field(UInt64) - squad_id!: UInt64 + Squad_id!: UInt64 } @Struct.type('pair_uint64_CrewRole') export class pair_uint64_CrewRole extends Struct { @Struct.field(UInt64) - first!: UInt64 + First!: UInt64 @Struct.field(UInt8) - second!: UInt8 + Second!: UInt8 } @Struct.type('passenger') export class passenger extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 } @Struct.type('planet') export class planet extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field(Int8) - q_coord!: Int8 + Q_coord!: Int8 @Struct.field(Int8) - r_coord!: Int8 + R_coord!: Int8 @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field(day) - day_stats!: day + Day_stats!: day @Struct.field(UInt64) - control_faction!: UInt64 + Control_faction!: UInt64 @Struct.field(UInt8) - r_color!: UInt8 + R_color!: UInt8 @Struct.field(UInt8) - g_color!: UInt8 + G_color!: UInt8 @Struct.field(UInt8) - b_color!: UInt8 + B_color!: UInt8 } @Struct.type('player') export class player extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field('string') - asset_url!: string + Asset_url!: string @Struct.field(UInt8) - character_slots!: UInt8 + Character_slots!: UInt8 @Struct.field(UInt8) - reputation_level!: UInt8 + Reputation_level!: UInt8 @Struct.field(UInt32) - experience_level!: UInt32 + Experience_level!: UInt32 @Struct.field(UInt32) - experience_points!: UInt32 + Experience_points!: UInt32 @Struct.field(cooldown, {array: true}) - cooldowns!: cooldown[] + Cooldowns!: cooldown[] @Struct.field(UInt64) - active_project!: UInt64 + Active_project!: UInt64 @Struct.field(UInt64) - faction!: UInt64 + Faction!: UInt64 @Struct.field(Float64) - base_faction_voting_power!: Float64 + Base_faction_voting_power!: Float64 @Struct.field(UInt32) - max_inventory_size!: UInt32 + Max_inventory_size!: UInt32 @Struct.field(pair_uint32_uint64, {array: true}) - inventory!: pair_uint32_uint64[] + Inventory!: pair_uint32_uint64[] @Struct.field(Asset) - currency!: Asset + Currency!: Asset @Struct.field(TimePoint) - last_respawn!: TimePoint + Last_respawn!: TimePoint @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field('bool') - opted_out_of_politics!: boolean + Opted_out_of_politics!: boolean @Struct.field(UInt32) - mobilized_units!: UInt32 + Mobilized_units!: UInt32 } @Struct.type('primarykey') export class primarykey extends Struct { @Struct.field(Name) - table!: Name + Table!: Name @Struct.field(UInt64) - next_key!: UInt64 + Next_key!: UInt64 } @Struct.type('proc') export class proc extends Struct { @Struct.field(UInt32) - count!: UInt32 + Count!: UInt32 } @Struct.type('project') export class project extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - blueprint_id!: UInt64 + Blueprint_id!: UInt64 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(TimePoint) - last_action_time!: TimePoint + Last_action_time!: TimePoint @Struct.field(pair_uint32_uint64, {array: true}) - materials!: pair_uint32_uint64[] + Materials!: pair_uint32_uint64[] @Struct.field(UInt32) - work!: UInt32 + Work!: UInt32 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field('bool') - is_owner_faction!: boolean + Is_owner_faction!: boolean @Struct.field('bool') - is_building!: boolean + Is_building!: boolean } @Struct.type('region') export class region extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field('string') - name!: string + Name!: string @Struct.field(Name) - code!: Name + Code!: Name @Struct.field(day) - day_stats!: day + Day_stats!: day @Struct.field(UInt64) - control_faction!: UInt64 + Control_faction!: UInt64 } @Struct.type('regplayer') export class regplayer extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field('bool') - opt_out_of_politics!: boolean + Opt_out_of_politics!: boolean } @Struct.type('resolverngs') export class resolverngs extends Struct { @Struct.field(UInt32) - count!: UInt32 + Count!: UInt32 } @Struct.type('resource') export class resource extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field('string') - name!: string + Name!: string @Struct.field(UInt32) - difficulty!: UInt32 + Difficulty!: UInt32 @Struct.field('string') - asset_url!: string + Asset_url!: string } @Struct.type('restorehp') export class restorehp extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 } @Struct.type('revivechar') export class revivechar extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(Name) - payer!: Name + Payer!: Name } @Struct.type('rngrequest') export class rngrequest extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(TimePoint) - created!: TimePoint + Created!: TimePoint @Struct.field(TimePoint) - execution!: TimePoint + Execution!: TimePoint @Struct.field(UInt64) - external_id!: UInt64 + External_id!: UInt64 @Struct.field('bool') - is_character_rng!: boolean + Is_character_rng!: boolean @Struct.field(UInt8) - rng_type!: UInt8 + Rng_type!: UInt8 @Struct.field(Checksum256) - result!: Checksum256 + Result!: Checksum256 } @Struct.type('rprog') export class rprog extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - technology_id!: UInt64 + Technology_id!: UInt64 @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 @Struct.field(UInt64) - tree_id!: UInt64 + Tree_id!: UInt64 @Struct.field(Float64) - research_points!: Float64 + Research_points!: Float64 } @Struct.type('setcharacter') export class setcharacter extends Struct { @Struct.field(character) - c!: character + C!: character } @Struct.type('setcrew') export class setcrew extends Struct { @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 @Struct.field(pair_uint64_CrewRole, {array: true}) - crew!: pair_uint64_CrewRole[] + Crew!: pair_uint64_CrewRole[] } @Struct.type('setgm') export class setgm extends Struct { @Struct.field(Name) - player!: Name + Player!: Name } @Struct.type('setoperator') export class setoperator extends Struct { @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 @Struct.field(Name) - ship_operator!: Name + Ship_operator!: Name } @Struct.type('setplayer') export class setplayer extends Struct { @Struct.field(player) - p!: player + P!: player } @Struct.type('settilecw') export class settilecw extends Struct { @Struct.field(UInt64) - tile_id!: UInt64 + Tile_id!: UInt64 @Struct.field(Float64) - control!: Float64 + Control!: Float64 @Struct.field(Float64) - wildness!: Float64 + Wildness!: Float64 @Struct.field(UInt64) - controlling_faction_id!: UInt64 + Controlling_faction_id!: UInt64 } @Struct.type('shipmodule') export class shipmodule extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field('bool') - is_owner_faction!: boolean + Is_owner_faction!: boolean @Struct.field(UInt64) - spaceship_id!: UInt64 + Spaceship_id!: UInt64 @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(UInt32) - hp!: UInt32 + Hp!: UInt32 @Struct.field(UInt32) - max_hp!: UInt32 + Max_hp!: UInt32 @Struct.field(TimePoint) - next_upkeep!: TimePoint + Next_upkeep!: TimePoint @Struct.field('bool') - disabled!: boolean + Disabled!: boolean } @Struct.type('spaceship') export class spaceship extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(Name) - ship_operator!: Name + Ship_operator!: Name @Struct.field('bool') - is_owner_faction!: boolean + Is_owner_faction!: boolean @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(UInt32) - max_passengers!: UInt32 + Max_passengers!: UInt32 @Struct.field(UInt32) - max_inventory_size!: UInt32 + Max_inventory_size!: UInt32 @Struct.field(pair_uint32_uint64, {array: true}) - inventory!: pair_uint32_uint64[] + Inventory!: pair_uint32_uint64[] } @Struct.type('squad') export class squad extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 @Struct.field('bool') - msig_succeeded!: boolean + Msig_succeeded!: boolean @Struct.field(UInt8) - character_role!: UInt8 + Character_role!: UInt8 } @Struct.type('startepoch') export class startepoch extends Struct {} @Struct.type('terrain') export class terrain extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field('string') - type!: string + Type!: string @Struct.field('string', {array: true}) - map_asset_urls!: string[] + Map_asset_urls!: string[] @Struct.field('string') - background_asset_url!: string + Background_asset_url!: string @Struct.field(UInt8) - building_slots!: UInt8 + Building_slots!: UInt8 @Struct.field(UInt8) - player_slots!: UInt8 + Player_slots!: UInt8 @Struct.field(UInt64, {array: true}) - effects!: UInt64[] + Effects!: UInt64[] } @Struct.type('test') export class test extends Struct {} @Struct.type('tile') export class tile extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(Name) - area_map!: Name + Area_map!: Name @Struct.field(UInt64) - region_id!: UInt64 + Region_id!: UInt64 @Struct.field(Int8) - q_coord!: Int8 + Q_coord!: Int8 @Struct.field(Int8) - r_coord!: Int8 + R_coord!: Int8 @Struct.field(UInt64) - terrain_type!: UInt64 + Terrain_type!: UInt64 @Struct.field(UInt64) - control_faction!: UInt64 + Control_faction!: UInt64 @Struct.field(Float64) - control!: Float64 + Control!: Float64 @Struct.field(Float64) - wildness!: Float64 + Wildness!: Float64 @Struct.field(TimePoint) - time_since_refresh!: TimePoint + Time_since_refresh!: TimePoint @Struct.field(UInt32) - max_inventory_size!: UInt32 + Max_inventory_size!: UInt32 @Struct.field(UInt32) - players_count!: UInt32 + Players_count!: UInt32 @Struct.field(pair_uint32_uint64, {array: true}) - inventory!: pair_uint32_uint64[] + Inventory!: pair_uint32_uint64[] @Struct.field(UInt64, {array: true}) - active_effects!: UInt64[] + Active_effects!: UInt64[] @Struct.field(UInt32) - garrisoned_units!: UInt32 + Garrisoned_units!: UInt32 } @Struct.type('timedeffect') export class timedeffect extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - effect_id!: UInt64 + Effect_id!: UInt64 @Struct.field(UInt64) - entity_id!: UInt64 + Entity_id!: UInt64 @Struct.field(UInt8) - type!: UInt8 + Type!: UInt8 @Struct.field(TimePoint) - expiry!: TimePoint + Expiry!: TimePoint } @Struct.type('tokenize') export class tokenize extends Struct { @Struct.field(Name) - player!: Name + Player!: Name @Struct.field(Asset) - resource!: Asset + Resource!: Asset } @Struct.type('unit') export class unit extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - unit_type_id!: UInt64 + Unit_type_id!: UInt64 @Struct.field(UInt64) - faction_id!: UInt64 + Faction_id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field(UInt32) - hp!: UInt32 + Hp!: UInt32 @Struct.field(UInt32) - max_hp!: UInt32 + Max_hp!: UInt32 @Struct.field('bool') - mobilized!: boolean + Mobilized!: boolean @Struct.field(TimePoint) - last_mobilization_action_time!: TimePoint + Last_mobilization_action_time!: TimePoint @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(TimePoint) - next_upkeep!: TimePoint + Next_upkeep!: TimePoint @Struct.field(UInt64, {array: true}) - active_effects!: UInt64[] + Active_effects!: UInt64[] } @Struct.type('updatechars') export class updatechars extends Struct { @Struct.field(UInt32) - count!: UInt32 + Count!: UInt32 } @Struct.type('updaterng') export class updaterng extends Struct {} @Struct.type('updatetile') export class updatetile extends Struct { @Struct.field(UInt64) - tile_id!: UInt64 + Tile_id!: UInt64 } @Struct.type('updatetiles') export class updatetiles extends Struct { @Struct.field(UInt32) - count!: UInt32 + Count!: UInt32 } @Struct.type('upgradechar') export class upgradechar extends Struct { @Struct.field(UInt64) - character_id!: UInt64 + Character_id!: UInt64 @Struct.field(UInt8) - new_role!: UInt8 + New_role!: UInt8 } @Struct.type('vehicle') export class vehicle extends Struct { @Struct.field(UInt64) - id!: UInt64 + Id!: UInt64 @Struct.field(UInt64) - gameasset_id!: UInt64 + Gameasset_id!: UInt64 @Struct.field(Name) - owner!: Name + Owner!: Name @Struct.field('bool') - is_owner_faction!: boolean + Is_owner_faction!: boolean @Struct.field(UInt32) - hp!: UInt32 + Hp!: UInt32 @Struct.field(UInt32) - max_hp!: UInt32 + Max_hp!: UInt32 @Struct.field(UInt64) - location_tile_id!: UInt64 + Location_tile_id!: UInt64 @Struct.field(TimePoint) - next_upkeep!: TimePoint + Next_upkeep!: TimePoint @Struct.field('bool') - disabled!: boolean + Disabled!: boolean @Struct.field(UInt64, {array: true}) - passengers!: UInt64[] + Passengers!: UInt64[] @Struct.field(pair_uint32_uint64, {array: true}) - inventory!: pair_uint32_uint64[] + Inventory!: pair_uint32_uint64[] } } export const TableMap = { diff --git a/test/data/contracts/mock-rewards.gm.ts b/test/data/contracts/mock-rewards.gm.ts index 63fdf9a..7f30630 100644 --- a/test/data/contracts/mock-rewards.gm.ts +++ b/test/data/contracts/mock-rewards.gm.ts @@ -64,80 +64,80 @@ export namespace Types { @Struct.type('adduser') export class adduser extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(UInt16) - weight!: UInt16 + Weight!: UInt16 } @Struct.type('claim') export class claim extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Asset, {optional: true}) - amount?: Asset + Amount?: Asset } @Struct.type('oracle_pair') export class oracle_pair extends Struct { @Struct.field(Name) - name!: Name + Name!: Name @Struct.field(UInt16) - precision!: UInt16 + Precision!: UInt16 } @Struct.type('config') export class config extends Struct { @Struct.field(Asset.Symbol) - token_symbol!: Asset.Symbol + Token_symbol!: Asset.Symbol @Struct.field(Name) - oracle_account!: Name + Oracle_account!: Name @Struct.field(oracle_pair, {array: true}) - oracle_pairs!: oracle_pair[] + Oracle_pairs!: oracle_pair[] } @Struct.type('configure') export class configure extends Struct { @Struct.field(Asset.Symbol) - token_symbol!: Asset.Symbol + Token_symbol!: Asset.Symbol @Struct.field(Name) - oracle_account!: Name + Oracle_account!: Name @Struct.field(oracle_pair, {array: true}) - oracle_pairs!: oracle_pair[] + Oracle_pairs!: oracle_pair[] } @Struct.type('deluser') export class deluser extends Struct { @Struct.field(Name) - account!: Name + Account!: Name } @Struct.type('price_info') export class price_info extends Struct { @Struct.field('string') - pair!: string + Pair!: string @Struct.field(Float64) - price!: Float64 + Price!: Float64 @Struct.field(TimePoint) - timestamp!: TimePoint + Timestamp!: TimePoint } @Struct.type('receipt') export class receipt extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(Asset) - amount!: Asset + Amount!: Asset @Struct.field(price_info, {array: true}) - ticker!: price_info[] + Ticker!: price_info[] } @Struct.type('updateuser') export class updateuser extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(UInt16) - weight!: UInt16 + Weight!: UInt16 } @Struct.type('user_row') export class user_row extends Struct { @Struct.field(Name) - account!: Name + Account!: Name @Struct.field(UInt16) - weight!: UInt16 + Weight!: UInt16 @Struct.field(Asset) - balance!: Asset + Balance!: Asset } } export const TableMap = {