|
| 1 | +import {Int32, Name, Struct, UInt64} from '@wharfkit/antelope' |
| 2 | + |
| 3 | +import { |
| 4 | + AccountBurns, |
| 5 | + AccountInfo, |
| 6 | + ActionLog, |
| 7 | + AssetObject, |
| 8 | + AssetStats, |
| 9 | + AtomicAssetsConfig, |
| 10 | + CollectionObject, |
| 11 | + CollectionStats, |
| 12 | + OfferObject, |
| 13 | + ResponseStruct, |
| 14 | + SchemaObject, |
| 15 | + SchemaStats, |
| 16 | + TemplateObject, |
| 17 | + TemplateStats, |
| 18 | + TransferObject, |
| 19 | +} from '../types' |
| 20 | + |
| 21 | +@Struct.type('account_assets') |
| 22 | +export class AccountAssets extends Struct { |
| 23 | + @Struct.field(Name) declare account: Name |
| 24 | + @Struct.field(UInt64) declare assets: UInt64 |
| 25 | +} |
| 26 | + |
| 27 | +@Struct.type('action_logs_resp') |
| 28 | +export class ActionLogsResponse extends ResponseStruct { |
| 29 | + @Struct.field(ActionLog, {array: true}) declare data: ActionLog[] |
| 30 | +} |
| 31 | + |
| 32 | +@Struct.type('get_config_resp') |
| 33 | +export class GetConfigResponse extends ResponseStruct { |
| 34 | + @Struct.field(AtomicAssetsConfig) declare data: AtomicAssetsConfig |
| 35 | +} |
| 36 | + |
| 37 | +@Struct.type('get_accounts_resp') |
| 38 | +export class GetAccountsResponse extends ResponseStruct { |
| 39 | + @Struct.field(AccountAssets, {array: true}) declare data: AccountAssets[] |
| 40 | +} |
| 41 | + |
| 42 | +@Struct.type('get_account_resp') |
| 43 | +export class GetAccountResponse extends ResponseStruct { |
| 44 | + @Struct.field(AccountInfo) declare data: AccountInfo |
| 45 | +} |
| 46 | + |
| 47 | +@Struct.type('schema_count') |
| 48 | +export class SchemaCount extends Struct { |
| 49 | + @Struct.field(Name) declare schema_name: Name |
| 50 | + @Struct.field(UInt64) declare assets: UInt64 |
| 51 | +} |
| 52 | + |
| 53 | +@Struct.type('template_count') |
| 54 | +export class TemplateCount extends Struct { |
| 55 | + @Struct.field(Int32) declare template_id: Int32 |
| 56 | + @Struct.field(UInt64) declare assets: UInt64 |
| 57 | +} |
| 58 | + |
| 59 | +@Struct.type('template_schema_count') |
| 60 | +export class TemplateSchemaCount extends Struct { |
| 61 | + @Struct.field(SchemaCount, {array: true}) declare schemas: SchemaCount[] |
| 62 | + @Struct.field(TemplateCount, {array: true}) declare templates: TemplateCount[] |
| 63 | +} |
| 64 | + |
| 65 | +@Struct.type('get_account_template_schema_count_resp') |
| 66 | +export class GetAccountTemplateSchemaCountResponse extends ResponseStruct { |
| 67 | + @Struct.field(TemplateSchemaCount) declare data: TemplateSchemaCount |
| 68 | +} |
| 69 | + |
| 70 | +@Struct.type('get_collections_resp') |
| 71 | +export class GetCollectionsResponse extends ResponseStruct { |
| 72 | + @Struct.field(CollectionObject, {array: true}) declare data: CollectionObject[] |
| 73 | +} |
| 74 | + |
| 75 | +@Struct.type('get_collection_resp') |
| 76 | +export class GetCollectionResponse extends ResponseStruct { |
| 77 | + @Struct.field(CollectionObject) declare data: CollectionObject |
| 78 | +} |
| 79 | + |
| 80 | +@Struct.type('get_collection_stats_resp') |
| 81 | +export class GetCollectionStatsResponse extends ResponseStruct { |
| 82 | + @Struct.field(CollectionStats) declare data: CollectionStats |
| 83 | +} |
| 84 | + |
| 85 | +@Struct.type('get_schemas_resp') |
| 86 | +export class GetSchemasResponse extends ResponseStruct { |
| 87 | + @Struct.field(SchemaObject, {array: true}) declare data: SchemaObject[] |
| 88 | +} |
| 89 | + |
| 90 | +@Struct.type('get_schema_resp') |
| 91 | +export class GetSchemaResponse extends ResponseStruct { |
| 92 | + @Struct.field(SchemaObject) declare data: SchemaObject |
| 93 | +} |
| 94 | + |
| 95 | +@Struct.type('get_schema_stats_resp') |
| 96 | +export class GetSchemaStatsResponse extends ResponseStruct { |
| 97 | + @Struct.field(SchemaStats) declare data: SchemaStats |
| 98 | +} |
| 99 | + |
| 100 | +@Struct.type('get_templates_resp') |
| 101 | +export class GetTemplatesResponse extends ResponseStruct { |
| 102 | + @Struct.field(TemplateObject, {array: true}) declare data: TemplateObject[] |
| 103 | +} |
| 104 | + |
| 105 | +@Struct.type('get_template_resp') |
| 106 | +export class GetTemplateResponse extends ResponseStruct { |
| 107 | + @Struct.field(TemplateObject) declare data: TemplateObject |
| 108 | +} |
| 109 | + |
| 110 | +@Struct.type('get_template_stats_resp') |
| 111 | +export class GetTemplateStatsResponse extends ResponseStruct { |
| 112 | + @Struct.field(TemplateStats) declare data: TemplateStats |
| 113 | +} |
| 114 | + |
| 115 | +@Struct.type('get_assets_resp') |
| 116 | +export class GetAssetsResponse extends ResponseStruct { |
| 117 | + @Struct.field(AssetObject, {array: true}) declare data: AssetObject[] |
| 118 | +} |
| 119 | + |
| 120 | +@Struct.type('get_asset_resp') |
| 121 | +export class GetAssetResponse extends ResponseStruct { |
| 122 | + @Struct.field(AssetObject) declare data: AssetObject |
| 123 | +} |
| 124 | + |
| 125 | +@Struct.type('get_asset_stats_resp') |
| 126 | +export class GetAssetStatsResponse extends ResponseStruct { |
| 127 | + @Struct.field(AssetStats) declare data: AssetStats |
| 128 | +} |
| 129 | + |
| 130 | +@Struct.type('get_offers_resp') |
| 131 | +export class GetOffersResponse extends ResponseStruct { |
| 132 | + @Struct.field(OfferObject, {array: true}) declare data: OfferObject[] |
| 133 | +} |
| 134 | + |
| 135 | +@Struct.type('get_offer_resp') |
| 136 | +export class GetOfferResponse extends ResponseStruct { |
| 137 | + @Struct.field(OfferObject) declare data: OfferObject |
| 138 | +} |
| 139 | + |
| 140 | +@Struct.type('get_transfers_resp') |
| 141 | +export class GetTransfersResponse extends ResponseStruct { |
| 142 | + @Struct.field(TransferObject, {array: true}) declare data: TransferObject[] |
| 143 | +} |
| 144 | + |
| 145 | +@Struct.type('get_account_burns_resp') |
| 146 | +export class GetAccountBurnsResponse extends ResponseStruct { |
| 147 | + @Struct.field(AccountBurns) declare data: AccountBurns |
| 148 | +} |
0 commit comments