@imtbl/sdk 0.36.1 → 0.36.2-alpha.1
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.d.ts +138 -57
- package/dist/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +3 -3
- package/dist/browser/checkout/widgets.js +61 -54
- package/dist/checkout.d.ts +17 -16
- package/dist/checkout.js +144 -71
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +12 -12
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +146 -73
- package/dist/index.d.ts +155 -73
- package/dist/index.js +146 -73
- package/dist/passport.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3401,7 +3401,7 @@ interface TokensApiListERC20TokensRequest {
|
|
|
3401
3401
|
* @export
|
|
3402
3402
|
* @interface GetActivityRequest
|
|
3403
3403
|
*/
|
|
3404
|
-
interface
|
|
3404
|
+
interface GetActivityRequestParams {
|
|
3405
3405
|
/**
|
|
3406
3406
|
* The name of chain
|
|
3407
3407
|
* @type {string}
|
|
@@ -3420,7 +3420,7 @@ interface GetActivityRequest {
|
|
|
3420
3420
|
* @export
|
|
3421
3421
|
* @interface ListActivitiesRequest
|
|
3422
3422
|
*/
|
|
3423
|
-
interface
|
|
3423
|
+
interface ListActivitiesRequestParams {
|
|
3424
3424
|
/**
|
|
3425
3425
|
* The name of chain
|
|
3426
3426
|
* @type {string}
|
|
@@ -3475,7 +3475,7 @@ interface ListActivitiesRequest {
|
|
|
3475
3475
|
* @export
|
|
3476
3476
|
* @interface ListActivityHistoryRequest
|
|
3477
3477
|
*/
|
|
3478
|
-
interface
|
|
3478
|
+
interface ListActivityHistoryRequestParams {
|
|
3479
3479
|
/**
|
|
3480
3480
|
* The name of chain
|
|
3481
3481
|
* @type {string}
|
|
@@ -3517,22 +3517,22 @@ interface ListActivityHistoryRequest {
|
|
|
3517
3517
|
type activitiesApiTypes_d_APIError400 = APIError400;
|
|
3518
3518
|
type activitiesApiTypes_d_APIError404 = APIError404;
|
|
3519
3519
|
type activitiesApiTypes_d_APIError500 = APIError500;
|
|
3520
|
-
type
|
|
3520
|
+
type activitiesApiTypes_d_GetActivityRequestParams = GetActivityRequestParams;
|
|
3521
3521
|
type activitiesApiTypes_d_GetActivityResult = GetActivityResult;
|
|
3522
|
-
type
|
|
3522
|
+
type activitiesApiTypes_d_ListActivitiesRequestParams = ListActivitiesRequestParams;
|
|
3523
3523
|
type activitiesApiTypes_d_ListActivitiesResult = ListActivitiesResult;
|
|
3524
|
-
type
|
|
3524
|
+
type activitiesApiTypes_d_ListActivityHistoryRequestParams = ListActivityHistoryRequestParams;
|
|
3525
3525
|
declare namespace activitiesApiTypes_d {
|
|
3526
3526
|
export {
|
|
3527
3527
|
activitiesApiTypes_d_APIError400 as APIError400,
|
|
3528
3528
|
activitiesApiTypes_d_APIError404 as APIError404,
|
|
3529
3529
|
activitiesApiTypes_d_APIError500 as APIError500,
|
|
3530
3530
|
ActivityType$1 as ActivityType,
|
|
3531
|
-
|
|
3531
|
+
activitiesApiTypes_d_GetActivityRequestParams as GetActivityRequestParams,
|
|
3532
3532
|
activitiesApiTypes_d_GetActivityResult as GetActivityResult,
|
|
3533
|
-
|
|
3533
|
+
activitiesApiTypes_d_ListActivitiesRequestParams as ListActivitiesRequestParams,
|
|
3534
3534
|
activitiesApiTypes_d_ListActivitiesResult as ListActivitiesResult,
|
|
3535
|
-
|
|
3535
|
+
activitiesApiTypes_d_ListActivityHistoryRequestParams as ListActivityHistoryRequestParams,
|
|
3536
3536
|
};
|
|
3537
3537
|
}
|
|
3538
3538
|
|
|
@@ -3553,7 +3553,7 @@ declare namespace activitiesApiTypes_d {
|
|
|
3553
3553
|
* @export
|
|
3554
3554
|
* @interface ListChainsRequest
|
|
3555
3555
|
*/
|
|
3556
|
-
interface
|
|
3556
|
+
interface ListChainsRequestParams {
|
|
3557
3557
|
/**
|
|
3558
3558
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
3559
3559
|
* @type {string}
|
|
@@ -3571,14 +3571,14 @@ interface ListChainsRequest {
|
|
|
3571
3571
|
type chainsApiTypes_d_APIError400 = APIError400;
|
|
3572
3572
|
type chainsApiTypes_d_APIError404 = APIError404;
|
|
3573
3573
|
type chainsApiTypes_d_APIError500 = APIError500;
|
|
3574
|
-
type
|
|
3574
|
+
type chainsApiTypes_d_ListChainsRequestParams = ListChainsRequestParams;
|
|
3575
3575
|
type chainsApiTypes_d_ListChainsResult = ListChainsResult;
|
|
3576
3576
|
declare namespace chainsApiTypes_d {
|
|
3577
3577
|
export {
|
|
3578
3578
|
chainsApiTypes_d_APIError400 as APIError400,
|
|
3579
3579
|
chainsApiTypes_d_APIError404 as APIError404,
|
|
3580
3580
|
chainsApiTypes_d_APIError500 as APIError500,
|
|
3581
|
-
|
|
3581
|
+
chainsApiTypes_d_ListChainsRequestParams as ListChainsRequestParams,
|
|
3582
3582
|
chainsApiTypes_d_ListChainsResult as ListChainsResult,
|
|
3583
3583
|
};
|
|
3584
3584
|
}
|
|
@@ -3600,7 +3600,7 @@ declare namespace chainsApiTypes_d {
|
|
|
3600
3600
|
* @export
|
|
3601
3601
|
* @interface GetCollectionRequest
|
|
3602
3602
|
*/
|
|
3603
|
-
interface
|
|
3603
|
+
interface GetCollectionRequestParams {
|
|
3604
3604
|
/**
|
|
3605
3605
|
* The address contract
|
|
3606
3606
|
* @type {string}
|
|
@@ -3619,7 +3619,7 @@ interface GetCollectionRequest {
|
|
|
3619
3619
|
* @export
|
|
3620
3620
|
* @interface ListCollectionsRequest
|
|
3621
3621
|
*/
|
|
3622
|
-
interface
|
|
3622
|
+
interface ListCollectionsRequestParams {
|
|
3623
3623
|
/**
|
|
3624
3624
|
* The name of chain
|
|
3625
3625
|
* @type {string}
|
|
@@ -3656,7 +3656,7 @@ interface ListCollectionsRequest {
|
|
|
3656
3656
|
* @export
|
|
3657
3657
|
* @interface ListCollectionsByNFTOwnerRequest
|
|
3658
3658
|
*/
|
|
3659
|
-
interface
|
|
3659
|
+
interface ListCollectionsByNFTOwnerRequestParams {
|
|
3660
3660
|
/**
|
|
3661
3661
|
* Account address
|
|
3662
3662
|
* @type {string}
|
|
@@ -3682,18 +3682,44 @@ interface ListCollectionsByNFTOwnerRequest {
|
|
|
3682
3682
|
*/
|
|
3683
3683
|
readonly pageSize?: number;
|
|
3684
3684
|
}
|
|
3685
|
+
/**
|
|
3686
|
+
* Request parameters for refreshCollectionMetadata operation in CollectionsApi.
|
|
3687
|
+
* @export
|
|
3688
|
+
* @interface RefreshCollectionMetadataRequest
|
|
3689
|
+
*/
|
|
3690
|
+
interface RefreshCollectionMetadataRequestParams {
|
|
3691
|
+
/**
|
|
3692
|
+
* The address contract
|
|
3693
|
+
* @type {string}
|
|
3694
|
+
* @memberof RefreshCollectionMetadata
|
|
3695
|
+
*/
|
|
3696
|
+
readonly contractAddress: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* The name of chain
|
|
3699
|
+
* @type {string}
|
|
3700
|
+
* @memberof RefreshCollectionMetadata
|
|
3701
|
+
*/
|
|
3702
|
+
readonly chainName: string;
|
|
3703
|
+
/**
|
|
3704
|
+
* The request body
|
|
3705
|
+
* @type {RefreshCollectionMetadataRequest}
|
|
3706
|
+
* @memberof RefreshCollectionMetadata
|
|
3707
|
+
*/
|
|
3708
|
+
readonly refreshCollectionMetadataRequest: RefreshCollectionMetadataRequest;
|
|
3709
|
+
}
|
|
3685
3710
|
|
|
3686
3711
|
type collectionsApiTypes_d_APIError400 = APIError400;
|
|
3687
3712
|
type collectionsApiTypes_d_APIError401 = APIError401;
|
|
3688
3713
|
type collectionsApiTypes_d_APIError403 = APIError403;
|
|
3689
3714
|
type collectionsApiTypes_d_APIError404 = APIError404;
|
|
3690
3715
|
type collectionsApiTypes_d_APIError500 = APIError500;
|
|
3691
|
-
type
|
|
3716
|
+
type collectionsApiTypes_d_GetCollectionRequestParams = GetCollectionRequestParams;
|
|
3692
3717
|
type collectionsApiTypes_d_GetCollectionResult = GetCollectionResult;
|
|
3693
|
-
type
|
|
3694
|
-
type
|
|
3718
|
+
type collectionsApiTypes_d_ListCollectionsByNFTOwnerRequestParams = ListCollectionsByNFTOwnerRequestParams;
|
|
3719
|
+
type collectionsApiTypes_d_ListCollectionsRequestParams = ListCollectionsRequestParams;
|
|
3695
3720
|
type collectionsApiTypes_d_ListCollectionsResult = ListCollectionsResult;
|
|
3696
3721
|
type collectionsApiTypes_d_RefreshCollectionMetadataRequest = RefreshCollectionMetadataRequest;
|
|
3722
|
+
type collectionsApiTypes_d_RefreshCollectionMetadataRequestParams = RefreshCollectionMetadataRequestParams;
|
|
3697
3723
|
type collectionsApiTypes_d_RefreshCollectionMetadataResult = RefreshCollectionMetadataResult;
|
|
3698
3724
|
declare namespace collectionsApiTypes_d {
|
|
3699
3725
|
export {
|
|
@@ -3702,12 +3728,13 @@ declare namespace collectionsApiTypes_d {
|
|
|
3702
3728
|
collectionsApiTypes_d_APIError403 as APIError403,
|
|
3703
3729
|
collectionsApiTypes_d_APIError404 as APIError404,
|
|
3704
3730
|
collectionsApiTypes_d_APIError500 as APIError500,
|
|
3705
|
-
|
|
3731
|
+
collectionsApiTypes_d_GetCollectionRequestParams as GetCollectionRequestParams,
|
|
3706
3732
|
collectionsApiTypes_d_GetCollectionResult as GetCollectionResult,
|
|
3707
|
-
|
|
3708
|
-
|
|
3733
|
+
collectionsApiTypes_d_ListCollectionsByNFTOwnerRequestParams as ListCollectionsByNFTOwnerRequestParams,
|
|
3734
|
+
collectionsApiTypes_d_ListCollectionsRequestParams as ListCollectionsRequestParams,
|
|
3709
3735
|
collectionsApiTypes_d_ListCollectionsResult as ListCollectionsResult,
|
|
3710
3736
|
collectionsApiTypes_d_RefreshCollectionMetadataRequest as RefreshCollectionMetadataRequest,
|
|
3737
|
+
collectionsApiTypes_d_RefreshCollectionMetadataRequestParams as RefreshCollectionMetadataRequestParams,
|
|
3711
3738
|
collectionsApiTypes_d_RefreshCollectionMetadataResult as RefreshCollectionMetadataResult,
|
|
3712
3739
|
};
|
|
3713
3740
|
}
|
|
@@ -3729,7 +3756,7 @@ declare namespace collectionsApiTypes_d {
|
|
|
3729
3756
|
* @export
|
|
3730
3757
|
* @interface GetMetadataRequest
|
|
3731
3758
|
*/
|
|
3732
|
-
interface
|
|
3759
|
+
interface GetMetadataRequestParams {
|
|
3733
3760
|
/**
|
|
3734
3761
|
* The name of chain
|
|
3735
3762
|
* @type {string}
|
|
@@ -3754,7 +3781,7 @@ interface GetMetadataRequest {
|
|
|
3754
3781
|
* @export
|
|
3755
3782
|
* @interface ListMetadataRequest
|
|
3756
3783
|
*/
|
|
3757
|
-
interface
|
|
3784
|
+
interface ListMetadataRequestParams {
|
|
3758
3785
|
/**
|
|
3759
3786
|
* The name of chain
|
|
3760
3787
|
* @type {string}
|
|
@@ -3791,7 +3818,7 @@ interface ListMetadataRequest {
|
|
|
3791
3818
|
* @export
|
|
3792
3819
|
* @interface ListMetadataForChainRequest
|
|
3793
3820
|
*/
|
|
3794
|
-
interface
|
|
3821
|
+
interface ListMetadataForChainRequestParams {
|
|
3795
3822
|
/**
|
|
3796
3823
|
* The name of chain
|
|
3797
3824
|
* @type {string}
|
|
@@ -3817,6 +3844,56 @@ interface ListMetadataForChainRequest {
|
|
|
3817
3844
|
*/
|
|
3818
3845
|
readonly pageSize?: number;
|
|
3819
3846
|
}
|
|
3847
|
+
/**
|
|
3848
|
+
* Request parameters for refreshMetadataByID operation in MetadataApi.
|
|
3849
|
+
* @export
|
|
3850
|
+
* @interface RefreshMetadataByIDRequest
|
|
3851
|
+
*/
|
|
3852
|
+
interface RefreshMetadataByIDRequestParams {
|
|
3853
|
+
/**
|
|
3854
|
+
* The name of chain
|
|
3855
|
+
* @type {string}
|
|
3856
|
+
* @memberof RefreshMetadataByID
|
|
3857
|
+
*/
|
|
3858
|
+
readonly chainName: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Contract address
|
|
3861
|
+
* @type {string}
|
|
3862
|
+
* @memberof RefreshMetadataByID
|
|
3863
|
+
*/
|
|
3864
|
+
readonly contractAddress: string;
|
|
3865
|
+
/**
|
|
3866
|
+
* NFT Metadata Refresh Request
|
|
3867
|
+
* @type {RefreshMetadataByIDRequest}
|
|
3868
|
+
* @memberof RefreshMetadataByID
|
|
3869
|
+
*/
|
|
3870
|
+
readonly refreshMetadataByIDRequest: RefreshMetadataByIDRequest;
|
|
3871
|
+
}
|
|
3872
|
+
/**
|
|
3873
|
+
* Request parameters for refreshNFTMetadataByTokenID operation in MetadataApi.
|
|
3874
|
+
* @export
|
|
3875
|
+
* @interface RefreshNFTMetadataByTokenIDRequest
|
|
3876
|
+
*/
|
|
3877
|
+
interface RefreshNFTMetadataByTokenIDRequestParams {
|
|
3878
|
+
/**
|
|
3879
|
+
* The address of contract
|
|
3880
|
+
* @type {string}
|
|
3881
|
+
* @memberof RefreshNFTMetadataByTokenID
|
|
3882
|
+
*/
|
|
3883
|
+
readonly contractAddress: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* The name of chain
|
|
3886
|
+
* @type {string}
|
|
3887
|
+
* @memberof RefreshNFTMetadataByTokenID
|
|
3888
|
+
*/
|
|
3889
|
+
readonly chainName: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* the request body
|
|
3892
|
+
* @type {RefreshNFTMetadataByTokenIDRequest}
|
|
3893
|
+
* @memberof RefreshNFTMetadataByTokenID
|
|
3894
|
+
*/
|
|
3895
|
+
readonly refreshNFTMetadataByTokenIDRequest: RefreshNFTMetadataByTokenIDRequest;
|
|
3896
|
+
}
|
|
3820
3897
|
|
|
3821
3898
|
type metadataApiTypes_d_APIError400 = APIError400;
|
|
3822
3899
|
type metadataApiTypes_d_APIError401 = APIError401;
|
|
@@ -3824,14 +3901,16 @@ type metadataApiTypes_d_APIError403 = APIError403;
|
|
|
3824
3901
|
type metadataApiTypes_d_APIError404 = APIError404;
|
|
3825
3902
|
type metadataApiTypes_d_APIError429 = APIError429;
|
|
3826
3903
|
type metadataApiTypes_d_APIError500 = APIError500;
|
|
3827
|
-
type
|
|
3904
|
+
type metadataApiTypes_d_GetMetadataRequestParams = GetMetadataRequestParams;
|
|
3828
3905
|
type metadataApiTypes_d_GetMetadataResult = GetMetadataResult;
|
|
3829
|
-
type
|
|
3830
|
-
type
|
|
3906
|
+
type metadataApiTypes_d_ListMetadataForChainRequestParams = ListMetadataForChainRequestParams;
|
|
3907
|
+
type metadataApiTypes_d_ListMetadataRequestParams = ListMetadataRequestParams;
|
|
3831
3908
|
type metadataApiTypes_d_ListMetadataResult = ListMetadataResult;
|
|
3832
3909
|
type metadataApiTypes_d_MetadataRefreshRateLimitResult = MetadataRefreshRateLimitResult;
|
|
3833
3910
|
type metadataApiTypes_d_RefreshMetadataByIDRequest = RefreshMetadataByIDRequest;
|
|
3911
|
+
type metadataApiTypes_d_RefreshMetadataByIDRequestParams = RefreshMetadataByIDRequestParams;
|
|
3834
3912
|
type metadataApiTypes_d_RefreshNFTMetadataByTokenIDRequest = RefreshNFTMetadataByTokenIDRequest;
|
|
3913
|
+
type metadataApiTypes_d_RefreshNFTMetadataByTokenIDRequestParams = RefreshNFTMetadataByTokenIDRequestParams;
|
|
3835
3914
|
declare namespace metadataApiTypes_d {
|
|
3836
3915
|
export {
|
|
3837
3916
|
metadataApiTypes_d_APIError400 as APIError400,
|
|
@@ -3840,14 +3919,16 @@ declare namespace metadataApiTypes_d {
|
|
|
3840
3919
|
metadataApiTypes_d_APIError404 as APIError404,
|
|
3841
3920
|
metadataApiTypes_d_APIError429 as APIError429,
|
|
3842
3921
|
metadataApiTypes_d_APIError500 as APIError500,
|
|
3843
|
-
|
|
3922
|
+
metadataApiTypes_d_GetMetadataRequestParams as GetMetadataRequestParams,
|
|
3844
3923
|
metadataApiTypes_d_GetMetadataResult as GetMetadataResult,
|
|
3845
|
-
|
|
3846
|
-
|
|
3924
|
+
metadataApiTypes_d_ListMetadataForChainRequestParams as ListMetadataForChainRequestParams,
|
|
3925
|
+
metadataApiTypes_d_ListMetadataRequestParams as ListMetadataRequestParams,
|
|
3847
3926
|
metadataApiTypes_d_ListMetadataResult as ListMetadataResult,
|
|
3848
3927
|
metadataApiTypes_d_MetadataRefreshRateLimitResult as MetadataRefreshRateLimitResult,
|
|
3849
3928
|
metadataApiTypes_d_RefreshMetadataByIDRequest as RefreshMetadataByIDRequest,
|
|
3929
|
+
metadataApiTypes_d_RefreshMetadataByIDRequestParams as RefreshMetadataByIDRequestParams,
|
|
3850
3930
|
metadataApiTypes_d_RefreshNFTMetadataByTokenIDRequest as RefreshNFTMetadataByTokenIDRequest,
|
|
3931
|
+
metadataApiTypes_d_RefreshNFTMetadataByTokenIDRequestParams as RefreshNFTMetadataByTokenIDRequestParams,
|
|
3851
3932
|
};
|
|
3852
3933
|
}
|
|
3853
3934
|
|
|
@@ -3868,7 +3949,7 @@ declare namespace metadataApiTypes_d {
|
|
|
3868
3949
|
* @export
|
|
3869
3950
|
* @interface ListAllNFTOwnersRequest
|
|
3870
3951
|
*/
|
|
3871
|
-
interface
|
|
3952
|
+
interface ListAllNFTOwnersRequestParams {
|
|
3872
3953
|
/**
|
|
3873
3954
|
* The name of chain
|
|
3874
3955
|
* @type {string}
|
|
@@ -3899,7 +3980,7 @@ interface ListAllNFTOwnersRequest {
|
|
|
3899
3980
|
* @export
|
|
3900
3981
|
* @interface ListNFTOwnersRequest
|
|
3901
3982
|
*/
|
|
3902
|
-
interface
|
|
3983
|
+
interface ListNFTOwnersRequestParams {
|
|
3903
3984
|
/**
|
|
3904
3985
|
* The address of contract
|
|
3905
3986
|
* @type {string}
|
|
@@ -3936,7 +4017,7 @@ interface ListNFTOwnersRequest {
|
|
|
3936
4017
|
* @export
|
|
3937
4018
|
* @interface ListOwnersByContractAddressRequest
|
|
3938
4019
|
*/
|
|
3939
|
-
interface
|
|
4020
|
+
interface ListOwnersByContractAddressRequestParams {
|
|
3940
4021
|
/**
|
|
3941
4022
|
* The address of contract
|
|
3942
4023
|
* @type {string}
|
|
@@ -3972,21 +4053,21 @@ interface ListOwnersByContractAddressRequest {
|
|
|
3972
4053
|
type nftOwnersApiTypes_d_APIError400 = APIError400;
|
|
3973
4054
|
type nftOwnersApiTypes_d_APIError404 = APIError404;
|
|
3974
4055
|
type nftOwnersApiTypes_d_APIError500 = APIError500;
|
|
3975
|
-
type
|
|
4056
|
+
type nftOwnersApiTypes_d_ListAllNFTOwnersRequestParams = ListAllNFTOwnersRequestParams;
|
|
3976
4057
|
type nftOwnersApiTypes_d_ListCollectionOwnersResult = ListCollectionOwnersResult;
|
|
3977
|
-
type
|
|
4058
|
+
type nftOwnersApiTypes_d_ListNFTOwnersRequestParams = ListNFTOwnersRequestParams;
|
|
3978
4059
|
type nftOwnersApiTypes_d_ListNFTOwnersResult = ListNFTOwnersResult;
|
|
3979
|
-
type
|
|
4060
|
+
type nftOwnersApiTypes_d_ListOwnersByContractAddressRequestParams = ListOwnersByContractAddressRequestParams;
|
|
3980
4061
|
declare namespace nftOwnersApiTypes_d {
|
|
3981
4062
|
export {
|
|
3982
4063
|
nftOwnersApiTypes_d_APIError400 as APIError400,
|
|
3983
4064
|
nftOwnersApiTypes_d_APIError404 as APIError404,
|
|
3984
4065
|
nftOwnersApiTypes_d_APIError500 as APIError500,
|
|
3985
|
-
|
|
4066
|
+
nftOwnersApiTypes_d_ListAllNFTOwnersRequestParams as ListAllNFTOwnersRequestParams,
|
|
3986
4067
|
nftOwnersApiTypes_d_ListCollectionOwnersResult as ListCollectionOwnersResult,
|
|
3987
|
-
|
|
4068
|
+
nftOwnersApiTypes_d_ListNFTOwnersRequestParams as ListNFTOwnersRequestParams,
|
|
3988
4069
|
nftOwnersApiTypes_d_ListNFTOwnersResult as ListNFTOwnersResult,
|
|
3989
|
-
|
|
4070
|
+
nftOwnersApiTypes_d_ListOwnersByContractAddressRequestParams as ListOwnersByContractAddressRequestParams,
|
|
3990
4071
|
};
|
|
3991
4072
|
}
|
|
3992
4073
|
|
|
@@ -4007,7 +4088,7 @@ declare namespace nftOwnersApiTypes_d {
|
|
|
4007
4088
|
* @export
|
|
4008
4089
|
* @interface GetNFTRequest
|
|
4009
4090
|
*/
|
|
4010
|
-
interface
|
|
4091
|
+
interface GetNFTRequestParams {
|
|
4011
4092
|
/**
|
|
4012
4093
|
* The address of NFT contract
|
|
4013
4094
|
* @type {string}
|
|
@@ -4032,7 +4113,7 @@ interface GetNFTRequest {
|
|
|
4032
4113
|
* @export
|
|
4033
4114
|
* @interface ListAllNFTsRequest
|
|
4034
4115
|
*/
|
|
4035
|
-
interface
|
|
4116
|
+
interface ListAllNFTsRequestParams {
|
|
4036
4117
|
/**
|
|
4037
4118
|
* The name of chain
|
|
4038
4119
|
* @type {string}
|
|
@@ -4063,7 +4144,7 @@ interface ListAllNFTsRequest {
|
|
|
4063
4144
|
* @export
|
|
4064
4145
|
* @interface ListNFTsRequest
|
|
4065
4146
|
*/
|
|
4066
|
-
interface
|
|
4147
|
+
interface ListNFTsRequestParams {
|
|
4067
4148
|
/**
|
|
4068
4149
|
* Contract address
|
|
4069
4150
|
* @type {string}
|
|
@@ -4100,7 +4181,7 @@ interface ListNFTsRequest {
|
|
|
4100
4181
|
* @export
|
|
4101
4182
|
* @interface ListNFTsByAccountAddressRequest
|
|
4102
4183
|
*/
|
|
4103
|
-
interface
|
|
4184
|
+
interface ListNFTsByAccountAddressRequestParams {
|
|
4104
4185
|
/**
|
|
4105
4186
|
* Account address
|
|
4106
4187
|
* @type {string}
|
|
@@ -4136,24 +4217,24 @@ interface ListNFTsByAccountAddressRequest {
|
|
|
4136
4217
|
type nftsApiTypes_d_APIError400 = APIError400;
|
|
4137
4218
|
type nftsApiTypes_d_APIError404 = APIError404;
|
|
4138
4219
|
type nftsApiTypes_d_APIError500 = APIError500;
|
|
4139
|
-
type
|
|
4220
|
+
type nftsApiTypes_d_GetNFTRequestParams = GetNFTRequestParams;
|
|
4140
4221
|
type nftsApiTypes_d_GetNFTResult = GetNFTResult;
|
|
4141
|
-
type
|
|
4142
|
-
type
|
|
4222
|
+
type nftsApiTypes_d_ListAllNFTsRequestParams = ListAllNFTsRequestParams;
|
|
4223
|
+
type nftsApiTypes_d_ListNFTsByAccountAddressRequestParams = ListNFTsByAccountAddressRequestParams;
|
|
4143
4224
|
type nftsApiTypes_d_ListNFTsByOwnerResult = ListNFTsByOwnerResult;
|
|
4144
|
-
type
|
|
4225
|
+
type nftsApiTypes_d_ListNFTsRequestParams = ListNFTsRequestParams;
|
|
4145
4226
|
type nftsApiTypes_d_ListNFTsResult = ListNFTsResult;
|
|
4146
4227
|
declare namespace nftsApiTypes_d {
|
|
4147
4228
|
export {
|
|
4148
4229
|
nftsApiTypes_d_APIError400 as APIError400,
|
|
4149
4230
|
nftsApiTypes_d_APIError404 as APIError404,
|
|
4150
4231
|
nftsApiTypes_d_APIError500 as APIError500,
|
|
4151
|
-
|
|
4232
|
+
nftsApiTypes_d_GetNFTRequestParams as GetNFTRequestParams,
|
|
4152
4233
|
nftsApiTypes_d_GetNFTResult as GetNFTResult,
|
|
4153
|
-
|
|
4154
|
-
|
|
4234
|
+
nftsApiTypes_d_ListAllNFTsRequestParams as ListAllNFTsRequestParams,
|
|
4235
|
+
nftsApiTypes_d_ListNFTsByAccountAddressRequestParams as ListNFTsByAccountAddressRequestParams,
|
|
4155
4236
|
nftsApiTypes_d_ListNFTsByOwnerResult as ListNFTsByOwnerResult,
|
|
4156
|
-
|
|
4237
|
+
nftsApiTypes_d_ListNFTsRequestParams as ListNFTsRequestParams,
|
|
4157
4238
|
nftsApiTypes_d_ListNFTsResult as ListNFTsResult,
|
|
4158
4239
|
};
|
|
4159
4240
|
}
|
|
@@ -4175,7 +4256,7 @@ declare namespace nftsApiTypes_d {
|
|
|
4175
4256
|
* @export
|
|
4176
4257
|
* @interface GetERC20TokenRequest
|
|
4177
4258
|
*/
|
|
4178
|
-
interface
|
|
4259
|
+
interface GetERC20TokenRequestParams {
|
|
4179
4260
|
/**
|
|
4180
4261
|
* The address of contract
|
|
4181
4262
|
* @type {string}
|
|
@@ -4194,7 +4275,7 @@ interface GetERC20TokenRequest {
|
|
|
4194
4275
|
* @export
|
|
4195
4276
|
* @interface ListERC20TokensRequest
|
|
4196
4277
|
*/
|
|
4197
|
-
interface
|
|
4278
|
+
interface ListERC20TokensRequestParams {
|
|
4198
4279
|
/**
|
|
4199
4280
|
* The name of chain
|
|
4200
4281
|
* @type {string}
|
|
@@ -4224,18 +4305,18 @@ interface ListERC20TokensRequest {
|
|
|
4224
4305
|
type tokensApiTypes_d_APIError400 = APIError400;
|
|
4225
4306
|
type tokensApiTypes_d_APIError404 = APIError404;
|
|
4226
4307
|
type tokensApiTypes_d_APIError500 = APIError500;
|
|
4227
|
-
type
|
|
4308
|
+
type tokensApiTypes_d_GetERC20TokenRequestParams = GetERC20TokenRequestParams;
|
|
4228
4309
|
type tokensApiTypes_d_GetTokenResult = GetTokenResult;
|
|
4229
|
-
type
|
|
4310
|
+
type tokensApiTypes_d_ListERC20TokensRequestParams = ListERC20TokensRequestParams;
|
|
4230
4311
|
type tokensApiTypes_d_ListTokensResult = ListTokensResult;
|
|
4231
4312
|
declare namespace tokensApiTypes_d {
|
|
4232
4313
|
export {
|
|
4233
4314
|
tokensApiTypes_d_APIError400 as APIError400,
|
|
4234
4315
|
tokensApiTypes_d_APIError404 as APIError404,
|
|
4235
4316
|
tokensApiTypes_d_APIError500 as APIError500,
|
|
4236
|
-
|
|
4317
|
+
tokensApiTypes_d_GetERC20TokenRequestParams as GetERC20TokenRequestParams,
|
|
4237
4318
|
tokensApiTypes_d_GetTokenResult as GetTokenResult,
|
|
4238
|
-
|
|
4319
|
+
tokensApiTypes_d_ListERC20TokensRequestParams as ListERC20TokensRequestParams,
|
|
4239
4320
|
tokensApiTypes_d_ListTokensResult as ListTokensResult,
|
|
4240
4321
|
};
|
|
4241
4322
|
}
|
|
@@ -16529,12 +16610,12 @@ interface TokenInfo {
|
|
|
16529
16610
|
* Interface representing the parameters for {@link Checkout.getBalance}.
|
|
16530
16611
|
* @property {Web3Provider} provider - The provider used to get the balance.
|
|
16531
16612
|
* @property {string} walletAddress - The wallet address.
|
|
16532
|
-
* @property {string | undefined}
|
|
16613
|
+
* @property {string | undefined} tokenAddress - The contract address of the token.
|
|
16533
16614
|
*/
|
|
16534
16615
|
interface GetBalanceParams {
|
|
16535
16616
|
provider: Web3Provider;
|
|
16536
16617
|
walletAddress: string;
|
|
16537
|
-
|
|
16618
|
+
tokenAddress?: string;
|
|
16538
16619
|
}
|
|
16539
16620
|
/**
|
|
16540
16621
|
* Interface representing the result of {@link Checkout.getBalance}.
|
|
@@ -16549,13 +16630,13 @@ interface GetBalanceResult {
|
|
|
16549
16630
|
}
|
|
16550
16631
|
/**
|
|
16551
16632
|
* Interface representing the parameters for {@link Checkout.getAllBalances}.
|
|
16552
|
-
* @property {Web3Provider} provider - The provider used to get the balances.
|
|
16553
|
-
* @property {string} walletAddress - The wallet address.
|
|
16633
|
+
* @property {Web3Provider} provider - The provider used to get the balances, it is a required parameter if no walletAddress is provided.
|
|
16634
|
+
* @property {string} walletAddress - The wallet address, it is a required parameter if no provider is provided.
|
|
16554
16635
|
* @property {ChainId} chainId - The ID of the network.
|
|
16555
16636
|
*/
|
|
16556
16637
|
interface GetAllBalancesParams {
|
|
16557
|
-
provider
|
|
16558
|
-
walletAddress
|
|
16638
|
+
provider?: Web3Provider;
|
|
16639
|
+
walletAddress?: string;
|
|
16559
16640
|
chainId: ChainId;
|
|
16560
16641
|
}
|
|
16561
16642
|
/**
|
|
@@ -18203,13 +18284,13 @@ type ConnectWidgetParams = {};
|
|
|
18203
18284
|
|
|
18204
18285
|
/**
|
|
18205
18286
|
* Bridge Widget parameters
|
|
18206
|
-
* @property {string | undefined}
|
|
18287
|
+
* @property {string | undefined} tokenAddress
|
|
18207
18288
|
* @property {string | undefined} amount
|
|
18208
18289
|
* @property {WalletProviderName | undefined} walletProviderName
|
|
18209
18290
|
*/
|
|
18210
18291
|
type BridgeWidgetParams = {
|
|
18211
18292
|
/** The contract address of the token to bridge from, used to populate the bridge form token field */
|
|
18212
|
-
|
|
18293
|
+
tokenAddress?: string;
|
|
18213
18294
|
/** The formatted amount to bridge, used to populate the bridge form amount field */
|
|
18214
18295
|
amount?: string;
|
|
18215
18296
|
/** The wallet provider name to use for the bridge widget */
|
|
@@ -18228,30 +18309,30 @@ type WalletWidgetParams = {
|
|
|
18228
18309
|
/**
|
|
18229
18310
|
* Swap Widget parameters
|
|
18230
18311
|
* @property {string | undefined} amount
|
|
18231
|
-
* @property {string | undefined}
|
|
18232
|
-
* @property {string | undefined}
|
|
18312
|
+
* @property {string | undefined} fromTokenAddress
|
|
18313
|
+
* @property {string | undefined} toTokenAddress
|
|
18233
18314
|
* @property {WalletProviderName | undefined} walletProviderName
|
|
18234
18315
|
*/
|
|
18235
18316
|
type SwapWidgetParams = {
|
|
18236
18317
|
/** The formatted amount to swap, used to populate the swap from amount field */
|
|
18237
18318
|
amount?: string;
|
|
18238
18319
|
/** The contract address of the token to swap from */
|
|
18239
|
-
|
|
18320
|
+
fromTokenAddress?: string;
|
|
18240
18321
|
/** The contract address of the token to swap to */
|
|
18241
|
-
|
|
18322
|
+
toTokenAddress?: string;
|
|
18242
18323
|
/** The wallet provider name to use for the swap widget */
|
|
18243
18324
|
walletProviderName?: WalletProviderName;
|
|
18244
18325
|
};
|
|
18245
18326
|
|
|
18246
18327
|
/**
|
|
18247
18328
|
* OnRamp Widget parameters
|
|
18248
|
-
* @property {string | undefined}
|
|
18329
|
+
* @property {string | undefined} tokenAddress
|
|
18249
18330
|
* @property {string | undefined} amount
|
|
18250
18331
|
* @property {WalletProviderName | undefined} walletProviderName
|
|
18251
18332
|
*/
|
|
18252
18333
|
type OnRampWidgetParams = {
|
|
18253
18334
|
/** The contract address of the token to onramp */
|
|
18254
|
-
|
|
18335
|
+
tokenAddress?: string;
|
|
18255
18336
|
/** The formatted amount to onramp, used to populate the onramp form amount field */
|
|
18256
18337
|
amount?: string;
|
|
18257
18338
|
/** The wallet provider name to use for the onramp widget */
|
|
@@ -18262,7 +18343,7 @@ type OnRampWidgetParams = {
|
|
|
18262
18343
|
* Sale Widget parameters
|
|
18263
18344
|
* @property {string} amount
|
|
18264
18345
|
* @property {string} environmentId
|
|
18265
|
-
* @property {string}
|
|
18346
|
+
* @property {string} fromTokenAddress
|
|
18266
18347
|
* @property {SaleItem[]} items
|
|
18267
18348
|
* @property {WalletProviderName | undefined} walletProviderName
|
|
18268
18349
|
*/
|
|
@@ -18270,7 +18351,7 @@ type SaleWidgetParams = {
|
|
|
18270
18351
|
/** The total price to pay for the items in the sale */
|
|
18271
18352
|
amount?: string;
|
|
18272
18353
|
environmentId?: string;
|
|
18273
|
-
|
|
18354
|
+
fromTokenAddress?: string;
|
|
18274
18355
|
/** The list of products to be purchased */
|
|
18275
18356
|
items?: SaleItem[];
|
|
18276
18357
|
/** The wallet provider name to default to if no web3Provider is passed */
|
|
@@ -18778,6 +18859,7 @@ declare const IMMUTABLE_API_BASE_URL: {
|
|
|
18778
18859
|
* Enum representing different types of errors that can occur during the checkout process.
|
|
18779
18860
|
*/
|
|
18780
18861
|
declare enum CheckoutErrorType {
|
|
18862
|
+
MISSING_PARAMS = "MISSING_PARAMS",
|
|
18781
18863
|
WEB3_PROVIDER_ERROR = "WEB3_PROVIDER_ERROR",
|
|
18782
18864
|
PROVIDER_ERROR = "PROVIDER_ERROR",
|
|
18783
18865
|
DEFAULT_PROVIDER_ERROR = "DEFAULT_PROVIDER_ERROR",
|