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