Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | 297x 1x 1x 1x 1x 1x 9x 3x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /* eslint-disable @typescript-eslint/no-empty-object-type */ import type {Action, NameType, PublicKeyType, SignatureType, UInt64Type} from '@wharfkit/antelope' import {ABI, Blob, Name, PublicKey, Signature, Struct, UInt64} from '@wharfkit/antelope' import type {ActionOptions, ContractArgs, PartialBy, Table} from '@wharfkit/contract' import {Contract as BaseContract} from '@wharfkit/contract' export const abiBlob = Blob.from( 'DmVvc2lvOjphYmkvMS4xAAkMYW5ub3VuY2VsaW5rAAQHY3JlYXRvcgRuYW1lA2tleQpwdWJsaWNfa2V5CWFzc2V0X2lkcwh1aW50NjRbXQRtZW1vBnN0cmluZwRhdXRoAAEFbm9uY2UGc3RyaW5nCmNhbmNlbGxpbmsAAQdsaW5rX2lkBnVpbnQ2NAljbGFpbWxpbmsAAwdsaW5rX2lkBnVpbnQ2NAdjbGFpbWVyBG5hbWURY2xhaW1lcl9zaWduYXR1cmUJc2lnbmF0dXJlCGNvbmZpZ19zAAMHdmVyc2lvbgZzdHJpbmcMbGlua19jb3VudGVyBnVpbnQ2NBRhdG9taWNhc3NldHNfYWNjb3VudARuYW1lBGluaXQAAAdsaW5rc19zAAYHbGlua19pZAZ1aW50NjQHY3JlYXRvcgRuYW1lA2tleQpwdWJsaWNfa2V5CWFzc2V0X2lkcwh1aW50NjRbXRJhc3NldHNfdHJhbnNmZXJyZWQEYm9vbARtZW1vBnN0cmluZwxsb2dsaW5rc3RhcnQAAQdsaW5rX2lkBnVpbnQ2NApsb2duZXdsaW5rAAUHbGlua19pZAZ1aW50NjQHY3JlYXRvcgRuYW1lA2tleQpwdWJsaWNfa2V5CWFzc2V0X2lkcwh1aW50NjRbXQRtZW1vBnN0cmluZwcAp4sKTU3nNAxhbm5vdW5jZWxpbmsAAAAAAADQsjYEYXV0aAAAAJwuRoWmQQpjYW5jZWxsaW5rAAAAgNNF6UxECWNsYWltbGluawAAAAAAAJDddARpbml0AJCvyRhOFxmNDGxvZ2xpbmtzdGFydAAAAJwucjUZjQpsb2duZXdsaW5rAAIAAAAAMLcmRQNpNjQAAAhjb25maWdfcwAAAAAADKeLA2k2NAAAB2xpbmtzX3MAAAAAAA==' ) export const abi = ABI.from(abiBlob) export class Contract extends BaseContract { constructor(args: PartialBy<ContractArgs, 'abi' | 'account'>) { super({ client: args.client, abi: abi, account: args.account || Name.from('atomictoolsx'), }) } action<T extends ActionNames>( name: T, data: ActionNameParams[T], options?: ActionOptions ): Action { return super.action(name, data, options) } table<T extends TableNames>(name: T, scope?: NameType): Table<RowType<T>> { return super.table(name, scope, TableMap[name]) } } export interface ActionNameParams { announcelink: ActionParams.announcelink auth: ActionParams.auth cancellink: ActionParams.cancellink claimlink: ActionParams.claimlink init: ActionParams.init loglinkstart: ActionParams.loglinkstart lognewlink: ActionParams.lognewlink } export namespace ActionParams { export namespace Type {} export interface announcelink { creator: NameType key: PublicKeyType asset_ids: UInt64Type[] memo: string } export interface auth { nonce: string } export interface cancellink { link_id: UInt64Type } export interface claimlink { link_id: UInt64Type claimer: NameType claimer_signature: SignatureType } export interface init {} export interface loglinkstart { link_id: UInt64Type } export interface lognewlink { link_id: UInt64Type creator: NameType key: PublicKeyType asset_ids: UInt64Type[] memo: string } } export namespace Types { @Struct.type('announcelink') export class announcelink extends Struct { @Struct.field(Name) creator!: Name @Struct.field(PublicKey) key!: PublicKey @Struct.field(UInt64, {array: true}) asset_ids!: UInt64[] @Struct.field('string') memo!: string } @Struct.type('auth') export class auth extends Struct { @Struct.field('string') nonce!: string } @Struct.type('cancellink') export class cancellink extends Struct { @Struct.field(UInt64) link_id!: UInt64 } @Struct.type('claimlink') export class claimlink extends Struct { @Struct.field(UInt64) link_id!: UInt64 @Struct.field(Name) claimer!: Name @Struct.field(Signature) claimer_signature!: Signature } @Struct.type('config_s') export class config_s extends Struct { @Struct.field('string') version!: string @Struct.field(UInt64) link_counter!: UInt64 @Struct.field(Name) atomicassets_account!: Name } @Struct.type('init') export class init extends Struct {} @Struct.type('links_s') export class links_s extends Struct { @Struct.field(UInt64) link_id!: UInt64 @Struct.field(Name) creator!: Name @Struct.field(PublicKey) key!: PublicKey @Struct.field(UInt64, {array: true}) asset_ids!: UInt64[] @Struct.field('bool') assets_transferred!: boolean @Struct.field('string') memo!: string } @Struct.type('loglinkstart') export class loglinkstart extends Struct { @Struct.field(UInt64) link_id!: UInt64 } @Struct.type('lognewlink') export class lognewlink extends Struct { @Struct.field(UInt64) link_id!: UInt64 @Struct.field(Name) creator!: Name @Struct.field(PublicKey) key!: PublicKey @Struct.field(UInt64, {array: true}) asset_ids!: UInt64[] @Struct.field('string') memo!: string } } export const TableMap = { config: Types.config_s, links: Types.links_s, } export interface TableTypes { config: Types.config_s links: Types.links_s } export type RowType<T> = T extends keyof TableTypes ? TableTypes[T] : any export type ActionNames = keyof ActionNameParams export type TableNames = keyof TableTypes |