@imtbl/sdk 1.40.0-alpha.1 → 1.40.0-alpha.2
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/blockchain_data.js +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +102 -13
- package/dist/index.d.ts +415 -60
- package/dist/index.js +102 -13
- package/dist/minting_backend.d.ts +86 -85
- package/dist/minting_backend.js +97 -8
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +4 -4
- package/dist/webhook.d.ts +1252 -5
- package/dist/webhook.js +91 -1
- package/dist/x.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13318,7 +13318,7 @@ interface BlockchainMetadata$1 {
|
|
|
13318
13318
|
* @export
|
|
13319
13319
|
* @interface Chain
|
|
13320
13320
|
*/
|
|
13321
|
-
interface Chain$
|
|
13321
|
+
interface Chain$3 {
|
|
13322
13322
|
/**
|
|
13323
13323
|
* The id of chain
|
|
13324
13324
|
* @type {string}
|
|
@@ -13362,7 +13362,7 @@ interface Activity$1 {
|
|
|
13362
13362
|
* @type {Chain}
|
|
13363
13363
|
* @memberof Activity
|
|
13364
13364
|
*/
|
|
13365
|
-
'chain': Chain$
|
|
13365
|
+
'chain': Chain$3;
|
|
13366
13366
|
/**
|
|
13367
13367
|
*
|
|
13368
13368
|
* @type {ActivityType}
|
|
@@ -13460,7 +13460,7 @@ interface ChainWithDetailsAllOf$1 {
|
|
|
13460
13460
|
* @type ChainWithDetails
|
|
13461
13461
|
* @export
|
|
13462
13462
|
*/
|
|
13463
|
-
type ChainWithDetails$1 = Chain$
|
|
13463
|
+
type ChainWithDetails$1 = Chain$3 & ChainWithDetailsAllOf$1;
|
|
13464
13464
|
|
|
13465
13465
|
/**
|
|
13466
13466
|
* Immutable zkEVM API
|
|
@@ -13507,7 +13507,7 @@ interface Collection$1 {
|
|
|
13507
13507
|
* @type {Chain}
|
|
13508
13508
|
* @memberof Collection
|
|
13509
13509
|
*/
|
|
13510
|
-
'chain': Chain$
|
|
13510
|
+
'chain': Chain$3;
|
|
13511
13511
|
/**
|
|
13512
13512
|
* The name of the collection
|
|
13513
13513
|
* @type {string}
|
|
@@ -13961,7 +13961,7 @@ interface Metadata$1 {
|
|
|
13961
13961
|
* @type {Chain}
|
|
13962
13962
|
* @memberof Metadata
|
|
13963
13963
|
*/
|
|
13964
|
-
'chain': Chain$
|
|
13964
|
+
'chain': Chain$3;
|
|
13965
13965
|
/**
|
|
13966
13966
|
* The contract address of the metadata
|
|
13967
13967
|
* @type {string}
|
|
@@ -14121,7 +14121,7 @@ interface GetMintRequestResult$1 {
|
|
|
14121
14121
|
* @type {Chain}
|
|
14122
14122
|
* @memberof GetMintRequestResult
|
|
14123
14123
|
*/
|
|
14124
|
-
'chain': Chain$
|
|
14124
|
+
'chain': Chain$3;
|
|
14125
14125
|
/**
|
|
14126
14126
|
* The address of the contract
|
|
14127
14127
|
* @type {string}
|
|
@@ -14213,7 +14213,7 @@ interface NFT$1 {
|
|
|
14213
14213
|
* @type {Chain}
|
|
14214
14214
|
* @memberof NFT
|
|
14215
14215
|
*/
|
|
14216
|
-
'chain': Chain$
|
|
14216
|
+
'chain': Chain$3;
|
|
14217
14217
|
/**
|
|
14218
14218
|
* An `uint256` token id as string
|
|
14219
14219
|
* @type {string}
|
|
@@ -14355,7 +14355,7 @@ interface Token$1 {
|
|
|
14355
14355
|
* @type {Chain}
|
|
14356
14356
|
* @memberof Token
|
|
14357
14357
|
*/
|
|
14358
|
-
'chain': Chain$
|
|
14358
|
+
'chain': Chain$3;
|
|
14359
14359
|
/**
|
|
14360
14360
|
* The address of token contract
|
|
14361
14361
|
* @type {string}
|
|
@@ -14646,7 +14646,7 @@ interface NFTOwner$1 {
|
|
|
14646
14646
|
* @type {Chain}
|
|
14647
14647
|
* @memberof NFTOwner
|
|
14648
14648
|
*/
|
|
14649
|
-
'chain': Chain$
|
|
14649
|
+
'chain': Chain$3;
|
|
14650
14650
|
/**
|
|
14651
14651
|
* The address of NFT contract
|
|
14652
14652
|
* @type {string}
|
|
@@ -14880,7 +14880,7 @@ interface RefreshCollectionMetadataResult$1 {
|
|
|
14880
14880
|
* @type {Chain}
|
|
14881
14881
|
* @memberof RefreshCollectionMetadataResult
|
|
14882
14882
|
*/
|
|
14883
|
-
'chain': Chain$
|
|
14883
|
+
'chain': Chain$3;
|
|
14884
14884
|
/**
|
|
14885
14885
|
*
|
|
14886
14886
|
* @type {CollectionMetadata}
|
|
@@ -16950,7 +16950,7 @@ interface BlockchainMetadata {
|
|
|
16950
16950
|
* @export
|
|
16951
16951
|
* @interface Chain
|
|
16952
16952
|
*/
|
|
16953
|
-
interface Chain$
|
|
16953
|
+
interface Chain$2 {
|
|
16954
16954
|
/**
|
|
16955
16955
|
* The id of chain
|
|
16956
16956
|
* @type {string}
|
|
@@ -16994,7 +16994,7 @@ interface Activity {
|
|
|
16994
16994
|
* @type {Chain}
|
|
16995
16995
|
* @memberof Activity
|
|
16996
16996
|
*/
|
|
16997
|
-
'chain': Chain$
|
|
16997
|
+
'chain': Chain$2;
|
|
16998
16998
|
/**
|
|
16999
16999
|
*
|
|
17000
17000
|
* @type {ActivityType}
|
|
@@ -17092,7 +17092,7 @@ interface ChainWithDetailsAllOf {
|
|
|
17092
17092
|
* @type ChainWithDetails
|
|
17093
17093
|
* @export
|
|
17094
17094
|
*/
|
|
17095
|
-
type ChainWithDetails = Chain$
|
|
17095
|
+
type ChainWithDetails = Chain$2 & ChainWithDetailsAllOf;
|
|
17096
17096
|
|
|
17097
17097
|
/**
|
|
17098
17098
|
* Immutable zkEVM API
|
|
@@ -17138,7 +17138,7 @@ interface Collection {
|
|
|
17138
17138
|
* @type {Chain}
|
|
17139
17139
|
* @memberof Collection
|
|
17140
17140
|
*/
|
|
17141
|
-
'chain': Chain$
|
|
17141
|
+
'chain': Chain$2;
|
|
17142
17142
|
/**
|
|
17143
17143
|
* The name of the collection
|
|
17144
17144
|
* @type {string}
|
|
@@ -17724,7 +17724,7 @@ interface Metadata {
|
|
|
17724
17724
|
* @type {Chain}
|
|
17725
17725
|
* @memberof Metadata
|
|
17726
17726
|
*/
|
|
17727
|
-
'chain': Chain$
|
|
17727
|
+
'chain': Chain$2;
|
|
17728
17728
|
/**
|
|
17729
17729
|
* The contract address of the metadata
|
|
17730
17730
|
* @type {string}
|
|
@@ -17883,7 +17883,7 @@ interface GetMintRequestResult {
|
|
|
17883
17883
|
* @type {Chain}
|
|
17884
17884
|
* @memberof GetMintRequestResult
|
|
17885
17885
|
*/
|
|
17886
|
-
'chain': Chain$
|
|
17886
|
+
'chain': Chain$2;
|
|
17887
17887
|
/**
|
|
17888
17888
|
* The address of the contract
|
|
17889
17889
|
* @type {string}
|
|
@@ -17969,7 +17969,7 @@ interface NFT {
|
|
|
17969
17969
|
* @type {Chain}
|
|
17970
17970
|
* @memberof NFT
|
|
17971
17971
|
*/
|
|
17972
|
-
'chain': Chain$
|
|
17972
|
+
'chain': Chain$2;
|
|
17973
17973
|
/**
|
|
17974
17974
|
* An `uint256` token id as string
|
|
17975
17975
|
* @type {string}
|
|
@@ -18111,7 +18111,7 @@ interface Token {
|
|
|
18111
18111
|
* @type {Chain}
|
|
18112
18112
|
* @memberof Token
|
|
18113
18113
|
*/
|
|
18114
|
-
'chain': Chain$
|
|
18114
|
+
'chain': Chain$2;
|
|
18115
18115
|
/**
|
|
18116
18116
|
* The address of token contract
|
|
18117
18117
|
* @type {string}
|
|
@@ -18373,7 +18373,7 @@ interface NFTWithOwner {
|
|
|
18373
18373
|
* @type {Chain}
|
|
18374
18374
|
* @memberof NFTWithOwner
|
|
18375
18375
|
*/
|
|
18376
|
-
'chain': Chain$
|
|
18376
|
+
'chain': Chain$2;
|
|
18377
18377
|
/**
|
|
18378
18378
|
* The address of NFT contract
|
|
18379
18379
|
* @type {string}
|
|
@@ -18564,7 +18564,7 @@ interface NFTOwner {
|
|
|
18564
18564
|
* @type {Chain}
|
|
18565
18565
|
* @memberof NFTOwner
|
|
18566
18566
|
*/
|
|
18567
|
-
'chain': Chain$
|
|
18567
|
+
'chain': Chain$2;
|
|
18568
18568
|
/**
|
|
18569
18569
|
* The address of NFT contract
|
|
18570
18570
|
* @type {string}
|
|
@@ -18659,7 +18659,7 @@ interface NFTWithBalance {
|
|
|
18659
18659
|
* @type {Chain}
|
|
18660
18660
|
* @memberof NFTWithBalance
|
|
18661
18661
|
*/
|
|
18662
|
-
'chain': Chain$
|
|
18662
|
+
'chain': Chain$2;
|
|
18663
18663
|
/**
|
|
18664
18664
|
* An `uint256` token id as string
|
|
18665
18665
|
* @type {string}
|
|
@@ -18946,7 +18946,7 @@ interface RefreshCollectionMetadataResult {
|
|
|
18946
18946
|
* @type {Chain}
|
|
18947
18947
|
* @memberof RefreshCollectionMetadataResult
|
|
18948
18948
|
*/
|
|
18949
|
-
'chain': Chain$
|
|
18949
|
+
'chain': Chain$2;
|
|
18950
18950
|
/**
|
|
18951
18951
|
*
|
|
18952
18952
|
* @type {CollectionMetadata}
|
|
@@ -20178,7 +20178,7 @@ declare namespace index_d {
|
|
|
20178
20178
|
index_d_BasicAPIError as BasicAPIError,
|
|
20179
20179
|
index_d_BlockchainMetadata as BlockchainMetadata,
|
|
20180
20180
|
index_d_Burn as Burn,
|
|
20181
|
-
Chain$
|
|
20181
|
+
Chain$2 as Chain,
|
|
20182
20182
|
index_d_ChainWithDetails as ChainWithDetails,
|
|
20183
20183
|
index_d_ChainWithDetailsAllOf as ChainWithDetailsAllOf,
|
|
20184
20184
|
index_d_Collection as Collection,
|
|
@@ -27495,7 +27495,7 @@ type CreateListingRequestBody = {
|
|
|
27495
27495
|
/**
|
|
27496
27496
|
* The chain details
|
|
27497
27497
|
*/
|
|
27498
|
-
type Chain = {
|
|
27498
|
+
type Chain$1 = {
|
|
27499
27499
|
/**
|
|
27500
27500
|
* The id of chain
|
|
27501
27501
|
*/
|
|
@@ -27604,7 +27604,7 @@ type Order$1 = {
|
|
|
27604
27604
|
account_address: string;
|
|
27605
27605
|
buy: Array<Item>;
|
|
27606
27606
|
fees: Array<Fee$2>;
|
|
27607
|
-
chain: Chain;
|
|
27607
|
+
chain: Chain$1;
|
|
27608
27608
|
/**
|
|
27609
27609
|
* Time the Order is created
|
|
27610
27610
|
*/
|
|
@@ -27715,7 +27715,7 @@ type Trade$1 = {
|
|
|
27715
27715
|
buy: Array<Item>;
|
|
27716
27716
|
buyer_address: string;
|
|
27717
27717
|
buyer_fees: Array<Fee$2>;
|
|
27718
|
-
chain: Chain;
|
|
27718
|
+
chain: Chain$1;
|
|
27719
27719
|
order_id: string;
|
|
27720
27720
|
blockchain_metadata: TradeBlockchainMetadata;
|
|
27721
27721
|
/**
|
|
@@ -32063,6 +32063,359 @@ declare namespace x_d {
|
|
|
32063
32063
|
};
|
|
32064
32064
|
}
|
|
32065
32065
|
|
|
32066
|
+
interface BlockChainMetadata {
|
|
32067
|
+
log_index: string;
|
|
32068
|
+
block_number: string;
|
|
32069
|
+
transaction_hash: string;
|
|
32070
|
+
transaction_index: string;
|
|
32071
|
+
}
|
|
32072
|
+
interface Chain {
|
|
32073
|
+
id: string;
|
|
32074
|
+
name: string;
|
|
32075
|
+
}
|
|
32076
|
+
interface ZkevmActivityMint {
|
|
32077
|
+
event_name: 'imtbl_zkevm_activity_mint';
|
|
32078
|
+
event_id: string;
|
|
32079
|
+
chain: string;
|
|
32080
|
+
data: {
|
|
32081
|
+
id: string;
|
|
32082
|
+
chain: Chain;
|
|
32083
|
+
details: {
|
|
32084
|
+
to: string;
|
|
32085
|
+
asset: {
|
|
32086
|
+
token_id: string;
|
|
32087
|
+
contract_type: string;
|
|
32088
|
+
contract_address: string;
|
|
32089
|
+
};
|
|
32090
|
+
amount: string;
|
|
32091
|
+
};
|
|
32092
|
+
indexed_at: string;
|
|
32093
|
+
activity_type: string;
|
|
32094
|
+
blockchain_metadata: BlockChainMetadata;
|
|
32095
|
+
};
|
|
32096
|
+
}
|
|
32097
|
+
interface ZkevmActivityBurn {
|
|
32098
|
+
event_name: 'imtbl_zkevm_activity_burn';
|
|
32099
|
+
event_id: string;
|
|
32100
|
+
chain: string;
|
|
32101
|
+
data: {
|
|
32102
|
+
id: string;
|
|
32103
|
+
chain: Chain;
|
|
32104
|
+
details: {
|
|
32105
|
+
from: string;
|
|
32106
|
+
asset: {
|
|
32107
|
+
token_id: string;
|
|
32108
|
+
contract_type: string;
|
|
32109
|
+
contract_address: string;
|
|
32110
|
+
};
|
|
32111
|
+
amount: string;
|
|
32112
|
+
};
|
|
32113
|
+
indexed_at: string;
|
|
32114
|
+
activity_type: string;
|
|
32115
|
+
blockchain_metadata: BlockChainMetadata;
|
|
32116
|
+
};
|
|
32117
|
+
}
|
|
32118
|
+
interface ZkevmActivityTransfer {
|
|
32119
|
+
event_name: 'imtbl_zkevm_activity_transfer';
|
|
32120
|
+
event_id: string;
|
|
32121
|
+
chain: string;
|
|
32122
|
+
data: {
|
|
32123
|
+
id: string;
|
|
32124
|
+
chain: Chain;
|
|
32125
|
+
details: {
|
|
32126
|
+
to: string;
|
|
32127
|
+
from: string;
|
|
32128
|
+
asset: {
|
|
32129
|
+
token_id: string;
|
|
32130
|
+
contract_type: string;
|
|
32131
|
+
contract_address: string;
|
|
32132
|
+
};
|
|
32133
|
+
amount: string;
|
|
32134
|
+
};
|
|
32135
|
+
indexed_at: string;
|
|
32136
|
+
activity_type: string;
|
|
32137
|
+
blockchain_metadata: BlockChainMetadata;
|
|
32138
|
+
};
|
|
32139
|
+
}
|
|
32140
|
+
interface ZkevmActivitySale {
|
|
32141
|
+
event_name: 'imtbl_zkevm_activity_sale';
|
|
32142
|
+
event_id: string;
|
|
32143
|
+
chain: string;
|
|
32144
|
+
data: {
|
|
32145
|
+
id: string;
|
|
32146
|
+
chain: Chain;
|
|
32147
|
+
details: {
|
|
32148
|
+
to: string;
|
|
32149
|
+
from: string;
|
|
32150
|
+
asset: {
|
|
32151
|
+
amount: string;
|
|
32152
|
+
token_id: string;
|
|
32153
|
+
contract_type: string;
|
|
32154
|
+
contract_address: string;
|
|
32155
|
+
}[];
|
|
32156
|
+
payment: {
|
|
32157
|
+
fees: {
|
|
32158
|
+
amount: string;
|
|
32159
|
+
fee_type: string;
|
|
32160
|
+
recipient: string;
|
|
32161
|
+
}[];
|
|
32162
|
+
token: {
|
|
32163
|
+
symbol: string;
|
|
32164
|
+
contract_type: string;
|
|
32165
|
+
contract_address: string;
|
|
32166
|
+
};
|
|
32167
|
+
price_excluding_fees: string;
|
|
32168
|
+
price_including_fees: string;
|
|
32169
|
+
};
|
|
32170
|
+
order_id: string;
|
|
32171
|
+
};
|
|
32172
|
+
indexed_at: string;
|
|
32173
|
+
activity_type: string;
|
|
32174
|
+
blockchain_metadata: BlockChainMetadata;
|
|
32175
|
+
};
|
|
32176
|
+
}
|
|
32177
|
+
interface ZkevmActivityDeposit {
|
|
32178
|
+
event_name: 'imtbl_zkevm_activity_deposit';
|
|
32179
|
+
event_id: string;
|
|
32180
|
+
chain: string;
|
|
32181
|
+
data: {
|
|
32182
|
+
id: string;
|
|
32183
|
+
chain: Chain;
|
|
32184
|
+
details: {
|
|
32185
|
+
amount: string;
|
|
32186
|
+
asset: {
|
|
32187
|
+
contract_type: string;
|
|
32188
|
+
contract_address: string;
|
|
32189
|
+
};
|
|
32190
|
+
to: string;
|
|
32191
|
+
};
|
|
32192
|
+
indexed_at: string;
|
|
32193
|
+
activity_type: string;
|
|
32194
|
+
blockchain_metadata: BlockChainMetadata;
|
|
32195
|
+
};
|
|
32196
|
+
}
|
|
32197
|
+
interface ZkevmActivityWithdrawal {
|
|
32198
|
+
event_name: 'imtbl_zkevm_activity_withdrawal';
|
|
32199
|
+
event_id: string;
|
|
32200
|
+
chain: string;
|
|
32201
|
+
data: {
|
|
32202
|
+
id: string;
|
|
32203
|
+
chain: Chain;
|
|
32204
|
+
details: {
|
|
32205
|
+
amount: string;
|
|
32206
|
+
asset: {
|
|
32207
|
+
contract_type: string;
|
|
32208
|
+
contract_address: string;
|
|
32209
|
+
};
|
|
32210
|
+
from: string;
|
|
32211
|
+
};
|
|
32212
|
+
indexed_at: string;
|
|
32213
|
+
activity_type: string;
|
|
32214
|
+
blockchain_metadata: BlockChainMetadata;
|
|
32215
|
+
};
|
|
32216
|
+
}
|
|
32217
|
+
interface ZkevmCollectionUpdated {
|
|
32218
|
+
event_name: 'imtbl_zkevm_collection_updated';
|
|
32219
|
+
event_id: string;
|
|
32220
|
+
chain: string;
|
|
32221
|
+
data: {
|
|
32222
|
+
chain: Chain;
|
|
32223
|
+
contract_address: string;
|
|
32224
|
+
indexed_at: string;
|
|
32225
|
+
updated_at: string;
|
|
32226
|
+
contract_type: string;
|
|
32227
|
+
symbol: string | null;
|
|
32228
|
+
name: string | null;
|
|
32229
|
+
image: string | null;
|
|
32230
|
+
contract_uri: string | null;
|
|
32231
|
+
description: string | null;
|
|
32232
|
+
external_link: string | null;
|
|
32233
|
+
metadata_synced_at: string | null;
|
|
32234
|
+
decimals: string | null;
|
|
32235
|
+
root_contract_address: string | null;
|
|
32236
|
+
};
|
|
32237
|
+
}
|
|
32238
|
+
interface ZkevmNftUpdated {
|
|
32239
|
+
event_name: 'imtbl_zkevm_nft_updated';
|
|
32240
|
+
event_id: string;
|
|
32241
|
+
chain: string;
|
|
32242
|
+
data: {
|
|
32243
|
+
chain: Chain;
|
|
32244
|
+
contract_address: string;
|
|
32245
|
+
indexed_at: string;
|
|
32246
|
+
metadata_synced_at: string | null;
|
|
32247
|
+
token_id: string;
|
|
32248
|
+
metadata_id: string | null;
|
|
32249
|
+
};
|
|
32250
|
+
}
|
|
32251
|
+
interface ZkevmMintRequestUpdated {
|
|
32252
|
+
event_name: 'imtbl_zkevm_mint_request_updated';
|
|
32253
|
+
event_id: string;
|
|
32254
|
+
chain: string;
|
|
32255
|
+
data: {
|
|
32256
|
+
chain: Chain;
|
|
32257
|
+
contract_address: string;
|
|
32258
|
+
owner_address: string;
|
|
32259
|
+
reference_id: string;
|
|
32260
|
+
metadata_id: string;
|
|
32261
|
+
token_id: string | null;
|
|
32262
|
+
status: string;
|
|
32263
|
+
transaction_hash: string | null;
|
|
32264
|
+
activity_id: string | null;
|
|
32265
|
+
error: {
|
|
32266
|
+
code: string;
|
|
32267
|
+
message: string;
|
|
32268
|
+
} | null;
|
|
32269
|
+
created_at: string;
|
|
32270
|
+
updated_at: string;
|
|
32271
|
+
amount?: number;
|
|
32272
|
+
};
|
|
32273
|
+
}
|
|
32274
|
+
interface ZkevmMetadataUpdated {
|
|
32275
|
+
event_name: 'imtbl_zkevm_metadata_updated';
|
|
32276
|
+
event_id: string;
|
|
32277
|
+
chain: string;
|
|
32278
|
+
data: {
|
|
32279
|
+
id: string;
|
|
32280
|
+
chain: Chain;
|
|
32281
|
+
contract_address: string;
|
|
32282
|
+
image: string | null;
|
|
32283
|
+
external_url: string | null;
|
|
32284
|
+
description: string | null;
|
|
32285
|
+
name: string | null;
|
|
32286
|
+
attributes: {
|
|
32287
|
+
trait_type: string;
|
|
32288
|
+
value: string;
|
|
32289
|
+
}[];
|
|
32290
|
+
animation_url: string | null;
|
|
32291
|
+
youtube_url: string | null;
|
|
32292
|
+
created_at: string;
|
|
32293
|
+
updated_at: string;
|
|
32294
|
+
};
|
|
32295
|
+
}
|
|
32296
|
+
interface ZkevmTokenUpdated {
|
|
32297
|
+
event_name: 'imtbl_zkevm_token_updated';
|
|
32298
|
+
event_id: string;
|
|
32299
|
+
chain: string;
|
|
32300
|
+
data: {
|
|
32301
|
+
chain: Chain;
|
|
32302
|
+
contract_address: string;
|
|
32303
|
+
indexed_at: string;
|
|
32304
|
+
updated_at: string;
|
|
32305
|
+
contract_type: string;
|
|
32306
|
+
symbol: string;
|
|
32307
|
+
name: string;
|
|
32308
|
+
image: string | null;
|
|
32309
|
+
contract_uri: string | null;
|
|
32310
|
+
description: string | null;
|
|
32311
|
+
external_link: string | null;
|
|
32312
|
+
metadata_synced_at: string | null;
|
|
32313
|
+
decimals: number;
|
|
32314
|
+
root_contract_address: string | null;
|
|
32315
|
+
};
|
|
32316
|
+
}
|
|
32317
|
+
interface ZkevmOrderUpdated {
|
|
32318
|
+
event_name: 'imtbl_zkevm_order_updated';
|
|
32319
|
+
event_id: string;
|
|
32320
|
+
chain: string;
|
|
32321
|
+
data: {
|
|
32322
|
+
id: string;
|
|
32323
|
+
buy: {
|
|
32324
|
+
item_type: string;
|
|
32325
|
+
end_amount: string;
|
|
32326
|
+
start_amount: string;
|
|
32327
|
+
contract_address: string;
|
|
32328
|
+
}[];
|
|
32329
|
+
hash: string;
|
|
32330
|
+
salt: string;
|
|
32331
|
+
sell: {
|
|
32332
|
+
token_id: string;
|
|
32333
|
+
item_type: string;
|
|
32334
|
+
end_amount: string;
|
|
32335
|
+
start_amount: string;
|
|
32336
|
+
contract_address: string;
|
|
32337
|
+
}[];
|
|
32338
|
+
status: string;
|
|
32339
|
+
fill_status: {
|
|
32340
|
+
denominator: string;
|
|
32341
|
+
numerator: string;
|
|
32342
|
+
};
|
|
32343
|
+
chain_id: string;
|
|
32344
|
+
end_time: number;
|
|
32345
|
+
signature: string;
|
|
32346
|
+
buyer_fees: {
|
|
32347
|
+
amount: string;
|
|
32348
|
+
fee_type: string;
|
|
32349
|
+
recipient: string;
|
|
32350
|
+
}[];
|
|
32351
|
+
created_at: number;
|
|
32352
|
+
start_time: number;
|
|
32353
|
+
updated_at: number;
|
|
32354
|
+
protocol_data: {
|
|
32355
|
+
counter: string;
|
|
32356
|
+
order_type: string;
|
|
32357
|
+
zone_address: string;
|
|
32358
|
+
seaport_address: string;
|
|
32359
|
+
seaport_version: string;
|
|
32360
|
+
};
|
|
32361
|
+
account_address: string;
|
|
32362
|
+
};
|
|
32363
|
+
}
|
|
32364
|
+
interface ZkevmTradeCreated {
|
|
32365
|
+
event_name: 'imtbl_zkevm_trade_created';
|
|
32366
|
+
event_id: string;
|
|
32367
|
+
chain: string;
|
|
32368
|
+
data: {
|
|
32369
|
+
id: string;
|
|
32370
|
+
tx_hash: string;
|
|
32371
|
+
chain_id: string;
|
|
32372
|
+
order_id: string;
|
|
32373
|
+
buy_items: {
|
|
32374
|
+
amount: string;
|
|
32375
|
+
item_type: string;
|
|
32376
|
+
contract_address: string;
|
|
32377
|
+
}[];
|
|
32378
|
+
buyer_fees: {
|
|
32379
|
+
amount: string;
|
|
32380
|
+
fee_type: string;
|
|
32381
|
+
recipient: string;
|
|
32382
|
+
}[];
|
|
32383
|
+
sell_items: {
|
|
32384
|
+
amount: string;
|
|
32385
|
+
token_id: string;
|
|
32386
|
+
item_type: string;
|
|
32387
|
+
contract_address: string;
|
|
32388
|
+
}[];
|
|
32389
|
+
block_number: string;
|
|
32390
|
+
buyer_address: string;
|
|
32391
|
+
seller_address: string;
|
|
32392
|
+
tx_index_in_block: string;
|
|
32393
|
+
log_index_in_block: string;
|
|
32394
|
+
};
|
|
32395
|
+
}
|
|
32396
|
+
|
|
32397
|
+
type WebhookHandlers = {
|
|
32398
|
+
zkevmMintRequestUpdated?: (event: ZkevmMintRequestUpdated) => Promise<void>;
|
|
32399
|
+
zkEvmActivityMint?: (event: ZkevmActivityMint) => Promise<void>;
|
|
32400
|
+
zkEvmActivityBurn?: (event: ZkevmActivityBurn) => Promise<void>;
|
|
32401
|
+
zkEvmActivityTransfer?: (event: ZkevmActivityTransfer) => Promise<void>;
|
|
32402
|
+
zkEvmActivitySale?: (event: ZkevmActivitySale) => Promise<void>;
|
|
32403
|
+
zkEvmActivityDeposit?: (event: ZkevmActivityDeposit) => Promise<void>;
|
|
32404
|
+
zkEvmActivityWithdrawal?: (event: ZkevmActivityWithdrawal) => Promise<void>;
|
|
32405
|
+
zkEvmCollectionUpdated?: (event: ZkevmCollectionUpdated) => Promise<void>;
|
|
32406
|
+
zkEvmNftUpdated?: (event: ZkevmNftUpdated) => Promise<void>;
|
|
32407
|
+
zkEvmMetadataUpdated?: (event: ZkevmMetadataUpdated) => Promise<void>;
|
|
32408
|
+
zkEvmTokenUpdated?: (event: ZkevmTokenUpdated) => Promise<void>;
|
|
32409
|
+
zkEvmOrderUpdated?: (event: ZkevmOrderUpdated) => Promise<void>;
|
|
32410
|
+
zkEvmTradeCreated?: (event: ZkevmTradeCreated) => Promise<void>;
|
|
32411
|
+
xNftCreated?: (event: Asset) => Promise<void>;
|
|
32412
|
+
xNftUpdated?: (event: Asset) => Promise<void>;
|
|
32413
|
+
xOrderAccepted?: (event: OrderV3) => Promise<void>;
|
|
32414
|
+
xOrderFilled?: (event: OrderV3) => Promise<void>;
|
|
32415
|
+
xOrderCancelled?: (event: OrderV3) => Promise<void>;
|
|
32416
|
+
xTransferCreated?: (event: Transfer$2) => Promise<void>;
|
|
32417
|
+
all?: (event: any) => Promise<void>;
|
|
32418
|
+
};
|
|
32066
32419
|
/**
|
|
32067
32420
|
* handle will validate webhook message origin and verify signature of the message and calls corresponding handlers passed in.
|
|
32068
32421
|
* @param body The request body to a webhook endpoint in json string or js object form.
|
|
@@ -32070,14 +32423,43 @@ declare namespace x_d {
|
|
|
32070
32423
|
* @param handlers The optional handlers object for different events. The `all` handler will be triggered for all event types.
|
|
32071
32424
|
* @returns The event object from the webhook message after validation and verification.
|
|
32072
32425
|
*/
|
|
32073
|
-
declare const handle: (body: string | Record<string, unknown>, env: Environment, handlers?:
|
|
32074
|
-
|
|
32075
|
-
|
|
32076
|
-
|
|
32077
|
-
|
|
32426
|
+
declare const handle: (body: string | Record<string, unknown>, env: Environment, handlers?: WebhookHandlers) => Promise<any>;
|
|
32427
|
+
|
|
32428
|
+
type webhook_d_BlockChainMetadata = BlockChainMetadata;
|
|
32429
|
+
type webhook_d_Chain = Chain;
|
|
32430
|
+
type webhook_d_WebhookHandlers = WebhookHandlers;
|
|
32431
|
+
type webhook_d_ZkevmActivityBurn = ZkevmActivityBurn;
|
|
32432
|
+
type webhook_d_ZkevmActivityDeposit = ZkevmActivityDeposit;
|
|
32433
|
+
type webhook_d_ZkevmActivityMint = ZkevmActivityMint;
|
|
32434
|
+
type webhook_d_ZkevmActivitySale = ZkevmActivitySale;
|
|
32435
|
+
type webhook_d_ZkevmActivityTransfer = ZkevmActivityTransfer;
|
|
32436
|
+
type webhook_d_ZkevmActivityWithdrawal = ZkevmActivityWithdrawal;
|
|
32437
|
+
type webhook_d_ZkevmCollectionUpdated = ZkevmCollectionUpdated;
|
|
32438
|
+
type webhook_d_ZkevmMetadataUpdated = ZkevmMetadataUpdated;
|
|
32439
|
+
type webhook_d_ZkevmMintRequestUpdated = ZkevmMintRequestUpdated;
|
|
32440
|
+
type webhook_d_ZkevmNftUpdated = ZkevmNftUpdated;
|
|
32441
|
+
type webhook_d_ZkevmOrderUpdated = ZkevmOrderUpdated;
|
|
32442
|
+
type webhook_d_ZkevmTokenUpdated = ZkevmTokenUpdated;
|
|
32443
|
+
type webhook_d_ZkevmTradeCreated = ZkevmTradeCreated;
|
|
32078
32444
|
declare const webhook_d_handle: typeof handle;
|
|
32079
32445
|
declare namespace webhook_d {
|
|
32080
32446
|
export {
|
|
32447
|
+
webhook_d_BlockChainMetadata as BlockChainMetadata,
|
|
32448
|
+
webhook_d_Chain as Chain,
|
|
32449
|
+
webhook_d_WebhookHandlers as WebhookHandlers,
|
|
32450
|
+
webhook_d_ZkevmActivityBurn as ZkevmActivityBurn,
|
|
32451
|
+
webhook_d_ZkevmActivityDeposit as ZkevmActivityDeposit,
|
|
32452
|
+
webhook_d_ZkevmActivityMint as ZkevmActivityMint,
|
|
32453
|
+
webhook_d_ZkevmActivitySale as ZkevmActivitySale,
|
|
32454
|
+
webhook_d_ZkevmActivityTransfer as ZkevmActivityTransfer,
|
|
32455
|
+
webhook_d_ZkevmActivityWithdrawal as ZkevmActivityWithdrawal,
|
|
32456
|
+
webhook_d_ZkevmCollectionUpdated as ZkevmCollectionUpdated,
|
|
32457
|
+
webhook_d_ZkevmMetadataUpdated as ZkevmMetadataUpdated,
|
|
32458
|
+
webhook_d_ZkevmMintRequestUpdated as ZkevmMintRequestUpdated,
|
|
32459
|
+
webhook_d_ZkevmNftUpdated as ZkevmNftUpdated,
|
|
32460
|
+
webhook_d_ZkevmOrderUpdated as ZkevmOrderUpdated,
|
|
32461
|
+
webhook_d_ZkevmTokenUpdated as ZkevmTokenUpdated,
|
|
32462
|
+
webhook_d_ZkevmTradeCreated as ZkevmTradeCreated,
|
|
32081
32463
|
webhook_d_handle as handle,
|
|
32082
32464
|
};
|
|
32083
32465
|
}
|
|
@@ -32139,33 +32521,7 @@ declare const submitMintingRequests: (mintingPersistence: MintingPersistence, bl
|
|
|
32139
32521
|
chainName?: string | undefined;
|
|
32140
32522
|
maxNumberOfTries?: number | undefined;
|
|
32141
32523
|
}, logger?: Logger) => Promise<never>;
|
|
32142
|
-
|
|
32143
|
-
event_name: string;
|
|
32144
|
-
chain: string;
|
|
32145
|
-
event_id: string;
|
|
32146
|
-
data: {
|
|
32147
|
-
chain: {
|
|
32148
|
-
id: string;
|
|
32149
|
-
name: string;
|
|
32150
|
-
};
|
|
32151
|
-
contract_address: string;
|
|
32152
|
-
owner_address: string;
|
|
32153
|
-
reference_id: string;
|
|
32154
|
-
metadata_id: string;
|
|
32155
|
-
token_id: string | null;
|
|
32156
|
-
status: string;
|
|
32157
|
-
transaction_hash: string | null;
|
|
32158
|
-
activity_id: string | null;
|
|
32159
|
-
error: {
|
|
32160
|
-
code: string;
|
|
32161
|
-
message: string;
|
|
32162
|
-
} | null;
|
|
32163
|
-
created_at: string;
|
|
32164
|
-
updated_at: string;
|
|
32165
|
-
amount?: number;
|
|
32166
|
-
};
|
|
32167
|
-
};
|
|
32168
|
-
declare const processMint: (mintingPersistence: MintingPersistence, event: MintRequestEvent, logger?: Logger) => Promise<void>;
|
|
32524
|
+
declare const processMint: (mintingPersistence: MintingPersistence, event: ZkevmMintRequestUpdated, logger?: Logger) => Promise<void>;
|
|
32169
32525
|
|
|
32170
32526
|
interface MintingBackendModuleConfiguration extends ModuleConfiguration<undefined> {
|
|
32171
32527
|
persistence: MintingPersistence;
|
|
@@ -32184,8 +32540,7 @@ declare class MintingBackendModule {
|
|
|
32184
32540
|
maxNumberOfTries?: number;
|
|
32185
32541
|
}): Promise<void>;
|
|
32186
32542
|
processMint(body: string | Record<string, unknown>, otherHandlers?: {
|
|
32187
|
-
zkevmMintRequestUpdated: (event:
|
|
32188
|
-
all: (..._args: any) => Promise<void>;
|
|
32543
|
+
zkevmMintRequestUpdated: (event: ZkevmMintRequestUpdated) => Promise<void>;
|
|
32189
32544
|
}): Promise<void>;
|
|
32190
32545
|
}
|
|
32191
32546
|
|