Skip to content

Commit

Permalink
add mars
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed May 28, 2024
1 parent 21e2693 commit d789dc1
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 401 deletions.
2 changes: 1 addition & 1 deletion broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func sendIBCTransferViaRPC(config Config, rpcEndpoint string, chainID string, se
txBuilder.SetGasLimit(gasLimit)

// Calculate fee based on gas limit and a fixed gas price
gasPrice := sdk.NewDecCoinFromDec(config.Denom, sdk.NewDecWithPrec(3, 2)) // 0.03 token per gas unit
gasPrice := sdk.NewDecCoinFromDec(config.Denom, sdk.NewDecWithPrec(1, 5)) // 0.03 token per gas unit
feeAmount := gasPrice.Amount.MulInt64(int64(gasLimit)).RoundInt()
feecoin := sdk.NewCoin(config.Denom, feeAmount)
txBuilder.SetFeeAmount(sdk.NewCoins(feecoin))
Expand Down
31 changes: 31 additions & 0 deletions configurations/mars/nodes.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
chain = "mars"
channel = "channel-1"
denom = "umars"
prefix = "mars"
gas_per_byte = 10
base_gas = 110000
ibc_memo = "This should not cause any problems"
memo = "Just checking on this"
ibc_memo_repeat = 10
rand_min = 300000
rand_max = 400000
revision_number = 4
timeout_height = 20720608

[gas]
zero = 0
low = 0.1
medium = 0.25
high = 0.04


[nodes]
rpc = [
"http://176.9.19.48:28857",

]

api = "https://mars-api.polkachu.com:443"



48 changes: 22 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -149,36 +149,32 @@ require (
)

replace (
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0

github.com/confio/ics23/go => github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1

// https://pkg.go.dev/vuln/GO-2023-2409
github.com/dvsekhvalnov/jose2go => github.com/dvsekhvalnov/jose2go v1.5.1-0.20231206184617-48ba0b76bc88

// Fix upstream GHSA-3vp4-m3rf-835h vulnerability.
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0
// use Notional's fork of wasmd with sdk 0.46
github.com/CosmWasm/wasmd => github.com/notional-labs/wasmd v0.30.0-sdk469.4

// use cosmos flavored gogo/protobuf
// https://github.com/cosmos/cosmos-sdk/issues/8469
//
// The original protobuf protocol has the drawback that it is not bijective:
// the same data can have multiple valid binary representations, and there is
// no guarantee on determinism.
//
// Cosmos implements its own protobuf protocol in ADR-027:
// https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-027-deterministic-protobuf-serialization.md
//
// Another discussion why not to use protobuf for blockchain storage:
// https://github.com/near/borsh/discussions/110
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

// https://pkg.go.dev/vuln/GO-2023-1578
github.com/hashicorp/go-getter => github.com/hashicorp/go-getter v1.7.0

// replace broken goleveldb.
// replace broken goleveldb
//
// this is recommended in the barberry release note:
// https://github.com/cosmos/cosmos-sdk/releases
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
)

// Agoric-specific replacements:
replace (
// Pick up an IAVL race fix.
github.com/cosmos/iavl => github.com/cosmos/iavl v0.19.7

// use cometbft
// Use our fork at least until post-v0.34.14 is released with
// https://github.com/tendermint/tendermint/issue/6899 resolved.
github.com/tendermint/tendermint => github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.1

// For testing against a local cosmos-sdk or cometbft
// github.com/cosmos/cosmos-sdk => ../../../forks/cosmos-sdk
// github.com/tendermint/tendermint => ../../../forks/cometbft
//
// this is recommended in the barberry release note:
// https://github.com/cosmos/cosmos-sdk/releases
github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.28
)
Loading

0 comments on commit d789dc1

Please sign in to comment.