Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Dec 30, 2023
1 parent 4e6312a commit a6bc068
Show file tree
Hide file tree
Showing 24 changed files with 158 additions and 179 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0-beta.7
0.3.0-beta.8
6 changes: 3 additions & 3 deletions connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wormhole-foundation/connect-sdk",
"version": "0.3.0-beta.7",
"version": "0.3.0-beta.8",
"repository": {
"type": "git",
"url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"axios": "^1.4.0",
"@wormhole-foundation/sdk-base": "^0.3.0-beta.7",
"@wormhole-foundation/sdk-definitions": "^0.3.0-beta.7"
"@wormhole-foundation/sdk-base": "^0.3.0-beta.8",
"@wormhole-foundation/sdk-definitions": "^0.3.0-beta.8"
}
}
2 changes: 1 addition & 1 deletion core/base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wormhole-foundation/sdk-base",
"version": "0.3.0-beta.7",
"version": "0.3.0-beta.8",
"repository": {
"type": "git",
"url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
Expand Down
4 changes: 2 additions & 2 deletions core/definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wormhole-foundation/sdk-definitions",
"version": "0.3.0-beta.7",
"version": "0.3.0-beta.8",
"repository": {
"type": "git",
"url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
Expand Down Expand Up @@ -30,6 +30,6 @@
},
"dependencies": {
"@noble/hashes": "^1.3.1",
"@wormhole-foundation/sdk-base": "^0.3.0-beta.7"
"@wormhole-foundation/sdk-base": "^0.3.0-beta.8"
}
}
31 changes: 15 additions & 16 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wormhole-foundation/connect-sdk-examples",
"version": "0.3.0-beta.7",
"version": "0.3.0-beta.8",
"repository": {
"type": "git",
"url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
Expand Down Expand Up @@ -35,7 +35,6 @@
"scripts": {
"wrapped": "tsx src/createWrapped.ts",
"tb": "tsx src/tokenBridge.ts",
"mtb": "cd ../platforms/algorand/protocols/tokenBridge && npm run rebuild && cd - && tsx src/multiTokenBridge.ts",
"cctp": "tsx src/cctp.ts",
"demo": "tsx src/index.ts",
"cosmos": "tsx src/cosmos.ts",
Expand All @@ -53,18 +52,18 @@
"algosdk": "^2.7.0"
},
"dependencies": {
"@wormhole-foundation/connect-sdk": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-solana": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-evm": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-cosmwasm": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-evm-core": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-solana-core": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-cosmwasm-core": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-evm-tokenbridge": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-solana-tokenbridge": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-cosmwasm-tokenbridge": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-evm-cctp": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-solana-cctp": "^0.3.0-beta.7",
"@wormhole-foundation/connect-sdk-cosmwasm-ibc": "^0.3.0-beta.7"
"@wormhole-foundation/connect-sdk": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-solana": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-evm": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-cosmwasm": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-evm-core": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-solana-core": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-cosmwasm-core": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-evm-tokenbridge": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-solana-tokenbridge": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-cosmwasm-tokenbridge": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-evm-cctp": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-solana-cctp": "^0.3.0-beta.8",
"@wormhole-foundation/connect-sdk-cosmwasm-ibc": "^0.3.0-beta.8"
}
}
}
25 changes: 4 additions & 21 deletions examples/src/helpers/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {
Network,
ChainAddress,
ChainContext,
DEFAULT_TASK_TIMEOUT,
Network,
Platform,
PlatformToChains,
Signer,
Expand All @@ -11,18 +12,13 @@ import {
Wormhole,
api,
tasks,
DEFAULT_TASK_TIMEOUT,
Chain,
TokenId,
TransferReceipt,
} from "@wormhole-foundation/connect-sdk";

// Importing from src so we dont have to rebuild to see debug stuff in signer
import { getAlgorandSigner } from "@wormhole-foundation/connect-sdk-algorand/src/testing";
import { getCosmwasmSigner } from "@wormhole-foundation/connect-sdk-cosmwasm/src/testing";
import { getEvmSigner } from "@wormhole-foundation/connect-sdk-evm/src/testing";
import { getSolanaSigner } from "@wormhole-foundation/connect-sdk-solana/src/testing";
import { getCosmwasmSigner } from "@wormhole-foundation/connect-sdk-cosmwasm/src/testing";
import { getAlgorandSigner } from "@wormhole-foundation/connect-sdk-algorand/src/testing";
import { TokenTransferProtocol } from "@wormhole-foundation/connect-sdk";

// read in from `.env`
require("dotenv").config();
Expand All @@ -38,19 +34,6 @@ function getEnv(key: string): string {
return val;
}

export interface BridgingInputs {
fromChain: Chain;
asset: TokenId | "native";
quantity: string;
toChain: Chain;
roundTrip?: boolean;
recoverTxId?: string | undefined;
}

export interface BridgingResult extends BridgingInputs {
result: TransferReceipt<TokenTransferProtocol>;
}

export interface TransferStuff<
N extends Network,
P extends Platform,
Expand Down
17 changes: 16 additions & 1 deletion examples/src/multiTokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import {
Platform,
TokenId,
TokenTransfer,
TokenTransferProtocol,
TransferReceipt,
Wormhole,
isTokenId,
normalizeAmount,
} from "@wormhole-foundation/connect-sdk";
import { BridgingInputs, BridgingResult, TransferStuff, getStuff, waitLog } from "./helpers";
import { TransferStuff, getStuff, waitLog } from "./helpers";
import { inspect } from "util";

// Import the platform specific packages
Expand All @@ -21,6 +23,19 @@ import "@wormhole-foundation/connect-sdk-evm-tokenbridge";
import "@wormhole-foundation/connect-sdk-solana-tokenbridge";
import "@wormhole-foundation/connect-sdk-algorand-tokenbridge";

interface BridgingInputs {
fromChain: Chain;
asset: TokenId | "native";
quantity: string;
toChain: Chain;
roundTrip?: boolean;
recoverTxId?: string | undefined;
}

interface BridgingResult extends BridgingInputs {
result: TransferReceipt<TokenTransferProtocol>;
}

(async function multipleBridges() {
const scenarios: BridgingInputs[] = [
// Example input set showing all parameters with recoverTxId as optional
Expand Down
Loading

0 comments on commit a6bc068

Please sign in to comment.