@seal-protocol/backendjs 0.0.77 → 0.0.78
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/lib/abi-types/Erc20.d.ts +141 -0
- package/lib/abi-types/Erc20.js +2 -0
- package/lib/abi-types/Erc20Permit.d.ts +236 -0
- package/lib/abi-types/Erc20Permit.js +2 -0
- package/lib/abi-types/Permit2.d.ts +556 -0
- package/lib/abi-types/Permit2.js +2 -0
- package/lib/abi-types/common.d.ts +50 -0
- package/lib/abi-types/common.js +2 -0
- package/lib/abi-types/factories/Erc20Permit__factory.d.ts +402 -0
- package/lib/abi-types/factories/Erc20Permit__factory.js +537 -0
- package/lib/abi-types/factories/Erc20__factory.d.ts +174 -0
- package/lib/abi-types/factories/Erc20__factory.js +239 -0
- package/lib/abi-types/factories/Permit2__factory.d.ts +706 -0
- package/lib/abi-types/factories/Permit2__factory.js +918 -0
- package/lib/abi-types/factories/index.d.ts +3 -0
- package/lib/abi-types/factories/index.js +12 -0
- package/lib/abi-types/index.d.ts +7 -0
- package/lib/abi-types/index.js +43 -0
- package/lib/{api → codegen/api}/seal-client.d.ts +20 -20
- package/lib/codegen/index.d.ts +14 -0
- package/lib/codegen/index.js +32 -0
- package/lib/index.d.ts +2 -14
- package/lib/index.js +2 -16
- package/lib/utils/calculate-liquidity.d.ts +25 -0
- package/lib/utils/calculate-liquidity.js +135 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +6 -0
- package/package.json +8 -3
- package/lib/model/seal-create-order-intent-request.d.ts +0 -121
- package/lib/model/seal-create-order-intent-request.js +0 -15
- package/lib/model/seal-create-order-intent-response.d.ts +0 -24
- package/lib/model/seal-create-order-intent-response.js +0 -15
- package/lib/model/seal-eip712-domain-config.d.ts +0 -42
- package/lib/model/seal-eip712-domain-config.js +0 -15
- package/lib/model/seal-get-permit-approvals-response.d.ts +0 -31
- package/lib/model/seal-get-permit-approvals-response.js +0 -15
- package/lib/model/seal-get-reservation-settlement-activities-response.d.ts +0 -31
- package/lib/model/seal-get-reservation-settlement-activities-response.js +0 -15
- package/lib/model/seal-order-activity-with-order.d.ts +0 -32
- package/lib/model/seal-order-activity-with-order.js +0 -15
- package/lib/model/seal-order-config.d.ts +0 -36
- package/lib/model/seal-order-config.js +0 -15
- package/lib/model/seal-order-intent.d.ts +0 -31
- package/lib/model/seal-order-intent.js +0 -15
- package/lib/model/seal-pagination.d.ts +0 -36
- package/lib/model/seal-pagination.js +0 -15
- package/lib/model/seal-signature-verification-config.d.ts +0 -25
- package/lib/model/seal-signature-verification-config.js +0 -15
- package/lib/model/seal-sync-state.d.ts +0 -55
- package/lib/model/seal-sync-state.js +0 -15
- package/lib/model/types-order-status.d.ts +0 -24
- package/lib/model/types-order-status.js +0 -30
- package/lib/model/types-transfer-permission-type.d.ts +0 -22
- package/lib/model/types-transfer-permission-type.js +0 -28
- /package/lib/{api → codegen/api}/seal-client.js +0 -0
- /package/lib/{api.d.ts → codegen/api.d.ts} +0 -0
- /package/lib/{api.js → codegen/api.js} +0 -0
- /package/lib/{base.d.ts → codegen/base.d.ts} +0 -0
- /package/lib/{base.js → codegen/base.js} +0 -0
- /package/lib/{common.d.ts → codegen/common.d.ts} +0 -0
- /package/lib/{common.js → codegen/common.js} +0 -0
- /package/lib/{configuration.d.ts → codegen/configuration.d.ts} +0 -0
- /package/lib/{configuration.js → codegen/configuration.js} +0 -0
- /package/lib/{model → codegen/model}/index.d.ts +0 -0
- /package/lib/{model → codegen/model}/index.js +0 -0
- /package/lib/{model → codegen/model}/protobuf-any.d.ts +0 -0
- /package/lib/{model → codegen/model}/protobuf-any.js +0 -0
- /package/lib/{model → codegen/model}/rpc-status.d.ts +0 -0
- /package/lib/{model → codegen/model}/rpc-status.js +0 -0
- /package/lib/{model → codegen/model}/seal-approval-type.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-approval-type.js +0 -0
- /package/lib/{model → codegen/model}/seal-calculate-required-permit-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-calculate-required-permit-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-cancel-order-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-cancel-order-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-chain-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-chain-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-chain-health.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-chain-health.js +0 -0
- /package/lib/{model → codegen/model}/seal-chain-sync-state.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-chain-sync-state.js +0 -0
- /package/lib/{model → codegen/model}/seal-chain.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-chain.js +0 -0
- /package/lib/{model → codegen/model}/seal-chains-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-chains-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/seal-chains-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-chains-order-by.js +0 -0
- /package/lib/{model → codegen/model}/seal-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-contract-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-contract-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-create-execution-message-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-create-execution-message-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-create-execution-message-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-create-execution-message-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-create-order-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-create-order-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-create-order-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-create-order-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-create-token-permit-approval-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-create-token-permit-approval-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-database-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-database-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-delete-token-permit-approval-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-delete-token-permit-approval-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-domain-info.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-domain-info.js +0 -0
- /package/lib/{model → codegen/model}/seal-domain-separator-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-domain-separator-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-chains-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-chains-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-config-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-config-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-health-check-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-health-check-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-order-activities-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-order-activities-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-order-nonce-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-order-nonce-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-order-reservations-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-order-reservations-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-orders-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-orders-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-pair-price-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-pair-price-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-pairs-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-pairs-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-seal-contract-params-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-seal-contract-params-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-sync-state-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-sync-state-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-token-permit-approvals-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-token-permit-approvals-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-get-tokens-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-get-tokens-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-greenlight.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-greenlight.js +0 -0
- /package/lib/{model → codegen/model}/seal-issue-greenlight-response.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-issue-greenlight-response.js +0 -0
- /package/lib/{model → codegen/model}/seal-logger-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-logger-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-activities-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-activities-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-activities-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-activities-order-by.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-activity.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-activity.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-reservation.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-reservation.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-reservations-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-reservations-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-reservations-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-reservations-order-by.js +0 -0
- /package/lib/{model → codegen/model}/seal-order-settlement-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order-settlement-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-order.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-order.js +0 -0
- /package/lib/{model → codegen/model}/seal-orders-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-orders-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/seal-orders-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-orders-order-by.js +0 -0
- /package/lib/{model → codegen/model}/seal-pair.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-pair.js +0 -0
- /package/lib/{model → codegen/model}/seal-pairs-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-pairs-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/seal-pairs-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-pairs-order-by.js +0 -0
- /package/lib/{model → codegen/model}/seal-reservation-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-reservation-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-reservation-settlement-request.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-reservation-settlement-request.js +0 -0
- /package/lib/{model → codegen/model}/seal-seal-contract-config.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-seal-contract-config.js +0 -0
- /package/lib/{model → codegen/model}/seal-seal-contract-params.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-seal-contract-params.js +0 -0
- /package/lib/{model → codegen/model}/seal-token-permit-approval.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-token-permit-approval.js +0 -0
- /package/lib/{model → codegen/model}/seal-token.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-token.js +0 -0
- /package/lib/{model → codegen/model}/seal-tokens-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-tokens-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/seal-tokens-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-tokens-order-by.js +0 -0
- /package/lib/{model → codegen/model}/seal-transfer-permission.d.ts +0 -0
- /package/lib/{model → codegen/model}/seal-transfer-permission.js +0 -0
- /package/lib/{model → codegen/model}/types-bool.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-bool.js +0 -0
- /package/lib/{model → codegen/model}/types-order-activity-type.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-order-activity-type.js +0 -0
- /package/lib/{model → codegen/model}/types-pagination.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-pagination.js +0 -0
- /package/lib/{model → codegen/model}/types-timestamp.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-timestamp.js +0 -0
- /package/lib/{model → codegen/model}/types-token-permit-approvals-order-by-property.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-token-permit-approvals-order-by-property.js +0 -0
- /package/lib/{model → codegen/model}/types-token-permit-approvals-order-by.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-token-permit-approvals-order-by.js +0 -0
- /package/lib/{model → codegen/model}/types-transfer-permit-type.d.ts +0 -0
- /package/lib/{model → codegen/model}/types-transfer-permit-type.js +0 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export declare namespace IAllowanceTransfer {
|
|
4
|
+
type TokenSpenderPairStruct = {
|
|
5
|
+
token: AddressLike;
|
|
6
|
+
spender: AddressLike;
|
|
7
|
+
};
|
|
8
|
+
type TokenSpenderPairStructOutput = [
|
|
9
|
+
token: string,
|
|
10
|
+
spender: string
|
|
11
|
+
] & {
|
|
12
|
+
token: string;
|
|
13
|
+
spender: string;
|
|
14
|
+
};
|
|
15
|
+
type PermitDetailsStruct = {
|
|
16
|
+
token: AddressLike;
|
|
17
|
+
amount: BigNumberish;
|
|
18
|
+
expiration: BigNumberish;
|
|
19
|
+
nonce: BigNumberish;
|
|
20
|
+
};
|
|
21
|
+
type PermitDetailsStructOutput = [
|
|
22
|
+
token: string,
|
|
23
|
+
amount: bigint,
|
|
24
|
+
expiration: bigint,
|
|
25
|
+
nonce: bigint
|
|
26
|
+
] & {
|
|
27
|
+
token: string;
|
|
28
|
+
amount: bigint;
|
|
29
|
+
expiration: bigint;
|
|
30
|
+
nonce: bigint;
|
|
31
|
+
};
|
|
32
|
+
type PermitBatchStruct = {
|
|
33
|
+
details: IAllowanceTransfer.PermitDetailsStruct[];
|
|
34
|
+
spender: AddressLike;
|
|
35
|
+
sigDeadline: BigNumberish;
|
|
36
|
+
};
|
|
37
|
+
type PermitBatchStructOutput = [
|
|
38
|
+
details: IAllowanceTransfer.PermitDetailsStructOutput[],
|
|
39
|
+
spender: string,
|
|
40
|
+
sigDeadline: bigint
|
|
41
|
+
] & {
|
|
42
|
+
details: IAllowanceTransfer.PermitDetailsStructOutput[];
|
|
43
|
+
spender: string;
|
|
44
|
+
sigDeadline: bigint;
|
|
45
|
+
};
|
|
46
|
+
type PermitSingleStruct = {
|
|
47
|
+
details: IAllowanceTransfer.PermitDetailsStruct;
|
|
48
|
+
spender: AddressLike;
|
|
49
|
+
sigDeadline: BigNumberish;
|
|
50
|
+
};
|
|
51
|
+
type PermitSingleStructOutput = [
|
|
52
|
+
details: IAllowanceTransfer.PermitDetailsStructOutput,
|
|
53
|
+
spender: string,
|
|
54
|
+
sigDeadline: bigint
|
|
55
|
+
] & {
|
|
56
|
+
details: IAllowanceTransfer.PermitDetailsStructOutput;
|
|
57
|
+
spender: string;
|
|
58
|
+
sigDeadline: bigint;
|
|
59
|
+
};
|
|
60
|
+
type AllowanceTransferDetailsStruct = {
|
|
61
|
+
from: AddressLike;
|
|
62
|
+
to: AddressLike;
|
|
63
|
+
amount: BigNumberish;
|
|
64
|
+
token: AddressLike;
|
|
65
|
+
};
|
|
66
|
+
type AllowanceTransferDetailsStructOutput = [
|
|
67
|
+
from: string,
|
|
68
|
+
to: string,
|
|
69
|
+
amount: bigint,
|
|
70
|
+
token: string
|
|
71
|
+
] & {
|
|
72
|
+
from: string;
|
|
73
|
+
to: string;
|
|
74
|
+
amount: bigint;
|
|
75
|
+
token: string;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export declare namespace ISignatureTransfer {
|
|
79
|
+
type TokenPermissionsStruct = {
|
|
80
|
+
token: AddressLike;
|
|
81
|
+
amount: BigNumberish;
|
|
82
|
+
};
|
|
83
|
+
type TokenPermissionsStructOutput = [token: string, amount: bigint] & {
|
|
84
|
+
token: string;
|
|
85
|
+
amount: bigint;
|
|
86
|
+
};
|
|
87
|
+
type PermitTransferFromStruct = {
|
|
88
|
+
permitted: ISignatureTransfer.TokenPermissionsStruct;
|
|
89
|
+
nonce: BigNumberish;
|
|
90
|
+
deadline: BigNumberish;
|
|
91
|
+
};
|
|
92
|
+
type PermitTransferFromStructOutput = [
|
|
93
|
+
permitted: ISignatureTransfer.TokenPermissionsStructOutput,
|
|
94
|
+
nonce: bigint,
|
|
95
|
+
deadline: bigint
|
|
96
|
+
] & {
|
|
97
|
+
permitted: ISignatureTransfer.TokenPermissionsStructOutput;
|
|
98
|
+
nonce: bigint;
|
|
99
|
+
deadline: bigint;
|
|
100
|
+
};
|
|
101
|
+
type SignatureTransferDetailsStruct = {
|
|
102
|
+
to: AddressLike;
|
|
103
|
+
requestedAmount: BigNumberish;
|
|
104
|
+
};
|
|
105
|
+
type SignatureTransferDetailsStructOutput = [
|
|
106
|
+
to: string,
|
|
107
|
+
requestedAmount: bigint
|
|
108
|
+
] & {
|
|
109
|
+
to: string;
|
|
110
|
+
requestedAmount: bigint;
|
|
111
|
+
};
|
|
112
|
+
type PermitBatchTransferFromStruct = {
|
|
113
|
+
permitted: ISignatureTransfer.TokenPermissionsStruct[];
|
|
114
|
+
nonce: BigNumberish;
|
|
115
|
+
deadline: BigNumberish;
|
|
116
|
+
};
|
|
117
|
+
type PermitBatchTransferFromStructOutput = [
|
|
118
|
+
permitted: ISignatureTransfer.TokenPermissionsStructOutput[],
|
|
119
|
+
nonce: bigint,
|
|
120
|
+
deadline: bigint
|
|
121
|
+
] & {
|
|
122
|
+
permitted: ISignatureTransfer.TokenPermissionsStructOutput[];
|
|
123
|
+
nonce: bigint;
|
|
124
|
+
deadline: bigint;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export interface Permit2Interface extends Interface {
|
|
128
|
+
getFunction(nameOrSignature: "DOMAIN_SEPARATOR" | "allowance" | "approve" | "invalidateNonces" | "invalidateUnorderedNonces" | "lockdown" | "nonceBitmap" | "permit(address,((address,uint160,uint48,uint48)[],address,uint256),bytes)" | "permit(address,((address,uint160,uint48,uint48),address,uint256),bytes)" | "permitTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes)" | "permitTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes)" | "permitWitnessTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes32,string,bytes)" | "permitWitnessTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes32,string,bytes)" | "transferFrom((address,address,uint160,address)[])" | "transferFrom(address,address,uint160,address)"): FunctionFragment;
|
|
129
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Lockdown" | "NonceInvalidation" | "Permit" | "UnorderedNonceInvalidation"): EventFragment;
|
|
130
|
+
encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string;
|
|
131
|
+
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
132
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
133
|
+
encodeFunctionData(functionFragment: "invalidateNonces", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
134
|
+
encodeFunctionData(functionFragment: "invalidateUnorderedNonces", values: [BigNumberish, BigNumberish]): string;
|
|
135
|
+
encodeFunctionData(functionFragment: "lockdown", values: [IAllowanceTransfer.TokenSpenderPairStruct[]]): string;
|
|
136
|
+
encodeFunctionData(functionFragment: "nonceBitmap", values: [AddressLike, BigNumberish]): string;
|
|
137
|
+
encodeFunctionData(functionFragment: "permit(address,((address,uint160,uint48,uint48)[],address,uint256),bytes)", values: [AddressLike, IAllowanceTransfer.PermitBatchStruct, BytesLike]): string;
|
|
138
|
+
encodeFunctionData(functionFragment: "permit(address,((address,uint160,uint48,uint48),address,uint256),bytes)", values: [AddressLike, IAllowanceTransfer.PermitSingleStruct, BytesLike]): string;
|
|
139
|
+
encodeFunctionData(functionFragment: "permitTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes)", values: [
|
|
140
|
+
ISignatureTransfer.PermitTransferFromStruct,
|
|
141
|
+
ISignatureTransfer.SignatureTransferDetailsStruct,
|
|
142
|
+
AddressLike,
|
|
143
|
+
BytesLike
|
|
144
|
+
]): string;
|
|
145
|
+
encodeFunctionData(functionFragment: "permitTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes)", values: [
|
|
146
|
+
ISignatureTransfer.PermitBatchTransferFromStruct,
|
|
147
|
+
ISignatureTransfer.SignatureTransferDetailsStruct[],
|
|
148
|
+
AddressLike,
|
|
149
|
+
BytesLike
|
|
150
|
+
]): string;
|
|
151
|
+
encodeFunctionData(functionFragment: "permitWitnessTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes32,string,bytes)", values: [
|
|
152
|
+
ISignatureTransfer.PermitTransferFromStruct,
|
|
153
|
+
ISignatureTransfer.SignatureTransferDetailsStruct,
|
|
154
|
+
AddressLike,
|
|
155
|
+
BytesLike,
|
|
156
|
+
string,
|
|
157
|
+
BytesLike
|
|
158
|
+
]): string;
|
|
159
|
+
encodeFunctionData(functionFragment: "permitWitnessTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes32,string,bytes)", values: [
|
|
160
|
+
ISignatureTransfer.PermitBatchTransferFromStruct,
|
|
161
|
+
ISignatureTransfer.SignatureTransferDetailsStruct[],
|
|
162
|
+
AddressLike,
|
|
163
|
+
BytesLike,
|
|
164
|
+
string,
|
|
165
|
+
BytesLike
|
|
166
|
+
]): string;
|
|
167
|
+
encodeFunctionData(functionFragment: "transferFrom((address,address,uint160,address)[])", values: [IAllowanceTransfer.AllowanceTransferDetailsStruct[]]): string;
|
|
168
|
+
encodeFunctionData(functionFragment: "transferFrom(address,address,uint160,address)", values: [AddressLike, AddressLike, BigNumberish, AddressLike]): string;
|
|
169
|
+
decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result;
|
|
170
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
171
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
172
|
+
decodeFunctionResult(functionFragment: "invalidateNonces", data: BytesLike): Result;
|
|
173
|
+
decodeFunctionResult(functionFragment: "invalidateUnorderedNonces", data: BytesLike): Result;
|
|
174
|
+
decodeFunctionResult(functionFragment: "lockdown", data: BytesLike): Result;
|
|
175
|
+
decodeFunctionResult(functionFragment: "nonceBitmap", data: BytesLike): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: "permit(address,((address,uint160,uint48,uint48)[],address,uint256),bytes)", data: BytesLike): Result;
|
|
177
|
+
decodeFunctionResult(functionFragment: "permit(address,((address,uint160,uint48,uint48),address,uint256),bytes)", data: BytesLike): Result;
|
|
178
|
+
decodeFunctionResult(functionFragment: "permitTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes)", data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: "permitTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes)", data: BytesLike): Result;
|
|
180
|
+
decodeFunctionResult(functionFragment: "permitWitnessTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes32,string,bytes)", data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: "permitWitnessTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes32,string,bytes)", data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: "transferFrom((address,address,uint160,address)[])", data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: "transferFrom(address,address,uint160,address)", data: BytesLike): Result;
|
|
184
|
+
}
|
|
185
|
+
export declare namespace ApprovalEvent {
|
|
186
|
+
type InputTuple = [
|
|
187
|
+
owner: AddressLike,
|
|
188
|
+
token: AddressLike,
|
|
189
|
+
spender: AddressLike,
|
|
190
|
+
amount: BigNumberish,
|
|
191
|
+
expiration: BigNumberish
|
|
192
|
+
];
|
|
193
|
+
type OutputTuple = [
|
|
194
|
+
owner: string,
|
|
195
|
+
token: string,
|
|
196
|
+
spender: string,
|
|
197
|
+
amount: bigint,
|
|
198
|
+
expiration: bigint
|
|
199
|
+
];
|
|
200
|
+
interface OutputObject {
|
|
201
|
+
owner: string;
|
|
202
|
+
token: string;
|
|
203
|
+
spender: string;
|
|
204
|
+
amount: bigint;
|
|
205
|
+
expiration: bigint;
|
|
206
|
+
}
|
|
207
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
208
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
209
|
+
type Log = TypedEventLog<Event>;
|
|
210
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
211
|
+
}
|
|
212
|
+
export declare namespace LockdownEvent {
|
|
213
|
+
type InputTuple = [
|
|
214
|
+
owner: AddressLike,
|
|
215
|
+
token: AddressLike,
|
|
216
|
+
spender: AddressLike
|
|
217
|
+
];
|
|
218
|
+
type OutputTuple = [owner: string, token: string, spender: string];
|
|
219
|
+
interface OutputObject {
|
|
220
|
+
owner: string;
|
|
221
|
+
token: string;
|
|
222
|
+
spender: string;
|
|
223
|
+
}
|
|
224
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
225
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
226
|
+
type Log = TypedEventLog<Event>;
|
|
227
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
228
|
+
}
|
|
229
|
+
export declare namespace NonceInvalidationEvent {
|
|
230
|
+
type InputTuple = [
|
|
231
|
+
owner: AddressLike,
|
|
232
|
+
token: AddressLike,
|
|
233
|
+
spender: AddressLike,
|
|
234
|
+
newNonce: BigNumberish,
|
|
235
|
+
oldNonce: BigNumberish
|
|
236
|
+
];
|
|
237
|
+
type OutputTuple = [
|
|
238
|
+
owner: string,
|
|
239
|
+
token: string,
|
|
240
|
+
spender: string,
|
|
241
|
+
newNonce: bigint,
|
|
242
|
+
oldNonce: bigint
|
|
243
|
+
];
|
|
244
|
+
interface OutputObject {
|
|
245
|
+
owner: string;
|
|
246
|
+
token: string;
|
|
247
|
+
spender: string;
|
|
248
|
+
newNonce: bigint;
|
|
249
|
+
oldNonce: bigint;
|
|
250
|
+
}
|
|
251
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
252
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
253
|
+
type Log = TypedEventLog<Event>;
|
|
254
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
255
|
+
}
|
|
256
|
+
export declare namespace PermitEvent {
|
|
257
|
+
type InputTuple = [
|
|
258
|
+
owner: AddressLike,
|
|
259
|
+
token: AddressLike,
|
|
260
|
+
spender: AddressLike,
|
|
261
|
+
amount: BigNumberish,
|
|
262
|
+
expiration: BigNumberish,
|
|
263
|
+
nonce: BigNumberish
|
|
264
|
+
];
|
|
265
|
+
type OutputTuple = [
|
|
266
|
+
owner: string,
|
|
267
|
+
token: string,
|
|
268
|
+
spender: string,
|
|
269
|
+
amount: bigint,
|
|
270
|
+
expiration: bigint,
|
|
271
|
+
nonce: bigint
|
|
272
|
+
];
|
|
273
|
+
interface OutputObject {
|
|
274
|
+
owner: string;
|
|
275
|
+
token: string;
|
|
276
|
+
spender: string;
|
|
277
|
+
amount: bigint;
|
|
278
|
+
expiration: bigint;
|
|
279
|
+
nonce: bigint;
|
|
280
|
+
}
|
|
281
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
282
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
283
|
+
type Log = TypedEventLog<Event>;
|
|
284
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
285
|
+
}
|
|
286
|
+
export declare namespace UnorderedNonceInvalidationEvent {
|
|
287
|
+
type InputTuple = [
|
|
288
|
+
owner: AddressLike,
|
|
289
|
+
word: BigNumberish,
|
|
290
|
+
mask: BigNumberish
|
|
291
|
+
];
|
|
292
|
+
type OutputTuple = [owner: string, word: bigint, mask: bigint];
|
|
293
|
+
interface OutputObject {
|
|
294
|
+
owner: string;
|
|
295
|
+
word: bigint;
|
|
296
|
+
mask: bigint;
|
|
297
|
+
}
|
|
298
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
299
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
300
|
+
type Log = TypedEventLog<Event>;
|
|
301
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
302
|
+
}
|
|
303
|
+
export interface Permit2 extends BaseContract {
|
|
304
|
+
connect(runner?: ContractRunner | null): Permit2;
|
|
305
|
+
waitForDeployment(): Promise<this>;
|
|
306
|
+
interface: Permit2Interface;
|
|
307
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
308
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
309
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
310
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
311
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
312
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
313
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
314
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
315
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
316
|
+
DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">;
|
|
317
|
+
allowance: TypedContractMethod<[
|
|
318
|
+
arg0: AddressLike,
|
|
319
|
+
arg1: AddressLike,
|
|
320
|
+
arg2: AddressLike
|
|
321
|
+
], [
|
|
322
|
+
[
|
|
323
|
+
bigint,
|
|
324
|
+
bigint,
|
|
325
|
+
bigint
|
|
326
|
+
] & {
|
|
327
|
+
amount: bigint;
|
|
328
|
+
expiration: bigint;
|
|
329
|
+
nonce: bigint;
|
|
330
|
+
}
|
|
331
|
+
], "view">;
|
|
332
|
+
approve: TypedContractMethod<[
|
|
333
|
+
token: AddressLike,
|
|
334
|
+
spender: AddressLike,
|
|
335
|
+
amount: BigNumberish,
|
|
336
|
+
expiration: BigNumberish
|
|
337
|
+
], [
|
|
338
|
+
void
|
|
339
|
+
], "nonpayable">;
|
|
340
|
+
invalidateNonces: TypedContractMethod<[
|
|
341
|
+
token: AddressLike,
|
|
342
|
+
spender: AddressLike,
|
|
343
|
+
newNonce: BigNumberish
|
|
344
|
+
], [
|
|
345
|
+
void
|
|
346
|
+
], "nonpayable">;
|
|
347
|
+
invalidateUnorderedNonces: TypedContractMethod<[
|
|
348
|
+
wordPos: BigNumberish,
|
|
349
|
+
mask: BigNumberish
|
|
350
|
+
], [
|
|
351
|
+
void
|
|
352
|
+
], "nonpayable">;
|
|
353
|
+
lockdown: TypedContractMethod<[
|
|
354
|
+
approvals: IAllowanceTransfer.TokenSpenderPairStruct[]
|
|
355
|
+
], [
|
|
356
|
+
void
|
|
357
|
+
], "nonpayable">;
|
|
358
|
+
nonceBitmap: TypedContractMethod<[
|
|
359
|
+
arg0: AddressLike,
|
|
360
|
+
arg1: BigNumberish
|
|
361
|
+
], [
|
|
362
|
+
bigint
|
|
363
|
+
], "view">;
|
|
364
|
+
"permit(address,((address,uint160,uint48,uint48)[],address,uint256),bytes)": TypedContractMethod<[
|
|
365
|
+
owner: AddressLike,
|
|
366
|
+
permitBatch: IAllowanceTransfer.PermitBatchStruct,
|
|
367
|
+
signature: BytesLike
|
|
368
|
+
], [
|
|
369
|
+
void
|
|
370
|
+
], "nonpayable">;
|
|
371
|
+
"permit(address,((address,uint160,uint48,uint48),address,uint256),bytes)": TypedContractMethod<[
|
|
372
|
+
owner: AddressLike,
|
|
373
|
+
permitSingle: IAllowanceTransfer.PermitSingleStruct,
|
|
374
|
+
signature: BytesLike
|
|
375
|
+
], [
|
|
376
|
+
void
|
|
377
|
+
], "nonpayable">;
|
|
378
|
+
"permitTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes)": TypedContractMethod<[
|
|
379
|
+
permit: ISignatureTransfer.PermitTransferFromStruct,
|
|
380
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct,
|
|
381
|
+
owner: AddressLike,
|
|
382
|
+
signature: BytesLike
|
|
383
|
+
], [
|
|
384
|
+
void
|
|
385
|
+
], "nonpayable">;
|
|
386
|
+
"permitTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes)": TypedContractMethod<[
|
|
387
|
+
permit: ISignatureTransfer.PermitBatchTransferFromStruct,
|
|
388
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct[],
|
|
389
|
+
owner: AddressLike,
|
|
390
|
+
signature: BytesLike
|
|
391
|
+
], [
|
|
392
|
+
void
|
|
393
|
+
], "nonpayable">;
|
|
394
|
+
"permitWitnessTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes32,string,bytes)": TypedContractMethod<[
|
|
395
|
+
permit: ISignatureTransfer.PermitTransferFromStruct,
|
|
396
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct,
|
|
397
|
+
owner: AddressLike,
|
|
398
|
+
witness: BytesLike,
|
|
399
|
+
witnessTypeString: string,
|
|
400
|
+
signature: BytesLike
|
|
401
|
+
], [
|
|
402
|
+
void
|
|
403
|
+
], "nonpayable">;
|
|
404
|
+
"permitWitnessTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes32,string,bytes)": TypedContractMethod<[
|
|
405
|
+
permit: ISignatureTransfer.PermitBatchTransferFromStruct,
|
|
406
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct[],
|
|
407
|
+
owner: AddressLike,
|
|
408
|
+
witness: BytesLike,
|
|
409
|
+
witnessTypeString: string,
|
|
410
|
+
signature: BytesLike
|
|
411
|
+
], [
|
|
412
|
+
void
|
|
413
|
+
], "nonpayable">;
|
|
414
|
+
"transferFrom((address,address,uint160,address)[])": TypedContractMethod<[
|
|
415
|
+
transferDetails: IAllowanceTransfer.AllowanceTransferDetailsStruct[]
|
|
416
|
+
], [
|
|
417
|
+
void
|
|
418
|
+
], "nonpayable">;
|
|
419
|
+
"transferFrom(address,address,uint160,address)": TypedContractMethod<[
|
|
420
|
+
from: AddressLike,
|
|
421
|
+
to: AddressLike,
|
|
422
|
+
amount: BigNumberish,
|
|
423
|
+
token: AddressLike
|
|
424
|
+
], [
|
|
425
|
+
void
|
|
426
|
+
], "nonpayable">;
|
|
427
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
428
|
+
getFunction(nameOrSignature: "DOMAIN_SEPARATOR"): TypedContractMethod<[], [string], "view">;
|
|
429
|
+
getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
|
|
430
|
+
arg0: AddressLike,
|
|
431
|
+
arg1: AddressLike,
|
|
432
|
+
arg2: AddressLike
|
|
433
|
+
], [
|
|
434
|
+
[
|
|
435
|
+
bigint,
|
|
436
|
+
bigint,
|
|
437
|
+
bigint
|
|
438
|
+
] & {
|
|
439
|
+
amount: bigint;
|
|
440
|
+
expiration: bigint;
|
|
441
|
+
nonce: bigint;
|
|
442
|
+
}
|
|
443
|
+
], "view">;
|
|
444
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
445
|
+
token: AddressLike,
|
|
446
|
+
spender: AddressLike,
|
|
447
|
+
amount: BigNumberish,
|
|
448
|
+
expiration: BigNumberish
|
|
449
|
+
], [
|
|
450
|
+
void
|
|
451
|
+
], "nonpayable">;
|
|
452
|
+
getFunction(nameOrSignature: "invalidateNonces"): TypedContractMethod<[
|
|
453
|
+
token: AddressLike,
|
|
454
|
+
spender: AddressLike,
|
|
455
|
+
newNonce: BigNumberish
|
|
456
|
+
], [
|
|
457
|
+
void
|
|
458
|
+
], "nonpayable">;
|
|
459
|
+
getFunction(nameOrSignature: "invalidateUnorderedNonces"): TypedContractMethod<[
|
|
460
|
+
wordPos: BigNumberish,
|
|
461
|
+
mask: BigNumberish
|
|
462
|
+
], [
|
|
463
|
+
void
|
|
464
|
+
], "nonpayable">;
|
|
465
|
+
getFunction(nameOrSignature: "lockdown"): TypedContractMethod<[
|
|
466
|
+
approvals: IAllowanceTransfer.TokenSpenderPairStruct[]
|
|
467
|
+
], [
|
|
468
|
+
void
|
|
469
|
+
], "nonpayable">;
|
|
470
|
+
getFunction(nameOrSignature: "nonceBitmap"): TypedContractMethod<[
|
|
471
|
+
arg0: AddressLike,
|
|
472
|
+
arg1: BigNumberish
|
|
473
|
+
], [
|
|
474
|
+
bigint
|
|
475
|
+
], "view">;
|
|
476
|
+
getFunction(nameOrSignature: "permit(address,((address,uint160,uint48,uint48)[],address,uint256),bytes)"): TypedContractMethod<[
|
|
477
|
+
owner: AddressLike,
|
|
478
|
+
permitBatch: IAllowanceTransfer.PermitBatchStruct,
|
|
479
|
+
signature: BytesLike
|
|
480
|
+
], [
|
|
481
|
+
void
|
|
482
|
+
], "nonpayable">;
|
|
483
|
+
getFunction(nameOrSignature: "permit(address,((address,uint160,uint48,uint48),address,uint256),bytes)"): TypedContractMethod<[
|
|
484
|
+
owner: AddressLike,
|
|
485
|
+
permitSingle: IAllowanceTransfer.PermitSingleStruct,
|
|
486
|
+
signature: BytesLike
|
|
487
|
+
], [
|
|
488
|
+
void
|
|
489
|
+
], "nonpayable">;
|
|
490
|
+
getFunction(nameOrSignature: "permitTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes)"): TypedContractMethod<[
|
|
491
|
+
permit: ISignatureTransfer.PermitTransferFromStruct,
|
|
492
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct,
|
|
493
|
+
owner: AddressLike,
|
|
494
|
+
signature: BytesLike
|
|
495
|
+
], [
|
|
496
|
+
void
|
|
497
|
+
], "nonpayable">;
|
|
498
|
+
getFunction(nameOrSignature: "permitTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes)"): TypedContractMethod<[
|
|
499
|
+
permit: ISignatureTransfer.PermitBatchTransferFromStruct,
|
|
500
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct[],
|
|
501
|
+
owner: AddressLike,
|
|
502
|
+
signature: BytesLike
|
|
503
|
+
], [
|
|
504
|
+
void
|
|
505
|
+
], "nonpayable">;
|
|
506
|
+
getFunction(nameOrSignature: "permitWitnessTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes32,string,bytes)"): TypedContractMethod<[
|
|
507
|
+
permit: ISignatureTransfer.PermitTransferFromStruct,
|
|
508
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct,
|
|
509
|
+
owner: AddressLike,
|
|
510
|
+
witness: BytesLike,
|
|
511
|
+
witnessTypeString: string,
|
|
512
|
+
signature: BytesLike
|
|
513
|
+
], [
|
|
514
|
+
void
|
|
515
|
+
], "nonpayable">;
|
|
516
|
+
getFunction(nameOrSignature: "permitWitnessTransferFrom(((address,uint256)[],uint256,uint256),(address,uint256)[],address,bytes32,string,bytes)"): TypedContractMethod<[
|
|
517
|
+
permit: ISignatureTransfer.PermitBatchTransferFromStruct,
|
|
518
|
+
transferDetails: ISignatureTransfer.SignatureTransferDetailsStruct[],
|
|
519
|
+
owner: AddressLike,
|
|
520
|
+
witness: BytesLike,
|
|
521
|
+
witnessTypeString: string,
|
|
522
|
+
signature: BytesLike
|
|
523
|
+
], [
|
|
524
|
+
void
|
|
525
|
+
], "nonpayable">;
|
|
526
|
+
getFunction(nameOrSignature: "transferFrom((address,address,uint160,address)[])"): TypedContractMethod<[
|
|
527
|
+
transferDetails: IAllowanceTransfer.AllowanceTransferDetailsStruct[]
|
|
528
|
+
], [
|
|
529
|
+
void
|
|
530
|
+
], "nonpayable">;
|
|
531
|
+
getFunction(nameOrSignature: "transferFrom(address,address,uint160,address)"): TypedContractMethod<[
|
|
532
|
+
from: AddressLike,
|
|
533
|
+
to: AddressLike,
|
|
534
|
+
amount: BigNumberish,
|
|
535
|
+
token: AddressLike
|
|
536
|
+
], [
|
|
537
|
+
void
|
|
538
|
+
], "nonpayable">;
|
|
539
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
540
|
+
getEvent(key: "Lockdown"): TypedContractEvent<LockdownEvent.InputTuple, LockdownEvent.OutputTuple, LockdownEvent.OutputObject>;
|
|
541
|
+
getEvent(key: "NonceInvalidation"): TypedContractEvent<NonceInvalidationEvent.InputTuple, NonceInvalidationEvent.OutputTuple, NonceInvalidationEvent.OutputObject>;
|
|
542
|
+
getEvent(key: "Permit"): TypedContractEvent<PermitEvent.InputTuple, PermitEvent.OutputTuple, PermitEvent.OutputObject>;
|
|
543
|
+
getEvent(key: "UnorderedNonceInvalidation"): TypedContractEvent<UnorderedNonceInvalidationEvent.InputTuple, UnorderedNonceInvalidationEvent.OutputTuple, UnorderedNonceInvalidationEvent.OutputObject>;
|
|
544
|
+
filters: {
|
|
545
|
+
"Approval(address,address,address,uint160,uint48)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
546
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
547
|
+
"Lockdown(address,address,address)": TypedContractEvent<LockdownEvent.InputTuple, LockdownEvent.OutputTuple, LockdownEvent.OutputObject>;
|
|
548
|
+
Lockdown: TypedContractEvent<LockdownEvent.InputTuple, LockdownEvent.OutputTuple, LockdownEvent.OutputObject>;
|
|
549
|
+
"NonceInvalidation(address,address,address,uint48,uint48)": TypedContractEvent<NonceInvalidationEvent.InputTuple, NonceInvalidationEvent.OutputTuple, NonceInvalidationEvent.OutputObject>;
|
|
550
|
+
NonceInvalidation: TypedContractEvent<NonceInvalidationEvent.InputTuple, NonceInvalidationEvent.OutputTuple, NonceInvalidationEvent.OutputObject>;
|
|
551
|
+
"Permit(address,address,address,uint160,uint48,uint48)": TypedContractEvent<PermitEvent.InputTuple, PermitEvent.OutputTuple, PermitEvent.OutputObject>;
|
|
552
|
+
Permit: TypedContractEvent<PermitEvent.InputTuple, PermitEvent.OutputTuple, PermitEvent.OutputObject>;
|
|
553
|
+
"UnorderedNonceInvalidation(address,uint256,uint256)": TypedContractEvent<UnorderedNonceInvalidationEvent.InputTuple, UnorderedNonceInvalidationEvent.OutputTuple, UnorderedNonceInvalidationEvent.OutputObject>;
|
|
554
|
+
UnorderedNonceInvalidation: TypedContractEvent<UnorderedNonceInvalidationEvent.InputTuple, UnorderedNonceInvalidationEvent.OutputTuple, UnorderedNonceInvalidationEvent.OutputObject>;
|
|
555
|
+
};
|
|
556
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
|
|
2
|
+
export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
3
|
+
}
|
|
4
|
+
export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
5
|
+
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
6
|
+
name: string;
|
|
7
|
+
fragment: EventFragment;
|
|
8
|
+
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
9
|
+
}
|
|
10
|
+
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
11
|
+
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
12
|
+
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
|
|
13
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
14
|
+
}
|
|
15
|
+
export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
|
|
16
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
17
|
+
}
|
|
18
|
+
export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
19
|
+
...__TypechainAOutputTuple<TCEvent>,
|
|
20
|
+
TypedEventLog<TCEvent>,
|
|
21
|
+
...undefined[]
|
|
22
|
+
]) => void;
|
|
23
|
+
export type MinEthersFactory<C, ARGS> = {
|
|
24
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
25
|
+
};
|
|
26
|
+
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
27
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
28
|
+
export type StateMutability = "nonpayable" | "payable" | "view";
|
|
29
|
+
export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
30
|
+
export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
31
|
+
export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
32
|
+
export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
33
|
+
export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
34
|
+
export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
35
|
+
export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
36
|
+
[I in keyof A]-?: A[I] | Typed;
|
|
37
|
+
}, S>;
|
|
38
|
+
export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
39
|
+
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
40
|
+
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
41
|
+
name: string;
|
|
42
|
+
fragment: FunctionFragment;
|
|
43
|
+
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
44
|
+
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
45
|
+
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
|
|
46
|
+
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
47
|
+
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
48
|
+
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|