Skip to content

Commit

Permalink
fix: pseudo-feeder to use terra.js v3
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjukim committed Jan 10, 2022
1 parent ec62b9c commit 71d4693
Show file tree
Hide file tree
Showing 4 changed files with 406 additions and 155 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- "9091:9091"
command: terrad start
oracle:
image: terramoney/pseudo-feeder:bombay
image: terramoney/pseudo-feeder:0.5.5
pull_policy: always
depends_on:
- terrad
Expand All @@ -40,7 +40,7 @@ services:
# ports:
# - "6379:6379"
fcd-collector:
image: terramoney/fcd:1.0.10
image: terramoney/fcd:1.0.11
depends_on:
- terrad
- postgres
Expand All @@ -52,7 +52,7 @@ services:
command: collector
restart: unless-stopped
fcd-api:
image: terramoney/fcd:1.0.10
image: terramoney/fcd:1.0.11
depends_on:
- terrad
- postgres
Expand Down
5 changes: 2 additions & 3 deletions pseudo-feeder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import {
LCDClient,
MnemonicKey,
MsgAggregateExchangeRateVote,
StdFee,
} from "@terra-money/terra.js";

const {
MAINNET_LCD_URL = "https://lcd.terra.dev",
MAINNET_CHAIN_ID = "columbus-4",
MAINNET_CHAIN_ID = "columbus-5",
TESTNET_LCD_URL = "http://localhost:1317",
TESTNET_CHAIN_ID = "localterra",
MNEMONIC = "satisfy adjust timber high purchase tuition stool faith fine install that you unaware feed domain license impose boss human eager hat rent enjoy dawn",
Expand Down Expand Up @@ -134,7 +133,7 @@ async function loop() {
);

const msgs = [lastSuccessVoteMsg, voteMsg.getPrevote()].filter(Boolean);
const tx = await wallet.createAndSignTx({ msgs, fee: new StdFee(200000, '30000uusd') });
const tx = await wallet.createAndSignTx({ msgs });

await testnetClient.tx
.broadcast(tx)
Expand Down
Loading

1 comment on commit 71d4693

@Seleblizz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello

Please sign in to comment.