@coti-io/coti-contracts 1.0.3 → 1.0.5
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/contracts/access/DataPrivacyFramework/extensions/DataPrivacyFrameworkMpc.sol +6 -6
- package/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol +309 -0
- package/contracts/token/PrivateERC721/extensions/IPrivateERC721URIStorage.sol +15 -0
- package/contracts/token/PrivateERC721/extensions/PrivateERC721URIStorage.sol +27 -1
- package/contracts/utils/mpc/MpcCore.sol +527 -18
- package/contracts/utils/mpc/MpcInterface.sol +1 -2
- package/package.json +1 -1
- package/test/utils/mpc/CheckedArithmetic.test.ts +41 -0
- package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/ArithmeticTestsContract.ts +52 -43
- package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
- package/typechain-types/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract.ts → CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract.ts} +73 -60
- package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
- package/typechain-types/contracts/mocks/utils/mpc/index.ts +4 -0
- package/typechain-types/contracts/{GasTest.ts → token/PrivateERC721/extensions/IPrivateERC721URIStorage.ts} +27 -18
- package/typechain-types/contracts/token/PrivateERC721/extensions/index.ts +1 -0
- package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +43 -18
- 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__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticWithOverflowBitTestsContract.sol/ArithmeticTestsContract__factory.ts +387 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/{ArithmeticTestsContract.sol → ArithmeticWithOverflowBitTestsContract.sol}/index.ts +0 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +397 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/index.ts +4 -0
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
- package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +2 -0
- package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +1 -1
- package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
- package/typechain-types/factories/contracts/token/PrivateERC721/extensions/IPrivateERC721URIStorage__factory.ts +55 -0
- package/typechain-types/factories/contracts/token/PrivateERC721/extensions/index.ts +1 -0
- package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
- package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +44 -19
- package/typechain-types/hardhat.d.ts +54 -0
- package/typechain-types/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +0 -69
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +0 -69
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +0 -69
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
- package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract.ts +0 -340
- package/typechain-types/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
- package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous2TestsContract.ts +0 -384
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract.ts +0 -221
- package/typechain-types/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract.ts +0 -251
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -250
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.ts +0 -389
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract.ts +0 -391
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract.ts +0 -391
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract.ts +0 -125
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract.ts +0 -125
- package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +0 -127
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +0 -111
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +0 -128
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +0 -6
- package/typechain-types/factories/contracts/GasTest__factory.ts +0 -75
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/ArithmeticTestsContract__factory.ts +0 -387
- package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract.sol/PrecompilesArythmeticTestsContract__factory.ts +0 -388
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/Comparison1TestsContract__factory.ts +0 -361
- package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1Tests.Contract.sol/index.ts +0 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous2TestsContract__factory.ts +0 -432
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/OffboardToUserKeyTestContract__factory.ts +0 -261
- package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestsContract.sol/index.ts +0 -4
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowance64TestsContract__factory.ts +0 -294
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -292
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64TestsContract__factory.ts +0 -720
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_64TestsContract__factory.ts +0 -724
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/TransferWithAllowance64_8TestsContract__factory.ts +0 -724
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferTestsContract__factory.ts +0 -150
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/TransferWithAllowanceTestsContract__factory.ts +0 -150
- package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract.sol/index.ts +0 -5
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
-
import type {
|
|
7
|
-
IERC1155Errors,
|
|
8
|
-
IERC1155ErrorsInterface,
|
|
9
|
-
} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors";
|
|
10
|
-
|
|
11
|
-
const _abi = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
internalType: "address",
|
|
16
|
-
name: "sender",
|
|
17
|
-
type: "address",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
internalType: "uint256",
|
|
21
|
-
name: "balance",
|
|
22
|
-
type: "uint256",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
internalType: "uint256",
|
|
26
|
-
name: "needed",
|
|
27
|
-
type: "uint256",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
internalType: "uint256",
|
|
31
|
-
name: "tokenId",
|
|
32
|
-
type: "uint256",
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
name: "ERC1155InsufficientBalance",
|
|
36
|
-
type: "error",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
inputs: [
|
|
40
|
-
{
|
|
41
|
-
internalType: "address",
|
|
42
|
-
name: "approver",
|
|
43
|
-
type: "address",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
name: "ERC1155InvalidApprover",
|
|
47
|
-
type: "error",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
inputs: [
|
|
51
|
-
{
|
|
52
|
-
internalType: "uint256",
|
|
53
|
-
name: "idsLength",
|
|
54
|
-
type: "uint256",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
internalType: "uint256",
|
|
58
|
-
name: "valuesLength",
|
|
59
|
-
type: "uint256",
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
name: "ERC1155InvalidArrayLength",
|
|
63
|
-
type: "error",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
inputs: [
|
|
67
|
-
{
|
|
68
|
-
internalType: "address",
|
|
69
|
-
name: "operator",
|
|
70
|
-
type: "address",
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
name: "ERC1155InvalidOperator",
|
|
74
|
-
type: "error",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
inputs: [
|
|
78
|
-
{
|
|
79
|
-
internalType: "address",
|
|
80
|
-
name: "receiver",
|
|
81
|
-
type: "address",
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
name: "ERC1155InvalidReceiver",
|
|
85
|
-
type: "error",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
inputs: [
|
|
89
|
-
{
|
|
90
|
-
internalType: "address",
|
|
91
|
-
name: "sender",
|
|
92
|
-
type: "address",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
name: "ERC1155InvalidSender",
|
|
96
|
-
type: "error",
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
inputs: [
|
|
100
|
-
{
|
|
101
|
-
internalType: "address",
|
|
102
|
-
name: "operator",
|
|
103
|
-
type: "address",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
internalType: "address",
|
|
107
|
-
name: "owner",
|
|
108
|
-
type: "address",
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
name: "ERC1155MissingApprovalForAll",
|
|
112
|
-
type: "error",
|
|
113
|
-
},
|
|
114
|
-
] as const;
|
|
115
|
-
|
|
116
|
-
export class IERC1155Errors__factory {
|
|
117
|
-
static readonly abi = _abi;
|
|
118
|
-
static createInterface(): IERC1155ErrorsInterface {
|
|
119
|
-
return new Interface(_abi) as IERC1155ErrorsInterface;
|
|
120
|
-
}
|
|
121
|
-
static connect(
|
|
122
|
-
address: string,
|
|
123
|
-
runner?: ContractRunner | null
|
|
124
|
-
): IERC1155Errors {
|
|
125
|
-
return new Contract(address, _abi, runner) as unknown as IERC1155Errors;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
-
import type {
|
|
7
|
-
IERC20Errors,
|
|
8
|
-
IERC20ErrorsInterface,
|
|
9
|
-
} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors";
|
|
10
|
-
|
|
11
|
-
const _abi = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
internalType: "address",
|
|
16
|
-
name: "spender",
|
|
17
|
-
type: "address",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
internalType: "uint256",
|
|
21
|
-
name: "allowance",
|
|
22
|
-
type: "uint256",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
internalType: "uint256",
|
|
26
|
-
name: "needed",
|
|
27
|
-
type: "uint256",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
name: "ERC20InsufficientAllowance",
|
|
31
|
-
type: "error",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
inputs: [
|
|
35
|
-
{
|
|
36
|
-
internalType: "address",
|
|
37
|
-
name: "sender",
|
|
38
|
-
type: "address",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
internalType: "uint256",
|
|
42
|
-
name: "balance",
|
|
43
|
-
type: "uint256",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
internalType: "uint256",
|
|
47
|
-
name: "needed",
|
|
48
|
-
type: "uint256",
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
name: "ERC20InsufficientBalance",
|
|
52
|
-
type: "error",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
inputs: [
|
|
56
|
-
{
|
|
57
|
-
internalType: "address",
|
|
58
|
-
name: "approver",
|
|
59
|
-
type: "address",
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
name: "ERC20InvalidApprover",
|
|
63
|
-
type: "error",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
inputs: [
|
|
67
|
-
{
|
|
68
|
-
internalType: "address",
|
|
69
|
-
name: "receiver",
|
|
70
|
-
type: "address",
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
name: "ERC20InvalidReceiver",
|
|
74
|
-
type: "error",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
inputs: [
|
|
78
|
-
{
|
|
79
|
-
internalType: "address",
|
|
80
|
-
name: "sender",
|
|
81
|
-
type: "address",
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
name: "ERC20InvalidSender",
|
|
85
|
-
type: "error",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
inputs: [
|
|
89
|
-
{
|
|
90
|
-
internalType: "address",
|
|
91
|
-
name: "spender",
|
|
92
|
-
type: "address",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
name: "ERC20InvalidSpender",
|
|
96
|
-
type: "error",
|
|
97
|
-
},
|
|
98
|
-
] as const;
|
|
99
|
-
|
|
100
|
-
export class IERC20Errors__factory {
|
|
101
|
-
static readonly abi = _abi;
|
|
102
|
-
static createInterface(): IERC20ErrorsInterface {
|
|
103
|
-
return new Interface(_abi) as IERC20ErrorsInterface;
|
|
104
|
-
}
|
|
105
|
-
static connect(
|
|
106
|
-
address: string,
|
|
107
|
-
runner?: ContractRunner | null
|
|
108
|
-
): IERC20Errors {
|
|
109
|
-
return new Contract(address, _abi, runner) as unknown as IERC20Errors;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
-
import type {
|
|
7
|
-
IERC721Errors,
|
|
8
|
-
IERC721ErrorsInterface,
|
|
9
|
-
} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors";
|
|
10
|
-
|
|
11
|
-
const _abi = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
internalType: "address",
|
|
16
|
-
name: "sender",
|
|
17
|
-
type: "address",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
internalType: "uint256",
|
|
21
|
-
name: "tokenId",
|
|
22
|
-
type: "uint256",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
internalType: "address",
|
|
26
|
-
name: "owner",
|
|
27
|
-
type: "address",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
name: "ERC721IncorrectOwner",
|
|
31
|
-
type: "error",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
inputs: [
|
|
35
|
-
{
|
|
36
|
-
internalType: "address",
|
|
37
|
-
name: "operator",
|
|
38
|
-
type: "address",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
internalType: "uint256",
|
|
42
|
-
name: "tokenId",
|
|
43
|
-
type: "uint256",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
name: "ERC721InsufficientApproval",
|
|
47
|
-
type: "error",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
inputs: [
|
|
51
|
-
{
|
|
52
|
-
internalType: "address",
|
|
53
|
-
name: "approver",
|
|
54
|
-
type: "address",
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
name: "ERC721InvalidApprover",
|
|
58
|
-
type: "error",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
inputs: [
|
|
62
|
-
{
|
|
63
|
-
internalType: "address",
|
|
64
|
-
name: "operator",
|
|
65
|
-
type: "address",
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
name: "ERC721InvalidOperator",
|
|
69
|
-
type: "error",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
inputs: [
|
|
73
|
-
{
|
|
74
|
-
internalType: "address",
|
|
75
|
-
name: "owner",
|
|
76
|
-
type: "address",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
name: "ERC721InvalidOwner",
|
|
80
|
-
type: "error",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
inputs: [
|
|
84
|
-
{
|
|
85
|
-
internalType: "address",
|
|
86
|
-
name: "receiver",
|
|
87
|
-
type: "address",
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
name: "ERC721InvalidReceiver",
|
|
91
|
-
type: "error",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
inputs: [
|
|
95
|
-
{
|
|
96
|
-
internalType: "address",
|
|
97
|
-
name: "sender",
|
|
98
|
-
type: "address",
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
name: "ERC721InvalidSender",
|
|
102
|
-
type: "error",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
inputs: [
|
|
106
|
-
{
|
|
107
|
-
internalType: "uint256",
|
|
108
|
-
name: "tokenId",
|
|
109
|
-
type: "uint256",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
name: "ERC721NonexistentToken",
|
|
113
|
-
type: "error",
|
|
114
|
-
},
|
|
115
|
-
] as const;
|
|
116
|
-
|
|
117
|
-
export class IERC721Errors__factory {
|
|
118
|
-
static readonly abi = _abi;
|
|
119
|
-
static createInterface(): IERC721ErrorsInterface {
|
|
120
|
-
return new Interface(_abi) as IERC721ErrorsInterface;
|
|
121
|
-
}
|
|
122
|
-
static connect(
|
|
123
|
-
address: string,
|
|
124
|
-
runner?: ContractRunner | null
|
|
125
|
-
): IERC721Errors {
|
|
126
|
-
return new Contract(address, _abi, runner) as unknown as IERC721Errors;
|
|
127
|
-
}
|
|
128
|
-
}
|
package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
export { IERC1155Errors__factory } from "./IERC1155Errors__factory";
|
|
5
|
-
export { IERC20Errors__factory } from "./IERC20Errors__factory";
|
|
6
|
-
export { IERC721Errors__factory } from "./IERC721Errors__factory";
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import {
|
|
5
|
-
Contract,
|
|
6
|
-
ContractFactory,
|
|
7
|
-
ContractTransactionResponse,
|
|
8
|
-
Interface,
|
|
9
|
-
} from "ethers";
|
|
10
|
-
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
11
|
-
import type { NonPayableOverrides } from "../../common";
|
|
12
|
-
import type { GasTest, GasTestInterface } from "../../contracts/GasTest";
|
|
13
|
-
|
|
14
|
-
const _abi = [
|
|
15
|
-
{
|
|
16
|
-
inputs: [],
|
|
17
|
-
name: "test1",
|
|
18
|
-
outputs: [],
|
|
19
|
-
stateMutability: "nonpayable",
|
|
20
|
-
type: "function",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
inputs: [],
|
|
24
|
-
name: "test2",
|
|
25
|
-
outputs: [],
|
|
26
|
-
stateMutability: "nonpayable",
|
|
27
|
-
type: "function",
|
|
28
|
-
},
|
|
29
|
-
] as const;
|
|
30
|
-
|
|
31
|
-
const _bytecode =
|
|
32
|
-
"0x608060405234801561001057600080fd5b506102d0806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806366e41cb71461003b5780636b59084d14610045575b600080fd5b61004361004d565b005b61004361006a565b60006100596002610072565b9050610066816001610126565b5050565b600061006660025b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff8216602482015260009060649063d9b60b60906044016020604051808303816000875af11580156100fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101209190610281565b92915050565b600060646339bd1d8d61013c60048060026101f5565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffff000000000000000000000000000000000000000000000000000000000090911660048201526024810186905267ffffffffffffffff851660448201526064016020604051808303816000875af11580156101ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ee9190610281565b9392505050565b600081600281111561020957610209610252565b60ff16600884600481111561022057610220610252565b61ffff16901b61ffff16601086600481111561023e5761023e610252565b62ffffff16901b171760e81b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60006020828403121561029357600080fd5b505191905056fea264697066735822122024b86f1e2c83704d02af06383a52cfa1bb753ac769faefd6871f17140246e1f564736f6c63430008130033";
|
|
33
|
-
|
|
34
|
-
type GasTestConstructorParams =
|
|
35
|
-
| [signer?: Signer]
|
|
36
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
37
|
-
|
|
38
|
-
const isSuperArgs = (
|
|
39
|
-
xs: GasTestConstructorParams
|
|
40
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
41
|
-
|
|
42
|
-
export class GasTest__factory extends ContractFactory {
|
|
43
|
-
constructor(...args: GasTestConstructorParams) {
|
|
44
|
-
if (isSuperArgs(args)) {
|
|
45
|
-
super(...args);
|
|
46
|
-
} else {
|
|
47
|
-
super(_abi, _bytecode, args[0]);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
override getDeployTransaction(
|
|
52
|
-
overrides?: NonPayableOverrides & { from?: string }
|
|
53
|
-
): Promise<ContractDeployTransaction> {
|
|
54
|
-
return super.getDeployTransaction(overrides || {});
|
|
55
|
-
}
|
|
56
|
-
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
57
|
-
return super.deploy(overrides || {}) as Promise<
|
|
58
|
-
GasTest & {
|
|
59
|
-
deploymentTransaction(): ContractTransactionResponse;
|
|
60
|
-
}
|
|
61
|
-
>;
|
|
62
|
-
}
|
|
63
|
-
override connect(runner: ContractRunner | null): GasTest__factory {
|
|
64
|
-
return super.connect(runner) as GasTest__factory;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
static readonly bytecode = _bytecode;
|
|
68
|
-
static readonly abi = _abi;
|
|
69
|
-
static createInterface(): GasTestInterface {
|
|
70
|
-
return new Interface(_abi) as GasTestInterface;
|
|
71
|
-
}
|
|
72
|
-
static connect(address: string, runner?: ContractRunner | null): GasTest {
|
|
73
|
-
return new Contract(address, _abi, runner) as unknown as GasTest;
|
|
74
|
-
}
|
|
75
|
-
}
|