Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.0 #219

Merged
merged 2 commits into from
Mar 29, 2024
Merged

4.0.0 #219

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swanky-env",
"image": "ghcr.io/inkdevhub/swanky-cli/swanky-base:swanky3.1.0-beta.0_v2.1.1",
"image": "ghcr.io/inkdevhub/swanky-cli/swanky-base:swanky4.0.0-beta.0_v2.2.0",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2.8.0": {}
},
Expand Down
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ $ npm install -g @astar-network/swanky-cli
$ swanky COMMAND
running command...
$ swanky (--version|-V|-v)
@astar-network/swanky-cli/4.0.0-beta.0 darwin-x64 node-v21.7.1
@astar-network/swanky-cli/4.0.0 darwin-x64 node-v21.7.1
$ swanky --help [COMMAND]
USAGE
$ swanky COMMAND
Expand Down Expand Up @@ -300,7 +300,7 @@ DESCRIPTION
Balance of an account
```

_See code: [src/commands/account/balance.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/account/balance.ts)_
_See code: [src/commands/account/balance.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/account/balance.ts)_

## `swanky account create`

Expand All @@ -320,7 +320,7 @@ DESCRIPTION
Create a new dev account in config
```

_See code: [src/commands/account/create.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/account/create.ts)_
_See code: [src/commands/account/create.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/account/create.ts)_

## `swanky account default [ACCOUNTALIAS]`

Expand All @@ -341,7 +341,7 @@ DESCRIPTION
Set default account to use
```

_See code: [src/commands/account/default.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/account/default.ts)_
_See code: [src/commands/account/default.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/account/default.ts)_

## `swanky account faucet ALIAS`

Expand All @@ -361,7 +361,7 @@ DESCRIPTION
Transfer some tokens from faucet to an account
```

_See code: [src/commands/account/faucet.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/account/faucet.ts)_
_See code: [src/commands/account/faucet.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/account/faucet.ts)_

## `swanky account list`

Expand All @@ -381,7 +381,7 @@ ALIASES
$ swanky account ls
```

_See code: [src/commands/account/list.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/account/list.ts)_
_See code: [src/commands/account/list.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/account/list.ts)_

## `swanky account ls`

Expand Down Expand Up @@ -415,7 +415,7 @@ FLAGS
-v, --verbose Display more info in the result logs
```

_See code: [src/commands/clear/index.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/clear/index.ts)_
_See code: [src/commands/clear/index.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/clear/index.ts)_

## `swanky contract compile [CONTRACTNAME]`

Expand All @@ -439,7 +439,7 @@ DESCRIPTION
Compile the smart contract(s) in your contracts directory
```

_See code: [src/commands/contract/compile.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/compile.ts)_
_See code: [src/commands/contract/compile.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/compile.ts)_

## `swanky contract deploy CONTRACTNAME`

Expand All @@ -464,7 +464,7 @@ DESCRIPTION
Deploy contract to a running node
```

_See code: [src/commands/contract/deploy.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/deploy.ts)_
_See code: [src/commands/contract/deploy.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/deploy.ts)_

## `swanky contract explain CONTRACTNAME`

Expand All @@ -484,7 +484,7 @@ DESCRIPTION
Explain contract messages based on the contracts' metadata
```

_See code: [src/commands/contract/explain.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/explain.ts)_
_See code: [src/commands/contract/explain.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/explain.ts)_

## `swanky contract new CONTRACTNAME`

Expand All @@ -505,7 +505,7 @@ DESCRIPTION
Generate a new smart contract template inside a project
```

_See code: [src/commands/contract/new.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/new.ts)_
_See code: [src/commands/contract/new.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/new.ts)_

## `swanky contract query CONTRACTNAME MESSAGENAME`

Expand All @@ -532,7 +532,7 @@ DESCRIPTION
Call a query message on smart contract
```

_See code: [src/commands/contract/query.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/query.ts)_
_See code: [src/commands/contract/query.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/query.ts)_

## `swanky contract test [CONTRACTNAME]`

Expand All @@ -554,7 +554,7 @@ DESCRIPTION
Run tests for a given contact
```

_See code: [src/commands/contract/test.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/test.ts)_
_See code: [src/commands/contract/test.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/test.ts)_

## `swanky contract tx CONTRACTNAME MESSAGENAME`

Expand Down Expand Up @@ -582,7 +582,7 @@ DESCRIPTION
Call a Tx message on smart contract
```

_See code: [src/commands/contract/tx.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/tx.ts)_
_See code: [src/commands/contract/tx.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/tx.ts)_

## `swanky contract verify [CONTRACTNAME]`

Expand All @@ -603,7 +603,7 @@ DESCRIPTION
Verify the smart contract(s) in your contracts directory
```

_See code: [src/commands/contract/verify.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/contract/verify.ts)_
_See code: [src/commands/contract/verify.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/contract/verify.ts)_

## `swanky env check`

Expand All @@ -621,7 +621,7 @@ DESCRIPTION
Check installed package versions and compatibility
```

_See code: [src/commands/env/check.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/env/check.ts)_
_See code: [src/commands/env/check.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/env/check.ts)_

## `swanky env install`

Expand All @@ -641,7 +641,7 @@ DESCRIPTION
Install dev dependencies
```

_See code: [src/commands/env/install.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/env/install.ts)_
_See code: [src/commands/env/install.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/env/install.ts)_

## `swanky generate tests [CONTRACTNAME]`

Expand All @@ -663,7 +663,7 @@ DESCRIPTION
Generate test files for the specified contract
```

_See code: [src/commands/generate/tests.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/generate/tests.ts)_
_See code: [src/commands/generate/tests.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/generate/tests.ts)_

## `swanky generate types CONTRACTNAME`

Expand All @@ -683,7 +683,7 @@ DESCRIPTION
Generate types from compiled contract metadata
```

_See code: [src/commands/generate/types.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/generate/types.ts)_
_See code: [src/commands/generate/types.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/generate/types.ts)_

## `swanky help [COMMAND]`

Expand Down Expand Up @@ -726,7 +726,7 @@ DESCRIPTION
Generate a new smart contract environment
```

_See code: [src/commands/init/index.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/init/index.ts)_
_See code: [src/commands/init/index.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/init/index.ts)_

## `swanky node chopsticks init`

Expand All @@ -743,7 +743,7 @@ DESCRIPTION
Initialize chopsticks config
```

_See code: [src/commands/node/chopsticks/init.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/node/chopsticks/init.ts)_
_See code: [src/commands/node/chopsticks/init.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/node/chopsticks/init.ts)_

## `swanky node chopsticks start`

Expand All @@ -761,7 +761,7 @@ DESCRIPTION
Start chopsticks
```

_See code: [src/commands/node/chopsticks/start.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/node/chopsticks/start.ts)_
_See code: [src/commands/node/chopsticks/start.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/node/chopsticks/start.ts)_

## `swanky node install`

Expand All @@ -774,13 +774,13 @@ USAGE
FLAGS
-v, --verbose Display more info in the result logs
--set-version=<value> Specify version of swanky node to install.
List of supported versions: 1.6.0, 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, 1.0.0
List of supported versions: 1.7.0, 1.6.0, 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, 1.0.0

DESCRIPTION
Install swanky node binary
```

_See code: [src/commands/node/install.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/node/install.ts)_
_See code: [src/commands/node/install.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/node/install.ts)_

## `swanky node purge`

Expand All @@ -797,7 +797,7 @@ DESCRIPTION
Purge local chain state
```

_See code: [src/commands/node/purge.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/node/purge.ts)_
_See code: [src/commands/node/purge.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/node/purge.ts)_

## `swanky node start`

Expand Down Expand Up @@ -828,7 +828,7 @@ DESCRIPTION
Start a local node
```

_See code: [src/commands/node/start.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/node/start.ts)_
_See code: [src/commands/node/start.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/node/start.ts)_

## `swanky node version`

Expand All @@ -845,7 +845,7 @@ DESCRIPTION
Show swanky node version
```

_See code: [src/commands/node/version.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/node/version.ts)_
_See code: [src/commands/node/version.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/node/version.ts)_

## `swanky plugins`

Expand Down Expand Up @@ -1163,7 +1163,7 @@ DESCRIPTION
Initialize Zombienet
```

_See code: [src/commands/zombienet/init.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/zombienet/init.ts)_
_See code: [src/commands/zombienet/init.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/zombienet/init.ts)_

## `swanky zombienet start`

Expand All @@ -1181,5 +1181,5 @@ DESCRIPTION
Start Zombienet
```

_See code: [src/commands/zombienet/start.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0-beta.0/src/commands/zombienet/start.ts)_
_See code: [src/commands/zombienet/start.ts](https://github.com/inkdevhub/swanky-cli/blob/v4.0.0/src/commands/zombienet/start.ts)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -
RUN apt-get install -y binaryen pkg-config libssl-dev

# Download and install swanky-cli and verify the installation
RUN curl -L https://github.com/swankyhub/swanky-cli/releases/download/v3.1.0-beta.0/swanky-v3.1.0-beta.0-9153ae7-linux-x64.tar.gz | tar xz -C /opt && \
RUN curl -L https://github.com/swankyhub/swanky-cli/releases/download/v4.0.0/swanky-v4.0.0-81446c0-linux-x64.tar.gz | tar xz -C /opt && \
ln -s /opt/swanky/bin/swanky /usr/local/bin/swanky

# Install Rustup and Rust, additional components, packages, and verify the installations
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/swanky-cli",
"version": "4.0.0-beta.0",
"version": "4.0.0",
"description": "All in one WASM smart contract development toolset",
"author": "Astar network",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/consts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { swankyNodeVersions } from "./nodeInfo.js";

export const DEFAULT_NODE_INFO = swankyNodeVersions.get("1.6.0")!;
export const DEFAULT_NODE_INFO = swankyNodeVersions.get("1.7.0")!;

export const DEFAULT_NETWORK_URL = "ws://127.0.0.1:9944";
export const DEFAULT_ASTAR_NETWORK_URL = "wss://rpc.astar.network";
Expand Down
20 changes: 20 additions & 0 deletions src/lib/nodeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export interface nodeInfo {
}

export const swankyNodeVersions = new Map<string, nodeInfo>([
[
"1.7.0",
{
version: "1.7.0",
polkadotPalletVersions: "polkadot-v0.9.43",
supportedInk: "v5.0.0",
downloadUrl: {
darwin: {
arm64:
"https://github.com/AstarNetwork/swanky-node/releases/download/v1.7.0/swanky-node-v1.7.0-macOS-universal.tar.gz",
x64: "https://github.com/AstarNetwork/swanky-node/releases/download/v1.7.0/swanky-node-v1.7.0-macOS-universal.tar.gz",
},
linux: {
arm64:
"https://github.com/AstarNetwork/swanky-node/releases/download/v1.7.0/swanky-node-v1.7.0-ubuntu-aarch64.tar.gz",
x64: "https://github.com/AstarNetwork/swanky-node/releases/download/v1.7.0/swanky-node-v1.7.0-ubuntu-x86_64.tar.gz",
},
},
},
],
[
"1.6.0",
{
Expand Down
Loading