Skip to content

Commit

Permalink
upgrade price-feeder to latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Jan 14, 2025
1 parent 181f6a4 commit 0b66fd0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
3 changes: 2 additions & 1 deletion cmd/exocored/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
}
}()
mnemonic, _ := cmd.Flags().GetString(flagMnemonic)
pricefeeder.StartPriceFeeder(path.Join(clientCtx.HomeDir, confPath, confOracle), mnemonic, path.Join(clientCtx.HomeDir, confPath))
serverCtx := sdkserver.GetServerContextFromCmd(cmd)
pricefeeder.StartPriceFeeder(path.Join(clientCtx.HomeDir, confPath, confOracle), mnemonic, path.Join(clientCtx.HomeDir, confPath), serverCtx.Logger.With("module", "price-feeder"))
}()
}
return preRunE(cmd, args)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
cosmossdk.io/simapp v0.0.0-20230608160436-666c345ad23d
cosmossdk.io/tools/rosetta v0.2.1
github.com/BurntSushi/toml v1.3.2
github.com/ExocoreNetwork/price-feeder v0.0.0-20250110103354-b3670dac7431
github.com/ExocoreNetwork/price-feeder v0.0.0-20250114052620-5976a7fa9c02
github.com/agiledragon/gomonkey/v2 v2.11.0
github.com/armon/go-metrics v0.4.1
github.com/cometbft/cometbft v0.37.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/ExocoreNetwork/evmos/v16 v16.0.3-0.20240828081344-d5cfcd34a812 h1:4P/4GZ89DOy9uNPDlEwebPytKltbimq8wn9XiuX96vw=
github.com/ExocoreNetwork/evmos/v16 v16.0.3-0.20240828081344-d5cfcd34a812/go.mod h1:w0vtRYI4I0/O8eihq6ZuDvlca4ZiYCKN6vpakG9zHcc=
github.com/ExocoreNetwork/price-feeder v0.0.0-20250110103354-b3670dac7431 h1:7J07klce2Q+8opeG/6AimPxQ55QVGPHcknupHM/q1SQ=
github.com/ExocoreNetwork/price-feeder v0.0.0-20250110103354-b3670dac7431/go.mod h1:70eOowihfMzbtxg2US9h9CjiRa86ZqltFPc6rCzcy8I=
github.com/ExocoreNetwork/price-feeder v0.0.0-20250114052620-5976a7fa9c02 h1:gD06Hy6suxkzGWf4JZiVrairOeCFzDKIyBWp5BcIWps=
github.com/ExocoreNetwork/price-feeder v0.0.0-20250114052620-5976a7fa9c02/go.mod h1:70eOowihfMzbtxg2US9h9CjiRa86ZqltFPc6rCzcy8I=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
Expand Down
26 changes: 15 additions & 11 deletions local_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,21 +204,23 @@ EOF
# generate oracle_feeder.yaml file
oracle_feeder_content=$(
cat <<EOF
sources:
- chainlink
tokens:
- ETHUSDT
- WSTETHUSDT
- token: ETHUSDT
sources: chainlink
- token: WSTETH
sources: chainlink
- token: nsteth
sources: beaconchain
sender:
mnemonic: ""
path: $HOMEDIR/config
path: /Users/linqing/.tmp-exocored/config
exocore:
chainid: $CHAINID
chainid: exocoretestnet_233-3
appName: exocore
rpc: 127.0.0.1:9090
ws:
addr: !!str ws://127.0.0.1:26657
endpoint: /websocket
grpc: 127.0.0.1:9090
ws: !!str ws://127.0.0.1:26657/websocket
rpc: !!str http://127.0.0.1:26657
debugger:
grpc: !!str :50051
EOF
)

Expand All @@ -230,6 +232,8 @@ EOF
cat <<EOF
url:
!!str https://ethereum-holesky-rpc.publicnode.com
nstid:
!!str 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee_0x65
EOF
)

Expand Down

0 comments on commit 0b66fd0

Please sign in to comment.