Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avalanche Fuji Redeployed #135

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 55 additions & 25 deletions DEPLOYMENTS.md

Large diffs are not rendered by default.

22 changes: 3 additions & 19 deletions deployments/avalanche/BalancesHelper.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/avalanche/BalancesHelperV2.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/avalanche/ENSController.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/avalanche/ENSHelper.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/avalanche/ENSRegistry.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/avalanche/ENSReverseRegistrar.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions deployments/avalanche/ExternalAccountRegistry.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions deployments/avalanche/Gateway.json

Large diffs are not rendered by default.

926 changes: 926 additions & 0 deletions deployments/avalanche/GatewayV2.json

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions deployments/avalanche/PaymentRegistry.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/avalanche/PersonalAccountImplementationV1.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions deployments/avalanche/PersonalAccountRegistry.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions deployments/avalanche/WrappedWeiToken.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions deployments/avalanche/solcInputs/c6bcc786074bb5f47af1ba8ec29021b3.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions deployments/fuji/BalancesHelper.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions deployments/fuji/BalancesHelperV2.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/fuji/ENSController.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/fuji/ENSHelper.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions deployments/fuji/ENSRegistry.json

Large diffs are not rendered by default.

20 changes: 2 additions & 18 deletions deployments/fuji/ENSReverseRegistrar.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions deployments/fuji/ExternalAccountRegistry.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions deployments/fuji/Gateway.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions deployments/fuji/GatewayV2.json

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions deployments/fuji/PaymentRegistry.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions deployments/fuji/PersonalAccountImplementationV1.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions deployments/fuji/PersonalAccountRegistry.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions deployments/fuji/WrappedWeiToken.json

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions deployments/oktc/BalancesHelper.json

Large diffs are not rendered by default.

160 changes: 160 additions & 0 deletions deployments/oktc/BalancesHelperV2.json

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions deployments/oktc/ENSController.json

Large diffs are not rendered by default.

208 changes: 208 additions & 0 deletions deployments/oktc/ENSHelper.json

Large diffs are not rendered by default.

510 changes: 510 additions & 0 deletions deployments/oktc/ENSRegistry.json

Large diffs are not rendered by default.

274 changes: 274 additions & 0 deletions deployments/oktc/ENSReverseRegistrar.json

Large diffs are not rendered by default.

489 changes: 489 additions & 0 deletions deployments/oktc/ExternalAccountRegistry.json

Large diffs are not rendered by default.

578 changes: 578 additions & 0 deletions deployments/oktc/Gateway.json

Large diffs are not rendered by default.

926 changes: 926 additions & 0 deletions deployments/oktc/GatewayV2.json

Large diffs are not rendered by default.

1,434 changes: 1,434 additions & 0 deletions deployments/oktc/PaymentRegistry.json

Large diffs are not rendered by default.

326 changes: 326 additions & 0 deletions deployments/oktc/PersonalAccountImplementationV1.json

Large diffs are not rendered by default.

1,058 changes: 1,058 additions & 0 deletions deployments/oktc/PersonalAccountRegistry.json

Large diffs are not rendered by default.

670 changes: 670 additions & 0 deletions deployments/oktc/WrappedWeiToken.json

Large diffs are not rendered by default.

268 changes: 237 additions & 31 deletions dist/contracts.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions dist/deploy/203_deploy_connext_facet.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
import { DeployFunction } from 'hardhat-deploy/types';
declare const func: DeployFunction;
export default func;
27 changes: 0 additions & 27 deletions dist/deploy/203_deploy_connext_facet.js
Original file line number Diff line number Diff line change
@@ -1,27 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const diamond_1 = require("../utils/diamond");
const connext_1 = require("../config/connext");
const func = async function (hre) {
const { deployments: { deploy, log }, getNamedAccounts, ethers, network } = hre;
const { from } = await getNamedAccounts();
if (!connext_1.ConnextConfig[network.name]) {
return log("No connext config for this network available: " + network.name);
}
await deploy('ConnextFacet', {
from,
log: true,
});
const diamond = await ethers.getContract('Diamond');
const connextFacet = await ethers.getContract("ConnextFacet");
const ABI = ['function initConnext(address, uint32)'];
const iface = new hre.ethers.utils.Interface(ABI);
const initData = iface.encodeFunctionData('initConnext', [
connext_1.ConnextConfig[network.name].handler,
connext_1.ConnextConfig[network.name].domainId
]);
await (0, diamond_1.addOrReplaceFacets)([connextFacet], diamond.address, connextFacet.address, initData);
};
func.tags = ['bridges', 'connext'];
func.dependencies = ['init-facets'];
exports.default = func;
4 changes: 4 additions & 0 deletions dist/extensions/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export declare enum NetworkNames {
ArbitrumNova = "arbitrumNova",
ArbitrumNitro = "arbitrumNitro",
BaseGoerli = "baseGoerli",
KlaytnBaobab = "klaytnBaobab",
Klaytn = "klaytn",
OKTC = "oktc",
OktcTest = "oktcTest",
Etherspot = "etherspot",
LocalA = "localA",
LocalB = "localB",
Expand Down
28 changes: 28 additions & 0 deletions dist/extensions/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ var NetworkNames;
NetworkNames["ArbitrumNova"] = "arbitrumNova";
NetworkNames["ArbitrumNitro"] = "arbitrumNitro";
NetworkNames["BaseGoerli"] = "baseGoerli";
NetworkNames["KlaytnBaobab"] = "klaytnBaobab";
NetworkNames["Klaytn"] = "klaytn";
NetworkNames["OKTC"] = "oktc";
NetworkNames["OktcTest"] = "oktcTest";
NetworkNames["Etherspot"] = "etherspot";
NetworkNames["LocalA"] = "localA";
NetworkNames["LocalB"] = "localB";
Expand Down Expand Up @@ -218,6 +222,30 @@ exports.NETWORK_CONFIGS = {
defaultGas: 1,
explorer: "https://goerli.basescan.org",
},
[NetworkNames.KlaytnBaobab]: {
chainId: 1001,
defaultProviderUrl: "https://public-en-baobab.klaytn.net",
defaultGas: 1,
explorer: "https://baobab.scope.klaytn.com"
},
[NetworkNames.Klaytn]: {
chainId: 8217,
defaultProviderUrl: "https://public-en-cypress.klaytn.net",
explorer: "https://scope.klaytn.com",
defaultGasPrice: 120,
},
[NetworkNames.OKTC]: {
chainId: 66,
defaultProviderUrl: "https://exchainrpc.okex.org",
explorer: "https://www.okx.com/en-in/explorer/oktc",
defaultGasPrice: 0.2,
},
[NetworkNames.OktcTest]: {
chainId: 65,
defaultProviderUrl: "https://exchaintestrpc.okex.org",
defaultGasPrice: 1,
explorer: "https://www.oklink.com/oktc-test",
},
[NetworkNames.Etherspot]: {
chainId: 4386,
defaultProviderUrl: "https://qa-etherspot-testnet.pillarproject.io",
Expand Down
14 changes: 0 additions & 14 deletions dist/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,6 @@ const config = {
outDir: "typings",
target: "ethers-v5",
},
deterministicDeployment: {
[extensions_1.NETWORK_CONFIGS[extensions_1.NetworkNames.Fuji].chainId]: {
factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
funding: "10000000000000000",
signedTx: "0xf8a88085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3830150f6a032b2a806bfc34024c6638848c3798213261304af82de14002ca2b4961a643b95a03c74c13eda5ff6b9b821fbccd1a67f160eb6a0ca50dad04b7a3e564e2599722e",
},
[extensions_1.NETWORK_CONFIGS[extensions_1.NetworkNames.Avalanche].chainId]: {
factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
funding: "10000000000000000",
signedTx: "0xf8a88085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3830150f8a0d69f418f6da8f01fb95d6d87e1f2eabd85884784cd2ba2d306ba066d41b7c5e6a05a2b76982a148ca8ca2803ceac3d39a3f26208b654c473b17b01e7536eeba55e",
},
},
gasReporter: {
enabled: false,
},
Expand Down
20 changes: 17 additions & 3 deletions extensions/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ export enum NetworkNames {
NeonDevnet = "neonDevnet",
ArbitrumNova = "arbitrumNova",
ArbitrumNitro = "arbitrumNitro",
BaseGoerli= "baseGoerli",
KlaytnBaobab= "klaytnBaobab",
Klaytn= "klaytn",
BaseGoerli = "baseGoerli",
KlaytnBaobab = "klaytnBaobab",
Klaytn = "klaytn",
OKTC = "oktc",
OktcTest = "oktcTest",
Etherspot = "etherspot",
LocalA = "localA",
LocalB = "localB",
Expand Down Expand Up @@ -242,6 +244,18 @@ export const NETWORK_CONFIGS: {
explorer: "https://scope.klaytn.com",
defaultGasPrice: 120,
},
[NetworkNames.OKTC]: {
chainId: 66,
defaultProviderUrl: "https://exchainrpc.okex.org",
explorer: "https://www.okx.com/en-in/explorer/oktc",
defaultGasPrice: 0.2,
},
[NetworkNames.OktcTest]: {
chainId: 65,
defaultProviderUrl: "https://exchaintestrpc.okex.org",
defaultGasPrice: 1,
explorer: "https://www.oklink.com/oktc-test",
},
[NetworkNames.Etherspot]: {
chainId: 4386,
defaultProviderUrl: "https://qa-etherspot-testnet.pillarproject.io",
Expand Down
32 changes: 16 additions & 16 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,22 @@ const config: HardhatUserConfig = {
outDir: "typings",
target: "ethers-v5",
},
deterministicDeployment: {
[NETWORK_CONFIGS[NetworkNames.Fuji].chainId]: {
factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
funding: "10000000000000000",
signedTx:
"0xf8a88085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3830150f6a032b2a806bfc34024c6638848c3798213261304af82de14002ca2b4961a643b95a03c74c13eda5ff6b9b821fbccd1a67f160eb6a0ca50dad04b7a3e564e2599722e",
},
[NETWORK_CONFIGS[NetworkNames.Avalanche].chainId]: {
factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
funding: "10000000000000000",
signedTx:
"0xf8a88085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3830150f8a0d69f418f6da8f01fb95d6d87e1f2eabd85884784cd2ba2d306ba066d41b7c5e6a05a2b76982a148ca8ca2803ceac3d39a3f26208b654c473b17b01e7536eeba55e",
},
},
// deterministicDeployment: {
// [NETWORK_CONFIGS[NetworkNames.Fuji].chainId]: {
// factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
// deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
// funding: "10000000000000000",
// signedTx:
// "0xf8a88085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3830150f6a032b2a806bfc34024c6638848c3798213261304af82de14002ca2b4961a643b95a03c74c13eda5ff6b9b821fbccd1a67f160eb6a0ca50dad04b7a3e564e2599722e",
// },
// [NETWORK_CONFIGS[NetworkNames.Avalanche].chainId]: {
// factory: "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
// deployer: "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
// funding: "10000000000000000",
// signedTx:
// "0xf8a88085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3830150f8a0d69f418f6da8f01fb95d6d87e1f2eabd85884784cd2ba2d306ba066d41b7c5e6a05a2b76982a148ca8ca2803ceac3d39a3f26208b654c473b17b01e7536eeba55e",
// },
// },
gasReporter: {
enabled: false,
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"deploy:baseGoerli": "hardhat deploy --network baseGoerli --tags create,setup",
"deploy:klaytnBaobab": "hardhat deploy --network klaytnBaobab --tags create,setup",
"deploy:klaytn": "hardhat deploy --network klaytn --tags create,setup",
"deploy:oktc": "hardhat deploy --network oktc --tags create,setup",
"deploy:etherspot": "hardhat deploy --network etherspot --tags create,setup",
"deploy:localA": "hardhat deploy --network localA --tags create,setup",
"deploy:localB": "hardhat deploy --network localB --tags create,setup",
Expand Down