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

Feature/init convert #136

Merged
merged 49 commits into from
May 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
0e26da7
cleanup
codespool Mar 24, 2023
0189647
remove timestamp from compile step
codespool Mar 27, 2023
37644c7
cleanup
codespool Mar 27, 2023
efe2601
remove timestamp from test report path
codespool Mar 27, 2023
aa5736d
init inherit BaseCommand
codespool Apr 3, 2023
69fafb2
add NO_CONFIG_COMMANDS list
codespool Apr 3, 2023
2a482c4
take a path for convert
codespool Apr 3, 2023
c36253b
add project dir check if empty
codespool Apr 3, 2023
9f9582b
introduce task queue, extract generate
codespool Apr 3, 2023
3931500
move test reports to test directory
codespool Apr 3, 2023
5a6ca70
simplify contract name gathering
codespool Apr 3, 2023
14dcbb3
detect contracts from workspace in cargo.toml
codespool Apr 13, 2023
b07136e
wip: parse workspace for contract list
codespool Apr 18, 2023
7c1e0f0
wip: add manual paths entry
codespool Apr 27, 2023
183b373
use fuzzypath instead of tree selector
codespool May 2, 2023
6442522
add test detection
codespool May 2, 2023
ea712e4
confirmed files to copy
codespool May 2, 2023
e58c56c
wip: copy selected files and dirs
codespool May 8, 2023
a3a64a0
replace TOML lib
codespool May 8, 2023
318f139
wip: copy toolchain files
codespool May 8, 2023
fbb90be
separate common and contract template processing
codespool May 8, 2023
ede5dd1
merge package.json
codespool May 8, 2023
72d73a1
v2.2.0-alpha.0
codespool May 8, 2023
1619f6a
clean up
codespool May 8, 2023
cae0d6d
use tests instead of test for directory name
codespool May 8, 2023
c9c3aaa
Merge branch 'master' into feature/init-convert
codespool May 8, 2023
4c1f5e5
fix: test path
codespool May 8, 2023
3bc146d
fix iteration bug
codespool May 9, 2023
32ff5e9
Merge branch 'master' into feature/init-convert
codespool May 9, 2023
d2f8a41
fix: typo?
codespool May 10, 2023
5ab683c
remove ask! conditionals
codespool May 10, 2023
ef2265d
cleanup and fix compile and typeGen
codespool May 11, 2023
74c4571
fix PR comment bug
codespool May 11, 2023
b151414
add contract class
codespool May 11, 2023
1afaff4
use contract class in typegen and deploy
codespool May 11, 2023
bc40aa5
use contract class in contract test
codespool May 11, 2023
897bf2e
add more exclusions to fuzzy search
codespool May 12, 2023
269eef9
remove resolutions from package.json template
codespool May 12, 2023
2497a2b
simplify test detection and prompt
codespool May 12, 2023
43437fc
Merge branch 'master' into feature/init-convert
codespool May 12, 2023
eec9c6c
v2.2.1-alpha.0
codespool May 15, 2023
ba4ed39
pr fix: update test template paths
codespool May 16, 2023
c8f928d
make getManualPaths recursive
codespool May 16, 2023
c7548a7
remove automatic workspace detection
codespool May 16, 2023
f04ce13
restore .github dir copy
codespool May 16, 2023
62bbcc6
move account init inside the run method
codespool May 16, 2023
8bd8a04
v2.2.2-alpha.0
codespool May 16, 2023
40ad8b5
PR fix: correct path in flipper test template
codespool May 17, 2023
8490bb3
use snake_case for generated contracts moduleName
codespool May 17, 2023
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
Prev Previous commit
Next Next commit
v2.2.2-alpha.0
  • Loading branch information
codespool committed May 16, 2023
commit 8bd8a04b30c1ca33123e73cfebc803caf6d51744
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "2.2.1-alpha.0",
"version": "2.2.2-alpha.0",
"npmClient": "yarn"
}
6 changes: 3 additions & 3 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ $ npm install -g @astar-network/swanky-cli
$ swanky COMMAND
running command...
$ swanky (--version|-V|-v)
@astar-network/swanky-cli/2.2.1-alpha.0 darwin-x64 node-v18.2.0
@astar-network/swanky-cli/2.2.2-alpha.0 darwin-x64 node-v18.2.0
$ swanky --help [COMMAND]
USAGE
$ swanky COMMAND
@@ -114,7 +114,7 @@ DESCRIPTION
Check installed package versions and compatibility
```

_See code: [dist/commands/check/index.js](https://github.com/AstarNetwork/swanky-cli/blob/v2.2.1-alpha.0/dist/commands/check/index.js)_
_See code: [dist/commands/check/index.js](https://github.com/AstarNetwork/swanky-cli/blob/v2.2.2-alpha.0/dist/commands/check/index.js)_

## `swanky contract compile [CONTRACTNAME]`

@@ -317,7 +317,7 @@ DESCRIPTION
Generate a new smart contract environment
```

_See code: [dist/commands/init/index.js](https://github.com/AstarNetwork/swanky-cli/blob/v2.2.1-alpha.0/dist/commands/init/index.js)_
_See code: [dist/commands/init/index.js](https://github.com/AstarNetwork/swanky-cli/blob/v2.2.2-alpha.0/dist/commands/init/index.js)_

## `swanky node install`

6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/swanky-cli",
"version": "2.2.1-alpha.0",
"version": "2.2.2-alpha.0",
"description": "Astar network WASM contract CLI tool",
"author": "Astar network",
"bin": {
@@ -17,8 +17,8 @@
"/oclif.manifest.json"
],
"dependencies": {
"@astar-network/swanky-core": "^2.2.1-alpha.0",
"@astar-network/swanky-templates": "^2.2.1-alpha.0",
"@astar-network/swanky-core": "^2.2.2-alpha.0",
"@astar-network/swanky-templates": "^2.2.2-alpha.0",
"@iarna/toml": "^2.2.5",
"@oclif/core": "2.5.0",
"@oclif/plugin-help": "5.2.7",
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/swanky-core",
"version": "2.2.1-alpha.0",
"version": "2.2.2-alpha.0",
"description": "Core library of Swanky Suite",
"author": "Astar network",
"license": "MIT",
2 changes: 1 addition & 1 deletion packages/templates/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astar-network/swanky-templates",
"version": "2.2.1-alpha.0",
"version": "2.2.2-alpha.0",
"description": "Templates for initialising Swanky projects",
"author": "Astar network",
"license": "MIT",