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

Adapt Voyager verification #98

Merged
merged 4 commits into from
May 4, 2022
Merged
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
98 changes: 98 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@nomiclabs/hardhat-docker": "^2.0.2",
"axios": "^0.24.0",
"exit-hook": "2.2.1",
"form-data": "^4.0.0",
"glob": "^7.2.0",
"starknet": "^3.5.1"
},
Expand Down
7 changes: 5 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ export const INTEGRATED_DEVNET_INTERNALLY = "integratedDevnet";
export const TESTNET_CHAIN_ID = "SN_GOERLI";
export const ALPHA_MAINNET_CHAIN_ID = "SN_MAIN";

export const VOYAGER_GOERLI_CONTRACT_API_URL = "https://goerli.voyager.online/api/contract/";
export const VOYAGER_GOERLI_VERIFIED_URL = "https://goerli.voyager.online/contract/";
export const VOYAGER_MAINNET_CONTRACT_API_URL = "https://voyager.online/api/contract/";
export const VOYAGER_MAINNET_VERIFIED_URL = "https://voyager.online/contract/";

export const CHECK_STATUS_TIMEOUT = 5000; // ms
export const CHECK_STATUS_RECOVER_TIMEOUT = 10000; // ms

export const LEN_SUFFIX = "_len";
export const VOYAGER_GOERLI_CONTRACT_API_URL = "https://goerli.voyager.online/api/contract/";
export const VOYAGER_MAINNET_CONTRACT_API_URL = "https://voyager.online/api/contract/";

export const SHORT_STRING_MAX_CHARACTERS = 31;

Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import {
DEFAULT_STARKNET_NETWORK,
INTEGRATED_DEVNET_URL,
TESTNET_CHAIN_ID,
ALPHA_MAINNET_CHAIN_ID
ALPHA_MAINNET_CHAIN_ID,
VOYAGER_GOERLI_VERIFIED_URL,
VOYAGER_MAINNET_VERIFIED_URL
} from "./constants";
import { getDefaultHardhatNetworkConfig, getDefaultHttpNetworkConfig, getNetwork } from "./utils";
import { DockerWrapper, VenvWrapper } from "./starknet-wrappers";
Expand Down Expand Up @@ -104,6 +106,7 @@ extendConfig((config: HardhatConfig) => {
config.networks.alpha = getDefaultHttpNetworkConfig(
ALPHA_URL,
VOYAGER_GOERLI_CONTRACT_API_URL,
VOYAGER_GOERLI_VERIFIED_URL,
TESTNET_CHAIN_ID
);
}
Expand All @@ -112,6 +115,7 @@ extendConfig((config: HardhatConfig) => {
config.networks.alphaMainnet = getDefaultHttpNetworkConfig(
ALPHA_MAINNET_URL,
VOYAGER_MAINNET_CONTRACT_API_URL,
VOYAGER_MAINNET_VERIFIED_URL,
ALPHA_MAINNET_CHAIN_ID
);
}
Expand Down
Loading