@gooddollar/goodcollective-contracts 1.0.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.
- package/README.md +1 -0
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +108 -0
- package/contracts/DirectPayments/DirectPaymentsPool.sol +333 -0
- package/contracts/DirectPayments/ProvableNFT.sol +178 -0
- package/package.json +59 -0
- package/releases/deployment.json +7118 -0
- package/typechain-types/@openzeppelin/contracts/index.ts +7 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +115 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +87 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +115 -0
- package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts +115 -0
- package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/proxy/Proxy.ts +55 -0
- package/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +87 -0
- package/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/proxy/index.ts +8 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.ts +410 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.ts +341 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +13 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.ts +115 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable.ts +87 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.ts +127 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.ts +87 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +9 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +69 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +238 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +342 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.ts +193 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +193 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.ts +631 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.ts +126 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.ts +559 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.ts +619 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC721/extensions/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC721/index.ts +8 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/token/index.ts +7 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +69 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +6 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.ts +121 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.ts +103 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts +5 -0
- package/typechain-types/@openzeppelin/index.ts +7 -0
- package/typechain-types/common.ts +46 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +1034 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +1381 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.ts +105 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts +125 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/index.ts +6 -0
- package/typechain-types/contracts/DirectPayments/ProvableNFT.ts +1489 -0
- package/typechain-types/contracts/DirectPayments/index.ts +7 -0
- package/typechain-types/contracts/Lock.ts +148 -0
- package/typechain-types/contracts/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +71 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +39 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +147 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts +71 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +31 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +39 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.ts +247 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.ts +202 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +8 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable__factory.ts +71 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable__factory.ts +43 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable__factory.ts +88 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable__factory.ts +39 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +39 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +128 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +209 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable__factory.ts +105 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +105 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable__factory.ts +406 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable__factory.ts +64 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable__factory.ts +311 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable__factory.ts +360 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC721/extensions/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC721/index.ts +7 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +39 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.ts +58 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.ts +45 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/index.ts +5 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +707 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +1094 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2__factory.ts +45 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator__factory.ts +60 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/index.ts +6 -0
- package/typechain-types/factories/contracts/DirectPayments/ProvableNFT__factory.ts +1184 -0
- package/typechain-types/factories/contracts/DirectPayments/index.ts +6 -0
- package/typechain-types/factories/contracts/Lock__factory.ts +129 -0
- package/typechain-types/factories/contracts/index.ts +5 -0
- package/typechain-types/factories/index.ts +5 -0
- package/typechain-types/hardhat.d.ts +294 -0
- package/typechain-types/index.ts +66 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type * as directPaymentsPoolSol from "./DirectPaymentsPool.sol";
|
|
5
|
+
export type { directPaymentsPoolSol };
|
|
6
|
+
export type { DirectPaymentsFactory } from "./DirectPaymentsFactory";
|
|
7
|
+
export type { ProvableNFT } from "./ProvableNFT";
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
ContractTransaction,
|
|
10
|
+
Overrides,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
Signer,
|
|
13
|
+
utils,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import type {
|
|
16
|
+
FunctionFragment,
|
|
17
|
+
Result,
|
|
18
|
+
EventFragment,
|
|
19
|
+
} from "@ethersproject/abi";
|
|
20
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
21
|
+
import type {
|
|
22
|
+
TypedEventFilter,
|
|
23
|
+
TypedEvent,
|
|
24
|
+
TypedListener,
|
|
25
|
+
OnEvent,
|
|
26
|
+
PromiseOrValue,
|
|
27
|
+
} from "../common";
|
|
28
|
+
|
|
29
|
+
export interface LockInterface extends utils.Interface {
|
|
30
|
+
functions: {
|
|
31
|
+
"owner()": FunctionFragment;
|
|
32
|
+
"unlockTime()": FunctionFragment;
|
|
33
|
+
"withdraw()": FunctionFragment;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
getFunction(
|
|
37
|
+
nameOrSignatureOrTopic: "owner" | "unlockTime" | "withdraw"
|
|
38
|
+
): FunctionFragment;
|
|
39
|
+
|
|
40
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
41
|
+
encodeFunctionData(
|
|
42
|
+
functionFragment: "unlockTime",
|
|
43
|
+
values?: undefined
|
|
44
|
+
): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "withdraw", values?: undefined): string;
|
|
46
|
+
|
|
47
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "unlockTime", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
50
|
+
|
|
51
|
+
events: {
|
|
52
|
+
"Withdrawal(uint256,uint256)": EventFragment;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface WithdrawalEventObject {
|
|
59
|
+
amount: BigNumber;
|
|
60
|
+
when: BigNumber;
|
|
61
|
+
}
|
|
62
|
+
export type WithdrawalEvent = TypedEvent<
|
|
63
|
+
[BigNumber, BigNumber],
|
|
64
|
+
WithdrawalEventObject
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
export type WithdrawalEventFilter = TypedEventFilter<WithdrawalEvent>;
|
|
68
|
+
|
|
69
|
+
export interface Lock extends BaseContract {
|
|
70
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
71
|
+
attach(addressOrName: string): this;
|
|
72
|
+
deployed(): Promise<this>;
|
|
73
|
+
|
|
74
|
+
interface: LockInterface;
|
|
75
|
+
|
|
76
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
77
|
+
event: TypedEventFilter<TEvent>,
|
|
78
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
79
|
+
toBlock?: string | number | undefined
|
|
80
|
+
): Promise<Array<TEvent>>;
|
|
81
|
+
|
|
82
|
+
listeners<TEvent extends TypedEvent>(
|
|
83
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
84
|
+
): Array<TypedListener<TEvent>>;
|
|
85
|
+
listeners(eventName?: string): Array<Listener>;
|
|
86
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
87
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
88
|
+
): this;
|
|
89
|
+
removeAllListeners(eventName?: string): this;
|
|
90
|
+
off: OnEvent<this>;
|
|
91
|
+
on: OnEvent<this>;
|
|
92
|
+
once: OnEvent<this>;
|
|
93
|
+
removeListener: OnEvent<this>;
|
|
94
|
+
|
|
95
|
+
functions: {
|
|
96
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
97
|
+
|
|
98
|
+
unlockTime(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
99
|
+
|
|
100
|
+
withdraw(
|
|
101
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
102
|
+
): Promise<ContractTransaction>;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
106
|
+
|
|
107
|
+
unlockTime(overrides?: CallOverrides): Promise<BigNumber>;
|
|
108
|
+
|
|
109
|
+
withdraw(
|
|
110
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
111
|
+
): Promise<ContractTransaction>;
|
|
112
|
+
|
|
113
|
+
callStatic: {
|
|
114
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
115
|
+
|
|
116
|
+
unlockTime(overrides?: CallOverrides): Promise<BigNumber>;
|
|
117
|
+
|
|
118
|
+
withdraw(overrides?: CallOverrides): Promise<void>;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
filters: {
|
|
122
|
+
"Withdrawal(uint256,uint256)"(
|
|
123
|
+
amount?: null,
|
|
124
|
+
when?: null
|
|
125
|
+
): WithdrawalEventFilter;
|
|
126
|
+
Withdrawal(amount?: null, when?: null): WithdrawalEventFilter;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
estimateGas: {
|
|
130
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
131
|
+
|
|
132
|
+
unlockTime(overrides?: CallOverrides): Promise<BigNumber>;
|
|
133
|
+
|
|
134
|
+
withdraw(
|
|
135
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
136
|
+
): Promise<BigNumber>;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
populateTransaction: {
|
|
140
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
141
|
+
|
|
142
|
+
unlockTime(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
143
|
+
|
|
144
|
+
withdraw(
|
|
145
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
146
|
+
): Promise<PopulatedTransaction>;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IERC1967,
|
|
9
|
+
IERC1967Interface,
|
|
10
|
+
} from "../../../../@openzeppelin/contracts/interfaces/IERC1967";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "beacon",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "BeaconUpgraded",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "implementation",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "Upgraded",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
] as const;
|
|
59
|
+
|
|
60
|
+
export class IERC1967__factory {
|
|
61
|
+
static readonly abi = _abi;
|
|
62
|
+
static createInterface(): IERC1967Interface {
|
|
63
|
+
return new utils.Interface(_abi) as IERC1967Interface;
|
|
64
|
+
}
|
|
65
|
+
static connect(
|
|
66
|
+
address: string,
|
|
67
|
+
signerOrProvider: Signer | Provider
|
|
68
|
+
): IERC1967 {
|
|
69
|
+
return new Contract(address, _abi, signerOrProvider) as IERC1967;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IERC1822Proxiable,
|
|
9
|
+
IERC1822ProxiableInterface,
|
|
10
|
+
} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "proxiableUUID",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "bytes32",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "bytes32",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "view",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
] as const;
|
|
27
|
+
|
|
28
|
+
export class IERC1822Proxiable__factory {
|
|
29
|
+
static readonly abi = _abi;
|
|
30
|
+
static createInterface(): IERC1822ProxiableInterface {
|
|
31
|
+
return new utils.Interface(_abi) as IERC1822ProxiableInterface;
|
|
32
|
+
}
|
|
33
|
+
static connect(
|
|
34
|
+
address: string,
|
|
35
|
+
signerOrProvider: Signer | Provider
|
|
36
|
+
): IERC1822Proxiable {
|
|
37
|
+
return new Contract(address, _abi, signerOrProvider) as IERC1822Proxiable;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
PayableOverrides,
|
|
10
|
+
BytesLike,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type { PromiseOrValue } from "../../../../../common";
|
|
14
|
+
import type {
|
|
15
|
+
ERC1967Proxy,
|
|
16
|
+
ERC1967ProxyInterface,
|
|
17
|
+
} from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy";
|
|
18
|
+
|
|
19
|
+
const _abi = [
|
|
20
|
+
{
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "_logic",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "bytes",
|
|
29
|
+
name: "_data",
|
|
30
|
+
type: "bytes",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
stateMutability: "payable",
|
|
34
|
+
type: "constructor",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
anonymous: false,
|
|
38
|
+
inputs: [
|
|
39
|
+
{
|
|
40
|
+
indexed: false,
|
|
41
|
+
internalType: "address",
|
|
42
|
+
name: "previousAdmin",
|
|
43
|
+
type: "address",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
indexed: false,
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "newAdmin",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "AdminChanged",
|
|
53
|
+
type: "event",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
anonymous: false,
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
indexed: true,
|
|
60
|
+
internalType: "address",
|
|
61
|
+
name: "beacon",
|
|
62
|
+
type: "address",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "BeaconUpgraded",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "implementation",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "Upgraded",
|
|
79
|
+
type: "event",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
stateMutability: "payable",
|
|
83
|
+
type: "fallback",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
stateMutability: "payable",
|
|
87
|
+
type: "receive",
|
|
88
|
+
},
|
|
89
|
+
] as const;
|
|
90
|
+
|
|
91
|
+
const _bytecode =
|
|
92
|
+
"0x60806040526040516104ec3803806104ec833981016040819052610022916102e9565b61002e82826000610035565b5050610406565b61003e83610061565b60008251118061004b5750805b1561005c5761005a83836100a1565b505b505050565b61006a816100cd565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100c683836040518060600160405280602781526020016104c56027913961017e565b9392505050565b6100d6816101f7565b61013d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b03168560405161019b91906103b7565b600060405180830381855af49150503d80600081146101d6576040519150601f19603f3d011682016040523d82523d6000602084013e6101db565b606091505b5090925090506101ed86838387610206565b9695505050505050565b6001600160a01b03163b151590565b6060831561027357825160000361026c57610220856101f7565b61026c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610134565b508161027d565b61027d8383610285565b949350505050565b8151156102955781518083602001fd5b8060405162461bcd60e51b815260040161013491906103d3565b634e487b7160e01b600052604160045260246000fd5b60005b838110156102e05781810151838201526020016102c8565b50506000910152565b600080604083850312156102fc57600080fd5b82516001600160a01b038116811461031357600080fd5b60208401519092506001600160401b038082111561033057600080fd5b818501915085601f83011261034457600080fd5b815181811115610356576103566102af565b604051601f8201601f19908116603f0116810190838211818310171561037e5761037e6102af565b8160405282815288602084870101111561039757600080fd5b6103a88360208301602088016102c5565b80955050505050509250929050565b600082516103c98184602087016102c5565b9190910192915050565b60208152600082518060208401526103f28160408501602087016102c5565b601f01601f19169190910160400192915050565b60b1806104146000396000f3fe608060405236601057600e6013565b005b600e5b601f601b6021565b6058565b565b600060537f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156076573d6000f35b3d6000fdfea2646970667358221220a4cda07e5b291f61d81b4ee016ef5ca6a806aa56384b08ff8d52828dbed4d68d64736f6c63430008130033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
|
|
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 deploy(
|
|
112
|
+
_logic: PromiseOrValue<string>,
|
|
113
|
+
_data: PromiseOrValue<BytesLike>,
|
|
114
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
115
|
+
): Promise<ERC1967Proxy> {
|
|
116
|
+
return super.deploy(
|
|
117
|
+
_logic,
|
|
118
|
+
_data,
|
|
119
|
+
overrides || {}
|
|
120
|
+
) as Promise<ERC1967Proxy>;
|
|
121
|
+
}
|
|
122
|
+
override getDeployTransaction(
|
|
123
|
+
_logic: PromiseOrValue<string>,
|
|
124
|
+
_data: PromiseOrValue<BytesLike>,
|
|
125
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
126
|
+
): TransactionRequest {
|
|
127
|
+
return super.getDeployTransaction(_logic, _data, overrides || {});
|
|
128
|
+
}
|
|
129
|
+
override attach(address: string): ERC1967Proxy {
|
|
130
|
+
return super.attach(address) as ERC1967Proxy;
|
|
131
|
+
}
|
|
132
|
+
override connect(signer: Signer): ERC1967Proxy__factory {
|
|
133
|
+
return super.connect(signer) as ERC1967Proxy__factory;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static readonly bytecode = _bytecode;
|
|
137
|
+
static readonly abi = _abi;
|
|
138
|
+
static createInterface(): ERC1967ProxyInterface {
|
|
139
|
+
return new utils.Interface(_abi) as ERC1967ProxyInterface;
|
|
140
|
+
}
|
|
141
|
+
static connect(
|
|
142
|
+
address: string,
|
|
143
|
+
signerOrProvider: Signer | Provider
|
|
144
|
+
): ERC1967Proxy {
|
|
145
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1967Proxy;
|
|
146
|
+
}
|
|
147
|
+
}
|
package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
ERC1967Upgrade,
|
|
9
|
+
ERC1967UpgradeInterface,
|
|
10
|
+
} from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "beacon",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "BeaconUpgraded",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "implementation",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "Upgraded",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
] as const;
|
|
59
|
+
|
|
60
|
+
export class ERC1967Upgrade__factory {
|
|
61
|
+
static readonly abi = _abi;
|
|
62
|
+
static createInterface(): ERC1967UpgradeInterface {
|
|
63
|
+
return new utils.Interface(_abi) as ERC1967UpgradeInterface;
|
|
64
|
+
}
|
|
65
|
+
static connect(
|
|
66
|
+
address: string,
|
|
67
|
+
signerOrProvider: Signer | Provider
|
|
68
|
+
): ERC1967Upgrade {
|
|
69
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1967Upgrade;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
Proxy,
|
|
9
|
+
ProxyInterface,
|
|
10
|
+
} from "../../../../@openzeppelin/contracts/proxy/Proxy";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
stateMutability: "payable",
|
|
15
|
+
type: "fallback",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
stateMutability: "payable",
|
|
19
|
+
type: "receive",
|
|
20
|
+
},
|
|
21
|
+
] as const;
|
|
22
|
+
|
|
23
|
+
export class Proxy__factory {
|
|
24
|
+
static readonly abi = _abi;
|
|
25
|
+
static createInterface(): ProxyInterface {
|
|
26
|
+
return new utils.Interface(_abi) as ProxyInterface;
|
|
27
|
+
}
|
|
28
|
+
static connect(address: string, signerOrProvider: Signer | Provider): Proxy {
|
|
29
|
+
return new Contract(address, _abi, signerOrProvider) as Proxy;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IBeacon,
|
|
9
|
+
IBeaconInterface,
|
|
10
|
+
} from "../../../../../@openzeppelin/contracts/proxy/beacon/IBeacon";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "implementation",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "view",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
] as const;
|
|
27
|
+
|
|
28
|
+
export class IBeacon__factory {
|
|
29
|
+
static readonly abi = _abi;
|
|
30
|
+
static createInterface(): IBeaconInterface {
|
|
31
|
+
return new utils.Interface(_abi) as IBeaconInterface;
|
|
32
|
+
}
|
|
33
|
+
static connect(
|
|
34
|
+
address: string,
|
|
35
|
+
signerOrProvider: Signer | Provider
|
|
36
|
+
): IBeacon {
|
|
37
|
+
return new Contract(address, _abi, signerOrProvider) as IBeacon;
|
|
38
|
+
}
|
|
39
|
+
}
|