@dzapio/sdk 1.0.3 → 2.0.0

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 (36) hide show
  1. package/dist/api/index.d.ts +3 -1
  2. package/dist/artifacts/ERC20Permit.d.ts +38 -0
  3. package/dist/artifacts/Permit2Proxy.d.ts +416 -0
  4. package/dist/artifacts/default/Permit2Abi.d.ts +700 -70
  5. package/dist/constants/address.d.ts +0 -1
  6. package/dist/constants/approval.d.ts +3 -1
  7. package/dist/constants/chains.d.ts +1 -0
  8. package/dist/constants/index.d.ts +4 -0
  9. package/dist/constants/permit.d.ts +25 -1
  10. package/dist/constants/urlConstants.d.ts +2 -0
  11. package/dist/dZapClient/index.d.ts +717 -103
  12. package/dist/enums/index.d.ts +7 -5
  13. package/dist/index.d.ts +6 -9
  14. package/dist/index.js +1 -1
  15. package/dist/index.m.js +1 -1
  16. package/dist/index.umd.js +1 -1
  17. package/dist/transactionHandlers/permit.d.ts +48 -47
  18. package/dist/transactionHandlers/trade.d.ts +10 -1
  19. package/dist/types/eip-2612.d.ts +19 -1
  20. package/dist/types/index.d.ts +175 -16
  21. package/dist/types/permit.d.ts +183 -0
  22. package/dist/types/zap/build.d.ts +6 -6
  23. package/dist/types/zap/quote.d.ts +5 -1
  24. package/dist/utils/eip-2612/dzapUserIntentSign.d.ts +12 -0
  25. package/dist/utils/eip-2612/eip2612Permit.d.ts +23 -0
  26. package/dist/utils/erc20.d.ts +17 -15
  27. package/dist/utils/index.d.ts +701 -71
  28. package/dist/utils/permit2/domain.d.ts +2 -0
  29. package/dist/utils/permit2/index.d.ts +4 -0
  30. package/dist/utils/permit2/nonce.d.ts +15 -0
  31. package/dist/utils/permit2/permitData.d.ts +23 -0
  32. package/dist/utils/permit2/values.d.ts +54 -0
  33. package/dist/utils/permit2/witnessData.d.ts +4 -0
  34. package/package.json +12 -2
  35. package/dist/utils/permit/permit2Methods.d.ts +0 -33
  36. package/dist/utils/permit/permitMethods.d.ts +0 -37
@@ -3644,7 +3644,7 @@ export declare const getPublicClient: ({ rpcUrls, chainId }: {
3644
3644
  transport?: undefined;
3645
3645
  type?: undefined;
3646
3646
  uid?: undefined;
3647
- } & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain, undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<import("viem").Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain, undefined, import("viem").PublicRpcSchema, import("viem").PublicActions<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain>>) => client) => import("viem").Client<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain, undefined, import("viem").PublicRpcSchema, { [K in keyof client]: client[K]; } & import("viem").PublicActions<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain>>;
3647
+ } & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain, undefined>, "estimateGas" | "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<import("viem").Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain, undefined, import("viem").PublicRpcSchema, import("viem").PublicActions<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain>>) => client) => import("viem").Client<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain, undefined, import("viem").PublicRpcSchema, { [K in keyof client]: client[K]; } & import("viem").PublicActions<import("viem").FallbackTransport<import("viem").HttpTransport<undefined, false>[] | readonly [import("viem").HttpTransport<undefined, false>]>, import("viem").Chain>>;
3648
3648
  };
3649
3649
  export declare const getChecksumAddress: (address: string) => HexString;
3650
3650
  export declare const formatToken: <T extends HexString | string>(token: T, nativeTokenAddress?: T) => T;
@@ -3700,76 +3700,706 @@ export declare const handleDecodeTxnData: (data: TransactionReceipt, service: Av
3700
3700
  swapFailPairs: string[];
3701
3701
  swapInfo: SwapInfo | SwapInfo[];
3702
3702
  };
3703
- export declare const getOtherAbis: (name: OtherAvailableAbis) => ({
3704
- inputs: {
3705
- internalType: string;
3706
- name: string;
3707
- type: string;
3708
- }[];
3709
- name: string;
3710
- type: string;
3711
- anonymous?: undefined;
3712
- outputs?: undefined;
3713
- stateMutability?: undefined;
3714
- } | {
3715
- anonymous: boolean;
3716
- inputs: {
3717
- indexed: boolean;
3718
- internalType: string;
3719
- name: string;
3720
- type: string;
3721
- }[];
3722
- name: string;
3723
- type: string;
3724
- outputs?: undefined;
3725
- stateMutability?: undefined;
3726
- } | {
3727
- inputs: {
3728
- internalType: string;
3729
- name: string;
3730
- type: string;
3731
- }[];
3732
- name: string;
3733
- outputs: {
3734
- internalType: string;
3735
- name: string;
3736
- type: string;
3737
- }[];
3738
- stateMutability: string;
3739
- type: string;
3740
- anonymous?: undefined;
3741
- } | {
3742
- inputs: ({
3743
- internalType: string;
3744
- name: string;
3745
- type: string;
3746
- components?: undefined;
3747
- } | {
3748
- components: ({
3749
- components: {
3750
- internalType: string;
3751
- name: string;
3752
- type: string;
3753
- }[];
3754
- internalType: string;
3755
- name: string;
3756
- type: string;
3757
- } | {
3758
- internalType: string;
3759
- name: string;
3760
- type: string;
3761
- components?: undefined;
3762
- })[];
3763
- internalType: string;
3764
- name: string;
3765
- type: string;
3766
- })[];
3767
- name: string;
3768
- outputs: never[];
3769
- stateMutability: string;
3770
- type: string;
3771
- anonymous?: undefined;
3772
- })[] | readonly [{
3703
+ export declare const getOtherAbis: (name: OtherAvailableAbis) => readonly [{
3704
+ readonly inputs: readonly [{
3705
+ readonly internalType: "uint256";
3706
+ readonly name: "deadline";
3707
+ readonly type: "uint256";
3708
+ }];
3709
+ readonly name: "AllowanceExpired";
3710
+ readonly type: "error";
3711
+ }, {
3712
+ readonly inputs: readonly [];
3713
+ readonly name: "ExcessiveInvalidation";
3714
+ readonly type: "error";
3715
+ }, {
3716
+ readonly inputs: readonly [{
3717
+ readonly internalType: "uint256";
3718
+ readonly name: "amount";
3719
+ readonly type: "uint256";
3720
+ }];
3721
+ readonly name: "InsufficientAllowance";
3722
+ readonly type: "error";
3723
+ }, {
3724
+ readonly inputs: readonly [{
3725
+ readonly internalType: "uint256";
3726
+ readonly name: "maxAmount";
3727
+ readonly type: "uint256";
3728
+ }];
3729
+ readonly name: "InvalidAmount";
3730
+ readonly type: "error";
3731
+ }, {
3732
+ readonly inputs: readonly [];
3733
+ readonly name: "InvalidContractSignature";
3734
+ readonly type: "error";
3735
+ }, {
3736
+ readonly inputs: readonly [];
3737
+ readonly name: "InvalidNonce";
3738
+ readonly type: "error";
3739
+ }, {
3740
+ readonly inputs: readonly [];
3741
+ readonly name: "InvalidSignature";
3742
+ readonly type: "error";
3743
+ }, {
3744
+ readonly inputs: readonly [];
3745
+ readonly name: "InvalidSignatureLength";
3746
+ readonly type: "error";
3747
+ }, {
3748
+ readonly inputs: readonly [];
3749
+ readonly name: "InvalidSigner";
3750
+ readonly type: "error";
3751
+ }, {
3752
+ readonly inputs: readonly [];
3753
+ readonly name: "LengthMismatch";
3754
+ readonly type: "error";
3755
+ }, {
3756
+ readonly inputs: readonly [{
3757
+ readonly internalType: "uint256";
3758
+ readonly name: "signatureDeadline";
3759
+ readonly type: "uint256";
3760
+ }];
3761
+ readonly name: "SignatureExpired";
3762
+ readonly type: "error";
3763
+ }, {
3764
+ readonly anonymous: false;
3765
+ readonly inputs: readonly [{
3766
+ readonly indexed: true;
3767
+ readonly internalType: "address";
3768
+ readonly name: "owner";
3769
+ readonly type: "address";
3770
+ }, {
3771
+ readonly indexed: true;
3772
+ readonly internalType: "address";
3773
+ readonly name: "token";
3774
+ readonly type: "address";
3775
+ }, {
3776
+ readonly indexed: true;
3777
+ readonly internalType: "address";
3778
+ readonly name: "spender";
3779
+ readonly type: "address";
3780
+ }, {
3781
+ readonly indexed: false;
3782
+ readonly internalType: "uint160";
3783
+ readonly name: "amount";
3784
+ readonly type: "uint160";
3785
+ }, {
3786
+ readonly indexed: false;
3787
+ readonly internalType: "uint48";
3788
+ readonly name: "expiration";
3789
+ readonly type: "uint48";
3790
+ }];
3791
+ readonly name: "Approval";
3792
+ readonly type: "event";
3793
+ }, {
3794
+ readonly anonymous: false;
3795
+ readonly inputs: readonly [{
3796
+ readonly indexed: true;
3797
+ readonly internalType: "address";
3798
+ readonly name: "owner";
3799
+ readonly type: "address";
3800
+ }, {
3801
+ readonly indexed: false;
3802
+ readonly internalType: "address";
3803
+ readonly name: "token";
3804
+ readonly type: "address";
3805
+ }, {
3806
+ readonly indexed: false;
3807
+ readonly internalType: "address";
3808
+ readonly name: "spender";
3809
+ readonly type: "address";
3810
+ }];
3811
+ readonly name: "Lockdown";
3812
+ readonly type: "event";
3813
+ }, {
3814
+ readonly anonymous: false;
3815
+ readonly inputs: readonly [{
3816
+ readonly indexed: true;
3817
+ readonly internalType: "address";
3818
+ readonly name: "owner";
3819
+ readonly type: "address";
3820
+ }, {
3821
+ readonly indexed: true;
3822
+ readonly internalType: "address";
3823
+ readonly name: "token";
3824
+ readonly type: "address";
3825
+ }, {
3826
+ readonly indexed: true;
3827
+ readonly internalType: "address";
3828
+ readonly name: "spender";
3829
+ readonly type: "address";
3830
+ }, {
3831
+ readonly indexed: false;
3832
+ readonly internalType: "uint48";
3833
+ readonly name: "newNonce";
3834
+ readonly type: "uint48";
3835
+ }, {
3836
+ readonly indexed: false;
3837
+ readonly internalType: "uint48";
3838
+ readonly name: "oldNonce";
3839
+ readonly type: "uint48";
3840
+ }];
3841
+ readonly name: "NonceInvalidation";
3842
+ readonly type: "event";
3843
+ }, {
3844
+ readonly anonymous: false;
3845
+ readonly inputs: readonly [{
3846
+ readonly indexed: true;
3847
+ readonly internalType: "address";
3848
+ readonly name: "owner";
3849
+ readonly type: "address";
3850
+ }, {
3851
+ readonly indexed: true;
3852
+ readonly internalType: "address";
3853
+ readonly name: "token";
3854
+ readonly type: "address";
3855
+ }, {
3856
+ readonly indexed: true;
3857
+ readonly internalType: "address";
3858
+ readonly name: "spender";
3859
+ readonly type: "address";
3860
+ }, {
3861
+ readonly indexed: false;
3862
+ readonly internalType: "uint160";
3863
+ readonly name: "amount";
3864
+ readonly type: "uint160";
3865
+ }, {
3866
+ readonly indexed: false;
3867
+ readonly internalType: "uint48";
3868
+ readonly name: "expiration";
3869
+ readonly type: "uint48";
3870
+ }, {
3871
+ readonly indexed: false;
3872
+ readonly internalType: "uint48";
3873
+ readonly name: "nonce";
3874
+ readonly type: "uint48";
3875
+ }];
3876
+ readonly name: "Permit";
3877
+ readonly type: "event";
3878
+ }, {
3879
+ readonly anonymous: false;
3880
+ readonly inputs: readonly [{
3881
+ readonly indexed: true;
3882
+ readonly internalType: "address";
3883
+ readonly name: "owner";
3884
+ readonly type: "address";
3885
+ }, {
3886
+ readonly indexed: false;
3887
+ readonly internalType: "uint256";
3888
+ readonly name: "word";
3889
+ readonly type: "uint256";
3890
+ }, {
3891
+ readonly indexed: false;
3892
+ readonly internalType: "uint256";
3893
+ readonly name: "mask";
3894
+ readonly type: "uint256";
3895
+ }];
3896
+ readonly name: "UnorderedNonceInvalidation";
3897
+ readonly type: "event";
3898
+ }, {
3899
+ readonly inputs: readonly [];
3900
+ readonly name: "DOMAIN_SEPARATOR";
3901
+ readonly outputs: readonly [{
3902
+ readonly internalType: "bytes32";
3903
+ readonly name: "";
3904
+ readonly type: "bytes32";
3905
+ }];
3906
+ readonly stateMutability: "view";
3907
+ readonly type: "function";
3908
+ }, {
3909
+ readonly inputs: readonly [{
3910
+ readonly internalType: "address";
3911
+ readonly name: "";
3912
+ readonly type: "address";
3913
+ }, {
3914
+ readonly internalType: "address";
3915
+ readonly name: "";
3916
+ readonly type: "address";
3917
+ }, {
3918
+ readonly internalType: "address";
3919
+ readonly name: "";
3920
+ readonly type: "address";
3921
+ }];
3922
+ readonly name: "allowance";
3923
+ readonly outputs: readonly [{
3924
+ readonly internalType: "uint160";
3925
+ readonly name: "amount";
3926
+ readonly type: "uint160";
3927
+ }, {
3928
+ readonly internalType: "uint48";
3929
+ readonly name: "expiration";
3930
+ readonly type: "uint48";
3931
+ }, {
3932
+ readonly internalType: "uint48";
3933
+ readonly name: "nonce";
3934
+ readonly type: "uint48";
3935
+ }];
3936
+ readonly stateMutability: "view";
3937
+ readonly type: "function";
3938
+ }, {
3939
+ readonly inputs: readonly [{
3940
+ readonly internalType: "address";
3941
+ readonly name: "token";
3942
+ readonly type: "address";
3943
+ }, {
3944
+ readonly internalType: "address";
3945
+ readonly name: "spender";
3946
+ readonly type: "address";
3947
+ }, {
3948
+ readonly internalType: "uint160";
3949
+ readonly name: "amount";
3950
+ readonly type: "uint160";
3951
+ }, {
3952
+ readonly internalType: "uint48";
3953
+ readonly name: "expiration";
3954
+ readonly type: "uint48";
3955
+ }];
3956
+ readonly name: "approve";
3957
+ readonly outputs: readonly [];
3958
+ readonly stateMutability: "nonpayable";
3959
+ readonly type: "function";
3960
+ }, {
3961
+ readonly inputs: readonly [{
3962
+ readonly internalType: "address";
3963
+ readonly name: "token";
3964
+ readonly type: "address";
3965
+ }, {
3966
+ readonly internalType: "address";
3967
+ readonly name: "spender";
3968
+ readonly type: "address";
3969
+ }, {
3970
+ readonly internalType: "uint48";
3971
+ readonly name: "newNonce";
3972
+ readonly type: "uint48";
3973
+ }];
3974
+ readonly name: "invalidateNonces";
3975
+ readonly outputs: readonly [];
3976
+ readonly stateMutability: "nonpayable";
3977
+ readonly type: "function";
3978
+ }, {
3979
+ readonly inputs: readonly [{
3980
+ readonly internalType: "uint256";
3981
+ readonly name: "wordPos";
3982
+ readonly type: "uint256";
3983
+ }, {
3984
+ readonly internalType: "uint256";
3985
+ readonly name: "mask";
3986
+ readonly type: "uint256";
3987
+ }];
3988
+ readonly name: "invalidateUnorderedNonces";
3989
+ readonly outputs: readonly [];
3990
+ readonly stateMutability: "nonpayable";
3991
+ readonly type: "function";
3992
+ }, {
3993
+ readonly inputs: readonly [{
3994
+ readonly components: readonly [{
3995
+ readonly internalType: "address";
3996
+ readonly name: "token";
3997
+ readonly type: "address";
3998
+ }, {
3999
+ readonly internalType: "address";
4000
+ readonly name: "spender";
4001
+ readonly type: "address";
4002
+ }];
4003
+ readonly internalType: "struct IAllowanceTransfer.TokenSpenderPair[]";
4004
+ readonly name: "approvals";
4005
+ readonly type: "tuple[]";
4006
+ }];
4007
+ readonly name: "lockdown";
4008
+ readonly outputs: readonly [];
4009
+ readonly stateMutability: "nonpayable";
4010
+ readonly type: "function";
4011
+ }, {
4012
+ readonly inputs: readonly [{
4013
+ readonly internalType: "address";
4014
+ readonly name: "";
4015
+ readonly type: "address";
4016
+ }, {
4017
+ readonly internalType: "uint256";
4018
+ readonly name: "";
4019
+ readonly type: "uint256";
4020
+ }];
4021
+ readonly name: "nonceBitmap";
4022
+ readonly outputs: readonly [{
4023
+ readonly internalType: "uint256";
4024
+ readonly name: "";
4025
+ readonly type: "uint256";
4026
+ }];
4027
+ readonly stateMutability: "view";
4028
+ readonly type: "function";
4029
+ }, {
4030
+ readonly inputs: readonly [{
4031
+ readonly internalType: "address";
4032
+ readonly name: "owner";
4033
+ readonly type: "address";
4034
+ }, {
4035
+ readonly components: readonly [{
4036
+ readonly components: readonly [{
4037
+ readonly internalType: "address";
4038
+ readonly name: "token";
4039
+ readonly type: "address";
4040
+ }, {
4041
+ readonly internalType: "uint160";
4042
+ readonly name: "amount";
4043
+ readonly type: "uint160";
4044
+ }, {
4045
+ readonly internalType: "uint48";
4046
+ readonly name: "expiration";
4047
+ readonly type: "uint48";
4048
+ }, {
4049
+ readonly internalType: "uint48";
4050
+ readonly name: "nonce";
4051
+ readonly type: "uint48";
4052
+ }];
4053
+ readonly internalType: "struct IAllowanceTransfer.PermitDetails[]";
4054
+ readonly name: "details";
4055
+ readonly type: "tuple[]";
4056
+ }, {
4057
+ readonly internalType: "address";
4058
+ readonly name: "spender";
4059
+ readonly type: "address";
4060
+ }, {
4061
+ readonly internalType: "uint256";
4062
+ readonly name: "sigDeadline";
4063
+ readonly type: "uint256";
4064
+ }];
4065
+ readonly internalType: "struct IAllowanceTransfer.PermitBatch";
4066
+ readonly name: "permitBatch";
4067
+ readonly type: "tuple";
4068
+ }, {
4069
+ readonly internalType: "bytes";
4070
+ readonly name: "signature";
4071
+ readonly type: "bytes";
4072
+ }];
4073
+ readonly name: "permit";
4074
+ readonly outputs: readonly [];
4075
+ readonly stateMutability: "nonpayable";
4076
+ readonly type: "function";
4077
+ }, {
4078
+ readonly inputs: readonly [{
4079
+ readonly internalType: "address";
4080
+ readonly name: "owner";
4081
+ readonly type: "address";
4082
+ }, {
4083
+ readonly components: readonly [{
4084
+ readonly components: readonly [{
4085
+ readonly internalType: "address";
4086
+ readonly name: "token";
4087
+ readonly type: "address";
4088
+ }, {
4089
+ readonly internalType: "uint160";
4090
+ readonly name: "amount";
4091
+ readonly type: "uint160";
4092
+ }, {
4093
+ readonly internalType: "uint48";
4094
+ readonly name: "expiration";
4095
+ readonly type: "uint48";
4096
+ }, {
4097
+ readonly internalType: "uint48";
4098
+ readonly name: "nonce";
4099
+ readonly type: "uint48";
4100
+ }];
4101
+ readonly internalType: "struct IAllowanceTransfer.PermitDetails";
4102
+ readonly name: "details";
4103
+ readonly type: "tuple";
4104
+ }, {
4105
+ readonly internalType: "address";
4106
+ readonly name: "spender";
4107
+ readonly type: "address";
4108
+ }, {
4109
+ readonly internalType: "uint256";
4110
+ readonly name: "sigDeadline";
4111
+ readonly type: "uint256";
4112
+ }];
4113
+ readonly internalType: "struct IAllowanceTransfer.PermitSingle";
4114
+ readonly name: "permitSingle";
4115
+ readonly type: "tuple";
4116
+ }, {
4117
+ readonly internalType: "bytes";
4118
+ readonly name: "signature";
4119
+ readonly type: "bytes";
4120
+ }];
4121
+ readonly name: "permit";
4122
+ readonly outputs: readonly [];
4123
+ readonly stateMutability: "nonpayable";
4124
+ readonly type: "function";
4125
+ }, {
4126
+ readonly inputs: readonly [{
4127
+ readonly components: readonly [{
4128
+ readonly components: readonly [{
4129
+ readonly internalType: "address";
4130
+ readonly name: "token";
4131
+ readonly type: "address";
4132
+ }, {
4133
+ readonly internalType: "uint256";
4134
+ readonly name: "amount";
4135
+ readonly type: "uint256";
4136
+ }];
4137
+ readonly internalType: "struct ISignatureTransfer.TokenPermissions";
4138
+ readonly name: "permitted";
4139
+ readonly type: "tuple";
4140
+ }, {
4141
+ readonly internalType: "uint256";
4142
+ readonly name: "nonce";
4143
+ readonly type: "uint256";
4144
+ }, {
4145
+ readonly internalType: "uint256";
4146
+ readonly name: "deadline";
4147
+ readonly type: "uint256";
4148
+ }];
4149
+ readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
4150
+ readonly name: "permit";
4151
+ readonly type: "tuple";
4152
+ }, {
4153
+ readonly components: readonly [{
4154
+ readonly internalType: "address";
4155
+ readonly name: "to";
4156
+ readonly type: "address";
4157
+ }, {
4158
+ readonly internalType: "uint256";
4159
+ readonly name: "requestedAmount";
4160
+ readonly type: "uint256";
4161
+ }];
4162
+ readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails";
4163
+ readonly name: "transferDetails";
4164
+ readonly type: "tuple";
4165
+ }, {
4166
+ readonly internalType: "address";
4167
+ readonly name: "owner";
4168
+ readonly type: "address";
4169
+ }, {
4170
+ readonly internalType: "bytes";
4171
+ readonly name: "signature";
4172
+ readonly type: "bytes";
4173
+ }];
4174
+ readonly name: "permitTransferFrom";
4175
+ readonly outputs: readonly [];
4176
+ readonly stateMutability: "nonpayable";
4177
+ readonly type: "function";
4178
+ }, {
4179
+ readonly inputs: readonly [{
4180
+ readonly components: readonly [{
4181
+ readonly components: readonly [{
4182
+ readonly internalType: "address";
4183
+ readonly name: "token";
4184
+ readonly type: "address";
4185
+ }, {
4186
+ readonly internalType: "uint256";
4187
+ readonly name: "amount";
4188
+ readonly type: "uint256";
4189
+ }];
4190
+ readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
4191
+ readonly name: "permitted";
4192
+ readonly type: "tuple[]";
4193
+ }, {
4194
+ readonly internalType: "uint256";
4195
+ readonly name: "nonce";
4196
+ readonly type: "uint256";
4197
+ }, {
4198
+ readonly internalType: "uint256";
4199
+ readonly name: "deadline";
4200
+ readonly type: "uint256";
4201
+ }];
4202
+ readonly internalType: "struct ISignatureTransfer.PermitBatchTransferFrom";
4203
+ readonly name: "permit";
4204
+ readonly type: "tuple";
4205
+ }, {
4206
+ readonly components: readonly [{
4207
+ readonly internalType: "address";
4208
+ readonly name: "to";
4209
+ readonly type: "address";
4210
+ }, {
4211
+ readonly internalType: "uint256";
4212
+ readonly name: "requestedAmount";
4213
+ readonly type: "uint256";
4214
+ }];
4215
+ readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails[]";
4216
+ readonly name: "transferDetails";
4217
+ readonly type: "tuple[]";
4218
+ }, {
4219
+ readonly internalType: "address";
4220
+ readonly name: "owner";
4221
+ readonly type: "address";
4222
+ }, {
4223
+ readonly internalType: "bytes";
4224
+ readonly name: "signature";
4225
+ readonly type: "bytes";
4226
+ }];
4227
+ readonly name: "permitTransferFrom";
4228
+ readonly outputs: readonly [];
4229
+ readonly stateMutability: "nonpayable";
4230
+ readonly type: "function";
4231
+ }, {
4232
+ readonly inputs: readonly [{
4233
+ readonly components: readonly [{
4234
+ readonly components: readonly [{
4235
+ readonly internalType: "address";
4236
+ readonly name: "token";
4237
+ readonly type: "address";
4238
+ }, {
4239
+ readonly internalType: "uint256";
4240
+ readonly name: "amount";
4241
+ readonly type: "uint256";
4242
+ }];
4243
+ readonly internalType: "struct ISignatureTransfer.TokenPermissions";
4244
+ readonly name: "permitted";
4245
+ readonly type: "tuple";
4246
+ }, {
4247
+ readonly internalType: "uint256";
4248
+ readonly name: "nonce";
4249
+ readonly type: "uint256";
4250
+ }, {
4251
+ readonly internalType: "uint256";
4252
+ readonly name: "deadline";
4253
+ readonly type: "uint256";
4254
+ }];
4255
+ readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
4256
+ readonly name: "permit";
4257
+ readonly type: "tuple";
4258
+ }, {
4259
+ readonly components: readonly [{
4260
+ readonly internalType: "address";
4261
+ readonly name: "to";
4262
+ readonly type: "address";
4263
+ }, {
4264
+ readonly internalType: "uint256";
4265
+ readonly name: "requestedAmount";
4266
+ readonly type: "uint256";
4267
+ }];
4268
+ readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails";
4269
+ readonly name: "transferDetails";
4270
+ readonly type: "tuple";
4271
+ }, {
4272
+ readonly internalType: "address";
4273
+ readonly name: "owner";
4274
+ readonly type: "address";
4275
+ }, {
4276
+ readonly internalType: "bytes32";
4277
+ readonly name: "witness";
4278
+ readonly type: "bytes32";
4279
+ }, {
4280
+ readonly internalType: "string";
4281
+ readonly name: "witnessTypeString";
4282
+ readonly type: "string";
4283
+ }, {
4284
+ readonly internalType: "bytes";
4285
+ readonly name: "signature";
4286
+ readonly type: "bytes";
4287
+ }];
4288
+ readonly name: "permitWitnessTransferFrom";
4289
+ readonly outputs: readonly [];
4290
+ readonly stateMutability: "nonpayable";
4291
+ readonly type: "function";
4292
+ }, {
4293
+ readonly inputs: readonly [{
4294
+ readonly components: readonly [{
4295
+ readonly components: readonly [{
4296
+ readonly internalType: "address";
4297
+ readonly name: "token";
4298
+ readonly type: "address";
4299
+ }, {
4300
+ readonly internalType: "uint256";
4301
+ readonly name: "amount";
4302
+ readonly type: "uint256";
4303
+ }];
4304
+ readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
4305
+ readonly name: "permitted";
4306
+ readonly type: "tuple[]";
4307
+ }, {
4308
+ readonly internalType: "uint256";
4309
+ readonly name: "nonce";
4310
+ readonly type: "uint256";
4311
+ }, {
4312
+ readonly internalType: "uint256";
4313
+ readonly name: "deadline";
4314
+ readonly type: "uint256";
4315
+ }];
4316
+ readonly internalType: "struct ISignatureTransfer.PermitBatchTransferFrom";
4317
+ readonly name: "permit";
4318
+ readonly type: "tuple";
4319
+ }, {
4320
+ readonly components: readonly [{
4321
+ readonly internalType: "address";
4322
+ readonly name: "to";
4323
+ readonly type: "address";
4324
+ }, {
4325
+ readonly internalType: "uint256";
4326
+ readonly name: "requestedAmount";
4327
+ readonly type: "uint256";
4328
+ }];
4329
+ readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails[]";
4330
+ readonly name: "transferDetails";
4331
+ readonly type: "tuple[]";
4332
+ }, {
4333
+ readonly internalType: "address";
4334
+ readonly name: "owner";
4335
+ readonly type: "address";
4336
+ }, {
4337
+ readonly internalType: "bytes32";
4338
+ readonly name: "witness";
4339
+ readonly type: "bytes32";
4340
+ }, {
4341
+ readonly internalType: "string";
4342
+ readonly name: "witnessTypeString";
4343
+ readonly type: "string";
4344
+ }, {
4345
+ readonly internalType: "bytes";
4346
+ readonly name: "signature";
4347
+ readonly type: "bytes";
4348
+ }];
4349
+ readonly name: "permitWitnessTransferFrom";
4350
+ readonly outputs: readonly [];
4351
+ readonly stateMutability: "nonpayable";
4352
+ readonly type: "function";
4353
+ }, {
4354
+ readonly inputs: readonly [{
4355
+ readonly components: readonly [{
4356
+ readonly internalType: "address";
4357
+ readonly name: "from";
4358
+ readonly type: "address";
4359
+ }, {
4360
+ readonly internalType: "address";
4361
+ readonly name: "to";
4362
+ readonly type: "address";
4363
+ }, {
4364
+ readonly internalType: "uint160";
4365
+ readonly name: "amount";
4366
+ readonly type: "uint160";
4367
+ }, {
4368
+ readonly internalType: "address";
4369
+ readonly name: "token";
4370
+ readonly type: "address";
4371
+ }];
4372
+ readonly internalType: "struct IAllowanceTransfer.AllowanceTransferDetails[]";
4373
+ readonly name: "transferDetails";
4374
+ readonly type: "tuple[]";
4375
+ }];
4376
+ readonly name: "transferFrom";
4377
+ readonly outputs: readonly [];
4378
+ readonly stateMutability: "nonpayable";
4379
+ readonly type: "function";
4380
+ }, {
4381
+ readonly inputs: readonly [{
4382
+ readonly internalType: "address";
4383
+ readonly name: "from";
4384
+ readonly type: "address";
4385
+ }, {
4386
+ readonly internalType: "address";
4387
+ readonly name: "to";
4388
+ readonly type: "address";
4389
+ }, {
4390
+ readonly internalType: "uint160";
4391
+ readonly name: "amount";
4392
+ readonly type: "uint160";
4393
+ }, {
4394
+ readonly internalType: "address";
4395
+ readonly name: "token";
4396
+ readonly type: "address";
4397
+ }];
4398
+ readonly name: "transferFrom";
4399
+ readonly outputs: readonly [];
4400
+ readonly stateMutability: "nonpayable";
4401
+ readonly type: "function";
4402
+ }] | readonly [{
3773
4403
  readonly constant: true;
3774
4404
  readonly inputs: readonly [];
3775
4405
  readonly name: "name";