@gooddollar/goodprotocol 1.0.23 → 1.0.24
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddollar/goodprotocol",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "GoodDollar Protocol",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "scripts/build.sh deploy",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"truffle-config.js",
|
|
33
33
|
"tsconfig.json",
|
|
34
34
|
"test",
|
|
35
|
-
"types"
|
|
35
|
+
"types",
|
|
36
|
+
"patches"
|
|
36
37
|
],
|
|
37
38
|
"repository": {
|
|
38
39
|
"type": "git",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
diff --git a/node_modules/@nomiclabs/hardhat-etherscan/dist/src/ChainConfig.js b/node_modules/@nomiclabs/hardhat-etherscan/dist/src/ChainConfig.js
|
|
2
|
+
index 007d740..139c489 100644
|
|
3
|
+
--- a/node_modules/@nomiclabs/hardhat-etherscan/dist/src/ChainConfig.js
|
|
4
|
+
+++ b/node_modules/@nomiclabs/hardhat-etherscan/dist/src/ChainConfig.js
|
|
5
|
+
@@ -10,6 +10,13 @@ exports.chainConfig = {
|
|
6
|
+
browserURL: "https://etherscan.io",
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
+ celo: {
|
|
10
|
+
+ chainId: 42220,
|
|
11
|
+
+ urls: {
|
|
12
|
+
+ apiURL: "https://api.celoscan.xyz/api",
|
|
13
|
+
+ browserURL: "https://celoscan.xyz",
|
|
14
|
+
+ },
|
|
15
|
+
+ },
|
|
16
|
+
harmony: {
|
|
17
|
+
chainId: 1666600000,
|
|
18
|
+
urls: {
|
|
19
|
+
diff --git a/node_modules/@nomiclabs/hardhat-etherscan/dist/src/types.d.ts b/node_modules/@nomiclabs/hardhat-etherscan/dist/src/types.d.ts
|
|
20
|
+
index 0a9efc3..88bdaac 100644
|
|
21
|
+
--- a/node_modules/@nomiclabs/hardhat-etherscan/dist/src/types.d.ts
|
|
22
|
+
+++ b/node_modules/@nomiclabs/hardhat-etherscan/dist/src/types.d.ts
|
|
23
|
+
@@ -1,4 +1,4 @@
|
|
24
|
+
-declare type Chain = "mainnet" | "ropsten" | "rinkeby" | "goerli" | "kovan" | "bsc" | "bscTestnet" | "heco" | "hecoTestnet" | "opera" | "ftmTestnet" | "optimisticEthereum" | "optimisticKovan" | "polygon" | "polygonMumbai" | "arbitrumOne" | "arbitrumTestnet" | "avalanche" | "avalancheFujiTestnet" | "moonbeam" | "moonriver" | "moonbaseAlpha" | "harmony" | "harmonyTest" | "xdai" | "sokol" | "aurora" | "auroraTestnet";
|
|
25
|
+
+declare type Chain = "celo" | "mainnet" | "ropsten" | "rinkeby" | "goerli" | "kovan" | "bsc" | "bscTestnet" | "heco" | "hecoTestnet" | "opera" | "ftmTestnet" | "optimisticEthereum" | "optimisticKovan" | "polygon" | "polygonMumbai" | "arbitrumOne" | "arbitrumTestnet" | "avalanche" | "avalancheFujiTestnet" | "moonbeam" | "moonriver" | "moonbaseAlpha" | "harmony" | "harmonyTest" | "xdai" | "sokol" | "aurora" | "auroraTestnet";
|
|
26
|
+
export declare type ChainConfig = {
|
|
27
|
+
[Network in Chain]: EtherscanChainConfig;
|
|
28
|
+
};
|
|
29
|
+
diff --git a/node_modules/@nomiclabs/hardhat-etherscan/src/types.ts b/node_modules/@nomiclabs/hardhat-etherscan/src/types.ts
|
|
30
|
+
index b88e8fa..4c658b2 100644
|
|
31
|
+
--- a/node_modules/@nomiclabs/hardhat-etherscan/src/types.ts
|
|
32
|
+
+++ b/node_modules/@nomiclabs/hardhat-etherscan/src/types.ts
|
|
33
|
+
@@ -36,7 +36,7 @@ type Chain =
|
|
34
|
+
| "sokol"
|
|
35
|
+
// aurora
|
|
36
|
+
| "aurora"
|
|
37
|
+
- | "auroraTestnet";
|
|
38
|
+
+ | "auroraTestnet" | "celo";
|
|
39
|
+
|
|
40
|
+
export type ChainConfig = {
|
|
41
|
+
[Network in Chain]: EtherscanChainConfig;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
diff --git a/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.d.ts b/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.d.ts
|
|
2
|
+
index 2405883..5879166 100644
|
|
3
|
+
--- a/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.d.ts
|
|
4
|
+
+++ b/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.d.ts
|
|
5
|
+
@@ -7,6 +7,7 @@ export interface DeployFunction {
|
|
6
|
+
}
|
|
7
|
+
export interface DeployOptions extends ValidationOptions {
|
|
8
|
+
initializer?: string | false;
|
|
9
|
+
+ proxyFactory?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare function makeDeployProxy(hre: HardhatRuntimeEnvironment): DeployFunction;
|
|
12
|
+
//# sourceMappingURL=deploy-proxy.d.ts.map
|
|
13
|
+
|
|
14
|
+
diff --git a/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.js b/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.js
|
|
15
|
+
index 8dbb62a..d0761f4 100644
|
|
16
|
+
--- a/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.js
|
|
17
|
+
+++ b/node_modules/@openzeppelin/hardhat-upgrades/dist/deploy-proxy.js
|
|
18
|
+
@@ -26,14 +26,15 @@ function makeDeployProxy(hre) {
|
|
19
|
+
let proxyDeployment;
|
|
20
|
+
switch (kind) {
|
|
21
|
+
case 'uups': {
|
|
22
|
+
- const ProxyFactory = await utils_1.getProxyFactory(hre, ImplFactory.signer);
|
|
23
|
+
+ const ProxyFactory = await (opts.proxyFactory || utils_1.getProxyFactory(hre, ImplFactory.signer))
|
|
24
|
+
proxyDeployment = Object.assign({ kind }, await utils_1.deploy(ProxyFactory, impl, data));
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
case 'transparent': {
|
|
28
|
+
const AdminFactory = await utils_1.getProxyAdminFactory(hre, ImplFactory.signer);
|
|
29
|
+
const adminAddress = await upgrades_core_1.fetchOrDeployAdmin(provider, () => utils_1.deploy(AdminFactory));
|
|
30
|
+
- const TransparentUpgradeableProxyFactory = await utils_1.getTransparentUpgradeableProxyFactory(hre, ImplFactory.signer);
|
|
31
|
+
+ const TransparentUpgradeableProxyFactory = await (opts.proxyFactory || utils_1.getTransparentUpgradeableProxyFactory(hre, ImplFactory.signer))
|
|
32
|
+
+
|
|
33
|
+
proxyDeployment = Object.assign({ kind }, await utils_1.deploy(TransparentUpgradeableProxyFactory, impl, adminAddress, data));
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
diff --git a/node_modules/@openzeppelin/hardhat-upgrades/src/deploy-proxy.ts b/node_modules/@openzeppelin/hardhat-upgrades/src/deploy-proxy.ts
|
|
37
|
+
index c8beb0d..b187875 100644
|
|
38
|
+
--- a/node_modules/@openzeppelin/hardhat-upgrades/src/deploy-proxy.ts
|
|
39
|
+
+++ b/node_modules/@openzeppelin/hardhat-upgrades/src/deploy-proxy.ts
|
|
40
|
+
@@ -25,6 +25,7 @@ export interface DeployFunction {
|
|
41
|
+
|
|
42
|
+
export interface DeployOptions extends ValidationOptions {
|
|
43
|
+
initializer?: string | false;
|
|
44
|
+
+ proxyFactory?: any;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function makeDeployProxy(hre: HardhatRuntimeEnvironment): DeployFunction {
|
|
48
|
+
@@ -59,7 +60,8 @@ export function makeDeployProxy(hre: HardhatRuntimeEnvironment): DeployFunction
|
|
49
|
+
let proxyDeployment: Required<ProxyDeployment>;
|
|
50
|
+
switch (kind) {
|
|
51
|
+
case 'uups': {
|
|
52
|
+
- const ProxyFactory = await getProxyFactory(hre, ImplFactory.signer);
|
|
53
|
+
+ const ProxyFactory = await (opts.proxyFactory || getProxyFactory(hre, ImplFactory.signer));
|
|
54
|
+
+
|
|
55
|
+
proxyDeployment = Object.assign({ kind }, await deploy(ProxyFactory, impl, data));
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
@@ -67,7 +69,8 @@ export function makeDeployProxy(hre: HardhatRuntimeEnvironment): DeployFunction
|
|
59
|
+
case 'transparent': {
|
|
60
|
+
const AdminFactory = await getProxyAdminFactory(hre, ImplFactory.signer);
|
|
61
|
+
const adminAddress = await fetchOrDeployAdmin(provider, () => deploy(AdminFactory));
|
|
62
|
+
- const TransparentUpgradeableProxyFactory = await getTransparentUpgradeableProxyFactory(hre, ImplFactory.signer);
|
|
63
|
+
+ const TransparentUpgradeableProxyFactory = await (opts.proxyFactory || getTransparentUpgradeableProxyFactory(hre, ImplFactory.signer););
|
|
64
|
+
+
|
|
65
|
+
proxyDeployment = Object.assign(
|
|
66
|
+
{ kind },
|
|
67
|
+
await deploy(TransparentUpgradeableProxyFactory, impl, adminAddress, data),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
diff --git a/node_modules/@openzeppelin/upgrades-core/dist/provider.js b/node_modules/@openzeppelin/upgrades-core/dist/provider.js
|
|
2
|
+
index 1fd10da..d80cf45 100644
|
|
3
|
+
--- a/node_modules/@openzeppelin/upgrades-core/dist/provider.js
|
|
4
|
+
+++ b/node_modules/@openzeppelin/upgrades-core/dist/provider.js
|
|
5
|
+
@@ -33,14 +33,14 @@ async function getTransactionByHash(provider, txHash) {
|
|
6
|
+
return provider.send('eth_getTransactionByHash', [txHash]);
|
|
7
|
+
}
|
|
8
|
+
exports.getTransactionByHash = getTransactionByHash;
|
|
9
|
+
-exports.networkNames = Object.freeze({
|
|
10
|
+
+exports.networkNames = {
|
|
11
|
+
1: 'mainnet',
|
|
12
|
+
2: 'morden',
|
|
13
|
+
3: 'ropsten',
|
|
14
|
+
4: 'rinkeby',
|
|
15
|
+
5: 'goerli',
|
|
16
|
+
42: 'kovan',
|
|
17
|
+
-});
|
|
18
|
+
+};
|
|
19
|
+
async function isDevelopmentNetwork(provider) {
|
|
20
|
+
const chainId = await getChainId(provider);
|
|
21
|
+
// 1337 => ganache and geth --dev
|