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

ds-cli: applying ItemKind and BuildingKind manifests #504

Merged
merged 32 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
86f4b3b
cli: compile and deploy a kind via action
chrisfarms Aug 1, 2023
7b768a5
cli: deployment via a manifest
chrisfarms Aug 2, 2023
eb60a37
wip
chrisfarms Aug 3, 2023
533bc39
multidoc manifests
chrisfarms Aug 7, 2023
abee89e
manifest
chrisfarms Aug 7, 2023
89be78b
rename apply
chrisfarms Aug 7, 2023
f364cd3
rm building kinds
chrisfarms Aug 7, 2023
6ac01ed
simply fetcher of items/buildings/players to get started
chrisfarms Aug 7, 2023
44a6aae
tidy up commands and remove stale readme
chrisfarms Aug 7, 2023
819899f
allow custom include paths
chrisfarms Aug 7, 2023
d1177a7
allow exporting solidity remappings.txt
chrisfarms Aug 7, 2023
488da59
color errors
chrisfarms Aug 7, 2023
068d298
notify update available
chrisfarms Aug 7, 2023
96cfd8a
bump version
chrisfarms Aug 7, 2023
e9792b6
typo
chrisfarms Aug 7, 2023
6844515
remove test private key required opt
chrisfarms Aug 7, 2023
b0fc3e8
no relative
chrisfarms Aug 7, 2023
d0e10bc
bundle all cog/ds interfaces
chrisfarms Aug 8, 2023
5440b69
verbose lib path logging
chrisfarms Aug 8, 2023
6751564
rename/split interfaces
chrisfarms Aug 8, 2023
19d33f7
simple import
chrisfarms Aug 8, 2023
919cd43
ignore tgz
chrisfarms Aug 8, 2023
2dd88ab
pin cog latest
chrisfarms Aug 8, 2023
a10218a
short verbose flag
chrisfarms Aug 8, 2023
326b229
tidy
chrisfarms Aug 8, 2023
09b36d4
verbose command
chrisfarms Aug 8, 2023
b66bde6
always force install ds cli on make
chrisfarms Aug 8, 2023
3483f25
apply examples in cli output
chrisfarms Aug 8, 2023
2b8a184
publish task
chrisfarms Aug 8, 2023
271cc7c
salt with player not kind
chrisfarms Aug 8, 2023
03c308c
yaml output and prettier tables
chrisfarms Aug 8, 2023
214da5c
publish and bump version
chrisfarms Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ node_modules: package.json package-lock.json
contracts/lib/cog/services/bin/ds-node: contracts/lib/cog/services/Makefile $(COG_SERVICES_SRC)
$(MAKE) -C contracts/lib/cog/services bin/ds-node

cli:
(cd cli && npm run build && npm install -g --force .)

publish: cli
(cd cli && npm version patch && npm publish)

clean:
rm -rf cli/dist
rm -rf bridge/dist
rm -rf bridge/node_modules
rm -f contracts/lib/cog/services/bin/ds-node
Expand All @@ -74,5 +81,5 @@ clean:
$(MAKE) -C contracts/lib/cog/services clean


.PHONY: all clean dev map compose debugmap
.PHONY: all clean dev map compose debugmap cli
.SILENT: contracts/lib/cog/services/bin/ds-node frontend/public/ds-unity/Build/ds-unity.wasm
1 change: 1 addition & 0 deletions cli/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/dist
/node_modules
/*.tgz
24 changes: 1 addition & 23 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,4 @@ npm install -g @playmint/ds-cli

## Example usage

Show the available networks (deployed versions of the game) you can connect to:

```
ds networks list
```

Search for an item by name on the `testnet` deployment:

```
ds -n testnet items search goo
```

List all the available game actions you can dispatch:

```
ds --network testnet actions list
```

Execute a game action (you will be prompted to authorize a session by scanning a QR code with a phone wallet):

```
ds --network testnet action dispatch DEV_SPAWN_TILE '[1, 100, -100, 0]'
```
This is in flux at the moment... see `ds --help`