@imtbl/sdk 1.43.3 → 1.43.4

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.
Files changed (53) hide show
  1. package/dist/Passport.d-011d5035.d.ts +224 -0
  2. package/dist/blockchain-data.d-1634b683.d.ts +3406 -0
  3. package/dist/blockchain_data-d989298c.js +1 -0
  4. package/dist/blockchain_data.d-d538f8d4.d.ts +4543 -0
  5. package/dist/blockchain_data.d.ts +3 -7950
  6. package/dist/blockchain_data.js +1 -6058
  7. package/dist/browser/checkout/sdk.js +4 -4
  8. package/dist/checkout-68675dd1.js +16 -0
  9. package/dist/checkout.d-ae9ca847.d.ts +3392 -0
  10. package/dist/checkout.d.ts +7 -16882
  11. package/dist/checkout.js +1 -37189
  12. package/dist/config-53a9a4ca.js +1 -0
  13. package/dist/config.d-65420620.d.ts +18 -0
  14. package/dist/config.d.ts +1 -30
  15. package/dist/config.js +1 -394
  16. package/dist/event-types.d-42520276.d.ts +332 -0
  17. package/dist/imxProvider.d-cac9e315.d.ts +12538 -0
  18. package/dist/index-14aad537.js +1 -0
  19. package/dist/index-3951cdf0.js +1 -0
  20. package/dist/index-3f40d7f6.js +1 -0
  21. package/dist/index-58a79c29.js +1 -0
  22. package/dist/index-96599707.js +1 -0
  23. package/dist/index-e7002486.js +1 -0
  24. package/dist/index.browser.js +4 -4
  25. package/dist/index.cjs +7 -7
  26. package/dist/index.d-c4a4c17d.d.ts +277 -0
  27. package/dist/index.d-f0845744.d.ts +30 -0
  28. package/dist/index.d-f1471830.d.ts +376 -0
  29. package/dist/index.d.ts +18 -32627
  30. package/dist/index.js +1 -64124
  31. package/dist/json-rpc-provider.d-5c038bd9.d.ts +249 -0
  32. package/dist/minting_backend-04aef147.js +1 -0
  33. package/dist/minting_backend.d-4754ffee.d.ts +104 -0
  34. package/dist/minting_backend.d.ts +5 -3535
  35. package/dist/minting_backend.js +1 -6756
  36. package/dist/orderbook-e71036df.js +1 -0
  37. package/dist/orderbook.d-77162c6c.d.ts +1257 -0
  38. package/dist/orderbook.d.ts +5 -1713
  39. package/dist/orderbook.js +1 -2479
  40. package/dist/passport-0f45e532.js +1 -0
  41. package/dist/passport.d-d3f44798.d.ts +67 -0
  42. package/dist/passport.d.ts +6 -13703
  43. package/dist/passport.js +1 -23137
  44. package/dist/transfer.d-87728423.d.ts +898 -0
  45. package/dist/webhook-a16541bb.js +1 -0
  46. package/dist/webhook.d-4c3cb340.d.ts +75 -0
  47. package/dist/webhook.d.ts +4 -1265
  48. package/dist/webhook.js +1 -488
  49. package/dist/x-a5b39578.js +1 -0
  50. package/dist/x.d-1b51f0c3.d.ts +4879 -0
  51. package/dist/x.d.ts +6 -18663
  52. package/dist/x.js +1 -19242
  53. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -185,7 +185,7 @@ const flattenProperties$1 = (properties) => {
185
185
  };
186
186
 
187
187
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
188
- const SDK_VERSION$1 = '1.43.3';
188
+ const SDK_VERSION$1 = '1.43.4';
189
189
  const getFrameParentDomain$1 = () => {
190
190
  if (isNode$1()) {
191
191
  return '';
@@ -14212,7 +14212,7 @@ class MultiRollupApiClients {
14212
14212
  }
14213
14213
 
14214
14214
  // eslint-disable-next-line @typescript-eslint/naming-convention
14215
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.3' };
14215
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.43.4' };
14216
14216
  const createConfig$1 = ({ basePath, headers, }) => {
14217
14217
  if (!basePath.trim()) {
14218
14218
  throw Error('basePath can not be empty');
@@ -14284,7 +14284,7 @@ class APIError extends Error {
14284
14284
 
14285
14285
  /* eslint-disable implicit-arrow-linebreak */
14286
14286
  const defaultHeaders$1 = {
14287
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.3',
14287
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.43.4',
14288
14288
  };
14289
14289
  /**
14290
14290
  * createAPIConfiguration to create a custom Configuration
@@ -14758,7 +14758,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14758
14758
  /* eslint-disable @typescript-eslint/naming-convention */
14759
14759
  class ApiConfiguration extends index$2.Configuration {
14760
14760
  }
14761
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.3' };
14761
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.43.4' };
14762
14762
  /**
14763
14763
  * @dev use createImmutableXConfiguration instead
14764
14764
  */
@@ -14799,7 +14799,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14799
14799
  coreContractAddress,
14800
14800
  registrationContractAddress,
14801
14801
  registrationV4ContractAddress,
14802
- sdkVersion: 'ts-immutable-sdk-1.43.3',
14802
+ sdkVersion: 'ts-immutable-sdk-1.43.4',
14803
14803
  baseConfig,
14804
14804
  });
14805
14805
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -52269,7 +52269,7 @@ const flattenProperties = (properties) => {
52269
52269
  };
52270
52270
 
52271
52271
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52272
- const SDK_VERSION = '1.43.3';
52272
+ const SDK_VERSION = '1.43.4';
52273
52273
  const getFrameParentDomain = () => {
52274
52274
  if (isNode()) {
52275
52275
  return '';
@@ -57588,7 +57588,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57588
57588
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
57589
57589
  };
57590
57590
 
57591
- const SDK_VERSION_MARKER = '1.43.3';
57591
+ const SDK_VERSION_MARKER = '1.43.4';
57592
57592
  // This SDK version is replaced by the `yarn build` command ran on the root level
57593
57593
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57594
57594
 
@@ -0,0 +1,277 @@
1
+ declare type Bytes = ArrayLike<number>;
2
+ declare type BytesLike = Bytes | string;
3
+ interface Hexable {
4
+ toHexString(): string;
5
+ }
6
+
7
+ declare type BigNumberish = BigNumber | Bytes | bigint | string | number;
8
+ declare class BigNumber implements Hexable {
9
+ readonly _hex: string;
10
+ readonly _isBigNumber: boolean;
11
+ constructor(constructorGuard: any, hex: string);
12
+ fromTwos(value: number): BigNumber;
13
+ toTwos(value: number): BigNumber;
14
+ abs(): BigNumber;
15
+ add(other: BigNumberish): BigNumber;
16
+ sub(other: BigNumberish): BigNumber;
17
+ div(other: BigNumberish): BigNumber;
18
+ mul(other: BigNumberish): BigNumber;
19
+ mod(other: BigNumberish): BigNumber;
20
+ pow(other: BigNumberish): BigNumber;
21
+ and(other: BigNumberish): BigNumber;
22
+ or(other: BigNumberish): BigNumber;
23
+ xor(other: BigNumberish): BigNumber;
24
+ mask(value: number): BigNumber;
25
+ shl(value: number): BigNumber;
26
+ shr(value: number): BigNumber;
27
+ eq(other: BigNumberish): boolean;
28
+ lt(other: BigNumberish): boolean;
29
+ lte(other: BigNumberish): boolean;
30
+ gt(other: BigNumberish): boolean;
31
+ gte(other: BigNumberish): boolean;
32
+ isNegative(): boolean;
33
+ isZero(): boolean;
34
+ toNumber(): number;
35
+ toBigInt(): bigint;
36
+ toString(): string;
37
+ toHexString(): string;
38
+ toJSON(key?: string): any;
39
+ static from(value: any): BigNumber;
40
+ static isBigNumber(value: any): value is BigNumber;
41
+ }
42
+
43
+ declare type Network = {
44
+ name: string;
45
+ chainId: number;
46
+ ensAddress?: string;
47
+ _defaultProvider?: (providers: any, options?: any) => any;
48
+ };
49
+ declare type Networkish = Network | string | number;
50
+
51
+ declare type Deferrable<T> = {
52
+ [K in keyof T]: T[K] | Promise<T[K]>;
53
+ };
54
+ declare class Description<T = any> {
55
+ constructor(info: {
56
+ [K in keyof T]: T[K];
57
+ });
58
+ }
59
+
60
+ declare type AccessList = Array<{
61
+ address: string;
62
+ storageKeys: Array<string>;
63
+ }>;
64
+ declare type AccessListish = AccessList | Array<[string, Array<string>]> | Record<string, Array<string>>;
65
+ interface Transaction {
66
+ hash?: string;
67
+ to?: string;
68
+ from?: string;
69
+ nonce: number;
70
+ gasLimit: BigNumber;
71
+ gasPrice?: BigNumber;
72
+ data: string;
73
+ value: BigNumber;
74
+ chainId: number;
75
+ r?: string;
76
+ s?: string;
77
+ v?: number;
78
+ type?: number | null;
79
+ accessList?: AccessList;
80
+ maxPriorityFeePerGas?: BigNumber;
81
+ maxFeePerGas?: BigNumber;
82
+ }
83
+
84
+ declare type ConnectionInfo = {
85
+ url: string;
86
+ headers?: {
87
+ [key: string]: string | number;
88
+ };
89
+ user?: string;
90
+ password?: string;
91
+ allowInsecureAuthentication?: boolean;
92
+ allowGzip?: boolean;
93
+ throttleLimit?: number;
94
+ throttleSlotInterval?: number;
95
+ throttleCallback?: (attempt: number, url: string) => Promise<boolean>;
96
+ skipFetchSetup?: boolean;
97
+ fetchOptions?: Record<string, string>;
98
+ errorPassThrough?: boolean;
99
+ timeout?: number;
100
+ };
101
+ interface OnceBlockable {
102
+ once(eventName: "block", handler: () => void): void;
103
+ }
104
+
105
+ declare type TransactionRequest = {
106
+ to?: string;
107
+ from?: string;
108
+ nonce?: BigNumberish;
109
+ gasLimit?: BigNumberish;
110
+ gasPrice?: BigNumberish;
111
+ data?: BytesLike;
112
+ value?: BigNumberish;
113
+ chainId?: number;
114
+ type?: number;
115
+ accessList?: AccessListish;
116
+ maxPriorityFeePerGas?: BigNumberish;
117
+ maxFeePerGas?: BigNumberish;
118
+ customData?: Record<string, any>;
119
+ ccipReadEnabled?: boolean;
120
+ };
121
+ interface TransactionResponse extends Transaction {
122
+ hash: string;
123
+ blockNumber?: number;
124
+ blockHash?: string;
125
+ timestamp?: number;
126
+ confirmations: number;
127
+ from: string;
128
+ raw?: string;
129
+ wait: (confirmations?: number) => Promise<TransactionReceipt>;
130
+ }
131
+ declare type BlockTag = string | number;
132
+ interface _Block {
133
+ hash: string;
134
+ parentHash: string;
135
+ number: number;
136
+ timestamp: number;
137
+ nonce: string;
138
+ difficulty: number;
139
+ _difficulty: BigNumber;
140
+ gasLimit: BigNumber;
141
+ gasUsed: BigNumber;
142
+ miner: string;
143
+ extraData: string;
144
+ baseFeePerGas?: null | BigNumber;
145
+ }
146
+ interface Block extends _Block {
147
+ transactions: Array<string>;
148
+ }
149
+ interface BlockWithTransactions extends _Block {
150
+ transactions: Array<TransactionResponse>;
151
+ }
152
+ interface Log {
153
+ blockNumber: number;
154
+ blockHash: string;
155
+ transactionIndex: number;
156
+ removed: boolean;
157
+ address: string;
158
+ data: string;
159
+ topics: Array<string>;
160
+ transactionHash: string;
161
+ logIndex: number;
162
+ }
163
+ interface TransactionReceipt {
164
+ to: string;
165
+ from: string;
166
+ contractAddress: string;
167
+ transactionIndex: number;
168
+ root?: string;
169
+ gasUsed: BigNumber;
170
+ logsBloom: string;
171
+ blockHash: string;
172
+ transactionHash: string;
173
+ logs: Array<Log>;
174
+ blockNumber: number;
175
+ confirmations: number;
176
+ cumulativeGasUsed: BigNumber;
177
+ effectiveGasPrice: BigNumber;
178
+ byzantium: boolean;
179
+ type: number;
180
+ status?: number;
181
+ }
182
+ interface FeeData {
183
+ lastBaseFeePerGas: null | BigNumber;
184
+ maxFeePerGas: null | BigNumber;
185
+ maxPriorityFeePerGas: null | BigNumber;
186
+ gasPrice: null | BigNumber;
187
+ }
188
+ interface EventFilter {
189
+ address?: string;
190
+ topics?: Array<string | Array<string> | null>;
191
+ }
192
+ interface Filter extends EventFilter {
193
+ fromBlock?: BlockTag;
194
+ toBlock?: BlockTag;
195
+ }
196
+ interface FilterByBlockHash extends EventFilter {
197
+ blockHash?: string;
198
+ }
199
+ declare abstract class ForkEvent extends Description {
200
+ readonly expiry: number;
201
+ readonly _isForkEvent?: boolean;
202
+ static isForkEvent(value: any): value is ForkEvent;
203
+ }
204
+ declare type EventType = string | Array<string | Array<string>> | EventFilter | ForkEvent;
205
+ declare type Listener = (...args: Array<any>) => void;
206
+ declare abstract class Provider implements OnceBlockable {
207
+ abstract getNetwork(): Promise<Network>;
208
+ abstract getBlockNumber(): Promise<number>;
209
+ abstract getGasPrice(): Promise<BigNumber>;
210
+ getFeeData(): Promise<FeeData>;
211
+ abstract getBalance(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<BigNumber>;
212
+ abstract getTransactionCount(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<number>;
213
+ abstract getCode(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>;
214
+ abstract getStorageAt(addressOrName: string | Promise<string>, position: BigNumberish | Promise<BigNumberish>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>;
215
+ abstract sendTransaction(signedTransaction: string | Promise<string>): Promise<TransactionResponse>;
216
+ abstract call(transaction: Deferrable<TransactionRequest>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>;
217
+ abstract estimateGas(transaction: Deferrable<TransactionRequest>): Promise<BigNumber>;
218
+ abstract getBlock(blockHashOrBlockTag: BlockTag | string | Promise<BlockTag | string>): Promise<Block>;
219
+ abstract getBlockWithTransactions(blockHashOrBlockTag: BlockTag | string | Promise<BlockTag | string>): Promise<BlockWithTransactions>;
220
+ abstract getTransaction(transactionHash: string): Promise<TransactionResponse>;
221
+ abstract getTransactionReceipt(transactionHash: string): Promise<TransactionReceipt>;
222
+ abstract getLogs(filter: Filter): Promise<Array<Log>>;
223
+ abstract resolveName(name: string | Promise<string>): Promise<null | string>;
224
+ abstract lookupAddress(address: string | Promise<string>): Promise<null | string>;
225
+ abstract on(eventName: EventType, listener: Listener): Provider;
226
+ abstract once(eventName: EventType, listener: Listener): Provider;
227
+ abstract emit(eventName: EventType, ...args: Array<any>): boolean;
228
+ abstract listenerCount(eventName?: EventType): number;
229
+ abstract listeners(eventName?: EventType): Array<Listener>;
230
+ abstract off(eventName: EventType, listener?: Listener): Provider;
231
+ abstract removeAllListeners(eventName?: EventType): Provider;
232
+ addListener(eventName: EventType, listener: Listener): Provider;
233
+ removeListener(eventName: EventType, listener: Listener): Provider;
234
+ abstract waitForTransaction(transactionHash: string, confirmations?: number, timeout?: number): Promise<TransactionReceipt>;
235
+ readonly _isProvider: boolean;
236
+ constructor();
237
+ static isProvider(value: any): value is Provider;
238
+ }
239
+
240
+ interface TypedDataDomain {
241
+ name?: string;
242
+ version?: string;
243
+ chainId?: BigNumberish;
244
+ verifyingContract?: string;
245
+ salt?: BytesLike;
246
+ }
247
+ interface TypedDataField {
248
+ name: string;
249
+ type: string;
250
+ }
251
+ interface TypedDataSigner {
252
+ _signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>): Promise<string>;
253
+ }
254
+ declare abstract class Signer {
255
+ readonly provider?: Provider;
256
+ abstract getAddress(): Promise<string>;
257
+ abstract signMessage(message: Bytes | string): Promise<string>;
258
+ abstract signTransaction(transaction: Deferrable<TransactionRequest>): Promise<string>;
259
+ abstract connect(provider: Provider): Signer;
260
+ readonly _isSigner: boolean;
261
+ constructor();
262
+ getBalance(blockTag?: BlockTag): Promise<BigNumber>;
263
+ getTransactionCount(blockTag?: BlockTag): Promise<number>;
264
+ estimateGas(transaction: Deferrable<TransactionRequest>): Promise<BigNumber>;
265
+ call(transaction: Deferrable<TransactionRequest>, blockTag?: BlockTag): Promise<string>;
266
+ sendTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionResponse>;
267
+ getChainId(): Promise<number>;
268
+ getGasPrice(): Promise<BigNumber>;
269
+ getFeeData(): Promise<FeeData>;
270
+ resolveName(name: string): Promise<string>;
271
+ checkTransaction(transaction: Deferrable<TransactionRequest>): Deferrable<TransactionRequest>;
272
+ populateTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionRequest>;
273
+ _checkProvider(operation?: string): void;
274
+ static isSigner(value: any): value is Signer;
275
+ }
276
+
277
+ export { AccessList as A, BigNumber as B, ConnectionInfo as C, Deferrable as D, EventType as E, Filter as F, Listener as L, Network as N, Provider as P, Signer as S, TransactionResponse as T, Block as a, TransactionReceipt as b, Networkish as c, Transaction as d, BlockTag as e, BigNumberish as f, TransactionRequest as g, FilterByBlockHash as h, BlockWithTransactions as i, Log as j, TypedDataSigner as k, Bytes as l, TypedDataDomain as m, TypedDataField as n, BytesLike as o, Description as p, AccessListish as q };
@@ -0,0 +1,30 @@
1
+ declare enum Environment {
2
+ PRODUCTION = "production",
3
+ SANDBOX = "sandbox"
4
+ }
5
+ declare enum KeyHeaders {
6
+ API_KEY = "x-immutable-api-key",
7
+ PUBLISHABLE_KEY = "x-immutable-publishable-key",
8
+ RATE_LIMITING_KEY = "x-api-key"
9
+ }
10
+ declare class ImmutableConfiguration {
11
+ readonly environment: Environment;
12
+ readonly rateLimitingKey?: string;
13
+ readonly apiKey?: string;
14
+ readonly publishableKey?: string;
15
+ constructor(options: {
16
+ environment: Environment;
17
+ rateLimitingKey?: string;
18
+ apiKey?: string;
19
+ publishableKey?: string;
20
+ });
21
+ }
22
+ declare const addKeysToHeadersOverride: <T extends {
23
+ headers?: Record<string, string> | undefined;
24
+ }>(baseConfig: ImmutableConfiguration | undefined, overrides: T | undefined) => T | undefined;
25
+ interface ModuleConfiguration<T> {
26
+ baseConfig: ImmutableConfiguration;
27
+ overrides?: T;
28
+ }
29
+
30
+ export { Environment as E, ImmutableConfiguration as I, KeyHeaders as K, ModuleConfiguration as M, addKeysToHeadersOverride as a };