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

Update for anr endpoints #35

Open
wants to merge 2 commits into
base: main
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
35 changes: 18 additions & 17 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,30 @@ export default {
solidity: {
compilers: [
{
version: "0.5.16"
version: "0.5.16",
},
{
version: "0.6.2"
version: "0.6.2",
},
{
version: "0.6.4"
version: "0.6.4",
},
{
version: "0.7.0"
version: "0.7.0",
},
{
version: "0.8.0"
}
]
version: "0.8.0",
},
],
},
networks: {
hardhat: {
gasPrice: 225000000000,
chainId: !forkingData ? 43112 : undefined, //Only specify a chainId if we are not forking
forking: forkingData
forking: forkingData,
},
local: {
// Change to Node Port if using Avalanche Network Runner
url: 'http://localhost:9650/ext/bc/C/rpc',
gasPrice: 225000000000,
chainId: 43112,
Expand All @@ -74,20 +75,20 @@ export default {
"0xbbc2865b76ba28016bc2255c7504d000e046ae01934b04c694592a6276988630",
"0xcdbfd34f687ced8c6968854f8a99ae47712c4f4183b78dcc4a903d1bfe8cbf60",
"0x86f78c5416151fe3546dece84fda4b4b1e36089f2dbc48496faf3a950f16157c",
"0x750839e9dbbd2a0910efe40f50b2f3b2f2f59f5580bb4b83bd8c1201cf9a010a"
]
"0x750839e9dbbd2a0910efe40f50b2f3b2f2f59f5580bb4b83bd8c1201cf9a010a",
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove these trailing commas?

},
fuji: {
url: 'https://api.avax-test.network/ext/bc/C/rpc',
url: "https://api.avax-test.network/ext/bc/C/rpc",
gasPrice: 225000000000,
chainId: 43113,
accounts: []
accounts: [],
},
mainnet: {
url: 'https://api.avax.network/ext/bc/C/rpc',
url: "https://api.avax.network/ext/bc/C/rpc",
gasPrice: 225000000000,
chainId: 43114,
accounts: []
}
}
}
accounts: [],
},
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/node": "^16.7.1",
"avalanche": "3.8.5",
"avalanche": "^3.14.0",
"chai": "^4.3.4",
"ethereum-waffle": "^3.4.0",
"ethereumjs-tx": "^2.1.2",
Expand Down
7 changes: 4 additions & 3 deletions scripts/fund-cchain-addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ const sleep = (ms) => {
return new Promise((resolve) => setTimeout(resolve, ms));
};
const ip = 'localhost';
// Change to Node Port if using Avalanche Network Runner
const port = 9650;
const protocol = 'http';
const networkID = 12345;
const networkID = 1337;
const avalanche = new avalanche_1.Avalanche(ip, port, protocol, networkID);
const mstimeout = 3000;
const xchain = avalanche.XChain();
Expand Down Expand Up @@ -50,9 +51,9 @@ const cHexAddresses = [
'0x61e0b3cd93f36847abbd5d40d6f00a8ec6f3cffb',
'0x0fa8ea536be85f32724d57a37758761b86416123'
];
const cChainBlockchainID = utils_1.Defaults.network['12345'].C.blockchainID;
const cChainBlockchainID = 'BR28ypgLATNS6PbtHMiJ7NQ61vfpT27Hj8tAcZ1AHsfU5cz88';
const cChainBlockchainIdBuf = bintools.cb58Decode(cChainBlockchainID);
const xChainBlockchainID = utils_1.Defaults.network['12345'].X.blockchainID;
const xChainBlockchainID = 'qzfF3A11KzpcHkkqznEyQgupQrCNS6WV6fTUTwZpEKqhj1QE7';
const xChainBlockchainIdBuf = bintools.cb58Decode(xChainBlockchainID);
const exportedOuts = [];
const outputs = [];
Expand Down
1 change: 1 addition & 0 deletions scripts/sendAvaxWalletSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const walletAddress: string = "0xDd1749831fbF70d88AB7bB07ef7CD9c53D054a57"
const pk: string = "0x56289e99c94b6912bfc12adc093c9b51124f0dc54ac7a766b2bc5ccf558d8027"
const protocol: string = "http"
const host: string = "localhost"
// Change to Node Port if using Avalanche Network Runner
const port: number = 9650

const main = async(): Promise<any> => {
Expand Down
Loading