Changes from review

This commit is contained in:
nabarun authored and Ashwin Phatak committed 2022-04-21 09:44:24 +05:30
1 parent 252665512d
commit 58227b68be
15 files changed
+200 -1048

No files matched your search

+8 -9
View File
@@ -1,14 +1,13 @@
const DEFAULT_PRIVATE_KEY = '39e06e1471f69a76491e60d1d22908789bf7801039a9ac2197ed432ad45d2daf';
const DEFAULT_ADDRESS = 'ethm1p9fqwtlypqptuqgndpce5g6wncj4py9z30wfkt'
import assert from 'assert';
export const wait = (time: number) => new Promise(resolve => setTimeout(resolve, time))
export const getConfig = () => {
assert(process.env.PRIVATE_KEY);
assert(process.env.ACCOUNT_ADDRESS);
export const getConfig = () => ({
mockServer: process.env.MOCK_SERVER || false,
chibaClonk: {
return {
chainId: process.env.CHIBA_CLONK_CHAIN_ID || 'ethermint_9000-1',
privateKey: DEFAULT_PRIVATE_KEY,
accountAddress: DEFAULT_ADDRESS,
privateKey: process.env.PRIVATE_KEY,
accountAddress: process.env.ACCOUNT_ADDRESS,
restEndpoint: process.env.CHIBA_CLONK_REST_ENDPOINT || 'http://localhost:1317',
gqlEndpoint: process.env.CHIBA_CLONK_GQL_ENDPOINT || 'http://localhost:9473/api',
fee: {
@@ -17,4 +16,4 @@ export const getConfig = () => ({
gas: '200000',
}
}
});
};