@zentity/fhevm-contracts 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/abi/ComplianceRules.json +25 -16
  2. package/abi/CompliantERC20.json +30 -16
  3. package/abi/IdentityRegistry.json +496 -119
  4. package/contracts/compliance/ComplianceRules.sol +40 -189
  5. package/contracts/core/IdentityRegistry.sol +280 -232
  6. package/contracts/interfaces/IComplianceRules.sol +30 -0
  7. package/contracts/interfaces/IIdentityRegistry.sol +133 -159
  8. package/contracts/proxy/ERC1967Proxy.sol +6 -0
  9. package/contracts/test/MockFacilitator.sol +40 -0
  10. package/contracts/tokens/CompliantERC20.sol +28 -242
  11. package/deployments/hardhat/addresses.json +3 -8
  12. package/deployments/sepolia/addresses.json +18 -0
  13. package/dist/index.d.ts +178 -14
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +71 -16
  16. package/package.json +3 -2
  17. package/typechain-types/@openzeppelin/contracts/access/Ownable.ts +153 -0
  18. package/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts +217 -0
  19. package/typechain-types/@openzeppelin/contracts/access/index.ts +5 -0
  20. package/typechain-types/@openzeppelin/contracts/index.ts +11 -0
  21. package/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
  22. package/typechain-types/@openzeppelin/contracts/interfaces/IERC5267.ts +151 -0
  23. package/typechain-types/{contracts/tokens/CompliantERC20.sol/IComplianceChecker.ts → @openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts} +12 -17
  24. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  25. package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +7 -0
  26. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +105 -0
  27. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
  28. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
  29. package/typechain-types/@openzeppelin/contracts/proxy/Proxy.ts +69 -0
  30. package/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
  31. package/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  32. package/typechain-types/@openzeppelin/contracts/proxy/index.ts +8 -0
  33. package/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
  34. package/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
  35. package/typechain-types/@openzeppelin/contracts/utils/Strings.ts +69 -0
  36. package/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.ts +69 -0
  37. package/typechain-types/@openzeppelin/contracts/utils/cryptography/index.ts +4 -0
  38. package/typechain-types/@openzeppelin/contracts/utils/index.ts +10 -0
  39. package/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
  40. package/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
  41. package/typechain-types/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +251 -0
  42. package/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +186 -0
  43. package/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  44. package/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
  45. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
  46. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
  47. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
  48. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  49. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
  50. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.ts +184 -0
  51. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/index.ts +4 -0
  52. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +6 -0
  53. package/typechain-types/@openzeppelin/index.ts +7 -0
  54. package/typechain-types/contracts/compliance/ComplianceRules.ts +18 -7
  55. package/typechain-types/contracts/core/IdentityRegistry.ts +493 -233
  56. package/typechain-types/contracts/index.ts +2 -0
  57. package/typechain-types/contracts/interfaces/IComplianceRules.ts +290 -0
  58. package/typechain-types/contracts/interfaces/IIdentityRegistry.ts +269 -341
  59. package/typechain-types/contracts/interfaces/index.ts +1 -0
  60. package/typechain-types/contracts/test/MockFacilitator.ts +187 -0
  61. package/typechain-types/contracts/test/index.ts +4 -0
  62. package/typechain-types/contracts/tokens/{CompliantERC20.sol/CompliantERC20.ts → CompliantERC20.ts} +19 -8
  63. package/typechain-types/contracts/tokens/index.ts +1 -2
  64. package/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts +138 -0
  65. package/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +96 -0
  66. package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +5 -0
  67. package/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
  68. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
  69. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.ts +71 -0
  70. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
  71. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  72. package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +6 -0
  73. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +144 -0
  74. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
  75. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
  76. package/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +26 -0
  77. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
  78. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  79. package/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +6 -0
  80. package/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
  81. package/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
  82. package/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.ts +90 -0
  83. package/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts +91 -0
  84. package/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.ts +4 -0
  85. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +8 -0
  86. package/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
  87. package/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
  88. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +165 -0
  89. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +122 -0
  90. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  91. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
  92. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  93. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
  94. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
  95. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  96. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
  97. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable__factory.ts +97 -0
  98. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/cryptography/index.ts +4 -0
  99. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
  100. package/typechain-types/factories/@openzeppelin/index.ts +5 -0
  101. package/typechain-types/factories/contracts/compliance/ComplianceRules__factory.ts +26 -17
  102. package/typechain-types/factories/contracts/core/IdentityRegistry__factory.ts +493 -116
  103. package/typechain-types/factories/contracts/index.ts +1 -0
  104. package/typechain-types/factories/contracts/interfaces/IComplianceRules__factory.ts +193 -0
  105. package/typechain-types/factories/contracts/interfaces/IIdentityRegistry__factory.ts +236 -186
  106. package/typechain-types/factories/contracts/interfaces/index.ts +1 -0
  107. package/typechain-types/factories/contracts/test/MockFacilitator__factory.ts +194 -0
  108. package/typechain-types/factories/contracts/test/index.ts +4 -0
  109. package/typechain-types/factories/contracts/tokens/CompliantERC20__factory.ts +595 -0
  110. package/typechain-types/factories/contracts/tokens/index.ts +1 -1
  111. package/typechain-types/factories/index.ts +1 -0
  112. package/typechain-types/hardhat.d.ts +394 -16
  113. package/typechain-types/index.ts +48 -4
  114. package/deployments/hardhat/.chainId +0 -1
  115. package/typechain-types/contracts/tokens/CompliantERC20.sol/index.ts +0 -5
  116. package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/CompliantERC20__factory.ts +0 -581
  117. package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/IComplianceChecker__factory.ts +0 -44
  118. package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/index.ts +0 -5
@@ -0,0 +1,38 @@
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
+ IERC1822Proxiable,
8
+ IERC1822ProxiableInterface,
9
+ } from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "proxiableUUID",
15
+ outputs: [
16
+ {
17
+ internalType: "bytes32",
18
+ name: "",
19
+ type: "bytes32",
20
+ },
21
+ ],
22
+ stateMutability: "view",
23
+ type: "function",
24
+ },
25
+ ] as const;
26
+
27
+ export class IERC1822Proxiable__factory {
28
+ static readonly abi = _abi;
29
+ static createInterface(): IERC1822ProxiableInterface {
30
+ return new Interface(_abi) as IERC1822ProxiableInterface;
31
+ }
32
+ static connect(
33
+ address: string,
34
+ runner?: ContractRunner | null
35
+ ): IERC1822Proxiable {
36
+ return new Contract(address, _abi, runner) as unknown as IERC1822Proxiable;
37
+ }
38
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IERC1822Proxiable__factory } from "./IERC1822Proxiable__factory";
@@ -0,0 +1,6 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as draftIerc1822Sol from "./draft-IERC1822.sol";
5
+ export { IERC1967__factory } from "./IERC1967__factory";
6
+ export { IERC5267__factory } from "./IERC5267__factory";
@@ -0,0 +1,144 @@
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 {
11
+ Signer,
12
+ BytesLike,
13
+ AddressLike,
14
+ ContractDeployTransaction,
15
+ ContractRunner,
16
+ } from "ethers";
17
+ import type { PayableOverrides } from "../../../../../common";
18
+ import type {
19
+ ERC1967Proxy,
20
+ ERC1967ProxyInterface,
21
+ } from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy";
22
+
23
+ const _abi = [
24
+ {
25
+ inputs: [
26
+ {
27
+ internalType: "address",
28
+ name: "implementation",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "bytes",
33
+ name: "_data",
34
+ type: "bytes",
35
+ },
36
+ ],
37
+ stateMutability: "payable",
38
+ type: "constructor",
39
+ },
40
+ {
41
+ inputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "target",
45
+ type: "address",
46
+ },
47
+ ],
48
+ name: "AddressEmptyCode",
49
+ type: "error",
50
+ },
51
+ {
52
+ inputs: [
53
+ {
54
+ internalType: "address",
55
+ name: "implementation",
56
+ type: "address",
57
+ },
58
+ ],
59
+ name: "ERC1967InvalidImplementation",
60
+ type: "error",
61
+ },
62
+ {
63
+ inputs: [],
64
+ name: "ERC1967NonPayable",
65
+ type: "error",
66
+ },
67
+ {
68
+ inputs: [],
69
+ name: "FailedCall",
70
+ type: "error",
71
+ },
72
+ {
73
+ anonymous: false,
74
+ inputs: [
75
+ {
76
+ indexed: true,
77
+ internalType: "address",
78
+ name: "implementation",
79
+ type: "address",
80
+ },
81
+ ],
82
+ name: "Upgraded",
83
+ type: "event",
84
+ },
85
+ {
86
+ stateMutability: "payable",
87
+ type: "fallback",
88
+ },
89
+ ] as const;
90
+
91
+ const _bytecode =
92
+ "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212208150b01e01694e8586dabbfc8cd231b7fb8db0a3805d47d7a7408a20b4314c1c64736f6c634300081b0033";
93
+
94
+ type ERC1967ProxyConstructorParams =
95
+ | [signer?: Signer]
96
+ | ConstructorParameters<typeof ContractFactory>;
97
+
98
+ const isSuperArgs = (
99
+ xs: ERC1967ProxyConstructorParams
100
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
101
+
102
+ export class ERC1967Proxy__factory extends ContractFactory {
103
+ constructor(...args: ERC1967ProxyConstructorParams) {
104
+ if (isSuperArgs(args)) {
105
+ super(...args);
106
+ } else {
107
+ super(_abi, _bytecode, args[0]);
108
+ }
109
+ }
110
+
111
+ override getDeployTransaction(
112
+ implementation: AddressLike,
113
+ _data: BytesLike,
114
+ overrides?: PayableOverrides & { from?: string }
115
+ ): Promise<ContractDeployTransaction> {
116
+ return super.getDeployTransaction(implementation, _data, overrides || {});
117
+ }
118
+ override deploy(
119
+ implementation: AddressLike,
120
+ _data: BytesLike,
121
+ overrides?: PayableOverrides & { from?: string }
122
+ ) {
123
+ return super.deploy(implementation, _data, overrides || {}) as Promise<
124
+ ERC1967Proxy & {
125
+ deploymentTransaction(): ContractTransactionResponse;
126
+ }
127
+ >;
128
+ }
129
+ override connect(runner: ContractRunner | null): ERC1967Proxy__factory {
130
+ return super.connect(runner) as ERC1967Proxy__factory;
131
+ }
132
+
133
+ static readonly bytecode = _bytecode;
134
+ static readonly abi = _abi;
135
+ static createInterface(): ERC1967ProxyInterface {
136
+ return new Interface(_abi) as ERC1967ProxyInterface;
137
+ }
138
+ static connect(
139
+ address: string,
140
+ runner?: ContractRunner | null
141
+ ): ERC1967Proxy {
142
+ return new Contract(address, _abi, runner) as unknown as ERC1967Proxy;
143
+ }
144
+ }
@@ -0,0 +1,105 @@
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 {
13
+ ERC1967Utils,
14
+ ERC1967UtilsInterface,
15
+ } from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "address",
22
+ name: "admin",
23
+ type: "address",
24
+ },
25
+ ],
26
+ name: "ERC1967InvalidAdmin",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [
31
+ {
32
+ internalType: "address",
33
+ name: "beacon",
34
+ type: "address",
35
+ },
36
+ ],
37
+ name: "ERC1967InvalidBeacon",
38
+ type: "error",
39
+ },
40
+ {
41
+ inputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "implementation",
45
+ type: "address",
46
+ },
47
+ ],
48
+ name: "ERC1967InvalidImplementation",
49
+ type: "error",
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: "ERC1967NonPayable",
54
+ type: "error",
55
+ },
56
+ ] as const;
57
+
58
+ const _bytecode =
59
+ "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212204deacc822178569625d4ba50cda4b4be51f58eacf988b3b0b44e2673ac549b3664736f6c634300081b0033";
60
+
61
+ type ERC1967UtilsConstructorParams =
62
+ | [signer?: Signer]
63
+ | ConstructorParameters<typeof ContractFactory>;
64
+
65
+ const isSuperArgs = (
66
+ xs: ERC1967UtilsConstructorParams
67
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
68
+
69
+ export class ERC1967Utils__factory extends ContractFactory {
70
+ constructor(...args: ERC1967UtilsConstructorParams) {
71
+ if (isSuperArgs(args)) {
72
+ super(...args);
73
+ } else {
74
+ super(_abi, _bytecode, args[0]);
75
+ }
76
+ }
77
+
78
+ override getDeployTransaction(
79
+ overrides?: NonPayableOverrides & { from?: string }
80
+ ): Promise<ContractDeployTransaction> {
81
+ return super.getDeployTransaction(overrides || {});
82
+ }
83
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
84
+ return super.deploy(overrides || {}) as Promise<
85
+ ERC1967Utils & {
86
+ deploymentTransaction(): ContractTransactionResponse;
87
+ }
88
+ >;
89
+ }
90
+ override connect(runner: ContractRunner | null): ERC1967Utils__factory {
91
+ return super.connect(runner) as ERC1967Utils__factory;
92
+ }
93
+
94
+ static readonly bytecode = _bytecode;
95
+ static readonly abi = _abi;
96
+ static createInterface(): ERC1967UtilsInterface {
97
+ return new Interface(_abi) as ERC1967UtilsInterface;
98
+ }
99
+ static connect(
100
+ address: string,
101
+ runner?: ContractRunner | null
102
+ ): ERC1967Utils {
103
+ return new Contract(address, _abi, runner) as unknown as ERC1967Utils;
104
+ }
105
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { ERC1967Proxy__factory } from "./ERC1967Proxy__factory";
5
+ export { ERC1967Utils__factory } from "./ERC1967Utils__factory";
@@ -0,0 +1,26 @@
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
+ Proxy,
8
+ ProxyInterface,
9
+ } from "../../../../@openzeppelin/contracts/proxy/Proxy";
10
+
11
+ const _abi = [
12
+ {
13
+ stateMutability: "payable",
14
+ type: "fallback",
15
+ },
16
+ ] as const;
17
+
18
+ export class Proxy__factory {
19
+ static readonly abi = _abi;
20
+ static createInterface(): ProxyInterface {
21
+ return new Interface(_abi) as ProxyInterface;
22
+ }
23
+ static connect(address: string, runner?: ContractRunner | null): Proxy {
24
+ return new Contract(address, _abi, runner) as unknown as Proxy;
25
+ }
26
+ }
@@ -0,0 +1,35 @@
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
+ IBeacon,
8
+ IBeaconInterface,
9
+ } from "../../../../../@openzeppelin/contracts/proxy/beacon/IBeacon";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "implementation",
15
+ outputs: [
16
+ {
17
+ internalType: "address",
18
+ name: "",
19
+ type: "address",
20
+ },
21
+ ],
22
+ stateMutability: "view",
23
+ type: "function",
24
+ },
25
+ ] as const;
26
+
27
+ export class IBeacon__factory {
28
+ static readonly abi = _abi;
29
+ static createInterface(): IBeaconInterface {
30
+ return new Interface(_abi) as IBeaconInterface;
31
+ }
32
+ static connect(address: string, runner?: ContractRunner | null): IBeacon {
33
+ return new Contract(address, _abi, runner) as unknown as IBeacon;
34
+ }
35
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IBeacon__factory } from "./IBeacon__factory";
@@ -0,0 +1,6 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as erc1967 from "./ERC1967";
5
+ export * as beacon from "./beacon";
6
+ export { Proxy__factory } from "./Proxy__factory";
@@ -0,0 +1,75 @@
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 {
13
+ Address,
14
+ AddressInterface,
15
+ } from "../../../../@openzeppelin/contracts/utils/Address";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "address",
22
+ name: "target",
23
+ type: "address",
24
+ },
25
+ ],
26
+ name: "AddressEmptyCode",
27
+ type: "error",
28
+ },
29
+ ] as const;
30
+
31
+ const _bytecode =
32
+ "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122015e78ca6210b1c2181529b3c676c7baee2df401d722377306f908b90a4989fdc64736f6c634300081b0033";
33
+
34
+ type AddressConstructorParams =
35
+ | [signer?: Signer]
36
+ | ConstructorParameters<typeof ContractFactory>;
37
+
38
+ const isSuperArgs = (
39
+ xs: AddressConstructorParams
40
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
41
+
42
+ export class Address__factory extends ContractFactory {
43
+ constructor(...args: AddressConstructorParams) {
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
+ Address & {
59
+ deploymentTransaction(): ContractTransactionResponse;
60
+ }
61
+ >;
62
+ }
63
+ override connect(runner: ContractRunner | null): Address__factory {
64
+ return super.connect(runner) as Address__factory;
65
+ }
66
+
67
+ static readonly bytecode = _bytecode;
68
+ static readonly abi = _abi;
69
+ static createInterface(): AddressInterface {
70
+ return new Interface(_abi) as AddressInterface;
71
+ }
72
+ static connect(address: string, runner?: ContractRunner | null): Address {
73
+ return new Contract(address, _abi, runner) as unknown as Address;
74
+ }
75
+ }
@@ -0,0 +1,101 @@
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 {
13
+ Errors,
14
+ ErrorsInterface,
15
+ } from "../../../../@openzeppelin/contracts/utils/Errors";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [],
20
+ name: "FailedCall",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "FailedDeployment",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "uint256",
32
+ name: "balance",
33
+ type: "uint256",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "needed",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "InsufficientBalance",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [
46
+ {
47
+ internalType: "address",
48
+ name: "",
49
+ type: "address",
50
+ },
51
+ ],
52
+ name: "MissingPrecompile",
53
+ type: "error",
54
+ },
55
+ ] as const;
56
+
57
+ const _bytecode =
58
+ "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212205135b48bd6e92206cbf6ca8ceb7ef8824cfde76a3f99fbddf6b1060dc70dd16f64736f6c634300081b0033";
59
+
60
+ type ErrorsConstructorParams =
61
+ | [signer?: Signer]
62
+ | ConstructorParameters<typeof ContractFactory>;
63
+
64
+ const isSuperArgs = (
65
+ xs: ErrorsConstructorParams
66
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
67
+
68
+ export class Errors__factory extends ContractFactory {
69
+ constructor(...args: ErrorsConstructorParams) {
70
+ if (isSuperArgs(args)) {
71
+ super(...args);
72
+ } else {
73
+ super(_abi, _bytecode, args[0]);
74
+ }
75
+ }
76
+
77
+ override getDeployTransaction(
78
+ overrides?: NonPayableOverrides & { from?: string }
79
+ ): Promise<ContractDeployTransaction> {
80
+ return super.getDeployTransaction(overrides || {});
81
+ }
82
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
83
+ return super.deploy(overrides || {}) as Promise<
84
+ Errors & {
85
+ deploymentTransaction(): ContractTransactionResponse;
86
+ }
87
+ >;
88
+ }
89
+ override connect(runner: ContractRunner | null): Errors__factory {
90
+ return super.connect(runner) as Errors__factory;
91
+ }
92
+
93
+ static readonly bytecode = _bytecode;
94
+ static readonly abi = _abi;
95
+ static createInterface(): ErrorsInterface {
96
+ return new Interface(_abi) as ErrorsInterface;
97
+ }
98
+ static connect(address: string, runner?: ContractRunner | null): Errors {
99
+ return new Contract(address, _abi, runner) as unknown as Errors;
100
+ }
101
+ }
@@ -0,0 +1,90 @@
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 {
13
+ Strings,
14
+ StringsInterface,
15
+ } from "../../../../@openzeppelin/contracts/utils/Strings";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "value",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "length",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "StringsInsufficientHexLength",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "StringsInvalidAddressFormat",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "StringsInvalidChar",
42
+ type: "error",
43
+ },
44
+ ] as const;
45
+
46
+ const _bytecode =
47
+ "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212208f7a4cd523b669ef4bac0a4a81240385f13af85a6178234c7d941ee3b4058a0064736f6c634300081b0033";
48
+
49
+ type StringsConstructorParams =
50
+ | [signer?: Signer]
51
+ | ConstructorParameters<typeof ContractFactory>;
52
+
53
+ const isSuperArgs = (
54
+ xs: StringsConstructorParams
55
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
56
+
57
+ export class Strings__factory extends ContractFactory {
58
+ constructor(...args: StringsConstructorParams) {
59
+ if (isSuperArgs(args)) {
60
+ super(...args);
61
+ } else {
62
+ super(_abi, _bytecode, args[0]);
63
+ }
64
+ }
65
+
66
+ override getDeployTransaction(
67
+ overrides?: NonPayableOverrides & { from?: string }
68
+ ): Promise<ContractDeployTransaction> {
69
+ return super.getDeployTransaction(overrides || {});
70
+ }
71
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
72
+ return super.deploy(overrides || {}) as Promise<
73
+ Strings & {
74
+ deploymentTransaction(): ContractTransactionResponse;
75
+ }
76
+ >;
77
+ }
78
+ override connect(runner: ContractRunner | null): Strings__factory {
79
+ return super.connect(runner) as Strings__factory;
80
+ }
81
+
82
+ static readonly bytecode = _bytecode;
83
+ static readonly abi = _abi;
84
+ static createInterface(): StringsInterface {
85
+ return new Interface(_abi) as StringsInterface;
86
+ }
87
+ static connect(address: string, runner?: ContractRunner | null): Strings {
88
+ return new Contract(address, _abi, runner) as unknown as Strings;
89
+ }
90
+ }