koilib 9.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/koinos.js +1002 -79
- package/dist/koinos.min.js +1 -1
- package/lib/Contract.d.ts +1 -1
- package/lib/Contract.js +1 -1
- package/lib/Provider.d.ts +2 -8
- package/lib/Provider.js +3 -9
- package/lib/Provider.js.map +1 -1
- package/lib/abis/nicknamesAbi.d.ts +29 -0
- package/lib/abis/nicknamesAbi.js +916 -0
- package/lib/abis/nicknamesAbi.js.map +1 -0
- package/lib/browser/Contract.d.ts +1 -1
- package/lib/browser/Contract.js +1 -1
- package/lib/browser/Provider.d.ts +2 -8
- package/lib/browser/Provider.js +3 -9
- package/lib/browser/Provider.js.map +1 -1
- package/lib/browser/abis/nicknamesAbi.d.ts +29 -0
- package/lib/browser/abis/nicknamesAbi.js +916 -0
- package/lib/browser/abis/nicknamesAbi.js.map +1 -0
- package/lib/browser/interface.d.ts +2 -8
- package/lib/browser/utils.d.ts +1 -0
- package/lib/browser/utils.js +6 -0
- package/lib/browser/utils.js.map +1 -1
- package/lib/interface.d.ts +2 -8
- package/lib/utils.d.ts +1 -0
- package/lib/utils.js +6 -0
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/Contract.ts +1 -1
- package/src/Provider.ts +3 -9
- package/src/abis/nicknamesAbi.ts +922 -0
- package/src/interface.ts +2 -8
- package/src/utils.ts +3 -0
package/dist/koinos.js
CHANGED
|
@@ -22924,7 +22924,7 @@ class Contract {
|
|
|
22924
22924
|
* ```ts
|
|
22925
22925
|
* const { transaction, receipt } = await contract.deploy({
|
|
22926
22926
|
* // contract options
|
|
22927
|
-
* abi:
|
|
22927
|
+
* abi: JSON.stringify(contract.abi),
|
|
22928
22928
|
* authorizesCallContract: true,
|
|
22929
22929
|
* authorizesTransactionApplication: true,
|
|
22930
22930
|
* authorizesUploadContract: true,
|
|
@@ -23580,16 +23580,10 @@ class Provider {
|
|
|
23580
23580
|
/**
|
|
23581
23581
|
* Function to wait for a transaction to be mined.
|
|
23582
23582
|
* @param txId - transaction id
|
|
23583
|
-
* @param type - Type must be "byBlock"
|
|
23583
|
+
* @param type - Type must be "byBlock" or "byTransactionId" (default).
|
|
23584
23584
|
* _byBlock_ will query the blockchain to get blocks and search for the
|
|
23585
23585
|
* transaction there. _byTransactionId_ will query the "transaction store"
|
|
23586
|
-
* microservice to search the transaction by its id.
|
|
23587
|
-
* specified the function will use "byBlock" (as "byTransactionId"
|
|
23588
|
-
* requires the transaction store, which is an optional microservice).
|
|
23589
|
-
*
|
|
23590
|
-
* When _byBlock_ is used it returns the block number.
|
|
23591
|
-
*
|
|
23592
|
-
* When _byTransactionId_ is used it returns the block id.
|
|
23586
|
+
* microservice to search the transaction by its id.
|
|
23593
23587
|
*
|
|
23594
23588
|
* @param timeout - Timeout in milliseconds. By default it is 15000
|
|
23595
23589
|
* @example
|
|
@@ -23735,7 +23729,7 @@ class Provider {
|
|
|
23735
23729
|
};
|
|
23736
23730
|
}
|
|
23737
23731
|
if (broadcast) {
|
|
23738
|
-
transaction.wait = async (type = "
|
|
23732
|
+
transaction.wait = async (type = "byTransactionId", timeout = 15000) => {
|
|
23739
23733
|
return this.wait(transaction.id, type, timeout);
|
|
23740
23734
|
};
|
|
23741
23735
|
}
|
|
@@ -25121,79 +25115,1005 @@ exports.Transaction = Transaction;
|
|
|
25121
25115
|
|
|
25122
25116
|
/***/ }),
|
|
25123
25117
|
|
|
25124
|
-
/***/
|
|
25125
|
-
/***/ (
|
|
25118
|
+
/***/ 9154:
|
|
25119
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
25126
25120
|
|
|
25127
25121
|
"use strict";
|
|
25128
25122
|
|
|
25129
|
-
/*! koilib - MIT License (c) Julian Gonzalez (joticajulian@gmail.com) */
|
|
25130
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25131
|
-
if (k2 === undefined) k2 = k;
|
|
25132
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
25133
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25134
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25135
|
-
}
|
|
25136
|
-
Object.defineProperty(o, k2, desc);
|
|
25137
|
-
}) : (function(o, m, k, k2) {
|
|
25138
|
-
if (k2 === undefined) k2 = k;
|
|
25139
|
-
o[k2] = m[k];
|
|
25140
|
-
}));
|
|
25141
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25142
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25143
|
-
}) : function(o, v) {
|
|
25144
|
-
o["default"] = v;
|
|
25145
|
-
});
|
|
25146
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25147
|
-
if (mod && mod.__esModule) return mod;
|
|
25148
|
-
var result = {};
|
|
25149
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25150
|
-
__setModuleDefault(result, mod);
|
|
25151
|
-
return result;
|
|
25152
|
-
};
|
|
25153
25123
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
25154
|
-
|
|
25155
|
-
|
|
25156
|
-
|
|
25157
|
-
|
|
25158
|
-
|
|
25159
|
-
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25124
|
+
exports.nicknamesAbi = void 0;
|
|
25125
|
+
/**
|
|
25126
|
+
* ABI for Nicknames
|
|
25127
|
+
*
|
|
25128
|
+
* @example
|
|
25129
|
+
* ```ts
|
|
25130
|
+
* import { Contract, Provider, utils } from "koilib";
|
|
25131
|
+
*
|
|
25132
|
+
* const provider = new Provider("https://api.koinos.io");
|
|
25133
|
+
* const nicknamesContract = new Contract({
|
|
25134
|
+
* id: "1KD9Es7LBBjA1FY3ViCgQJ7e6WH1ipKbhz",
|
|
25135
|
+
* provider,
|
|
25136
|
+
* abi: utils.nicknamesAbi,
|
|
25137
|
+
* });
|
|
25138
|
+
* const nicknames = nicknamesContract.functions;
|
|
25139
|
+
*
|
|
25140
|
+
* ...
|
|
25141
|
+
*
|
|
25142
|
+
* // get the address linked to the nickname "pob"
|
|
25143
|
+
* const pobId = `0x${utils.toHexString(new TextEncoder().encode("pob"))}`;
|
|
25144
|
+
* const { result } = await nicknames.owner_of({ token_id: pobId });
|
|
25145
|
+
* console.log(result);
|
|
25146
|
+
*
|
|
25147
|
+
* // { value: '159myq5YUhhoVWu3wsHKHiJYKPKGUrGiyv' }
|
|
25148
|
+
})();
|
|
25149
|
+
* ```
|
|
25150
|
+
*/
|
|
25151
|
+
exports.nicknamesAbi = {
|
|
25152
|
+
methods: {
|
|
25153
|
+
verify_valid_name: {
|
|
25154
|
+
argument: "common.str",
|
|
25155
|
+
return: "common.str",
|
|
25156
|
+
description: "Verify if a new name is valid",
|
|
25157
|
+
entry_point: 0x5ad33d9a,
|
|
25158
|
+
read_only: true,
|
|
25159
|
+
},
|
|
25160
|
+
get_tabi: {
|
|
25161
|
+
argument: "nft.token",
|
|
25162
|
+
return: "nicknames.get_tabi_result",
|
|
25163
|
+
description: "Get TABI",
|
|
25164
|
+
entry_point: 0x653c5618,
|
|
25165
|
+
read_only: true,
|
|
25166
|
+
},
|
|
25167
|
+
get_main_token: {
|
|
25168
|
+
argument: "common.address",
|
|
25169
|
+
return: "nft.token",
|
|
25170
|
+
description: "Get main token of an account",
|
|
25171
|
+
entry_point: 0x3ecda7bf,
|
|
25172
|
+
read_only: true,
|
|
25173
|
+
},
|
|
25174
|
+
get_extended_metadata: {
|
|
25175
|
+
argument: "nft.token",
|
|
25176
|
+
return: "nicknames.extended_metadata",
|
|
25177
|
+
description: "Get extended metadata",
|
|
25178
|
+
entry_point: 0x0327b375,
|
|
25179
|
+
read_only: true,
|
|
25180
|
+
},
|
|
25181
|
+
get_address_by_token_id: {
|
|
25182
|
+
argument: "nft.token",
|
|
25183
|
+
return: "nicknames.address_data",
|
|
25184
|
+
description: "Resolve the address of a nickname by providing the token id",
|
|
25185
|
+
entry_point: 0x1d5eac7d,
|
|
25186
|
+
read_only: true,
|
|
25187
|
+
},
|
|
25188
|
+
get_address: {
|
|
25189
|
+
argument: "common.str",
|
|
25190
|
+
return: "nicknames.address_data",
|
|
25191
|
+
description: "Resolve the address of a nickname",
|
|
25192
|
+
entry_point: 0xa61ae5e8,
|
|
25193
|
+
read_only: true,
|
|
25194
|
+
},
|
|
25195
|
+
get_tokens_by_address: {
|
|
25196
|
+
argument: "nicknames.get_tokens_by_address_args",
|
|
25197
|
+
return: "nft.token_ids",
|
|
25198
|
+
description: "Get tokens owned by an address",
|
|
25199
|
+
entry_point: 0x606f788b,
|
|
25200
|
+
read_only: true,
|
|
25201
|
+
},
|
|
25202
|
+
mint: {
|
|
25203
|
+
argument: "nft.mint_args",
|
|
25204
|
+
return: "",
|
|
25205
|
+
description: "Create new name",
|
|
25206
|
+
entry_point: 0xdc6f17bb,
|
|
25207
|
+
read_only: false,
|
|
25208
|
+
},
|
|
25209
|
+
burn: {
|
|
25210
|
+
argument: "nft.burn_args",
|
|
25211
|
+
return: "",
|
|
25212
|
+
description: "Delete a name",
|
|
25213
|
+
entry_point: 0x859facc5,
|
|
25214
|
+
read_only: false,
|
|
25215
|
+
},
|
|
25216
|
+
transfer: {
|
|
25217
|
+
argument: "nft.transfer_args",
|
|
25218
|
+
return: "",
|
|
25219
|
+
description: "Transfer Name",
|
|
25220
|
+
entry_point: 0x27f576ca,
|
|
25221
|
+
read_only: false,
|
|
25222
|
+
},
|
|
25223
|
+
set_tabi: {
|
|
25224
|
+
argument: "nicknames.set_tabi_args",
|
|
25225
|
+
return: "",
|
|
25226
|
+
description: "Set Text ABI for a token",
|
|
25227
|
+
entry_point: 0xb2b70965,
|
|
25228
|
+
read_only: false,
|
|
25229
|
+
},
|
|
25230
|
+
set_metadata: {
|
|
25231
|
+
argument: "nft.metadata_args",
|
|
25232
|
+
return: "",
|
|
25233
|
+
description: "Set metadata",
|
|
25234
|
+
entry_point: 0x3d59af19,
|
|
25235
|
+
read_only: false,
|
|
25236
|
+
},
|
|
25237
|
+
set_main_token: {
|
|
25238
|
+
argument: "nft.token",
|
|
25239
|
+
return: "",
|
|
25240
|
+
description: "Set main token",
|
|
25241
|
+
entry_point: 0x0b6adde6,
|
|
25242
|
+
read_only: false,
|
|
25243
|
+
},
|
|
25244
|
+
set_address: {
|
|
25245
|
+
argument: "nicknames.set_address_args",
|
|
25246
|
+
return: "",
|
|
25247
|
+
description: "Set address",
|
|
25248
|
+
entry_point: 0x5cffdf33,
|
|
25249
|
+
read_only: false,
|
|
25250
|
+
},
|
|
25251
|
+
set_extended_metadata: {
|
|
25252
|
+
argument: "nicknames.set_extended_metadata_args",
|
|
25253
|
+
return: "",
|
|
25254
|
+
description: "Set extended metadata (including the address to which the name resolves)",
|
|
25255
|
+
entry_point: 0xef128ca3,
|
|
25256
|
+
read_only: false,
|
|
25257
|
+
},
|
|
25258
|
+
name: {
|
|
25259
|
+
argument: "",
|
|
25260
|
+
return: "common.str",
|
|
25261
|
+
description: "Get name of the NFT",
|
|
25262
|
+
entry_point: 0x82a3537f,
|
|
25263
|
+
read_only: true,
|
|
25264
|
+
},
|
|
25265
|
+
symbol: {
|
|
25266
|
+
argument: "",
|
|
25267
|
+
return: "common.str",
|
|
25268
|
+
description: "Get the symbol of the NFT",
|
|
25269
|
+
entry_point: 0xb76a7ca1,
|
|
25270
|
+
read_only: true,
|
|
25271
|
+
},
|
|
25272
|
+
uri: {
|
|
25273
|
+
argument: "",
|
|
25274
|
+
return: "common.str",
|
|
25275
|
+
description: "Get URI of the NFT",
|
|
25276
|
+
entry_point: 0x70e5d7b6,
|
|
25277
|
+
read_only: true,
|
|
25278
|
+
},
|
|
25279
|
+
get_info: {
|
|
25280
|
+
argument: "",
|
|
25281
|
+
return: "nft.info",
|
|
25282
|
+
description: "Get name, symbol and decimals",
|
|
25283
|
+
entry_point: 0xbd7f6850,
|
|
25284
|
+
read_only: true,
|
|
25285
|
+
},
|
|
25286
|
+
owner: {
|
|
25287
|
+
argument: "",
|
|
25288
|
+
return: "common.address",
|
|
25289
|
+
description: "Get the owner of the collection",
|
|
25290
|
+
entry_point: 0x4c102969,
|
|
25291
|
+
read_only: true,
|
|
25292
|
+
},
|
|
25293
|
+
total_supply: {
|
|
25294
|
+
argument: "",
|
|
25295
|
+
return: "common.uint64",
|
|
25296
|
+
description: "Get total supply",
|
|
25297
|
+
entry_point: 0xb0da3934,
|
|
25298
|
+
read_only: true,
|
|
25299
|
+
},
|
|
25300
|
+
royalties: {
|
|
25301
|
+
argument: "",
|
|
25302
|
+
return: "nft.royalties",
|
|
25303
|
+
description: "Get royalties",
|
|
25304
|
+
entry_point: 0x36e90cd0,
|
|
25305
|
+
read_only: true,
|
|
25306
|
+
},
|
|
25307
|
+
balance_of: {
|
|
25308
|
+
argument: "nft.balance_of_args",
|
|
25309
|
+
return: "common.uint64",
|
|
25310
|
+
description: "Get balance of an account",
|
|
25311
|
+
entry_point: 0x5c721497,
|
|
25312
|
+
read_only: true,
|
|
25313
|
+
},
|
|
25314
|
+
owner_of: {
|
|
25315
|
+
argument: "nft.token",
|
|
25316
|
+
return: "common.address",
|
|
25317
|
+
description: "Get the owner of a token",
|
|
25318
|
+
entry_point: 0xed61c847,
|
|
25319
|
+
read_only: true,
|
|
25320
|
+
},
|
|
25321
|
+
metadata_of: {
|
|
25322
|
+
argument: "nft.token",
|
|
25323
|
+
return: "common.str",
|
|
25324
|
+
description: "Get the metadata of a token",
|
|
25325
|
+
entry_point: 0x176c8f7f,
|
|
25326
|
+
read_only: true,
|
|
25327
|
+
},
|
|
25328
|
+
get_tokens: {
|
|
25329
|
+
argument: "nft.get_tokens_args",
|
|
25330
|
+
return: "nft.token_ids",
|
|
25331
|
+
description: "Get list of token IDs",
|
|
25332
|
+
entry_point: 0x7d5b5ed7,
|
|
25333
|
+
read_only: true,
|
|
25334
|
+
},
|
|
25335
|
+
get_tokens_by_owner: {
|
|
25336
|
+
argument: "nft.get_tokens_by_owner_args",
|
|
25337
|
+
return: "nft.token_ids",
|
|
25338
|
+
description: "Get tokens owned by an address",
|
|
25339
|
+
entry_point: 0xfc13eb75,
|
|
25340
|
+
read_only: true,
|
|
25341
|
+
},
|
|
25342
|
+
get_approved: {
|
|
25343
|
+
argument: "nft.token",
|
|
25344
|
+
return: "common.address",
|
|
25345
|
+
description: "Check if an account is approved to operate a token ID",
|
|
25346
|
+
entry_point: 0x4c731020,
|
|
25347
|
+
read_only: true,
|
|
25348
|
+
},
|
|
25349
|
+
is_approved_for_all: {
|
|
25350
|
+
argument: "nft.is_approved_for_all_args",
|
|
25351
|
+
return: "common.boole",
|
|
25352
|
+
description: "Check if an account is approved to operate all tokens owned by other account",
|
|
25353
|
+
entry_point: 0xe7ab8ce5,
|
|
25354
|
+
read_only: true,
|
|
25355
|
+
},
|
|
25356
|
+
get_operator_approvals: {
|
|
25357
|
+
argument: "nft.get_operators_args",
|
|
25358
|
+
return: "nft.get_operators_return",
|
|
25359
|
+
description: "Get allowances of an account",
|
|
25360
|
+
entry_point: 0xdb1bf60e,
|
|
25361
|
+
read_only: true,
|
|
25362
|
+
},
|
|
25363
|
+
transfer_ownership: {
|
|
25364
|
+
argument: "common.address",
|
|
25365
|
+
return: "",
|
|
25366
|
+
description: "Transfer ownership of the collection",
|
|
25367
|
+
entry_point: 0x394be702,
|
|
25368
|
+
read_only: false,
|
|
25369
|
+
},
|
|
25370
|
+
set_royalties: {
|
|
25371
|
+
argument: "nft.royalties",
|
|
25372
|
+
return: "",
|
|
25373
|
+
description: "Set royalties",
|
|
25374
|
+
entry_point: 0x3b5bb56b,
|
|
25375
|
+
read_only: false,
|
|
25376
|
+
},
|
|
25377
|
+
approve: {
|
|
25378
|
+
argument: "nft.approve_args",
|
|
25379
|
+
return: "",
|
|
25380
|
+
description: "Grant permissions to other account to manage a specific Token owned by the user. The user must approve only the accounts he trust.",
|
|
25381
|
+
entry_point: 0x74e21680,
|
|
25382
|
+
read_only: false,
|
|
25383
|
+
},
|
|
25384
|
+
set_approval_for_all: {
|
|
25385
|
+
argument: "nft.set_approval_for_all_args",
|
|
25386
|
+
return: "",
|
|
25387
|
+
description: "Grant permissions to other account to manage all Tokens owned by the user. The user must approve only the accounts he trust.",
|
|
25388
|
+
entry_point: 0x20442216,
|
|
25389
|
+
read_only: false,
|
|
25390
|
+
},
|
|
25391
|
+
},
|
|
25392
|
+
types: "CoQDCidrb2lub3Nib3gtcHJvdG8vbWFuYXNoYXJlci9jb21tb24ucHJvdG8SBmNvbW1vbhoUa29pbm9zL29wdGlvbnMucHJvdG8iGwoDc3RyEhQKBXZhbHVlGAEgASgJUgV2YWx1ZSIeCgZ1aW50MzISFAoFdmFsdWUYASABKA1SBXZhbHVlIiIKBnVpbnQ2NBIYCgV2YWx1ZRgBIAEoBEICMAFSBXZhbHVlIh0KBWJvb2xlEhQKBXZhbHVlGAEgASgIUgV2YWx1ZSIlCgdhZGRyZXNzEhoKBXZhbHVlGAEgASgMQgSAtRgGUgV2YWx1ZSJdCglsaXN0X2FyZ3MSGgoFc3RhcnQYASABKAxCBIC1GAZSBXN0YXJ0EhQKBWxpbWl0GAIgASgFUgVsaW1pdBIeCgpkZXNj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bklkEisKEXBlcm1hbmVudF9hZGRyZXNzGAMgASgIUhBwZXJtYW5lbnRBZGRyZXNzElAKJWFkZHJlc3NfbW9kaWZpYWJsZV9vbmx5X2J5X2dvdmVybmFuY2UYBCABKAhSIWFkZHJlc3NNb2RpZmlhYmxlT25seUJ5R292ZXJuYW5jZRIUCgVvdGhlchgKIAEoDFIFb3RoZXIiqQEKDGFkZHJlc3NfZGF0YRIaCgV2YWx1ZRgBIAEoDEIEgLUYBlIFdmFsdWUSKwoRcGVybWFuZW50X2FkZHJlc3MYAiABKAhSEHBlcm1hbmVudEFkZHJlc3MSUAolYWRkcmVzc19tb2RpZmlhYmxlX29ubHlfYnlfZ292ZXJuYW5jZRgDIAEoCFIhYWRkcmVzc01vZGlmaWFibGVPbmx5QnlHb3Zlcm5hbmNlIo4BChpnZXRfdG9rZW5zX2J5X2FkZHJlc3NfYXJncxIeCgdhZGRyZXNzGAEgASgMQgSAtRgGUgdhZGRyZXNzEhoKBXN0YXJ0GAIgASgMQgSAtRgCUgVzdGFydBIUCgVsaW1pdBgDIAEoBVIFbGltaXQSHgoKZGVzY2VuZGluZxgEIAEoCFIKZGVzY2VuZGluZ2IGcHJvdG8z",
|
|
25393
|
+
koilib_types: {
|
|
25394
|
+
nested: {
|
|
25395
|
+
common: {
|
|
25396
|
+
nested: {
|
|
25397
|
+
str: {
|
|
25398
|
+
fields: {
|
|
25399
|
+
value: {
|
|
25400
|
+
type: "string",
|
|
25401
|
+
id: 1,
|
|
25402
|
+
},
|
|
25403
|
+
},
|
|
25404
|
+
},
|
|
25405
|
+
uint32: {
|
|
25406
|
+
fields: {
|
|
25407
|
+
value: {
|
|
25408
|
+
type: "uint32",
|
|
25409
|
+
id: 1,
|
|
25410
|
+
},
|
|
25411
|
+
},
|
|
25412
|
+
},
|
|
25413
|
+
uint64: {
|
|
25414
|
+
fields: {
|
|
25415
|
+
value: {
|
|
25416
|
+
type: "uint64",
|
|
25417
|
+
id: 1,
|
|
25418
|
+
options: {
|
|
25419
|
+
jstype: "JS_STRING",
|
|
25420
|
+
},
|
|
25421
|
+
},
|
|
25422
|
+
},
|
|
25423
|
+
},
|
|
25424
|
+
boole: {
|
|
25425
|
+
fields: {
|
|
25426
|
+
value: {
|
|
25427
|
+
type: "bool",
|
|
25428
|
+
id: 1,
|
|
25429
|
+
},
|
|
25430
|
+
},
|
|
25431
|
+
},
|
|
25432
|
+
address: {
|
|
25433
|
+
fields: {
|
|
25434
|
+
value: {
|
|
25435
|
+
type: "bytes",
|
|
25436
|
+
id: 1,
|
|
25437
|
+
options: {
|
|
25438
|
+
"(koinos.btype)": "ADDRESS",
|
|
25439
|
+
},
|
|
25440
|
+
},
|
|
25441
|
+
},
|
|
25442
|
+
},
|
|
25443
|
+
list_args: {
|
|
25444
|
+
fields: {
|
|
25445
|
+
start: {
|
|
25446
|
+
type: "bytes",
|
|
25447
|
+
id: 1,
|
|
25448
|
+
options: {
|
|
25449
|
+
"(koinos.btype)": "ADDRESS",
|
|
25450
|
+
},
|
|
25451
|
+
},
|
|
25452
|
+
limit: {
|
|
25453
|
+
type: "int32",
|
|
25454
|
+
id: 2,
|
|
25455
|
+
},
|
|
25456
|
+
descending: {
|
|
25457
|
+
type: "bool",
|
|
25458
|
+
id: 3,
|
|
25459
|
+
},
|
|
25460
|
+
},
|
|
25461
|
+
},
|
|
25462
|
+
addresses: {
|
|
25463
|
+
fields: {
|
|
25464
|
+
accounts: {
|
|
25465
|
+
rule: "repeated",
|
|
25466
|
+
type: "bytes",
|
|
25467
|
+
id: 1,
|
|
25468
|
+
options: {
|
|
25469
|
+
"(koinos.btype)": "ADDRESS",
|
|
25470
|
+
},
|
|
25471
|
+
},
|
|
25472
|
+
},
|
|
25473
|
+
},
|
|
25474
|
+
},
|
|
25475
|
+
},
|
|
25476
|
+
koinos: {
|
|
25477
|
+
options: {
|
|
25478
|
+
go_package: "github.com/koinos/koinos-proto-golang/koinos",
|
|
25479
|
+
},
|
|
25480
|
+
nested: {
|
|
25481
|
+
bytes_type: {
|
|
25482
|
+
values: {
|
|
25483
|
+
BASE64: 0,
|
|
25484
|
+
BASE58: 1,
|
|
25485
|
+
HEX: 2,
|
|
25486
|
+
BLOCK_ID: 3,
|
|
25487
|
+
TRANSACTION_ID: 4,
|
|
25488
|
+
CONTRACT_ID: 5,
|
|
25489
|
+
ADDRESS: 6,
|
|
25490
|
+
},
|
|
25491
|
+
},
|
|
25492
|
+
_btype: {
|
|
25493
|
+
oneof: ["btype"],
|
|
25494
|
+
},
|
|
25495
|
+
btype: {
|
|
25496
|
+
type: "bytes_type",
|
|
25497
|
+
id: 50000,
|
|
25498
|
+
extend: "google.protobuf.FieldOptions",
|
|
25499
|
+
options: {
|
|
25500
|
+
proto3_optional: true,
|
|
25501
|
+
},
|
|
25502
|
+
},
|
|
25503
|
+
},
|
|
25504
|
+
},
|
|
25505
|
+
nft: {
|
|
25506
|
+
nested: {
|
|
25507
|
+
royalty: {
|
|
25508
|
+
fields: {
|
|
25509
|
+
percentage: {
|
|
25510
|
+
type: "uint64",
|
|
25511
|
+
id: 1,
|
|
25512
|
+
options: {
|
|
25513
|
+
jstype: "JS_STRING",
|
|
25514
|
+
},
|
|
25515
|
+
},
|
|
25516
|
+
address: {
|
|
25517
|
+
type: "bytes",
|
|
25518
|
+
id: 2,
|
|
25519
|
+
options: {
|
|
25520
|
+
"(koinos.btype)": "ADDRESS",
|
|
25521
|
+
},
|
|
25522
|
+
},
|
|
25523
|
+
},
|
|
25524
|
+
},
|
|
25525
|
+
royalties: {
|
|
25526
|
+
fields: {
|
|
25527
|
+
value: {
|
|
25528
|
+
rule: "repeated",
|
|
25529
|
+
type: "royalty",
|
|
25530
|
+
id: 1,
|
|
25531
|
+
},
|
|
25532
|
+
},
|
|
25533
|
+
},
|
|
25534
|
+
metadata_args: {
|
|
25535
|
+
fields: {
|
|
25536
|
+
token_id: {
|
|
25537
|
+
type: "bytes",
|
|
25538
|
+
id: 1,
|
|
25539
|
+
options: {
|
|
25540
|
+
"(koinos.btype)": "HEX",
|
|
25541
|
+
},
|
|
25542
|
+
},
|
|
25543
|
+
metadata: {
|
|
25544
|
+
type: "string",
|
|
25545
|
+
id: 2,
|
|
25546
|
+
},
|
|
25547
|
+
},
|
|
25548
|
+
},
|
|
25549
|
+
info: {
|
|
25550
|
+
fields: {
|
|
25551
|
+
name: {
|
|
25552
|
+
type: "string",
|
|
25553
|
+
id: 1,
|
|
25554
|
+
},
|
|
25555
|
+
symbol: {
|
|
25556
|
+
type: "string",
|
|
25557
|
+
id: 2,
|
|
25558
|
+
},
|
|
25559
|
+
uri: {
|
|
25560
|
+
type: "string",
|
|
25561
|
+
id: 3,
|
|
25562
|
+
},
|
|
25563
|
+
description: {
|
|
25564
|
+
type: "string",
|
|
25565
|
+
id: 4,
|
|
25566
|
+
},
|
|
25567
|
+
},
|
|
25568
|
+
},
|
|
25569
|
+
balance_of_args: {
|
|
25570
|
+
fields: {
|
|
25571
|
+
owner: {
|
|
25572
|
+
type: "bytes",
|
|
25573
|
+
id: 1,
|
|
25574
|
+
options: {
|
|
25575
|
+
"(koinos.btype)": "ADDRESS",
|
|
25576
|
+
},
|
|
25577
|
+
},
|
|
25578
|
+
},
|
|
25579
|
+
},
|
|
25580
|
+
token: {
|
|
25581
|
+
fields: {
|
|
25582
|
+
token_id: {
|
|
25583
|
+
type: "bytes",
|
|
25584
|
+
id: 1,
|
|
25585
|
+
options: {
|
|
25586
|
+
"(koinos.btype)": "HEX",
|
|
25587
|
+
},
|
|
25588
|
+
},
|
|
25589
|
+
},
|
|
25590
|
+
},
|
|
25591
|
+
is_approved_for_all_args: {
|
|
25592
|
+
fields: {
|
|
25593
|
+
owner: {
|
|
25594
|
+
type: "bytes",
|
|
25595
|
+
id: 1,
|
|
25596
|
+
options: {
|
|
25597
|
+
"(koinos.btype)": "ADDRESS",
|
|
25598
|
+
},
|
|
25599
|
+
},
|
|
25600
|
+
operator: {
|
|
25601
|
+
type: "bytes",
|
|
25602
|
+
id: 2,
|
|
25603
|
+
options: {
|
|
25604
|
+
"(koinos.btype)": "ADDRESS",
|
|
25605
|
+
},
|
|
25606
|
+
},
|
|
25607
|
+
},
|
|
25608
|
+
},
|
|
25609
|
+
mint_args: {
|
|
25610
|
+
fields: {
|
|
25611
|
+
to: {
|
|
25612
|
+
type: "bytes",
|
|
25613
|
+
id: 1,
|
|
25614
|
+
options: {
|
|
25615
|
+
"(koinos.btype)": "ADDRESS",
|
|
25616
|
+
},
|
|
25617
|
+
},
|
|
25618
|
+
token_id: {
|
|
25619
|
+
type: "bytes",
|
|
25620
|
+
id: 2,
|
|
25621
|
+
options: {
|
|
25622
|
+
"(koinos.btype)": "HEX",
|
|
25623
|
+
},
|
|
25624
|
+
},
|
|
25625
|
+
},
|
|
25626
|
+
},
|
|
25627
|
+
burn_args: {
|
|
25628
|
+
fields: {
|
|
25629
|
+
token_id: {
|
|
25630
|
+
type: "bytes",
|
|
25631
|
+
id: 1,
|
|
25632
|
+
options: {
|
|
25633
|
+
"(koinos.btype)": "HEX",
|
|
25634
|
+
},
|
|
25635
|
+
},
|
|
25636
|
+
},
|
|
25637
|
+
},
|
|
25638
|
+
transfer_args: {
|
|
25639
|
+
fields: {
|
|
25640
|
+
from: {
|
|
25641
|
+
type: "bytes",
|
|
25642
|
+
id: 1,
|
|
25643
|
+
options: {
|
|
25644
|
+
"(koinos.btype)": "ADDRESS",
|
|
25645
|
+
},
|
|
25646
|
+
},
|
|
25647
|
+
to: {
|
|
25648
|
+
type: "bytes",
|
|
25649
|
+
id: 2,
|
|
25650
|
+
options: {
|
|
25651
|
+
"(koinos.btype)": "ADDRESS",
|
|
25652
|
+
},
|
|
25653
|
+
},
|
|
25654
|
+
token_id: {
|
|
25655
|
+
type: "bytes",
|
|
25656
|
+
id: 3,
|
|
25657
|
+
options: {
|
|
25658
|
+
"(koinos.btype)": "HEX",
|
|
25659
|
+
},
|
|
25660
|
+
},
|
|
25661
|
+
memo: {
|
|
25662
|
+
type: "string",
|
|
25663
|
+
id: 4,
|
|
25664
|
+
},
|
|
25665
|
+
},
|
|
25666
|
+
},
|
|
25667
|
+
approve_args: {
|
|
25668
|
+
fields: {
|
|
25669
|
+
approver_address: {
|
|
25670
|
+
type: "bytes",
|
|
25671
|
+
id: 1,
|
|
25672
|
+
options: {
|
|
25673
|
+
"(koinos.btype)": "ADDRESS",
|
|
25674
|
+
},
|
|
25675
|
+
},
|
|
25676
|
+
to: {
|
|
25677
|
+
type: "bytes",
|
|
25678
|
+
id: 2,
|
|
25679
|
+
options: {
|
|
25680
|
+
"(koinos.btype)": "ADDRESS",
|
|
25681
|
+
},
|
|
25682
|
+
},
|
|
25683
|
+
token_id: {
|
|
25684
|
+
type: "bytes",
|
|
25685
|
+
id: 3,
|
|
25686
|
+
options: {
|
|
25687
|
+
"(koinos.btype)": "HEX",
|
|
25688
|
+
},
|
|
25689
|
+
},
|
|
25690
|
+
},
|
|
25691
|
+
},
|
|
25692
|
+
set_approval_for_all_args: {
|
|
25693
|
+
fields: {
|
|
25694
|
+
approver_address: {
|
|
25695
|
+
type: "bytes",
|
|
25696
|
+
id: 1,
|
|
25697
|
+
options: {
|
|
25698
|
+
"(koinos.btype)": "ADDRESS",
|
|
25699
|
+
},
|
|
25700
|
+
},
|
|
25701
|
+
operator_address: {
|
|
25702
|
+
type: "bytes",
|
|
25703
|
+
id: 2,
|
|
25704
|
+
options: {
|
|
25705
|
+
"(koinos.btype)": "ADDRESS",
|
|
25706
|
+
},
|
|
25707
|
+
},
|
|
25708
|
+
approved: {
|
|
25709
|
+
type: "bool",
|
|
25710
|
+
id: 3,
|
|
25711
|
+
},
|
|
25712
|
+
},
|
|
25713
|
+
},
|
|
25714
|
+
get_operators_args: {
|
|
25715
|
+
fields: {
|
|
25716
|
+
owner: {
|
|
25717
|
+
type: "bytes",
|
|
25718
|
+
id: 1,
|
|
25719
|
+
options: {
|
|
25720
|
+
"(koinos.btype)": "ADDRESS",
|
|
25721
|
+
},
|
|
25722
|
+
},
|
|
25723
|
+
start: {
|
|
25724
|
+
type: "bytes",
|
|
25725
|
+
id: 2,
|
|
25726
|
+
options: {
|
|
25727
|
+
"(koinos.btype)": "ADDRESS",
|
|
25728
|
+
},
|
|
25729
|
+
},
|
|
25730
|
+
limit: {
|
|
25731
|
+
type: "int32",
|
|
25732
|
+
id: 3,
|
|
25733
|
+
},
|
|
25734
|
+
descending: {
|
|
25735
|
+
type: "bool",
|
|
25736
|
+
id: 4,
|
|
25737
|
+
},
|
|
25738
|
+
},
|
|
25739
|
+
},
|
|
25740
|
+
get_operators_return: {
|
|
25741
|
+
fields: {
|
|
25742
|
+
owner: {
|
|
25743
|
+
type: "bytes",
|
|
25744
|
+
id: 1,
|
|
25745
|
+
options: {
|
|
25746
|
+
"(koinos.btype)": "ADDRESS",
|
|
25747
|
+
},
|
|
25748
|
+
},
|
|
25749
|
+
operators: {
|
|
25750
|
+
rule: "repeated",
|
|
25751
|
+
type: "bytes",
|
|
25752
|
+
id: 2,
|
|
25753
|
+
options: {
|
|
25754
|
+
"(koinos.btype)": "ADDRESS",
|
|
25755
|
+
},
|
|
25756
|
+
},
|
|
25757
|
+
},
|
|
25758
|
+
},
|
|
25759
|
+
get_tokens_args: {
|
|
25760
|
+
fields: {
|
|
25761
|
+
start: {
|
|
25762
|
+
type: "bytes",
|
|
25763
|
+
id: 1,
|
|
25764
|
+
options: {
|
|
25765
|
+
"(koinos.btype)": "HEX",
|
|
25766
|
+
},
|
|
25767
|
+
},
|
|
25768
|
+
limit: {
|
|
25769
|
+
type: "int32",
|
|
25770
|
+
id: 2,
|
|
25771
|
+
},
|
|
25772
|
+
descending: {
|
|
25773
|
+
type: "bool",
|
|
25774
|
+
id: 3,
|
|
25775
|
+
},
|
|
25776
|
+
},
|
|
25777
|
+
},
|
|
25778
|
+
get_tokens_by_owner_args: {
|
|
25779
|
+
fields: {
|
|
25780
|
+
owner: {
|
|
25781
|
+
type: "bytes",
|
|
25782
|
+
id: 1,
|
|
25783
|
+
options: {
|
|
25784
|
+
"(koinos.btype)": "ADDRESS",
|
|
25785
|
+
},
|
|
25786
|
+
},
|
|
25787
|
+
start: {
|
|
25788
|
+
type: "bytes",
|
|
25789
|
+
id: 2,
|
|
25790
|
+
options: {
|
|
25791
|
+
"(koinos.btype)": "HEX",
|
|
25792
|
+
},
|
|
25793
|
+
},
|
|
25794
|
+
limit: {
|
|
25795
|
+
type: "int32",
|
|
25796
|
+
id: 3,
|
|
25797
|
+
},
|
|
25798
|
+
descending: {
|
|
25799
|
+
type: "bool",
|
|
25800
|
+
id: 4,
|
|
25801
|
+
},
|
|
25802
|
+
},
|
|
25803
|
+
},
|
|
25804
|
+
token_ids: {
|
|
25805
|
+
fields: {
|
|
25806
|
+
token_ids: {
|
|
25807
|
+
rule: "repeated",
|
|
25808
|
+
type: "bytes",
|
|
25809
|
+
id: 1,
|
|
25810
|
+
options: {
|
|
25811
|
+
"(koinos.btype)": "HEX",
|
|
25812
|
+
},
|
|
25813
|
+
},
|
|
25814
|
+
},
|
|
25815
|
+
},
|
|
25816
|
+
},
|
|
25817
|
+
},
|
|
25818
|
+
nicknames: {
|
|
25819
|
+
nested: {
|
|
25820
|
+
tabi_item: {
|
|
25821
|
+
fields: {
|
|
25822
|
+
pattern: {
|
|
25823
|
+
type: "string",
|
|
25824
|
+
id: 1,
|
|
25825
|
+
},
|
|
25826
|
+
entry_point: {
|
|
25827
|
+
type: "uint32",
|
|
25828
|
+
id: 2,
|
|
25829
|
+
},
|
|
25830
|
+
},
|
|
25831
|
+
},
|
|
25832
|
+
tabi: {
|
|
25833
|
+
fields: {
|
|
25834
|
+
items: {
|
|
25835
|
+
rule: "repeated",
|
|
25836
|
+
type: "tabi_item",
|
|
25837
|
+
id: 1,
|
|
25838
|
+
},
|
|
25839
|
+
},
|
|
25840
|
+
},
|
|
25841
|
+
get_tabi_result: {
|
|
25842
|
+
fields: {
|
|
25843
|
+
items: {
|
|
25844
|
+
rule: "repeated",
|
|
25845
|
+
type: "tabi_item",
|
|
25846
|
+
id: 1,
|
|
25847
|
+
},
|
|
25848
|
+
address: {
|
|
25849
|
+
type: "bytes",
|
|
25850
|
+
id: 2,
|
|
25851
|
+
options: {
|
|
25852
|
+
"(koinos.btype)": "ADDRESS",
|
|
25853
|
+
},
|
|
25854
|
+
},
|
|
25855
|
+
},
|
|
25856
|
+
},
|
|
25857
|
+
set_tabi_args: {
|
|
25858
|
+
fields: {
|
|
25859
|
+
token_id: {
|
|
25860
|
+
type: "bytes",
|
|
25861
|
+
id: 1,
|
|
25862
|
+
options: {
|
|
25863
|
+
"(koinos.btype)": "HEX",
|
|
25864
|
+
},
|
|
25865
|
+
},
|
|
25866
|
+
tabi: {
|
|
25867
|
+
type: "tabi",
|
|
25868
|
+
id: 2,
|
|
25869
|
+
},
|
|
25870
|
+
},
|
|
25871
|
+
},
|
|
25872
|
+
set_address_args: {
|
|
25873
|
+
fields: {
|
|
25874
|
+
token_id: {
|
|
25875
|
+
type: "bytes",
|
|
25876
|
+
id: 1,
|
|
25877
|
+
options: {
|
|
25878
|
+
"(koinos.btype)": "HEX",
|
|
25879
|
+
},
|
|
25880
|
+
},
|
|
25881
|
+
address: {
|
|
25882
|
+
type: "bytes",
|
|
25883
|
+
id: 2,
|
|
25884
|
+
options: {
|
|
25885
|
+
"(koinos.btype)": "ADDRESS",
|
|
25886
|
+
},
|
|
25887
|
+
},
|
|
25888
|
+
gov_proposal_update: {
|
|
25889
|
+
type: "bool",
|
|
25890
|
+
id: 3,
|
|
25891
|
+
},
|
|
25892
|
+
},
|
|
25893
|
+
},
|
|
25894
|
+
set_extended_metadata_args: {
|
|
25895
|
+
fields: {
|
|
25896
|
+
token_id: {
|
|
25897
|
+
type: "bytes",
|
|
25898
|
+
id: 1,
|
|
25899
|
+
options: {
|
|
25900
|
+
"(koinos.btype)": "HEX",
|
|
25901
|
+
},
|
|
25902
|
+
},
|
|
25903
|
+
permanent_address: {
|
|
25904
|
+
type: "bool",
|
|
25905
|
+
id: 3,
|
|
25906
|
+
},
|
|
25907
|
+
address_modifiable_only_by_governance: {
|
|
25908
|
+
type: "bool",
|
|
25909
|
+
id: 4,
|
|
25910
|
+
},
|
|
25911
|
+
other: {
|
|
25912
|
+
type: "bytes",
|
|
25913
|
+
id: 10,
|
|
25914
|
+
},
|
|
25915
|
+
},
|
|
25916
|
+
},
|
|
25917
|
+
extended_metadata: {
|
|
25918
|
+
fields: {
|
|
25919
|
+
token_id: {
|
|
25920
|
+
type: "bytes",
|
|
25921
|
+
id: 1,
|
|
25922
|
+
options: {
|
|
25923
|
+
"(koinos.btype)": "HEX",
|
|
25924
|
+
},
|
|
25925
|
+
},
|
|
25926
|
+
permanent_address: {
|
|
25927
|
+
type: "bool",
|
|
25928
|
+
id: 3,
|
|
25929
|
+
},
|
|
25930
|
+
address_modifiable_only_by_governance: {
|
|
25931
|
+
type: "bool",
|
|
25932
|
+
id: 4,
|
|
25933
|
+
},
|
|
25934
|
+
other: {
|
|
25935
|
+
type: "bytes",
|
|
25936
|
+
id: 10,
|
|
25937
|
+
},
|
|
25938
|
+
},
|
|
25939
|
+
},
|
|
25940
|
+
address_data: {
|
|
25941
|
+
fields: {
|
|
25942
|
+
value: {
|
|
25943
|
+
type: "bytes",
|
|
25944
|
+
id: 1,
|
|
25945
|
+
options: {
|
|
25946
|
+
"(koinos.btype)": "ADDRESS",
|
|
25947
|
+
},
|
|
25948
|
+
},
|
|
25949
|
+
permanent_address: {
|
|
25950
|
+
type: "bool",
|
|
25951
|
+
id: 2,
|
|
25952
|
+
},
|
|
25953
|
+
address_modifiable_only_by_governance: {
|
|
25954
|
+
type: "bool",
|
|
25955
|
+
id: 3,
|
|
25956
|
+
},
|
|
25957
|
+
},
|
|
25958
|
+
},
|
|
25959
|
+
get_tokens_by_address_args: {
|
|
25960
|
+
fields: {
|
|
25961
|
+
address: {
|
|
25962
|
+
type: "bytes",
|
|
25963
|
+
id: 1,
|
|
25964
|
+
options: {
|
|
25965
|
+
"(koinos.btype)": "ADDRESS",
|
|
25966
|
+
},
|
|
25967
|
+
},
|
|
25968
|
+
start: {
|
|
25969
|
+
type: "bytes",
|
|
25970
|
+
id: 2,
|
|
25971
|
+
options: {
|
|
25972
|
+
"(koinos.btype)": "HEX",
|
|
25973
|
+
},
|
|
25974
|
+
},
|
|
25975
|
+
limit: {
|
|
25976
|
+
type: "int32",
|
|
25977
|
+
id: 3,
|
|
25978
|
+
},
|
|
25979
|
+
descending: {
|
|
25980
|
+
type: "bool",
|
|
25981
|
+
id: 4,
|
|
25982
|
+
},
|
|
25983
|
+
},
|
|
25984
|
+
},
|
|
25985
|
+
},
|
|
25986
|
+
},
|
|
25987
|
+
},
|
|
25988
|
+
},
|
|
25989
|
+
events: {
|
|
25990
|
+
"collections.mint_event": {
|
|
25991
|
+
type: "nft.mint_args",
|
|
25992
|
+
argument: "nft.mint_args",
|
|
25993
|
+
},
|
|
25994
|
+
"collections.burn_event": {
|
|
25995
|
+
type: "nft.burn_args",
|
|
25996
|
+
argument: "nft.burn_args",
|
|
25997
|
+
},
|
|
25998
|
+
"collections.transfer_event": {
|
|
25999
|
+
type: "nft.transfer_args",
|
|
26000
|
+
argument: "nft.transfer_args",
|
|
26001
|
+
},
|
|
26002
|
+
"nicknames.set_tabi": {
|
|
26003
|
+
type: "nicknames.set_tabi_args",
|
|
26004
|
+
argument: "nicknames.set_tabi_args",
|
|
26005
|
+
},
|
|
26006
|
+
"collections.set_metadata_event": {
|
|
26007
|
+
type: "nft.metadata_args",
|
|
26008
|
+
argument: "nft.metadata_args",
|
|
26009
|
+
},
|
|
26010
|
+
address_updated: {
|
|
26011
|
+
type: "nicknames.set_address_args",
|
|
26012
|
+
argument: "nicknames.set_address_args",
|
|
26013
|
+
},
|
|
26014
|
+
extended_metadata_updated: {
|
|
26015
|
+
type: "nicknames.extended_metadata",
|
|
26016
|
+
argument: "nicknames.extended_metadata",
|
|
26017
|
+
},
|
|
26018
|
+
"collections.owner_event": {
|
|
26019
|
+
type: "common.address",
|
|
26020
|
+
argument: "common.address",
|
|
26021
|
+
},
|
|
26022
|
+
"collections.royalties_event": {
|
|
26023
|
+
type: "nft.royalties",
|
|
26024
|
+
argument: "nft.royalties",
|
|
26025
|
+
},
|
|
26026
|
+
"collections.token_approval_event": {
|
|
26027
|
+
type: "nft.approve_args",
|
|
26028
|
+
argument: "nft.approve_args",
|
|
26029
|
+
},
|
|
26030
|
+
"collections.operator_approval_event": {
|
|
26031
|
+
type: "nft.set_approval_for_all_args",
|
|
26032
|
+
argument: "nft.set_approval_for_all_args",
|
|
26033
|
+
},
|
|
26034
|
+
},
|
|
26035
|
+
};
|
|
26036
|
+
exports["default"] = exports.nicknamesAbi;
|
|
26037
|
+
|
|
26038
|
+
|
|
26039
|
+
/***/ }),
|
|
26040
|
+
|
|
26041
|
+
/***/ 5738:
|
|
26042
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
26043
|
+
|
|
26044
|
+
"use strict";
|
|
26045
|
+
|
|
26046
|
+
/*! koilib - MIT License (c) Julian Gonzalez (joticajulian@gmail.com) */
|
|
26047
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26048
|
+
if (k2 === undefined) k2 = k;
|
|
26049
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26050
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
26051
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
26052
|
+
}
|
|
26053
|
+
Object.defineProperty(o, k2, desc);
|
|
26054
|
+
}) : (function(o, m, k, k2) {
|
|
26055
|
+
if (k2 === undefined) k2 = k;
|
|
26056
|
+
o[k2] = m[k];
|
|
26057
|
+
}));
|
|
26058
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26059
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26060
|
+
}) : function(o, v) {
|
|
26061
|
+
o["default"] = v;
|
|
26062
|
+
});
|
|
26063
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26064
|
+
if (mod && mod.__esModule) return mod;
|
|
26065
|
+
var result = {};
|
|
26066
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26067
|
+
__setModuleDefault(result, mod);
|
|
26068
|
+
return result;
|
|
26069
|
+
};
|
|
26070
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
26071
|
+
const utils = __importStar(__webpack_require__(8593));
|
|
26072
|
+
const Contract_1 = __webpack_require__(9822);
|
|
26073
|
+
const Signer_1 = __webpack_require__(6991);
|
|
26074
|
+
const Provider_1 = __webpack_require__(5635);
|
|
26075
|
+
const Transaction_1 = __webpack_require__(7592);
|
|
26076
|
+
const Serializer_1 = __webpack_require__(7187);
|
|
26077
|
+
window.utils = utils;
|
|
26078
|
+
window.Contract = Contract_1.Contract;
|
|
26079
|
+
window.Signer = Signer_1.Signer;
|
|
26080
|
+
window.Provider = Provider_1.Provider;
|
|
26081
|
+
window.Transaction = Transaction_1.Transaction;
|
|
26082
|
+
window.Serializer = Serializer_1.Serializer;
|
|
26083
|
+
|
|
26084
|
+
|
|
26085
|
+
/***/ }),
|
|
26086
|
+
|
|
26087
|
+
/***/ 8593:
|
|
26088
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
26089
|
+
|
|
26090
|
+
"use strict";
|
|
26091
|
+
|
|
26092
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26093
|
+
if (k2 === undefined) k2 = k;
|
|
26094
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26095
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
26096
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
26097
|
+
}
|
|
26098
|
+
Object.defineProperty(o, k2, desc);
|
|
26099
|
+
}) : (function(o, m, k, k2) {
|
|
26100
|
+
if (k2 === undefined) k2 = k;
|
|
26101
|
+
o[k2] = m[k];
|
|
26102
|
+
}));
|
|
26103
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26104
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26105
|
+
}) : function(o, v) {
|
|
26106
|
+
o["default"] = v;
|
|
26107
|
+
});
|
|
26108
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26109
|
+
if (mod && mod.__esModule) return mod;
|
|
26110
|
+
var result = {};
|
|
26111
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26112
|
+
__setModuleDefault(result, mod);
|
|
26113
|
+
return result;
|
|
26114
|
+
};
|
|
26115
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26116
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25197
26117
|
};
|
|
25198
26118
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
25199
26119
|
exports.nftAbi = exports.tokenAbi = exports.btypeEncode = exports.btypeDecode = exports.btypeEncodeValue = exports.btypeDecodeValue = exports.parseUnits = exports.formatUnits = exports.isChecksumWif = exports.isChecksumAddress = exports.isChecksum = exports.bitcoinAddress = exports.bitcoinDecode = exports.bitcoinEncode = exports.calculateMerkleRoot = exports.decodeBase64 = exports.multihash = exports.encodeBase64 = exports.decodeBase64url = exports.encodeBase64url = exports.decodeBase58 = exports.encodeBase58 = exports.toHexString = exports.toUint8Array = void 0;
|
|
@@ -25463,6 +26383,8 @@ exports.isChecksumWif = isChecksumWif;
|
|
|
25463
26383
|
*/
|
|
25464
26384
|
function formatUnits(value, decimals) {
|
|
25465
26385
|
let v = typeof value === "string" ? value : BigInt(value).toString();
|
|
26386
|
+
if (!decimals)
|
|
26387
|
+
return v;
|
|
25466
26388
|
const sign = v[0] === "-" ? "-" : "";
|
|
25467
26389
|
v = v.replace("-", "").padStart(decimals + 1, "0");
|
|
25468
26390
|
const integerPart = v
|
|
@@ -26967,6 +27889,7 @@ exports.nftAbi = {
|
|
|
26967
27889
|
},
|
|
26968
27890
|
},
|
|
26969
27891
|
};
|
|
27892
|
+
__exportStar(__webpack_require__(9154), exports);
|
|
26970
27893
|
//export const ProtocolTypes = protocolJson;
|
|
26971
27894
|
|
|
26972
27895
|
|