sdk/js: v0.1.6
This commit is contained in:
parent
7ecce0d302
commit
aa0537284f
|
@ -5,9 +5,15 @@
|
|||
### Added
|
||||
|
||||
added parseSequencesFromLog\*
|
||||
|
||||
Terra NFT token bridge
|
||||
|
||||
getIsTransferCompleted on NFT bridge
|
||||
|
||||
export for wasm, createPostVaaInstructionSolana, createVerifySignaturesInstructionsSolana, postVaaSolana, postVaaSolanaWithRetry, and getSignedVAAWithRetry
|
||||
|
||||
re-export top level objects ethers_contracts, solana, terra, rpc, utils, bridge, token_bridge, nft_bridge
|
||||
|
||||
## 0.1.5
|
||||
|
||||
### Added
|
||||
|
|
|
@ -9,7 +9,7 @@ import { redeemOnTerra } from ".";
|
|||
|
||||
export async function getIsTransferCompletedEth(
|
||||
nftBridgeAddress: string,
|
||||
provider: ethers.providers.Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
signedVAA: Uint8Array
|
||||
) {
|
||||
const nftBridge = NFTBridge__factory.connect(nftBridgeAddress, provider);
|
||||
|
|
|
@ -12,7 +12,7 @@ import { importNftWasm } from "../solana/wasm";
|
|||
*/
|
||||
export async function getIsWrappedAssetEth(
|
||||
tokenBridgeAddress: string,
|
||||
provider: ethers.providers.Web3Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
assetAddress: string
|
||||
) {
|
||||
if (!assetAddress) return false;
|
||||
|
|
|
@ -24,7 +24,7 @@ export interface WormholeWrappedNFTInfo {
|
|||
*/
|
||||
export async function getOriginalAssetEth(
|
||||
tokenBridgeAddress: string,
|
||||
provider: ethers.providers.Web3Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
wrappedAddress: string,
|
||||
tokenId: string,
|
||||
lookupChainId: ChainId
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { ChainId, getSignedVAA } from "..";
|
||||
|
||||
export default async function getSignedVAAWithRetry(
|
||||
export async function getSignedVAAWithRetry(
|
||||
hosts: string[],
|
||||
emitterChain: ChainId,
|
||||
emitterAddress: string,
|
||||
|
@ -32,3 +32,5 @@ export default async function getSignedVAAWithRetry(
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
export default getSignedVAAWithRetry;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
export * from "./getSignedVAA";
|
||||
export * from "./getSignedVAAWithRetry";
|
||||
export { getSignedVAAWithRetry } from "./getSignedVAAWithRetry";
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
export * from "./getBridgeFeeIx";
|
||||
export { postVaa as postVaaSolana } from "./postVaa";
|
||||
export { postVaaWithRetry as postVaaSolanaWithRetry } from "./postVaa";
|
||||
export {
|
||||
createPostVaaInstruction as createPostVaaInstructionSolana,
|
||||
createVerifySignaturesInstructions as createVerifySignaturesInstructionsSolana,
|
||||
postVaa as postVaaSolana,
|
||||
postVaaWithRetry as postVaaSolanaWithRetry,
|
||||
} from "./postVaa";
|
||||
export * from "./rust";
|
||||
export * from "./wasm";
|
||||
|
|
|
@ -16,7 +16,7 @@ import { importTokenWasm } from "../solana/wasm";
|
|||
*/
|
||||
export async function getForeignAssetEth(
|
||||
tokenBridgeAddress: string,
|
||||
provider: ethers.providers.Web3Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
originChain: ChainId,
|
||||
originAsset: Uint8Array
|
||||
) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import { redeemOnTerra } from ".";
|
|||
|
||||
export async function getIsTransferCompletedEth(
|
||||
tokenBridgeAddress: string,
|
||||
provider: ethers.providers.Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
signedVAA: Uint8Array
|
||||
) {
|
||||
const tokenBridge = Bridge__factory.connect(tokenBridgeAddress, provider);
|
||||
|
|
|
@ -13,7 +13,7 @@ import { importTokenWasm } from "../solana/wasm";
|
|||
*/
|
||||
export async function getIsWrappedAssetEth(
|
||||
tokenBridgeAddress: string,
|
||||
provider: ethers.providers.Web3Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
assetAddress: string
|
||||
) {
|
||||
if (!assetAddress) return false;
|
||||
|
|
|
@ -23,7 +23,7 @@ export interface WormholeWrappedInfo {
|
|||
*/
|
||||
export async function getOriginalAssetEth(
|
||||
tokenBridgeAddress: string,
|
||||
provider: ethers.providers.Web3Provider,
|
||||
provider: ethers.Signer | ethers.providers.Provider,
|
||||
wrappedAddress: string,
|
||||
lookupChainId: ChainId
|
||||
): Promise<WormholeWrappedInfo> {
|
||||
|
|
Loading…
Reference in New Issue