@mapprotocol/common-contracts 0.1.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 (88) hide show
  1. package/README.md +107 -0
  2. package/artifacts/contracts/AuthorityManager.sol/AuthorityManager.json +1237 -0
  3. package/artifacts/contracts/base/BaseImplemention.sol/BaseImplementation.json +298 -0
  4. package/contracts/AuthorityManager.sol +60 -0
  5. package/contracts/base/BaseImplemention.sol +38 -0
  6. package/package.json +73 -0
  7. package/typechain-types/@openzeppelin/contracts/access/index.ts +5 -0
  8. package/typechain-types/@openzeppelin/contracts/access/manager/AccessManager.ts +1109 -0
  9. package/typechain-types/@openzeppelin/contracts/access/manager/IAccessManaged.ts +148 -0
  10. package/typechain-types/@openzeppelin/contracts/access/manager/IAccessManager.ts +1073 -0
  11. package/typechain-types/@openzeppelin/contracts/access/manager/IAuthority.ts +96 -0
  12. package/typechain-types/@openzeppelin/contracts/access/manager/index.ts +7 -0
  13. package/typechain-types/@openzeppelin/contracts/index.ts +11 -0
  14. package/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
  15. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +90 -0
  16. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  17. package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +6 -0
  18. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
  19. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +4 -0
  20. package/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
  21. package/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  22. package/typechain-types/@openzeppelin/contracts/proxy/index.ts +7 -0
  23. package/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
  24. package/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
  25. package/typechain-types/@openzeppelin/contracts/utils/Multicall.ts +87 -0
  26. package/typechain-types/@openzeppelin/contracts/utils/index.ts +8 -0
  27. package/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
  28. package/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
  29. package/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  30. package/typechain-types/@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.ts +185 -0
  31. package/typechain-types/@openzeppelin/contracts-upgradeable/access/manager/index.ts +4 -0
  32. package/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
  33. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
  34. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
  35. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
  36. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  37. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
  38. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.ts +183 -0
  39. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
  40. package/typechain-types/@openzeppelin/index.ts +7 -0
  41. package/typechain-types/common.ts +131 -0
  42. package/typechain-types/contracts/AuthorityManager.ts +1163 -0
  43. package/typechain-types/contracts/base/BaseImplemention.sol/BaseImplementation.ts +363 -0
  44. package/typechain-types/contracts/base/BaseImplemention.sol/index.ts +4 -0
  45. package/typechain-types/contracts/base/index.ts +5 -0
  46. package/typechain-types/contracts/index.ts +6 -0
  47. package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +4 -0
  48. package/typechain-types/factories/@openzeppelin/contracts/access/manager/AccessManager__factory.ts +1240 -0
  49. package/typechain-types/factories/@openzeppelin/contracts/access/manager/IAccessManaged__factory.ts +115 -0
  50. package/typechain-types/factories/@openzeppelin/contracts/access/manager/IAccessManager__factory.ts +1085 -0
  51. package/typechain-types/factories/@openzeppelin/contracts/access/manager/IAuthority__factory.ts +51 -0
  52. package/typechain-types/factories/@openzeppelin/contracts/access/manager/index.ts +7 -0
  53. package/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
  54. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
  55. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
  56. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  57. package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +5 -0
  58. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
  59. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +4 -0
  60. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
  61. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  62. package/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +5 -0
  63. package/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
  64. package/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
  65. package/typechain-types/factories/@openzeppelin/contracts/utils/Multicall__factory.ts +57 -0
  66. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +7 -0
  67. package/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
  68. package/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
  69. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
  70. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable__factory.ts +142 -0
  71. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/manager/index.ts +4 -0
  72. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
  73. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  74. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
  75. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
  76. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  77. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
  78. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable__factory.ts +101 -0
  79. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
  80. package/typechain-types/factories/@openzeppelin/index.ts +5 -0
  81. package/typechain-types/factories/contracts/AuthorityManager__factory.ts +1302 -0
  82. package/typechain-types/factories/contracts/base/BaseImplemention.sol/BaseImplementation__factory.ts +312 -0
  83. package/typechain-types/factories/contracts/base/BaseImplemention.sol/index.ts +4 -0
  84. package/typechain-types/factories/contracts/base/index.ts +4 -0
  85. package/typechain-types/factories/contracts/index.ts +5 -0
  86. package/typechain-types/factories/index.ts +5 -0
  87. package/typechain-types/hardhat.d.ts +387 -0
  88. package/typechain-types/index.ts +46 -0
@@ -0,0 +1,118 @@
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
+ SafeCast,
14
+ SafeCastInterface,
15
+ } from "../../../../../@openzeppelin/contracts/utils/math/SafeCast";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "uint8",
22
+ name: "bits",
23
+ type: "uint8",
24
+ },
25
+ {
26
+ internalType: "int256",
27
+ name: "value",
28
+ type: "int256",
29
+ },
30
+ ],
31
+ name: "SafeCastOverflowedIntDowncast",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: "int256",
38
+ name: "value",
39
+ type: "int256",
40
+ },
41
+ ],
42
+ name: "SafeCastOverflowedIntToUint",
43
+ type: "error",
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ internalType: "uint8",
49
+ name: "bits",
50
+ type: "uint8",
51
+ },
52
+ {
53
+ internalType: "uint256",
54
+ name: "value",
55
+ type: "uint256",
56
+ },
57
+ ],
58
+ name: "SafeCastOverflowedUintDowncast",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [
63
+ {
64
+ internalType: "uint256",
65
+ name: "value",
66
+ type: "uint256",
67
+ },
68
+ ],
69
+ name: "SafeCastOverflowedUintToInt",
70
+ type: "error",
71
+ },
72
+ ] as const;
73
+
74
+ const _bytecode =
75
+ "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209f972950fe74efd68979b848ff5d9434c378c6e6984c353ece9652d6a5bf9a2b64736f6c63430008180033";
76
+
77
+ type SafeCastConstructorParams =
78
+ | [signer?: Signer]
79
+ | ConstructorParameters<typeof ContractFactory>;
80
+
81
+ const isSuperArgs = (
82
+ xs: SafeCastConstructorParams
83
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
84
+
85
+ export class SafeCast__factory extends ContractFactory {
86
+ constructor(...args: SafeCastConstructorParams) {
87
+ if (isSuperArgs(args)) {
88
+ super(...args);
89
+ } else {
90
+ super(_abi, _bytecode, args[0]);
91
+ }
92
+ }
93
+
94
+ override getDeployTransaction(
95
+ overrides?: NonPayableOverrides & { from?: string }
96
+ ): Promise<ContractDeployTransaction> {
97
+ return super.getDeployTransaction(overrides || {});
98
+ }
99
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
100
+ return super.deploy(overrides || {}) as Promise<
101
+ SafeCast & {
102
+ deploymentTransaction(): ContractTransactionResponse;
103
+ }
104
+ >;
105
+ }
106
+ override connect(runner: ContractRunner | null): SafeCast__factory {
107
+ return super.connect(runner) as SafeCast__factory;
108
+ }
109
+
110
+ static readonly bytecode = _bytecode;
111
+ static readonly abi = _abi;
112
+ static createInterface(): SafeCastInterface {
113
+ return new Interface(_abi) as SafeCastInterface;
114
+ }
115
+ static connect(address: string, runner?: ContractRunner | null): SafeCast {
116
+ return new Contract(address, _abi, runner) as unknown as SafeCast;
117
+ }
118
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { SafeCast__factory } from "./SafeCast__factory";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as manager from "./manager";
@@ -0,0 +1,142 @@
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
+ AccessManagedUpgradeable,
8
+ AccessManagedUpgradeableInterface,
9
+ } from "../../../../../@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "authority",
17
+ type: "address",
18
+ },
19
+ ],
20
+ name: "AccessManagedInvalidAuthority",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ internalType: "address",
27
+ name: "caller",
28
+ type: "address",
29
+ },
30
+ {
31
+ internalType: "uint32",
32
+ name: "delay",
33
+ type: "uint32",
34
+ },
35
+ ],
36
+ name: "AccessManagedRequiredDelay",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "address",
43
+ name: "caller",
44
+ type: "address",
45
+ },
46
+ ],
47
+ name: "AccessManagedUnauthorized",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: "InvalidInitialization",
53
+ type: "error",
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: "NotInitializing",
58
+ type: "error",
59
+ },
60
+ {
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ indexed: false,
65
+ internalType: "address",
66
+ name: "authority",
67
+ type: "address",
68
+ },
69
+ ],
70
+ name: "AuthorityUpdated",
71
+ type: "event",
72
+ },
73
+ {
74
+ anonymous: false,
75
+ inputs: [
76
+ {
77
+ indexed: false,
78
+ internalType: "uint64",
79
+ name: "version",
80
+ type: "uint64",
81
+ },
82
+ ],
83
+ name: "Initialized",
84
+ type: "event",
85
+ },
86
+ {
87
+ inputs: [],
88
+ name: "authority",
89
+ outputs: [
90
+ {
91
+ internalType: "address",
92
+ name: "",
93
+ type: "address",
94
+ },
95
+ ],
96
+ stateMutability: "view",
97
+ type: "function",
98
+ },
99
+ {
100
+ inputs: [],
101
+ name: "isConsumingScheduledOp",
102
+ outputs: [
103
+ {
104
+ internalType: "bytes4",
105
+ name: "",
106
+ type: "bytes4",
107
+ },
108
+ ],
109
+ stateMutability: "view",
110
+ type: "function",
111
+ },
112
+ {
113
+ inputs: [
114
+ {
115
+ internalType: "address",
116
+ name: "newAuthority",
117
+ type: "address",
118
+ },
119
+ ],
120
+ name: "setAuthority",
121
+ outputs: [],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ ] as const;
126
+
127
+ export class AccessManagedUpgradeable__factory {
128
+ static readonly abi = _abi;
129
+ static createInterface(): AccessManagedUpgradeableInterface {
130
+ return new Interface(_abi) as AccessManagedUpgradeableInterface;
131
+ }
132
+ static connect(
133
+ address: string,
134
+ runner?: ContractRunner | null
135
+ ): AccessManagedUpgradeable {
136
+ return new Contract(
137
+ address,
138
+ _abi,
139
+ runner
140
+ ) as unknown as AccessManagedUpgradeable;
141
+ }
142
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { AccessManagedUpgradeable__factory } from "./AccessManagedUpgradeable__factory";
@@ -0,0 +1,6 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as access from "./access";
5
+ export * as proxy from "./proxy";
6
+ export * as utils from "./utils";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as utils from "./utils";
@@ -0,0 +1,48 @@
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
+ Initializable,
8
+ InitializableInterface,
9
+ } from "../../../../../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "InvalidInitialization",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [],
19
+ name: "NotInitializing",
20
+ type: "error",
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: false,
27
+ internalType: "uint64",
28
+ name: "version",
29
+ type: "uint64",
30
+ },
31
+ ],
32
+ name: "Initialized",
33
+ type: "event",
34
+ },
35
+ ] as const;
36
+
37
+ export class Initializable__factory {
38
+ static readonly abi = _abi;
39
+ static createInterface(): InitializableInterface {
40
+ return new Interface(_abi) as InitializableInterface;
41
+ }
42
+ static connect(
43
+ address: string,
44
+ runner?: ContractRunner | null
45
+ ): Initializable {
46
+ return new Contract(address, _abi, runner) as unknown as Initializable;
47
+ }
48
+ }
@@ -0,0 +1,153 @@
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
+ UUPSUpgradeable,
8
+ UUPSUpgradeableInterface,
9
+ } from "../../../../../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "target",
17
+ type: "address",
18
+ },
19
+ ],
20
+ name: "AddressEmptyCode",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ internalType: "address",
27
+ name: "implementation",
28
+ type: "address",
29
+ },
30
+ ],
31
+ name: "ERC1967InvalidImplementation",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "ERC1967NonPayable",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "FailedCall",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "InvalidInitialization",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: "NotInitializing",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "UUPSUnauthorizedCallContext",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [
61
+ {
62
+ internalType: "bytes32",
63
+ name: "slot",
64
+ type: "bytes32",
65
+ },
66
+ ],
67
+ name: "UUPSUnsupportedProxiableUUID",
68
+ type: "error",
69
+ },
70
+ {
71
+ anonymous: false,
72
+ inputs: [
73
+ {
74
+ indexed: false,
75
+ internalType: "uint64",
76
+ name: "version",
77
+ type: "uint64",
78
+ },
79
+ ],
80
+ name: "Initialized",
81
+ type: "event",
82
+ },
83
+ {
84
+ anonymous: false,
85
+ inputs: [
86
+ {
87
+ indexed: true,
88
+ internalType: "address",
89
+ name: "implementation",
90
+ type: "address",
91
+ },
92
+ ],
93
+ name: "Upgraded",
94
+ type: "event",
95
+ },
96
+ {
97
+ inputs: [],
98
+ name: "UPGRADE_INTERFACE_VERSION",
99
+ outputs: [
100
+ {
101
+ internalType: "string",
102
+ name: "",
103
+ type: "string",
104
+ },
105
+ ],
106
+ stateMutability: "view",
107
+ type: "function",
108
+ },
109
+ {
110
+ inputs: [],
111
+ name: "proxiableUUID",
112
+ outputs: [
113
+ {
114
+ internalType: "bytes32",
115
+ name: "",
116
+ type: "bytes32",
117
+ },
118
+ ],
119
+ stateMutability: "view",
120
+ type: "function",
121
+ },
122
+ {
123
+ inputs: [
124
+ {
125
+ internalType: "address",
126
+ name: "newImplementation",
127
+ type: "address",
128
+ },
129
+ {
130
+ internalType: "bytes",
131
+ name: "data",
132
+ type: "bytes",
133
+ },
134
+ ],
135
+ name: "upgradeToAndCall",
136
+ outputs: [],
137
+ stateMutability: "payable",
138
+ type: "function",
139
+ },
140
+ ] as const;
141
+
142
+ export class UUPSUpgradeable__factory {
143
+ static readonly abi = _abi;
144
+ static createInterface(): UUPSUpgradeableInterface {
145
+ return new Interface(_abi) as UUPSUpgradeableInterface;
146
+ }
147
+ static connect(
148
+ address: string,
149
+ runner?: ContractRunner | null
150
+ ): UUPSUpgradeable {
151
+ return new Contract(address, _abi, runner) as unknown as UUPSUpgradeable;
152
+ }
153
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { Initializable__factory } from "./Initializable__factory";
5
+ export { UUPSUpgradeable__factory } from "./UUPSUpgradeable__factory";
@@ -0,0 +1,48 @@
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
+ ContextUpgradeable,
8
+ ContextUpgradeableInterface,
9
+ } from "../../../../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "InvalidInitialization",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [],
19
+ name: "NotInitializing",
20
+ type: "error",
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: false,
27
+ internalType: "uint64",
28
+ name: "version",
29
+ type: "uint64",
30
+ },
31
+ ],
32
+ name: "Initialized",
33
+ type: "event",
34
+ },
35
+ ] as const;
36
+
37
+ export class ContextUpgradeable__factory {
38
+ static readonly abi = _abi;
39
+ static createInterface(): ContextUpgradeableInterface {
40
+ return new Interface(_abi) as ContextUpgradeableInterface;
41
+ }
42
+ static connect(
43
+ address: string,
44
+ runner?: ContractRunner | null
45
+ ): ContextUpgradeable {
46
+ return new Contract(address, _abi, runner) as unknown as ContextUpgradeable;
47
+ }
48
+ }
@@ -0,0 +1,101 @@
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
+ PausableUpgradeable,
8
+ PausableUpgradeableInterface,
9
+ } from "../../../../@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "EnforcedPause",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [],
19
+ name: "ExpectedPause",
20
+ type: "error",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "InvalidInitialization",
25
+ type: "error",
26
+ },
27
+ {
28
+ inputs: [],
29
+ name: "NotInitializing",
30
+ type: "error",
31
+ },
32
+ {
33
+ anonymous: false,
34
+ inputs: [
35
+ {
36
+ indexed: false,
37
+ internalType: "uint64",
38
+ name: "version",
39
+ type: "uint64",
40
+ },
41
+ ],
42
+ name: "Initialized",
43
+ type: "event",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ {
49
+ indexed: false,
50
+ internalType: "address",
51
+ name: "account",
52
+ type: "address",
53
+ },
54
+ ],
55
+ name: "Paused",
56
+ type: "event",
57
+ },
58
+ {
59
+ anonymous: false,
60
+ inputs: [
61
+ {
62
+ indexed: false,
63
+ internalType: "address",
64
+ name: "account",
65
+ type: "address",
66
+ },
67
+ ],
68
+ name: "Unpaused",
69
+ type: "event",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "paused",
74
+ outputs: [
75
+ {
76
+ internalType: "bool",
77
+ name: "",
78
+ type: "bool",
79
+ },
80
+ ],
81
+ stateMutability: "view",
82
+ type: "function",
83
+ },
84
+ ] as const;
85
+
86
+ export class PausableUpgradeable__factory {
87
+ static readonly abi = _abi;
88
+ static createInterface(): PausableUpgradeableInterface {
89
+ return new Interface(_abi) as PausableUpgradeableInterface;
90
+ }
91
+ static connect(
92
+ address: string,
93
+ runner?: ContractRunner | null
94
+ ): PausableUpgradeable {
95
+ return new Contract(
96
+ address,
97
+ _abi,
98
+ runner
99
+ ) as unknown as PausableUpgradeable;
100
+ }
101
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { ContextUpgradeable__factory } from "./ContextUpgradeable__factory";
5
+ export { PausableUpgradeable__factory } from "./PausableUpgradeable__factory";
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as contracts from "./contracts";
5
+ export * as contractsUpgradeable from "./contracts-upgradeable";