Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nivasan1 committed Feb 21, 2024
1 parent aa4af5a commit bdb5310
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions protocol/testing/petri/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ import (
)

const (
denom = "dv4tnt"
prefix = "dydx"
homeDir = "/petri-test"
appConfigPath = "config/app.toml"
denom = "dv4tnt"
prefix = "dydx"
homeDir = "/petri-test"
appConfigPath = "config/app.toml"
oracleConfigPath = "oracle.toml"
oraclePort = 8080

oraclePort = 8080
)

var (
bases = [30]string{
"ETHEREUM", "COSMOS", "BITCOIN", "POLKADOT", "RIPPLE", "USD", "DAI", "CARDANO", "SOLANA", "DOGECOIN", "EOS", "BINANCECOIN",
"MOG-COIN", "HARRYPOTTEROBAMASONIC10INU", "APTOS", "SHIBA-INU", "FILECOIN", "OPTIMISM", "TAO", "DYDX", "TEZOS", "PEPE",
"1INCH", "OSMOSIS", "BLUR", "WORLDCOIN", "TIA", "CELO", "HELIUM", "CANTO",
}
quotes = [35]string{"btc","eth","ltc","bch","bnb","eos","xrp","xlm","link","dot","yfi","usd","aed",
"ars","aud","bdt","bhd","bmd","brl","cad","chf","clp","cny","czk","dkk","eur","gbp","hkd","huf",
"idr","ils","inr","jpy","krw","kwd",
quotes = [35]string{"btc", "eth", "ltc", "bch", "bnb", "eos", "xrp", "xlm", "link", "dot", "yfi", "usd", "aed",
"ars", "aud", "bdt", "bhd", "bmd", "brl", "cad", "chf", "clp", "cny", "czk", "dkk", "eur", "gbp", "hkd", "huf",
"idr", "ils", "inr", "jpy", "krw", "kwd",
}
)

Expand All @@ -53,7 +53,7 @@ func GetChainConfig() petritypes.ChainConfig {
UID: "1000",
GID: "1000",
},
SidecarArgs: []string{"slinky", "--oracle-config-path", "/etc/oracle.toml", "-host", "0.0.0.0", "-port", "8080"},
SidecarArgs: []string{"slinky", "--oracle-config-path", "/etc/oracle.toml", "-host", "0.0.0.0", "-port", "8080"},
GasPrices: "0dv4tnt",
GasAdjustment: 1.5,
Bech32Prefix: prefix,
Expand All @@ -71,9 +71,9 @@ func GetChainConfig() petritypes.ChainConfig {
HDPath: hd.CreateHDPath(0, 0, 0),
SigningAlgorithm: "secp256k1",
},
NodeCreator: node.CreateNode,
NodeCreator: node.CreateNode,
GenesisDelegation: big.NewInt(10_000_000_000_000),
GenesisBalance: big.NewInt(100_000_000_000_000),
GenesisBalance: big.NewInt(100_000_000_000_000),
}
}

Expand Down Expand Up @@ -113,7 +113,7 @@ func GetGenesisModifier() petritypes.GenesisModifier {
},
{
Key: "app_state.staking.params.bond_denom",
Value: denom,
Value: denom,
},
}
return chain.ModifyGenesis(genKVs)
Expand Down
2 changes: 1 addition & 1 deletion protocol/testing/petri/petri_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package petri_test

import (
"testing"
"github.com/dydxprotocol/v4-chain/protocol/testing/petri"
"github.com/stretchr/testify/suite"
"testing"
)

// runs the slinky integration tests
Expand Down
6 changes: 3 additions & 3 deletions protocol/testing/petri/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func updateOracleConfig(oracle *provider.Task) error {
Name: coingecko.Name,
API: apiConfig,
Market: oracleconfig.MarketConfig{
Name: coingecko.Name,
Name: coingecko.Name,
CurrencyPairToMarketConfigs: make(map[string]oracleconfig.CurrencyPairMarketConfig),
},
},
Expand All @@ -145,7 +145,7 @@ func updateOracleConfig(oracle *provider.Task) error {
cp := oracletypes.NewCurrencyPair(strings.ToUpper(base), strings.ToUpper(quote))

cfg.Providers[0].Market.CurrencyPairToMarketConfigs[cp.String()] = oracleconfig.CurrencyPairMarketConfig{
Ticker: cp.String(),
Ticker: cp.String(),
CurrencyPair: cp,
}

Expand Down Expand Up @@ -341,4 +341,4 @@ func (s *SlinkyIntegrationSuite) genMsg(senderAddress []byte) ([]sdk.Msg, petrit
GasDenom: "dv4tnt",
PricePerGas: 0,
}, nil
}
}

0 comments on commit bdb5310

Please sign in to comment.