@imtbl/sdk 1.35.2-alpha → 1.35.3
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/{BridgeWidget-22c8b08d.js → BridgeWidget-b9e736eb.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-aeb5d57c.js → OnRampWidget-08bfa49c.js} +1 -1
- package/dist/browser/checkout/{SaleWidget-93a4fffd.js → SaleWidget-62cda384.js} +1 -1
- package/dist/browser/checkout/{SpendingCapHero-8459b91d.js → SpendingCapHero-341cfc38.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-11ecb4ae.js → SwapWidget-40adbff0.js} +1 -1
- package/dist/browser/checkout/{TopUpView-ad058510.js → TopUpView-17d237f3.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-920b03b4.js → WalletWidget-a19ab89c.js} +1 -1
- package/dist/browser/checkout/{auto-track-469b3ba5.js → auto-track-ffcab507.js} +1 -1
- package/dist/browser/checkout/{balance-c9c03af5.js → balance-4d6f9b6f.js} +1 -1
- package/dist/browser/checkout/{index-06896b92.js → index-11eefc56.js} +1 -1
- package/dist/browser/checkout/{index-09b1efac.js → index-317dcefc.js} +1 -1
- package/dist/browser/checkout/{index-9997f064.js → index-4fb1863d.js} +1 -1
- package/dist/browser/checkout/{index-e5f07d9e.js → index-7a9fdf09.js} +2 -2
- package/dist/browser/checkout/{index-cbf7168d.js → index-9a663258.js} +1 -1
- package/dist/browser/checkout/{index-37c4003a.js → index-ab21662b.js} +1 -1
- package/dist/browser/checkout/index-bafd7f6d.js +1 -0
- package/dist/browser/checkout/{index-c53e5321.js → index-be2f6fa5.js} +1 -1
- package/dist/browser/checkout/{index.umd-e783a603.js → index.umd-cb823fd6.js} +1 -1
- package/dist/browser/checkout/{retry-10de11e8.js → retry-0002f89a.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +1 -1
- package/dist/checkout.d.ts +14 -2
- package/dist/checkout.js +18 -13
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +89 -578
- package/dist/index.d.ts +21 -114
- package/dist/index.js +90 -577
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +64 -55
- package/dist/x.js +3 -3
- package/package.json +1 -9
- package/dist/browser/checkout/index-1b8b7ce9.js +0 -1
- package/dist/minting_backend.d.ts +0 -3506
- package/dist/minting_backend.js +0 -447
- package/dist/webhook.d.ts +0 -11
- package/dist/webhook.js +0 -388
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Pool } from 'pg';
|
|
3
|
-
|
|
4
2
|
declare enum Environment {
|
|
5
3
|
PRODUCTION = "production",
|
|
6
4
|
SANDBOX = "sandbox"
|
|
@@ -7843,7 +7841,7 @@ interface MintUser$1 {
|
|
|
7843
7841
|
* @export
|
|
7844
7842
|
* @interface MintRequest
|
|
7845
7843
|
*/
|
|
7846
|
-
interface MintRequest$
|
|
7844
|
+
interface MintRequest$1 {
|
|
7847
7845
|
/**
|
|
7848
7846
|
* Signature from authorised minter
|
|
7849
7847
|
* @type {string}
|
|
@@ -10822,7 +10820,7 @@ interface MintsApiMintTokensRequest$1 {
|
|
|
10822
10820
|
* @type {Array<MintRequest>}
|
|
10823
10821
|
* @memberof MintsApiMintTokens
|
|
10824
10822
|
*/
|
|
10825
|
-
readonly mintTokensRequestV2: Array<MintRequest$
|
|
10823
|
+
readonly mintTokensRequestV2: Array<MintRequest$1>;
|
|
10826
10824
|
}
|
|
10827
10825
|
/**
|
|
10828
10826
|
* MintsApi - object-oriented interface
|
|
@@ -21028,7 +21026,7 @@ type UnsignedTransferRequest = TokenAmount & {
|
|
|
21028
21026
|
/**
|
|
21029
21027
|
* Parameter required to Mint tokens
|
|
21030
21028
|
*/
|
|
21031
|
-
type UnsignedMintRequest = Omit<MintRequest$
|
|
21029
|
+
type UnsignedMintRequest = Omit<MintRequest$1, 'auth_signature'>;
|
|
21032
21030
|
/**
|
|
21033
21031
|
* Parameter required to create a Transfer
|
|
21034
21032
|
*/
|
|
@@ -21186,7 +21184,7 @@ interface MetadataSchemaRequest extends MetadataSchemaRequest$1 {
|
|
|
21186
21184
|
}
|
|
21187
21185
|
interface MintFee extends MintFee$1 {
|
|
21188
21186
|
}
|
|
21189
|
-
interface MintRequest
|
|
21187
|
+
interface MintRequest extends MintRequest$1 {
|
|
21190
21188
|
}
|
|
21191
21189
|
interface MintTokenDataV2 extends MintTokenDataV2$1 {
|
|
21192
21190
|
}
|
|
@@ -26066,7 +26064,7 @@ type BuyOrder = {
|
|
|
26066
26064
|
*/
|
|
26067
26065
|
type SellOrder = {
|
|
26068
26066
|
/** the token to be listed for sale */
|
|
26069
|
-
sellToken:
|
|
26067
|
+
sellToken: SellToken;
|
|
26070
26068
|
/** the token info of the price of the item */
|
|
26071
26069
|
buyToken: BuyToken;
|
|
26072
26070
|
/** optional array of makerFees to be applied to the listing */
|
|
@@ -26108,7 +26106,7 @@ type ERC20BuyToken = {
|
|
|
26108
26106
|
* Represents the token listed for sale.
|
|
26109
26107
|
* ERC721SellToken or ERC1155SellToken {@link Checkout.smartCheckout}.
|
|
26110
26108
|
*/
|
|
26111
|
-
type SellToken = ERC721SellToken | ERC1155SellToken;
|
|
26109
|
+
type SellToken = DeprecatedERC721SellToken | ERC721SellToken | ERC1155SellToken;
|
|
26112
26110
|
/**
|
|
26113
26111
|
* The ERC721SellToken type
|
|
26114
26112
|
* @property {string} id
|
|
@@ -26121,6 +26119,18 @@ type ERC721SellToken = {
|
|
|
26121
26119
|
/** The ERC721 collection address */
|
|
26122
26120
|
collectionAddress: string;
|
|
26123
26121
|
};
|
|
26122
|
+
/**
|
|
26123
|
+
* The original ERC721SellToken type, before the introduction of the ItemType enum
|
|
26124
|
+
* @property {string} id
|
|
26125
|
+
* @property {string} collectionAddress
|
|
26126
|
+
* @deprecated
|
|
26127
|
+
*/
|
|
26128
|
+
type DeprecatedERC721SellToken = {
|
|
26129
|
+
/** The ERC721 token id */
|
|
26130
|
+
id: string;
|
|
26131
|
+
/** The ERC721 collection address */
|
|
26132
|
+
collectionAddress: string;
|
|
26133
|
+
};
|
|
26124
26134
|
/**
|
|
26125
26135
|
* The ERC1155SellToken type
|
|
26126
26136
|
* @property {string} id
|
|
@@ -29137,6 +29147,7 @@ declare const x_d_MetadataRefreshesApi: typeof MetadataRefreshesApi;
|
|
|
29137
29147
|
type x_d_MetadataSchemaRequest = MetadataSchemaRequest;
|
|
29138
29148
|
declare const x_d_MetadataSchemaRequestTypeEnum: typeof MetadataSchemaRequestTypeEnum;
|
|
29139
29149
|
type x_d_MintFee = MintFee;
|
|
29150
|
+
type x_d_MintRequest = MintRequest;
|
|
29140
29151
|
type x_d_MintTokenDataV2 = MintTokenDataV2;
|
|
29141
29152
|
type x_d_MintTokensResponse = MintTokensResponse;
|
|
29142
29153
|
type x_d_MintUser = MintUser;
|
|
@@ -29279,7 +29290,7 @@ declare namespace x_d {
|
|
|
29279
29290
|
x_d_MetadataSchemaRequest as MetadataSchemaRequest,
|
|
29280
29291
|
x_d_MetadataSchemaRequestTypeEnum as MetadataSchemaRequestTypeEnum,
|
|
29281
29292
|
x_d_MintFee as MintFee,
|
|
29282
|
-
|
|
29293
|
+
x_d_MintRequest as MintRequest,
|
|
29283
29294
|
x_d_MintTokenDataV2 as MintTokenDataV2,
|
|
29284
29295
|
x_d_MintTokensResponse as MintTokensResponse,
|
|
29285
29296
|
x_d_MintUser as MintUser,
|
|
@@ -29343,108 +29354,4 @@ declare namespace x_d {
|
|
|
29343
29354
|
};
|
|
29344
29355
|
}
|
|
29345
29356
|
|
|
29346
|
-
|
|
29347
|
-
zkevmMintRequestUpdated: (event: any) => Promise<void>;
|
|
29348
|
-
others?: ((event: any) => Promise<void>) | undefined;
|
|
29349
|
-
}) => Promise<void>;
|
|
29350
|
-
|
|
29351
|
-
declare const webhook_d_init: typeof init;
|
|
29352
|
-
declare namespace webhook_d {
|
|
29353
|
-
export {
|
|
29354
|
-
webhook_d_init as init,
|
|
29355
|
-
};
|
|
29356
|
-
}
|
|
29357
|
-
|
|
29358
|
-
type CreateMintRequest = {
|
|
29359
|
-
contract_address: string;
|
|
29360
|
-
asset_id: string;
|
|
29361
|
-
metadata: any;
|
|
29362
|
-
owner_address: string;
|
|
29363
|
-
};
|
|
29364
|
-
type MintRequest = {
|
|
29365
|
-
id: string;
|
|
29366
|
-
contract_address: string;
|
|
29367
|
-
wallet_address: string;
|
|
29368
|
-
asset_id: string;
|
|
29369
|
-
metadata: any;
|
|
29370
|
-
owner_address: string;
|
|
29371
|
-
tried_count: number;
|
|
29372
|
-
};
|
|
29373
|
-
type SubmittedMintRequest = {
|
|
29374
|
-
tokenId: string | null;
|
|
29375
|
-
status: string;
|
|
29376
|
-
assetId: string;
|
|
29377
|
-
contractAddress: string;
|
|
29378
|
-
ownerAddress: string;
|
|
29379
|
-
metadataId: string;
|
|
29380
|
-
imtblZkevmMintRequestUpdatedId: string;
|
|
29381
|
-
error: any | null;
|
|
29382
|
-
};
|
|
29383
|
-
interface MintingPersistence {
|
|
29384
|
-
recordMint: (request: CreateMintRequest) => Promise<void>;
|
|
29385
|
-
getNextBatchForSubmission: (limit: number) => Promise<MintRequest[]>;
|
|
29386
|
-
updateMintingStatusToSubmitted: (ids: string[]) => Promise<void>;
|
|
29387
|
-
updateMintingStatusToSubmissionFailed: (ids: string[]) => Promise<void>;
|
|
29388
|
-
syncMintingStatus: (submittedMintRequest: SubmittedMintRequest) => Promise<void>;
|
|
29389
|
-
markAsConflict: (assetIds: string[], contractAddress: string) => Promise<void>;
|
|
29390
|
-
resetMintingStatus: (ids: string[]) => Promise<void>;
|
|
29391
|
-
markForRetry: (ids: string[]) => Promise<void>;
|
|
29392
|
-
getMintingRequest: (contractAddress: string, referenceId: string) => Promise<MintRequest | null>;
|
|
29393
|
-
}
|
|
29394
|
-
|
|
29395
|
-
declare const mintingPersistence$1: (client: Pool) => MintingPersistence;
|
|
29396
|
-
|
|
29397
|
-
declare const mintingPersistence: (client: any) => MintingPersistence;
|
|
29398
|
-
|
|
29399
|
-
interface Logger {
|
|
29400
|
-
info: (message: string) => void;
|
|
29401
|
-
error: (message: any) => void;
|
|
29402
|
-
}
|
|
29403
|
-
|
|
29404
|
-
declare const recordMint: (mintingPersistence: MintingPersistence, mintRequest: CreateMintRequest) => Promise<void>;
|
|
29405
|
-
declare const submitMintingRequests: (mintingPersistence: MintingPersistence, blockchainDataSDKClient: BlockchainData, { defaultBatchSize, chainName, maxNumberOfTries, }: {
|
|
29406
|
-
defaultBatchSize?: number | undefined;
|
|
29407
|
-
chainName?: string | undefined;
|
|
29408
|
-
maxNumberOfTries?: number | undefined;
|
|
29409
|
-
}, logger?: Logger) => Promise<never>;
|
|
29410
|
-
type MintRequestEvent = {
|
|
29411
|
-
event_name: string;
|
|
29412
|
-
chain: string;
|
|
29413
|
-
event_id: string;
|
|
29414
|
-
data: {
|
|
29415
|
-
chain: {
|
|
29416
|
-
id: string;
|
|
29417
|
-
name: string;
|
|
29418
|
-
};
|
|
29419
|
-
contract_address: string;
|
|
29420
|
-
owner_address: string;
|
|
29421
|
-
reference_id: string;
|
|
29422
|
-
metadata_id: string;
|
|
29423
|
-
token_id: string | null;
|
|
29424
|
-
status: string;
|
|
29425
|
-
transaction_hash: string | null;
|
|
29426
|
-
activity_id: string | null;
|
|
29427
|
-
error: {
|
|
29428
|
-
code: string;
|
|
29429
|
-
message: string;
|
|
29430
|
-
} | null;
|
|
29431
|
-
created_at: string;
|
|
29432
|
-
updated_at: string;
|
|
29433
|
-
};
|
|
29434
|
-
};
|
|
29435
|
-
declare const processMint: (mintingPersistence: MintingPersistence, event: MintRequestEvent, logger?: Logger) => Promise<void>;
|
|
29436
|
-
|
|
29437
|
-
declare const minting_backend_d_processMint: typeof processMint;
|
|
29438
|
-
declare const minting_backend_d_recordMint: typeof recordMint;
|
|
29439
|
-
declare const minting_backend_d_submitMintingRequests: typeof submitMintingRequests;
|
|
29440
|
-
declare namespace minting_backend_d {
|
|
29441
|
-
export {
|
|
29442
|
-
mintingPersistence$1 as mintingPersistencePg,
|
|
29443
|
-
mintingPersistence as mintingPersistencePrismaSqlite,
|
|
29444
|
-
minting_backend_d_processMint as processMint,
|
|
29445
|
-
minting_backend_d_recordMint as recordMint,
|
|
29446
|
-
minting_backend_d_submitMintingRequests as submitMintingRequests,
|
|
29447
|
-
};
|
|
29448
|
-
}
|
|
29449
|
-
|
|
29450
|
-
export { blockchain_data_d as blockchainData, checkout_d as checkout, config_d as config, minting_backend_d as mintingBackend, orderbook_d as orderbook, passport_d as passport, webhook_d as webhook, x_d as x };
|
|
29357
|
+
export { blockchain_data_d as blockchainData, checkout_d as checkout, config_d as config, orderbook_d as orderbook, passport_d as passport, x_d as x };
|