clients/js: bump injective version
This commit is contained in:
parent
2ae9f65a76
commit
cb7056d32e
|
@ -4,8 +4,8 @@ import {
|
|||
DEFAULT_STD_FEE,
|
||||
privateKeyToPublicKeyBase64,
|
||||
ChainRestAuthApi,
|
||||
PrivateKey,
|
||||
} from "@injectivelabs/sdk-ts";
|
||||
import { PrivateKey } from "@injectivelabs/sdk-ts/dist/local";
|
||||
import { createTransaction, MsgArg, TxGrpcClient } from "@injectivelabs/tx-ts";
|
||||
import { fromUint8Array } from "js-base64";
|
||||
import { impossible, Payload } from "./vaa";
|
||||
|
@ -157,15 +157,12 @@ export async function execute_injective(
|
|||
/** Append Signatures */
|
||||
txRaw.setSignaturesList([sig]);
|
||||
|
||||
const txService = new TxGrpcClient({
|
||||
txRaw,
|
||||
endpoint: network.sentryGrpcApi,
|
||||
});
|
||||
const txService = new TxGrpcClient(network.sentryGrpcApi);
|
||||
|
||||
console.log("simulate transaction...");
|
||||
/** Simulate transaction */
|
||||
try {
|
||||
const simulationResponse = await txService.simulate();
|
||||
const simulationResponse = await txService.simulate(txRaw);
|
||||
console.log(
|
||||
`Transaction simulation response: ${JSON.stringify(
|
||||
simulationResponse.gasInfo
|
||||
|
@ -178,7 +175,7 @@ export async function execute_injective(
|
|||
|
||||
console.log("broadcast transaction...");
|
||||
/** Broadcast transaction */
|
||||
const txResponse = await txService.broadcast();
|
||||
const txResponse = await txService.broadcast(txRaw);
|
||||
console.log("txResponse", txResponse);
|
||||
|
||||
if (txResponse.code !== 0) {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,9 +5,9 @@
|
|||
"@celo-tools/celo-ethers-wrapper": "^0.1.0",
|
||||
"@certusone/wormhole-sdk": "^0.8.0",
|
||||
"@cosmjs/encoding": "^0.26.2",
|
||||
"@injectivelabs/networks": "^1.0.12",
|
||||
"@injectivelabs/sdk-ts": "^1.0.75",
|
||||
"@injectivelabs/tx-ts": "^1.0.22",
|
||||
"@injectivelabs/networks": "^1.0.35",
|
||||
"@injectivelabs/sdk-ts": "^1.0.199",
|
||||
"@injectivelabs/tx-ts": "^1.0.43",
|
||||
"@solana/web3.js": "^1.22.0",
|
||||
"@terra-money/terra.js": "^3.1.3",
|
||||
"@types/config": "^3.3.0",
|
||||
|
|
Loading…
Reference in New Issue