Skip to content

Commit

Permalink
change name of initWasmd
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Aug 31, 2023
1 parent 2b77102 commit 66bf2ac
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import AddAccess from '../../src/commands/contracts/access_controller/addAccess'
import RemoveAccess from '../../src/commands/contracts/access_controller/removeAccess'
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'
import { AccessControllerQueryClient } from '../../codegen/AccessController.client'
import { endWasmd, CMD_FLAGS, maybeInitWasmd, toAddr, NODE_URL, TIMEOUT, deployAC } from '../utils'
import { endWasmd, CMD_FLAGS, initWasmd, toAddr, NODE_URL, TIMEOUT, deployAC } from '../utils'

describe('Access Controller', () => {
let AccessController: AccessControllerQueryClient
Expand All @@ -16,7 +16,7 @@ describe('Access Controller', () => {

beforeAll(async () => {
// Ideally, we'd start wasmd beforEach() but it takes too long
const [deployer, alice] = await maybeInitWasmd()
const [deployer, alice] = await initWasmd()
deployerAddr = await toAddr(deployer)
aliceAddr = await toAddr(alice)
ACAddr = await deployAC()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'
import { DeviationFlaggingValidatorQueryClient } from '../../codegen/DeviationFlaggingValidator.client'
import { endWasmd, maybeInitWasmd, NODE_URL, TIMEOUT, toAddr, deployFlags, deployValidator } from '../utils'
import { endWasmd, initWasmd, NODE_URL, TIMEOUT, toAddr, deployFlags, deployValidator } from '../utils'

describe('Deviation Flagging Validator', () => {
let Validator: DeviationFlaggingValidatorQueryClient
Expand All @@ -14,7 +14,7 @@ describe('Deviation Flagging Validator', () => {

beforeAll(async () => {
// Ideally, we'd start wasmd beforEach() but it takes too long
const [deployer, mockRaiseAC, mockLowerAC] = await maybeInitWasmd()
const [deployer, mockRaiseAC, mockLowerAC] = await initWasmd()
deployerAddr = await toAddr(deployer)
let mockRaiseACAddr = await toAddr(mockRaiseAC)
let mockLowerACAddr = await toAddr(mockLowerAC)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'
import { FlagsQueryClient } from '../../codegen/Flags.client'
import { endWasmd, maybeInitWasmd, NODE_URL, TIMEOUT, toAddr, deployFlags } from '../utils'
import { endWasmd, initWasmd, NODE_URL, TIMEOUT, toAddr, deployFlags } from '../utils'

describe('Flags', () => {
let Flags: FlagsQueryClient
Expand All @@ -16,7 +16,7 @@ describe('Flags', () => {

beforeAll(async () => {
// Ideally, we'd start wasmd beforEach() but it takes too long
const [deployer, mockRaiseAC, mockLowerAC, alice] = await maybeInitWasmd()
const [deployer, mockRaiseAC, mockLowerAC, alice] = await initWasmd()
deployerAddr = await toAddr(deployer)
mockRaiseACAddr = await toAddr(mockRaiseAC)
mockLowerACAddr = await toAddr(mockLowerAC)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MintLinkCmd from '../../src/commands/contracts/link/mint'
import TransferLinkCmd from '../../src/commands/contracts/link/transfer'
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'
import { CW20BaseQueryClient } from '../../codegen/CW20Base.client'
import { endWasmd, CMD_FLAGS, maybeInitWasmd, NODE_URL, TIMEOUT, ONE_TOKEN, toAddr, deployLink } from '../utils'
import { endWasmd, CMD_FLAGS, initWasmd, NODE_URL, TIMEOUT, ONE_TOKEN, toAddr, deployLink } from '../utils'

describe('Link', () => {
let Link: CW20BaseQueryClient
Expand All @@ -17,7 +17,7 @@ describe('Link', () => {

beforeAll(async () => {
// Ideally, we'd start wasmd beforEach() but it takes too long
const [deployer, alice, bob] = await maybeInitWasmd()
const [deployer, alice, bob] = await initWasmd()
deployerAddr = await toAddr(deployer)
aliceAddr = await toAddr(alice)
bobAddr = await toAddr(bob)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
deployAC,
deployLink,
deployOCR2,
maybeInitWasmd,
initWasmd,
} from '../utils'
import { GasPrice } from '@cosmjs/stargate'
import Operators from '../../src/commands/contracts/ocr2/inspection/operators'
Expand All @@ -22,7 +22,7 @@ describe('OCR Inspection', () => {

beforeAll(async () => {
// Ideally, we'd start wasmd beforeEach() but it takes too long
const [deployer, alice] = await maybeInitWasmd()
await initWasmd()

// deploy access controller and link tokens
linkAddr = await deployLink()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CW20BaseQueryClient, CW20BaseClient } from '../../codegen/CW20Base.clie
import {
endWasmd,
CMD_FLAGS,
maybeInitWasmd,
initWasmd,
NODE_URL,
TIMEOUT,
deployAC,
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('OCR2 Execution', () => {

beforeAll(async () => {
// Ideally, we'd start wasmd beforeEach() but it takes too long
const [deployer, alice] = await maybeInitWasmd()
const [deployer, alice] = await initWasmd()
deployerWallet = deployer
aliceAddr = await toAddr(alice)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'
import { ProxyOCR2QueryClient } from '../../codegen/ProxyOCR2.client'
import { CMD_FLAGS, NODE_URL, deployAC, deployLink, deployOCR2, maybeInitWasmd, toAddr } from '../utils'
import { CMD_FLAGS, NODE_URL, deployAC, deployLink, deployOCR2, initWasmd, toAddr } from '../utils'
import { TIMEOUT } from '../utils'
import DeployProxyCmd from '../../src/commands/contracts/proxy_ocr2/deploy'
import ProposeCmd from '../../src/commands/contracts/proxy_ocr2/proposeContract'
Expand All @@ -25,7 +25,7 @@ describe('Proxy', () => {
let deployerAddr: string

beforeAll(async () => {
const [deployer, mockOCRA, mockOCRB] = await maybeInitWasmd()
const [deployer, mockOCRA, mockOCRB] = await initWasmd()
deployerAddr = await toAddr(deployer)
ocr2AddrA = await toAddr(mockOCRA)
ocr2AddrB = await toAddr(mockOCRB)
Expand Down
2 changes: 1 addition & 1 deletion packages-ts/gauntlet-cosmos-contracts/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const WASMD_ACCOUNTS = path.join(__dirname, './devAccounts.json')
*
* @returns {string[]} Initialized account addresses
*/
export const maybeInitWasmd = async () => {
export const initWasmd = async () => {
if (process.env.SKIP_WASMD_SETUP) {
const rawData = readFileSync(WASMD_ACCOUNTS, 'utf8')
let { accounts }: { accounts: { address: string; mnemonic: string }[] } = JSON.parse(rawData)
Expand Down

0 comments on commit 66bf2ac

Please sign in to comment.