@coti-io/coti-contracts 0.1.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +2 -1
- package/CONTRIBUTING.md +2 -2
- package/LICENSE +1 -1
- package/README.md +18 -35
- package/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +3 -115
- package/contracts/mocks/README.md +1 -1
- package/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol +257 -280
- package/contracts/mocks/utils/mpc/BitwiseTestsContract.sol +93 -187
- package/contracts/mocks/utils/mpc/{Comparison1Tests.Contract.sol → Comparison1TestsContract.sol} +67 -115
- package/contracts/mocks/utils/mpc/Comparison2TestsContract.sol +76 -116
- package/contracts/mocks/utils/mpc/MinMaxTestsContract.sol +69 -164
- package/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.sol +103 -56
- package/contracts/mocks/utils/mpc/MiscellaneousTestsContract.sol +270 -0
- package/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.sol +127 -0
- package/contracts/mocks/utils/mpc/README.md +12 -12
- package/contracts/mocks/utils/mpc/TransferScalarTestsContract.sol +54 -211
- package/contracts/mocks/utils/mpc/TransferTestsContract.sol +165 -640
- package/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.sol +222 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.sol +222 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol +223 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.sol +222 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.sol +265 -0
- package/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol +281 -0
- package/contracts/onboard/AccountOnboard.sol +3 -3
- package/contracts/token/PrivateERC20/PrivateERC20.sol +1 -1
- package/contracts/token/PrivateERC721/IERC721Errors.sol +57 -0
- package/contracts/token/PrivateERC721/PrivateERC721.sol +1 -1
- package/contracts/utils/mpc/MpcCore.sol +2835 -988
- package/contracts/utils/mpc/MpcInterface.sol +6 -4
- package/hardhat.config.ts +17 -6
- package/package.json +20 -4
- package/test/token/PrivateERC20/PrivateERC20.test.ts +2 -2
- package/test/utils/accounts.ts +1 -1
- package/test/utils/mpc/Precompile.test.ts +42 -39
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract.ts +374 -0
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts +374 -0
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
- package/typechain-types/contracts/mocks/utils/mpc/ArithmeticTestsContract.ts +96 -10
- package/typechain-types/contracts/mocks/utils/mpc/BitwiseTestsContract.ts +45 -5
- package/typechain-types/contracts/mocks/utils/mpc/Comparison1TestsContract.ts +374 -0
- package/typechain-types/contracts/mocks/utils/mpc/Comparison2TestsContract.ts +45 -5
- package/typechain-types/contracts/mocks/utils/mpc/MinMaxTestsContract.ts +25 -5
- package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous1TestsContract.ts +62 -0
- package/typechain-types/contracts/mocks/utils/mpc/MiscellaneousTestsContract.ts +396 -0
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract.ts +251 -0
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +11 -8
- package/typechain-types/contracts/mocks/utils/mpc/TransferScalarTestsContract.ts +15 -15
- package/typechain-types/contracts/mocks/utils/mpc/TransferTestsContract.ts +15 -15
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +251 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +250 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +389 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract.ts +391 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract.ts +391 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +391 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +391 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.ts +391 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract.ts +391 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract.ts +306 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +125 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +125 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.ts +296 -0
- package/typechain-types/contracts/mocks/utils/mpc/index.ts +9 -6
- package/typechain-types/contracts/onboard/AccountOnboard.ts +9 -4
- package/typechain-types/contracts/token/PrivateERC721/IERC721Errors.ts +69 -0
- package/typechain-types/contracts/token/PrivateERC721/index.ts +1 -0
- package/typechain-types/contracts/utils/mpc/MpcCore.ts +84 -0
- package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +81 -40
- package/typechain-types/contracts/utils/mpc/index.ts +1 -0
- package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +388 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +92 -7
- package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +38 -2
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +387 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +38 -2
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +15 -2
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +66 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +424 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +285 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +19 -3
- package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +4 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +4 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +294 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +292 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +720 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +724 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +724 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +724 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +724 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +507 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +150 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +150 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +434 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +9 -4
- package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +8 -2
- package/typechain-types/factories/contracts/token/PrivateERC721/IERC721Errors__factory.ts +128 -0
- package/typechain-types/factories/contracts/token/PrivateERC721/index.ts +1 -0
- package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +77 -0
- package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +124 -61
- package/typechain-types/factories/contracts/utils/mpc/index.ts +1 -0
- package/typechain-types/hardhat.d.ts +152 -26
- package/typechain-types/index.ts +20 -8
- package/contracts/access/DataPrivacyFramework/README.md +0 -68
- package/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.sol +0 -448
- package/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol +0 -81
- package/contracts/mocks/utils/mpc/ShiftTestsContract.sol +0 -311
- package/contracts/token/PrivateERC20/README.md +0 -104
- package/contracts/token/PrivateERC721/README.md +0 -282
- package/contracts/utils/mpc/README.md +0 -82
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
ContractRunner,
|
|
12
|
+
ContractMethod,
|
|
13
|
+
Listener,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedContractEvent,
|
|
17
|
+
TypedDeferredTopicFilter,
|
|
18
|
+
TypedEventLog,
|
|
19
|
+
TypedListener,
|
|
20
|
+
TypedContractMethod,
|
|
21
|
+
} from "../../../../../common";
|
|
22
|
+
|
|
23
|
+
export interface TransferTestsContractInterface extends Interface {
|
|
24
|
+
getFunction(
|
|
25
|
+
nameOrSignature: "getResults" | "transferWithAllowanceTest"
|
|
26
|
+
): FunctionFragment;
|
|
27
|
+
|
|
28
|
+
encodeFunctionData(
|
|
29
|
+
functionFragment: "getResults",
|
|
30
|
+
values?: undefined
|
|
31
|
+
): string;
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "transferWithAllowanceTest",
|
|
34
|
+
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
|
|
35
|
+
): string;
|
|
36
|
+
|
|
37
|
+
decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(
|
|
39
|
+
functionFragment: "transferWithAllowanceTest",
|
|
40
|
+
data: BytesLike
|
|
41
|
+
): Result;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface TransferTestsContract extends BaseContract {
|
|
45
|
+
connect(runner?: ContractRunner | null): TransferTestsContract;
|
|
46
|
+
waitForDeployment(): Promise<this>;
|
|
47
|
+
|
|
48
|
+
interface: TransferTestsContractInterface;
|
|
49
|
+
|
|
50
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
51
|
+
event: TCEvent,
|
|
52
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
53
|
+
toBlock?: string | number | undefined
|
|
54
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
55
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
56
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
57
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
58
|
+
toBlock?: string | number | undefined
|
|
59
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
60
|
+
|
|
61
|
+
on<TCEvent extends TypedContractEvent>(
|
|
62
|
+
event: TCEvent,
|
|
63
|
+
listener: TypedListener<TCEvent>
|
|
64
|
+
): Promise<this>;
|
|
65
|
+
on<TCEvent extends TypedContractEvent>(
|
|
66
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
67
|
+
listener: TypedListener<TCEvent>
|
|
68
|
+
): Promise<this>;
|
|
69
|
+
|
|
70
|
+
once<TCEvent extends TypedContractEvent>(
|
|
71
|
+
event: TCEvent,
|
|
72
|
+
listener: TypedListener<TCEvent>
|
|
73
|
+
): Promise<this>;
|
|
74
|
+
once<TCEvent extends TypedContractEvent>(
|
|
75
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
76
|
+
listener: TypedListener<TCEvent>
|
|
77
|
+
): Promise<this>;
|
|
78
|
+
|
|
79
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
80
|
+
event: TCEvent
|
|
81
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
82
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
83
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
84
|
+
event?: TCEvent
|
|
85
|
+
): Promise<this>;
|
|
86
|
+
|
|
87
|
+
getResults: TypedContractMethod<
|
|
88
|
+
[],
|
|
89
|
+
[[bigint, bigint, boolean, bigint]],
|
|
90
|
+
"view"
|
|
91
|
+
>;
|
|
92
|
+
|
|
93
|
+
transferWithAllowanceTest: TypedContractMethod<
|
|
94
|
+
[
|
|
95
|
+
a: BigNumberish,
|
|
96
|
+
b: BigNumberish,
|
|
97
|
+
amount: BigNumberish,
|
|
98
|
+
allowance: BigNumberish
|
|
99
|
+
],
|
|
100
|
+
[[bigint, bigint, boolean, bigint]],
|
|
101
|
+
"nonpayable"
|
|
102
|
+
>;
|
|
103
|
+
|
|
104
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
105
|
+
key: string | FunctionFragment
|
|
106
|
+
): T;
|
|
107
|
+
|
|
108
|
+
getFunction(
|
|
109
|
+
nameOrSignature: "getResults"
|
|
110
|
+
): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
|
|
111
|
+
getFunction(
|
|
112
|
+
nameOrSignature: "transferWithAllowanceTest"
|
|
113
|
+
): TypedContractMethod<
|
|
114
|
+
[
|
|
115
|
+
a: BigNumberish,
|
|
116
|
+
b: BigNumberish,
|
|
117
|
+
amount: BigNumberish,
|
|
118
|
+
allowance: BigNumberish
|
|
119
|
+
],
|
|
120
|
+
[[bigint, bigint, boolean, bigint]],
|
|
121
|
+
"nonpayable"
|
|
122
|
+
>;
|
|
123
|
+
|
|
124
|
+
filters: {};
|
|
125
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
ContractRunner,
|
|
12
|
+
ContractMethod,
|
|
13
|
+
Listener,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedContractEvent,
|
|
17
|
+
TypedDeferredTopicFilter,
|
|
18
|
+
TypedEventLog,
|
|
19
|
+
TypedListener,
|
|
20
|
+
TypedContractMethod,
|
|
21
|
+
} from "../../../../../common";
|
|
22
|
+
|
|
23
|
+
export interface TransferWithAllowanceTestsContractInterface extends Interface {
|
|
24
|
+
getFunction(
|
|
25
|
+
nameOrSignature: "getResults" | "transferWithAllowanceTest"
|
|
26
|
+
): FunctionFragment;
|
|
27
|
+
|
|
28
|
+
encodeFunctionData(
|
|
29
|
+
functionFragment: "getResults",
|
|
30
|
+
values?: undefined
|
|
31
|
+
): string;
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "transferWithAllowanceTest",
|
|
34
|
+
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
|
|
35
|
+
): string;
|
|
36
|
+
|
|
37
|
+
decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(
|
|
39
|
+
functionFragment: "transferWithAllowanceTest",
|
|
40
|
+
data: BytesLike
|
|
41
|
+
): Result;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface TransferWithAllowanceTestsContract extends BaseContract {
|
|
45
|
+
connect(runner?: ContractRunner | null): TransferWithAllowanceTestsContract;
|
|
46
|
+
waitForDeployment(): Promise<this>;
|
|
47
|
+
|
|
48
|
+
interface: TransferWithAllowanceTestsContractInterface;
|
|
49
|
+
|
|
50
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
51
|
+
event: TCEvent,
|
|
52
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
53
|
+
toBlock?: string | number | undefined
|
|
54
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
55
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
56
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
57
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
58
|
+
toBlock?: string | number | undefined
|
|
59
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
60
|
+
|
|
61
|
+
on<TCEvent extends TypedContractEvent>(
|
|
62
|
+
event: TCEvent,
|
|
63
|
+
listener: TypedListener<TCEvent>
|
|
64
|
+
): Promise<this>;
|
|
65
|
+
on<TCEvent extends TypedContractEvent>(
|
|
66
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
67
|
+
listener: TypedListener<TCEvent>
|
|
68
|
+
): Promise<this>;
|
|
69
|
+
|
|
70
|
+
once<TCEvent extends TypedContractEvent>(
|
|
71
|
+
event: TCEvent,
|
|
72
|
+
listener: TypedListener<TCEvent>
|
|
73
|
+
): Promise<this>;
|
|
74
|
+
once<TCEvent extends TypedContractEvent>(
|
|
75
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
76
|
+
listener: TypedListener<TCEvent>
|
|
77
|
+
): Promise<this>;
|
|
78
|
+
|
|
79
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
80
|
+
event: TCEvent
|
|
81
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
82
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
83
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
84
|
+
event?: TCEvent
|
|
85
|
+
): Promise<this>;
|
|
86
|
+
|
|
87
|
+
getResults: TypedContractMethod<
|
|
88
|
+
[],
|
|
89
|
+
[[bigint, bigint, boolean, bigint]],
|
|
90
|
+
"view"
|
|
91
|
+
>;
|
|
92
|
+
|
|
93
|
+
transferWithAllowanceTest: TypedContractMethod<
|
|
94
|
+
[
|
|
95
|
+
a: BigNumberish,
|
|
96
|
+
b: BigNumberish,
|
|
97
|
+
amount: BigNumberish,
|
|
98
|
+
allowance: BigNumberish
|
|
99
|
+
],
|
|
100
|
+
[[bigint, bigint, boolean, bigint]],
|
|
101
|
+
"nonpayable"
|
|
102
|
+
>;
|
|
103
|
+
|
|
104
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
105
|
+
key: string | FunctionFragment
|
|
106
|
+
): T;
|
|
107
|
+
|
|
108
|
+
getFunction(
|
|
109
|
+
nameOrSignature: "getResults"
|
|
110
|
+
): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
|
|
111
|
+
getFunction(
|
|
112
|
+
nameOrSignature: "transferWithAllowanceTest"
|
|
113
|
+
): TypedContractMethod<
|
|
114
|
+
[
|
|
115
|
+
a: BigNumberish,
|
|
116
|
+
b: BigNumberish,
|
|
117
|
+
amount: BigNumberish,
|
|
118
|
+
allowance: BigNumberish
|
|
119
|
+
],
|
|
120
|
+
[[bigint, bigint, boolean, bigint]],
|
|
121
|
+
"nonpayable"
|
|
122
|
+
>;
|
|
123
|
+
|
|
124
|
+
filters: {};
|
|
125
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
ContractRunner,
|
|
12
|
+
ContractMethod,
|
|
13
|
+
Listener,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedContractEvent,
|
|
17
|
+
TypedDeferredTopicFilter,
|
|
18
|
+
TypedEventLog,
|
|
19
|
+
TypedListener,
|
|
20
|
+
TypedContractMethod,
|
|
21
|
+
} from "../../../../common";
|
|
22
|
+
|
|
23
|
+
export declare namespace TransferWithAllowanceTestsContract {
|
|
24
|
+
export type AllGTCastingValuesStruct = {
|
|
25
|
+
a8_s: BigNumberish;
|
|
26
|
+
b8_s: BigNumberish;
|
|
27
|
+
a16_s: BigNumberish;
|
|
28
|
+
b16_s: BigNumberish;
|
|
29
|
+
a32_s: BigNumberish;
|
|
30
|
+
b32_s: BigNumberish;
|
|
31
|
+
a64_s: BigNumberish;
|
|
32
|
+
b64_s: BigNumberish;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type AllGTCastingValuesStructOutput = [
|
|
36
|
+
a8_s: bigint,
|
|
37
|
+
b8_s: bigint,
|
|
38
|
+
a16_s: bigint,
|
|
39
|
+
b16_s: bigint,
|
|
40
|
+
a32_s: bigint,
|
|
41
|
+
b32_s: bigint,
|
|
42
|
+
a64_s: bigint,
|
|
43
|
+
b64_s: bigint
|
|
44
|
+
] & {
|
|
45
|
+
a8_s: bigint;
|
|
46
|
+
b8_s: bigint;
|
|
47
|
+
a16_s: bigint;
|
|
48
|
+
b16_s: bigint;
|
|
49
|
+
a32_s: bigint;
|
|
50
|
+
b32_s: bigint;
|
|
51
|
+
a64_s: bigint;
|
|
52
|
+
b64_s: bigint;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type AllAmountValuesStruct = {
|
|
56
|
+
amount8_s: BigNumberish;
|
|
57
|
+
amount16_s: BigNumberish;
|
|
58
|
+
amount32_s: BigNumberish;
|
|
59
|
+
amount64_s: BigNumberish;
|
|
60
|
+
amount: BigNumberish;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export type AllAmountValuesStructOutput = [
|
|
64
|
+
amount8_s: bigint,
|
|
65
|
+
amount16_s: bigint,
|
|
66
|
+
amount32_s: bigint,
|
|
67
|
+
amount64_s: bigint,
|
|
68
|
+
amount: bigint
|
|
69
|
+
] & {
|
|
70
|
+
amount8_s: bigint;
|
|
71
|
+
amount16_s: bigint;
|
|
72
|
+
amount32_s: bigint;
|
|
73
|
+
amount64_s: bigint;
|
|
74
|
+
amount: bigint;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type AllAllowanceValuesStruct = {
|
|
78
|
+
allowance8_s: BigNumberish;
|
|
79
|
+
allowance16_s: BigNumberish;
|
|
80
|
+
allowance32_s: BigNumberish;
|
|
81
|
+
allowance64_s: BigNumberish;
|
|
82
|
+
allowance: BigNumberish;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type AllAllowanceValuesStructOutput = [
|
|
86
|
+
allowance8_s: bigint,
|
|
87
|
+
allowance16_s: bigint,
|
|
88
|
+
allowance32_s: bigint,
|
|
89
|
+
allowance64_s: bigint,
|
|
90
|
+
allowance: bigint
|
|
91
|
+
] & {
|
|
92
|
+
allowance8_s: bigint;
|
|
93
|
+
allowance16_s: bigint;
|
|
94
|
+
allowance32_s: bigint;
|
|
95
|
+
allowance64_s: bigint;
|
|
96
|
+
allowance: bigint;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface TransferWithAllowanceTestsContractInterface extends Interface {
|
|
101
|
+
getFunction(
|
|
102
|
+
nameOrSignature:
|
|
103
|
+
| "computeAndCheckTransfer16"
|
|
104
|
+
| "computeAndCheckTransfer32"
|
|
105
|
+
| "getResults"
|
|
106
|
+
| "transferWithAllowanceTest"
|
|
107
|
+
): FunctionFragment;
|
|
108
|
+
|
|
109
|
+
encodeFunctionData(
|
|
110
|
+
functionFragment: "computeAndCheckTransfer16",
|
|
111
|
+
values: [
|
|
112
|
+
TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
|
|
113
|
+
TransferWithAllowanceTestsContract.AllAmountValuesStruct,
|
|
114
|
+
TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
|
|
115
|
+
BigNumberish,
|
|
116
|
+
BigNumberish,
|
|
117
|
+
boolean,
|
|
118
|
+
BigNumberish
|
|
119
|
+
]
|
|
120
|
+
): string;
|
|
121
|
+
encodeFunctionData(
|
|
122
|
+
functionFragment: "computeAndCheckTransfer32",
|
|
123
|
+
values: [
|
|
124
|
+
TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
|
|
125
|
+
TransferWithAllowanceTestsContract.AllAmountValuesStruct,
|
|
126
|
+
TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
|
|
127
|
+
BigNumberish,
|
|
128
|
+
BigNumberish,
|
|
129
|
+
boolean,
|
|
130
|
+
BigNumberish
|
|
131
|
+
]
|
|
132
|
+
): string;
|
|
133
|
+
encodeFunctionData(
|
|
134
|
+
functionFragment: "getResults",
|
|
135
|
+
values?: undefined
|
|
136
|
+
): string;
|
|
137
|
+
encodeFunctionData(
|
|
138
|
+
functionFragment: "transferWithAllowanceTest",
|
|
139
|
+
values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
|
|
140
|
+
): string;
|
|
141
|
+
|
|
142
|
+
decodeFunctionResult(
|
|
143
|
+
functionFragment: "computeAndCheckTransfer16",
|
|
144
|
+
data: BytesLike
|
|
145
|
+
): Result;
|
|
146
|
+
decodeFunctionResult(
|
|
147
|
+
functionFragment: "computeAndCheckTransfer32",
|
|
148
|
+
data: BytesLike
|
|
149
|
+
): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: "getResults", data: BytesLike): Result;
|
|
151
|
+
decodeFunctionResult(
|
|
152
|
+
functionFragment: "transferWithAllowanceTest",
|
|
153
|
+
data: BytesLike
|
|
154
|
+
): Result;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface TransferWithAllowanceTestsContract extends BaseContract {
|
|
158
|
+
connect(runner?: ContractRunner | null): TransferWithAllowanceTestsContract;
|
|
159
|
+
waitForDeployment(): Promise<this>;
|
|
160
|
+
|
|
161
|
+
interface: TransferWithAllowanceTestsContractInterface;
|
|
162
|
+
|
|
163
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
164
|
+
event: TCEvent,
|
|
165
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
166
|
+
toBlock?: string | number | undefined
|
|
167
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
168
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
169
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
170
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
171
|
+
toBlock?: string | number | undefined
|
|
172
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
173
|
+
|
|
174
|
+
on<TCEvent extends TypedContractEvent>(
|
|
175
|
+
event: TCEvent,
|
|
176
|
+
listener: TypedListener<TCEvent>
|
|
177
|
+
): Promise<this>;
|
|
178
|
+
on<TCEvent extends TypedContractEvent>(
|
|
179
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
180
|
+
listener: TypedListener<TCEvent>
|
|
181
|
+
): Promise<this>;
|
|
182
|
+
|
|
183
|
+
once<TCEvent extends TypedContractEvent>(
|
|
184
|
+
event: TCEvent,
|
|
185
|
+
listener: TypedListener<TCEvent>
|
|
186
|
+
): Promise<this>;
|
|
187
|
+
once<TCEvent extends TypedContractEvent>(
|
|
188
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
189
|
+
listener: TypedListener<TCEvent>
|
|
190
|
+
): Promise<this>;
|
|
191
|
+
|
|
192
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
193
|
+
event: TCEvent
|
|
194
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
195
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
196
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
197
|
+
event?: TCEvent
|
|
198
|
+
): Promise<this>;
|
|
199
|
+
|
|
200
|
+
computeAndCheckTransfer16: TypedContractMethod<
|
|
201
|
+
[
|
|
202
|
+
allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
|
|
203
|
+
allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
|
|
204
|
+
allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
|
|
205
|
+
new_a: BigNumberish,
|
|
206
|
+
new_b: BigNumberish,
|
|
207
|
+
res: boolean,
|
|
208
|
+
new_allowance: BigNumberish
|
|
209
|
+
],
|
|
210
|
+
[void],
|
|
211
|
+
"nonpayable"
|
|
212
|
+
>;
|
|
213
|
+
|
|
214
|
+
computeAndCheckTransfer32: TypedContractMethod<
|
|
215
|
+
[
|
|
216
|
+
allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
|
|
217
|
+
allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
|
|
218
|
+
allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
|
|
219
|
+
new_a: BigNumberish,
|
|
220
|
+
new_b: BigNumberish,
|
|
221
|
+
res: boolean,
|
|
222
|
+
new_allowance: BigNumberish
|
|
223
|
+
],
|
|
224
|
+
[void],
|
|
225
|
+
"nonpayable"
|
|
226
|
+
>;
|
|
227
|
+
|
|
228
|
+
getResults: TypedContractMethod<
|
|
229
|
+
[],
|
|
230
|
+
[[bigint, bigint, boolean, bigint]],
|
|
231
|
+
"view"
|
|
232
|
+
>;
|
|
233
|
+
|
|
234
|
+
transferWithAllowanceTest: TypedContractMethod<
|
|
235
|
+
[
|
|
236
|
+
a: BigNumberish,
|
|
237
|
+
b: BigNumberish,
|
|
238
|
+
amount: BigNumberish,
|
|
239
|
+
allowance: BigNumberish
|
|
240
|
+
],
|
|
241
|
+
[[bigint, bigint, boolean, bigint]],
|
|
242
|
+
"nonpayable"
|
|
243
|
+
>;
|
|
244
|
+
|
|
245
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
246
|
+
key: string | FunctionFragment
|
|
247
|
+
): T;
|
|
248
|
+
|
|
249
|
+
getFunction(
|
|
250
|
+
nameOrSignature: "computeAndCheckTransfer16"
|
|
251
|
+
): TypedContractMethod<
|
|
252
|
+
[
|
|
253
|
+
allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
|
|
254
|
+
allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
|
|
255
|
+
allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
|
|
256
|
+
new_a: BigNumberish,
|
|
257
|
+
new_b: BigNumberish,
|
|
258
|
+
res: boolean,
|
|
259
|
+
new_allowance: BigNumberish
|
|
260
|
+
],
|
|
261
|
+
[void],
|
|
262
|
+
"nonpayable"
|
|
263
|
+
>;
|
|
264
|
+
getFunction(
|
|
265
|
+
nameOrSignature: "computeAndCheckTransfer32"
|
|
266
|
+
): TypedContractMethod<
|
|
267
|
+
[
|
|
268
|
+
allGTCastingValues: TransferWithAllowanceTestsContract.AllGTCastingValuesStruct,
|
|
269
|
+
allAmountValues: TransferWithAllowanceTestsContract.AllAmountValuesStruct,
|
|
270
|
+
allAllowanceValues: TransferWithAllowanceTestsContract.AllAllowanceValuesStruct,
|
|
271
|
+
new_a: BigNumberish,
|
|
272
|
+
new_b: BigNumberish,
|
|
273
|
+
res: boolean,
|
|
274
|
+
new_allowance: BigNumberish
|
|
275
|
+
],
|
|
276
|
+
[void],
|
|
277
|
+
"nonpayable"
|
|
278
|
+
>;
|
|
279
|
+
getFunction(
|
|
280
|
+
nameOrSignature: "getResults"
|
|
281
|
+
): TypedContractMethod<[], [[bigint, bigint, boolean, bigint]], "view">;
|
|
282
|
+
getFunction(
|
|
283
|
+
nameOrSignature: "transferWithAllowanceTest"
|
|
284
|
+
): TypedContractMethod<
|
|
285
|
+
[
|
|
286
|
+
a: BigNumberish,
|
|
287
|
+
b: BigNumberish,
|
|
288
|
+
amount: BigNumberish,
|
|
289
|
+
allowance: BigNumberish
|
|
290
|
+
],
|
|
291
|
+
[[bigint, bigint, boolean, bigint]],
|
|
292
|
+
"nonpayable"
|
|
293
|
+
>;
|
|
294
|
+
|
|
295
|
+
filters: {};
|
|
296
|
+
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type * as comparison1TestsContractSol from "./Comparison1Tests.Contract.sol";
|
|
5
|
-
export type { comparison1TestsContractSol };
|
|
6
|
-
import type * as offboardToUserKeyTestsContractSol from "./OffboardToUserKeyTestsContract.sol";
|
|
7
|
-
export type { offboardToUserKeyTestsContractSol };
|
|
8
4
|
export type { ArithmeticTestsContract } from "./ArithmeticTestsContract";
|
|
9
5
|
export type { BitwiseTestsContract } from "./BitwiseTestsContract";
|
|
6
|
+
export type { Comparison1TestsContract } from "./Comparison1TestsContract";
|
|
10
7
|
export type { Comparison2TestsContract } from "./Comparison2TestsContract";
|
|
11
8
|
export type { MinMaxTestsContract } from "./MinMaxTestsContract";
|
|
12
9
|
export type { Miscellaneous1TestsContract } from "./Miscellaneous1TestsContract";
|
|
13
|
-
export type {
|
|
14
|
-
export type {
|
|
10
|
+
export type { MiscellaneousTestsContract } from "./MiscellaneousTestsContract";
|
|
11
|
+
export type { OffboardToUserKeyTestContract } from "./OffboardToUserKeyTestContract";
|
|
15
12
|
export type { StringTestsContract } from "./StringTestsContract";
|
|
16
13
|
export type { TransferScalarTestsContract } from "./TransferScalarTestsContract";
|
|
17
14
|
export type { TransferTestsContract } from "./TransferTestsContract";
|
|
15
|
+
export type { TransferWithAllowance64_16TestsContract } from "./TransferWithAllowance64_16TestsContract";
|
|
16
|
+
export type { TransferWithAllowance64_32TestsContract } from "./TransferWithAllowance64_32TestsContract";
|
|
17
|
+
export type { TransferWithAllowance64_64TestsContract } from "./TransferWithAllowance64_64TestsContract";
|
|
18
|
+
export type { TransferWithAllowance64_8TestsContract } from "./TransferWithAllowance64_8TestsContract";
|
|
19
|
+
export type { TransferWithAllowanceScalarTestsContract } from "./TransferWithAllowanceScalarTestsContract";
|
|
20
|
+
export type { TransferWithAllowanceTestsContract } from "./TransferWithAllowanceTestsContract";
|
|
@@ -39,11 +39,16 @@ export interface AccountOnboardInterface extends Interface {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export namespace AccountOnboardedEvent {
|
|
42
|
-
export type InputTuple = [
|
|
43
|
-
|
|
42
|
+
export type InputTuple = [
|
|
43
|
+
_from: AddressLike,
|
|
44
|
+
userKey1: BytesLike,
|
|
45
|
+
userKey2: BytesLike
|
|
46
|
+
];
|
|
47
|
+
export type OutputTuple = [_from: string, userKey1: string, userKey2: string];
|
|
44
48
|
export interface OutputObject {
|
|
45
49
|
_from: string;
|
|
46
|
-
|
|
50
|
+
userKey1: string;
|
|
51
|
+
userKey2: string;
|
|
47
52
|
}
|
|
48
53
|
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
49
54
|
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -121,7 +126,7 @@ export interface AccountOnboard extends BaseContract {
|
|
|
121
126
|
>;
|
|
122
127
|
|
|
123
128
|
filters: {
|
|
124
|
-
"AccountOnboarded(address,bytes)": TypedContractEvent<
|
|
129
|
+
"AccountOnboarded(address,bytes,bytes)": TypedContractEvent<
|
|
125
130
|
AccountOnboardedEvent.InputTuple,
|
|
126
131
|
AccountOnboardedEvent.OutputTuple,
|
|
127
132
|
AccountOnboardedEvent.OutputObject
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
FunctionFragment,
|
|
7
|
+
Interface,
|
|
8
|
+
ContractRunner,
|
|
9
|
+
ContractMethod,
|
|
10
|
+
Listener,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import type {
|
|
13
|
+
TypedContractEvent,
|
|
14
|
+
TypedDeferredTopicFilter,
|
|
15
|
+
TypedEventLog,
|
|
16
|
+
TypedListener,
|
|
17
|
+
} from "../../../common";
|
|
18
|
+
|
|
19
|
+
export interface IERC721ErrorsInterface extends Interface {}
|
|
20
|
+
|
|
21
|
+
export interface IERC721Errors extends BaseContract {
|
|
22
|
+
connect(runner?: ContractRunner | null): IERC721Errors;
|
|
23
|
+
waitForDeployment(): Promise<this>;
|
|
24
|
+
|
|
25
|
+
interface: IERC721ErrorsInterface;
|
|
26
|
+
|
|
27
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
28
|
+
event: TCEvent,
|
|
29
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
30
|
+
toBlock?: string | number | undefined
|
|
31
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
32
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
33
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
34
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
35
|
+
toBlock?: string | number | undefined
|
|
36
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
37
|
+
|
|
38
|
+
on<TCEvent extends TypedContractEvent>(
|
|
39
|
+
event: TCEvent,
|
|
40
|
+
listener: TypedListener<TCEvent>
|
|
41
|
+
): Promise<this>;
|
|
42
|
+
on<TCEvent extends TypedContractEvent>(
|
|
43
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
44
|
+
listener: TypedListener<TCEvent>
|
|
45
|
+
): Promise<this>;
|
|
46
|
+
|
|
47
|
+
once<TCEvent extends TypedContractEvent>(
|
|
48
|
+
event: TCEvent,
|
|
49
|
+
listener: TypedListener<TCEvent>
|
|
50
|
+
): Promise<this>;
|
|
51
|
+
once<TCEvent extends TypedContractEvent>(
|
|
52
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
53
|
+
listener: TypedListener<TCEvent>
|
|
54
|
+
): Promise<this>;
|
|
55
|
+
|
|
56
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
57
|
+
event: TCEvent
|
|
58
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
59
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
60
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
61
|
+
event?: TCEvent
|
|
62
|
+
): Promise<this>;
|
|
63
|
+
|
|
64
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
65
|
+
key: string | FunctionFragment
|
|
66
|
+
): T;
|
|
67
|
+
|
|
68
|
+
filters: {};
|
|
69
|
+
}
|