Skip to content

Commit

Permalink
chore: update env
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Aug 26, 2024
1 parent 295fb7f commit 0b25431
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/relayer/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ORAI_RPC_URL= # ORAI RPC URL
XRPL_SERVER="wss://s1.ripple.com/"
MNEMONIC_ENCRYPTED=
ORAI_MNEMONIC_ENCRYPTED=
XRPL_SEED_ENCRYPTED= # or XRPL_MNEMONIC_ENCRYPTED, XRPL_SECRET_ENCRYPTED
LAST_LEDGER=-1
CW_BRIDGE_ADDRESS=orai1ce35tj5jas8wg3p3d8927j3qykxe70y3kxe8pddca3xfd50wzncqr5g8uh
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getOraiSigner = async (): Promise<OfflineSigner | string> => {
process.env.MNEMONIC ??
decryptMnemonic(
"enter orai passphrase: ",
process.env.MNEMONIC_ENCRYPTED
process.env.ORAI_MNEMONIC_ENCRYPTED
),
{
hdPaths: [stringToPath(process.env.HD_PATH || "m/44'/118'/0'/0/0")],
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/src/relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class XrplBridgeRelayer {
}

export default async (yargs: Argv) => {
const oraiRpcUrl = process.env.RPC_URL ?? "https://rpc.orai.io";
const oraiRpcUrl = process.env.ORAI_RPC_URL ?? "https://rpc.orai.io";
const xrplServer = process.env.XRPL_SERVER ?? "wss://xrplcluster.com/";
const lastLedger = Number(process.env.LAST_LEDGER) || -1;

Expand Down

0 comments on commit 0b25431

Please sign in to comment.