@imtbl/sdk 0.1.8-alpha.1 → 0.1.8-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/index.d.ts CHANGED
@@ -122,7 +122,7 @@ type ContractType = typeof ContractType[keyof typeof ContractType];
122
122
  * @export
123
123
  * @interface ERC20
124
124
  */
125
- interface ERC20 {
125
+ interface ERC20$1 {
126
126
  /**
127
127
  *
128
128
  * @type {ContractType}
@@ -204,7 +204,7 @@ interface ERC721Token$1 {
204
204
  * The token details
205
205
  * @export
206
206
  */
207
- type Token$1 = ERC20 | ERC721Token$1;
207
+ type Token$1 = ERC20$1 | ERC721Token$1;
208
208
 
209
209
  /**
210
210
  * Immutable X API
@@ -336,7 +336,7 @@ interface NativeToken {
336
336
  * The type of payment token
337
337
  * @export
338
338
  */
339
- type NFTSalePaymentToken = ERC20 | NativeToken;
339
+ type NFTSalePaymentToken = ERC20$1 | NativeToken;
340
340
 
341
341
  /**
342
342
  * Immutable X API
@@ -1876,6 +1876,41 @@ declare abstract class Signer {
1876
1876
  static isSigner(value: any): value is Signer;
1877
1877
  }
1878
1878
 
1879
+ interface Overrides {
1880
+ gasLimit?: BigNumberish | Promise<BigNumberish>;
1881
+ gasPrice?: BigNumberish | Promise<BigNumberish>;
1882
+ maxFeePerGas?: BigNumberish | Promise<BigNumberish>;
1883
+ maxPriorityFeePerGas?: BigNumberish | Promise<BigNumberish>;
1884
+ nonce?: BigNumberish | Promise<BigNumberish>;
1885
+ type?: number;
1886
+ accessList?: AccessListish;
1887
+ customData?: Record<string, any>;
1888
+ ccipReadEnabled?: boolean;
1889
+ }
1890
+ interface PayableOverrides extends Overrides {
1891
+ value?: BigNumberish | Promise<BigNumberish>;
1892
+ }
1893
+ interface CallOverrides extends PayableOverrides {
1894
+ blockTag?: BlockTag | Promise<BlockTag>;
1895
+ from?: string | Promise<string>;
1896
+ }
1897
+ interface PopulatedTransaction {
1898
+ to?: string;
1899
+ from?: string;
1900
+ nonce?: number;
1901
+ gasLimit?: BigNumber;
1902
+ gasPrice?: BigNumber;
1903
+ data?: string;
1904
+ value?: BigNumber;
1905
+ chainId?: number;
1906
+ type?: number;
1907
+ accessList?: AccessList;
1908
+ maxFeePerGas?: BigNumber;
1909
+ maxPriorityFeePerGas?: BigNumber;
1910
+ customData?: Record<string, any>;
1911
+ ccipReadEnabled?: boolean;
1912
+ }
1913
+
1879
1914
  declare type FormatFunc = (value: any) => any;
1880
1915
  declare type FormatFuncs = {
1881
1916
  [key: string]: FormatFunc;
@@ -12423,6 +12458,7 @@ interface PassportOverrides {
12423
12458
  magicPublishableApiKey: string;
12424
12459
  magicProviderId: string;
12425
12460
  passportDomain: string;
12461
+ imxPublicApiDomain: string;
12426
12462
  immutableXClient: ImmutableXClient;
12427
12463
  }
12428
12464
  interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
@@ -27772,8 +27808,221 @@ declare function UpdateConfig(config: CheckoutWidgetsConfig): void;
27772
27808
  */
27773
27809
  declare function SetProvider(tagName: CheckoutWidgetTagNames, provider: Web3Provider | null): void;
27774
27810
 
27775
- declare const erc20 = 1;
27811
+ /* Autogenerated file. Do not edit manually. */
27812
+ /* tslint:disable */
27813
+ /* eslint-disable */
27814
+
27815
+
27816
+ type PromiseOrValue$1<T> = T | Promise<T>;
27817
+
27818
+ declare class ERC20 {
27819
+ private readonly contract;
27820
+ constructor(contractAddress: string);
27821
+ /**
27822
+ * @returns a promise that resolves with a populated transaction
27823
+ */
27824
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27825
+ /**
27826
+ * @returns a promise that resolves with a populated transaction
27827
+ */
27828
+ balanceOf(account: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27829
+ /**
27830
+ * @returns a promise that resolves with a populated transaction
27831
+ */
27832
+ transfer(to: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
27833
+ from?: PromiseOrValue$1<string>;
27834
+ }): Promise<PopulatedTransaction>;
27835
+ /**
27836
+ * @returns a promise that resolves with a populated transaction
27837
+ */
27838
+ allowance(owner: PromiseOrValue$1<string>, spender: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27839
+ /**
27840
+ * @returns a promise that resolves with a populated transaction
27841
+ */
27842
+ approve(spender: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
27843
+ from?: PromiseOrValue$1<string>;
27844
+ }): Promise<PopulatedTransaction>;
27845
+ /**
27846
+ * @returns a promise that resolves with a populated transaction
27847
+ */
27848
+ transferFrom(from: PromiseOrValue$1<string>, to: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
27849
+ from?: PromiseOrValue$1<string>;
27850
+ }): Promise<PopulatedTransaction>;
27851
+ }
27852
+
27853
+ type PromiseOrValue<T> = T | Promise<T>;
27776
27854
 
27777
- declare const erc721permissionedmintable = 1;
27855
+ declare class ERC721PermissionedMintable {
27856
+ private readonly contract;
27857
+ constructor(contractAddress: string);
27858
+ /**
27859
+ * @returns a promise that resolves with a populated transaction
27860
+ */
27861
+ DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27862
+ /**
27863
+ * @returns a promise that resolves with a populated transaction
27864
+ */
27865
+ MINTER_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27866
+ /**
27867
+ * @returns a promise that resolves with a populated transaction
27868
+ */
27869
+ approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
27870
+ from?: PromiseOrValue<string>;
27871
+ }): Promise<PopulatedTransaction>;
27872
+ /**
27873
+ * @returns a promise that resolves with a populated transaction
27874
+ */
27875
+ balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27876
+ /**
27877
+ * @returns a promise that resolves with a populated transaction
27878
+ */
27879
+ baseURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27880
+ /**
27881
+ * @returns a promise that resolves with a populated transaction
27882
+ */
27883
+ burn(tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
27884
+ from?: PromiseOrValue<string>;
27885
+ }): Promise<PopulatedTransaction>;
27886
+ /**
27887
+ * @returns a promise that resolves with a populated transaction
27888
+ */
27889
+ contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27890
+ /**
27891
+ * @returns a promise that resolves with a populated transaction
27892
+ */
27893
+ getAdmins(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27894
+ /**
27895
+ * @returns a promise that resolves with a populated transaction
27896
+ */
27897
+ getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27898
+ /**
27899
+ * @returns a promise that resolves with a populated transaction
27900
+ */
27901
+ getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27902
+ /**
27903
+ * @returns a promise that resolves with a populated transaction
27904
+ */
27905
+ getRoleMember(role: PromiseOrValue<BytesLike>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27906
+ /**
27907
+ * @returns a promise that resolves with a populated transaction
27908
+ */
27909
+ getRoleMemberCount(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27910
+ /**
27911
+ * @returns a promise that resolves with a populated transaction
27912
+ */
27913
+ grantMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
27914
+ from?: PromiseOrValue<string>;
27915
+ }): Promise<PopulatedTransaction>;
27916
+ /**
27917
+ * @returns a promise that resolves with a populated transaction
27918
+ */
27919
+ grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
27920
+ from?: PromiseOrValue<string>;
27921
+ }): Promise<PopulatedTransaction>;
27922
+ /**
27923
+ * @returns a promise that resolves with a populated transaction
27924
+ */
27925
+ hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27926
+ /**
27927
+ * @returns a promise that resolves with a populated transaction
27928
+ */
27929
+ isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27930
+ /**
27931
+ * @returns a promise that resolves with a populated transaction
27932
+ */
27933
+ mint(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
27934
+ from?: PromiseOrValue<string>;
27935
+ }): Promise<PopulatedTransaction>;
27936
+ /**
27937
+ * @returns a promise that resolves with a populated transaction
27938
+ */
27939
+ name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27940
+ /**
27941
+ * @returns a promise that resolves with a populated transaction
27942
+ */
27943
+ ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27944
+ /**
27945
+ * @returns a promise that resolves with a populated transaction
27946
+ */
27947
+ renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
27948
+ from?: PromiseOrValue<string>;
27949
+ }): Promise<PopulatedTransaction>;
27950
+ /**
27951
+ * @returns a promise that resolves with a populated transaction
27952
+ */
27953
+ revokeMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
27954
+ from?: PromiseOrValue<string>;
27955
+ }): Promise<PopulatedTransaction>;
27956
+ /**
27957
+ * @returns a promise that resolves with a populated transaction
27958
+ */
27959
+ revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
27960
+ from?: PromiseOrValue<string>;
27961
+ }): Promise<PopulatedTransaction>;
27962
+ /**
27963
+ * @returns a promise that resolves with a populated transaction
27964
+ */
27965
+ royaltyAllowlist(overrides?: CallOverrides): Promise<PopulatedTransaction>;
27966
+ /**
27967
+ * @returns a promise that resolves with a populated transaction
27968
+ */
27969
+ royaltyInfo(_tokenId: PromiseOrValue<BigNumberish>, _salePrice: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
27970
+ /**
27971
+ * @returns a promise that resolves with a populated transaction
27972
+ */
27973
+ 'safeTransferFrom(address,address,uint256)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
27974
+ from?: PromiseOrValue<string>;
27975
+ }): Promise<PopulatedTransaction>;
27976
+ /**
27977
+ * @returns a promise that resolves with a populated transaction
27978
+ */
27979
+ 'safeTransferFrom(address,address,uint256,bytes)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
27980
+ from?: PromiseOrValue<string>;
27981
+ }): Promise<PopulatedTransaction>;
27982
+ /**
27983
+ * @returns a promise that resolves with a populated transaction
27984
+ */
27985
+ setApprovalForAll(operator: PromiseOrValue<string>, approved: PromiseOrValue<boolean>, overrides?: Overrides & {
27986
+ from?: PromiseOrValue<string>;
27987
+ }): Promise<PopulatedTransaction>;
27988
+ /**
27989
+ * @returns a promise that resolves with a populated transaction
27990
+ */
27991
+ setBaseURI(baseURI_: PromiseOrValue<string>, overrides?: Overrides & {
27992
+ from?: PromiseOrValue<string>;
27993
+ }): Promise<PopulatedTransaction>;
27994
+ /**
27995
+ * @returns a promise that resolves with a populated transaction
27996
+ */
27997
+ setContractURI(_contractURI: PromiseOrValue<string>, overrides?: Overrides & {
27998
+ from?: PromiseOrValue<string>;
27999
+ }): Promise<PopulatedTransaction>;
28000
+ /**
28001
+ * @returns a promise that resolves with a populated transaction
28002
+ */
28003
+ setRoyaltyAllowlistRegistry(_royaltyAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
28004
+ from?: PromiseOrValue<string>;
28005
+ }): Promise<PopulatedTransaction>;
28006
+ /**
28007
+ * @returns a promise that resolves with a populated transaction
28008
+ */
28009
+ symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
28010
+ /**
28011
+ * @returns a promise that resolves with a populated transaction
28012
+ */
28013
+ tokenByIndex(index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
28014
+ /**
28015
+ * @returns a promise that resolves with a populated transaction
28016
+ */
28017
+ tokenOfOwnerByIndex(owner: PromiseOrValue<string>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
28018
+ /**
28019
+ * @returns a promise that resolves with a populated transaction
28020
+ */
28021
+ tokenURI(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
28022
+ /**
28023
+ * @returns a promise that resolves with a populated transaction
28024
+ */
28025
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
28026
+ }
27778
28027
 
27779
- export { APIError, BlockchainData, BlockchainDataModuleConfiguration, BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, BuyClose, BuyEventType, BuyFailed, BuyNotConnected, BuyReact, BuyReactProps, BuySuccess, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectReact, ConnectReactProps, ConnectResult, ConnectionFailed, ConnectionProviders, ConnectionSuccess, Environment, ErrorType, ExampleReact, ExampleReactProps, GenericIMXProvider, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IMXProvider, ImmutableConfiguration, ImmutableXClient, ImtblBridgeProps, ImtblBuyProps, ImtblConnectProps, ImtblExampleProps, ImtblInnerWidgetExampleProps, ImtblOuterWidgetExampleProps, ImtblSwapProps, ImtblTransitionExampleProps, ImtblWalletProps, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, MetaMaskIMXProvider, ModuleConfiguration, Network, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrchestrationEventType, Orderbook, Passport, PassportError, PassportModuleConfiguration, ProviderConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SendTransactionParams, SendTransactionResult, SetProvider, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme, erc20, erc721permissionedmintable, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey, module };
28028
+ export { APIError, BlockchainData, BlockchainDataModuleConfiguration, BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, BuyClose, BuyEventType, BuyFailed, BuyNotConnected, BuyReact, BuyReactProps, BuySuccess, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectReact, ConnectReactProps, ConnectResult, ConnectionFailed, ConnectionProviders, ConnectionSuccess, ERC20, ERC721PermissionedMintable, Environment, ErrorType, ExampleReact, ExampleReactProps, GenericIMXProvider, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IMXProvider, ImmutableConfiguration, ImmutableXClient, ImtblBridgeProps, ImtblBuyProps, ImtblConnectProps, ImtblExampleProps, ImtblInnerWidgetExampleProps, ImtblOuterWidgetExampleProps, ImtblSwapProps, ImtblTransitionExampleProps, ImtblWalletProps, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, MetaMaskIMXProvider, ModuleConfiguration, Network, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrchestrationEventType, Orderbook, Passport, PassportError, PassportModuleConfiguration, ProviderConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SendTransactionParams, SendTransactionResult, SetProvider, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey, module };