File tree 5 files changed +9
-5
lines changed
tokenBridge/src/utils/tokenBridge
5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { CosmWasmClient } from "@cosmjs/cosmwasm-stargate" ;
2
2
import type { IndexedTx , MsgTransferEncodeObject } from "@cosmjs/stargate" ;
3
3
import { coin } from "@cosmjs/stargate" ;
4
- import { MsgTransfer } from "cosmjs-types/ibc/applications/transfer/v1/tx" ;
4
+ import { MsgTransfer } from "cosmjs-types/ibc/applications/transfer/v1/tx.js " ;
5
5
6
6
import type {
7
7
ChainAddress ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import type { CosmwasmUnsignedTransaction } from "./unsignedTransaction.js";
30
30
// TODO: replace this? no hints in the package to resolve it, probably
31
31
// need to find a new package to pull it from
32
32
// @ts -ignore
33
- import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx" ;
33
+ import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx.js " ;
34
34
35
35
export async function getCosmwasmSigner ( rpc : CosmWasmClient , mnemonic : string ) : Promise < Signer > {
36
36
const [ network , chain ] = await CosmwasmPlatform . chainFromRpc ( rpc ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { StdFee } from "@cosmjs/stargate";
3
3
import { calculateFee } from "@cosmjs/stargate" ;
4
4
import type { Network , UnsignedTransaction } from "@wormhole-foundation/sdk-connect" ;
5
5
import { encoding } from "@wormhole-foundation/sdk-connect" ;
6
- import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx" ;
6
+ import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx.js " ;
7
7
import { DEFAULT_FEE , MSG_EXECUTE_CONTRACT_TYPE_URL , averageGasPrices } from "./constants.js" ;
8
8
import { CosmwasmPlatform } from "./platform.js" ;
9
9
import type { CosmwasmChains } from "./types.js" ;
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import { utils } from '@wormhole-foundation/sdk-solana';
6
6
import { WormholeCoder } from './coder/index.js' ;
7
7
import type { Wormhole } from '../types.js' ;
8
8
9
- import IDL from '../anchor-idl/wormhole.json' ;
9
+ // ts-ignoring because of this nonsense https://github.com/microsoft/TypeScript/issues/51783
10
+ /* @ts -ignore */
11
+ import IDL from '../anchor-idl/wormhole.json' assert { type : 'json' } ;
10
12
11
13
export function createWormholeProgramInterface (
12
14
programId : PublicKeyInitData ,
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import { utils } from '@wormhole-foundation/sdk-solana';
6
6
import { TokenBridgeCoder } from './coder/index.js' ;
7
7
import type { TokenBridge } from '../../tokenBridgeType.js' ;
8
8
9
- import IDL from '../../anchor-idl/token_bridge.json' ;
9
+ // ts-ignoring because of this nonsense https://github.com/microsoft/TypeScript/issues/51783
10
+ /* @ts -ignore */
11
+ import IDL from '../../anchor-idl/token_bridge.json' assert { type : 'json' } ; ;
10
12
11
13
export function createTokenBridgeProgramInterface (
12
14
programId : PublicKeyInitData ,
You can’t perform that action at this time.
0 commit comments