Skip to content
Open
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: 0 additions & 2 deletions docs/builders/deploy-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ We need to tell `gnokey` a couple of things:
- `pkgdir` in which the package is found locally,
- `gas-fee` and `gas-wanted` values,
- the `remote` (RPC endpoint) and `chainid` of the Staging network[^2],
- that we want to broadcast the transaction, and
- the key or the address we want to use to deploy the package.

The full command would look something like the following:
Expand All @@ -76,7 +75,6 @@ gnokey maketx addpkg \
-pkgdir "." \
-gas-fee 10000000ugnot \
-gas-wanted 8000000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443" \
MyKey
Expand Down
1 change: 0 additions & 1 deletion docs/builders/example-minisocial-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ gnokey maketx call \
-func "CreatePost" \
-args "This is my first post" \
-gas-fee 1000000ugnot -gas-wanted 5000000 \
-broadcast \
-chainid "dev" \
-remote "tcp://127.0.0.1:26657" \
{MYKEY}
Expand Down
1 change: 0 additions & 1 deletion docs/builders/local-dev-with-gnodev.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ gnokey maketx call \
-args "42" \
-gas-fee 1000000ugnot \
-gas-wanted 20000000 \
-broadcast \
{MYKEY}
```

Expand Down
1 change: 0 additions & 1 deletion docs/resources/gas-fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ gnokey maketx addpkg \
-gas-wanted 2000000 \
-gas-fee 1000000ugnot \
-remote https://rpc.gno.land:443 \
-broadcast \
-chainid staging \
-simulate only \
YOUR_KEY_NAME
Expand Down
7 changes: 1 addition & 6 deletions docs/users/interact-with-gnokey.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ gnokey maketx addpkg \
-pkgdir "." \
-gas-fee 10000000ugnot \
-gas-wanted 8000000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443"
```
Expand All @@ -184,7 +183,6 @@ gnokey maketx addpkg \
-pkgdir "." \
-gas-fee 10000000ugnot \
-gas-wanted 200000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443"
mykey
Expand Down Expand Up @@ -246,7 +244,6 @@ gnokey maketx call \
-send "1000ugnot" \
-gas-fee 10000000ugnot \
-gas-wanted 2000000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443" \
mykey
Expand Down Expand Up @@ -284,7 +281,6 @@ gnokey maketx call \
-args "<your_address>" \
-gas-fee 10000000ugnot \
-gas-wanted 2000000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443" \
mykey
Expand Down Expand Up @@ -332,7 +328,6 @@ gnokey maketx send \
-send 100ugnot \
-gas-fee 10000000ugnot \
-gas-wanted 2000000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443" \
mykey
Expand Down Expand Up @@ -392,7 +387,6 @@ Now we will be able to provide this to the `maketx run` subcommand:
gnokey maketx run \
-gas-fee 1000000ugnot \
-gas-wanted 20000000 \
-broadcast \
-chainid staging \
-remote "https://rpc.gno.land:443" \
mykey ./script.gno
Expand Down Expand Up @@ -583,6 +577,7 @@ gnokey maketx call \
-func "SignUp" \
-gas-fee 1000000ugnot \
-gas-wanted 2000000 \
-broadcast=false \
mykey > userbook.tx
```

Expand Down
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/microblog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@

```
gnokey maketx addpkg --pkgpath "gno.land/p/demo/microblog" --pkgdir "examples/gno.land/p/demo/microblog" \
--deposit 100000000ugnot --gas-fee 1000000ugnot --gas-wanted 2000000 --broadcast --chainid dev --remote localhost:26657 <YOURKEY>
--deposit 100000000ugnot --gas-fee 1000000ugnot --gas-wanted 2000000 --chainid dev --remote localhost:26657 <YOURKEY>
```

(One-time) Add the microblog realm:

```
gnokey maketx addpkg --pkgpath "gno.land/r/demo/microblog" --pkgdir "examples/gno.land/r/demo/microblog" \
--deposit 100000000ugnot --gas-fee 1000000ugnot --gas-wanted 2000000 --broadcast --chainid dev --remote localhost:26657 <YOURKEY>
--deposit 100000000ugnot --gas-fee 1000000ugnot --gas-wanted 2000000 --chainid dev --remote localhost:26657 <YOURKEY>
```

Add a microblog post:

```
gnokey maketx call --pkgpath "gno.land/r/demo/microblog" --func "NewPost" --args "hello, world" \
--gas-fee "1000000ugnot" --gas-wanted "2000000" --broadcast --chainid dev --remote localhost:26657 <YOURKEY>
--gas-fee "1000000ugnot" --gas-wanted "2000000" --chainid dev --remote localhost:26657 <YOURKEY>
```
4 changes: 2 additions & 2 deletions gno.land/pkg/gnoweb/components/ui/command.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $'<span data-action-function-target="arg" data-action-function-arg-value="{{.}}"></span>'{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast -chainid "{{.ChainId}}" -remote "{{.Remote}}" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-{{.FuncName}}" class="u-inline">gnokey query -remote "{{.Remote}}" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $'<span data-action-function-target="arg" data-action-function-arg-value="{{.}}"></span>'{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $'<span data-action-function-target="arg" data-action-function-arg-value="{{.}}"></span>'{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -chainid "{{.ChainId}}" -remote "{{.Remote}}" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-{{.FuncName}}" class="u-inline">gnokey query -remote "{{.Remote}}" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $'<span data-action-function-target="arg" data-action-function-arg-value="{{.}}"></span>'{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast=false <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey sign -tx-path call.tx -chainid "{{.ChainId}}" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER <span data-action-function-target="address">ADDRESS</span>
gnokey broadcast -remote "{{.Remote}}" call.tx
</span></code></pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'<span data-action-function-target="arg" data-action-function-arg-value="title"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="tags"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-CreatePost" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'<span data-action-function-target="arg" data-action-function-arg-value="title"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="tags"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'<span data-action-function-target="arg" data-action-function-arg-value="title"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="tags"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-CreatePost" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'<span data-action-function-target="arg" data-action-function-arg-value="title"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="tags"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast=false <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER <span data-action-function-target="address">ADDRESS</span>
gnokey broadcast -remote "127.0.0.1:26657" call.tx
</span></code></pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-Transfer" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-Transfer" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast=false <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER <span data-action-function-target="address">ADDRESS</span>
gnokey broadcast -remote "127.0.0.1:26657" call.tx
</span></code></pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'<span data-action-function-target="arg" data-action-function-arg-value="to"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="amount"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-Transfer" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'<span data-action-function-target="arg" data-action-function-arg-value="to"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="amount"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'<span data-action-function-target="arg" data-action-function-arg-value="to"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="amount"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-Transfer" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'<span data-action-function-target="arg" data-action-function-arg-value="to"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="amount"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast=false <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER <span data-action-function-target="address">ADDRESS</span>
gnokey broadcast -remote "127.0.0.1:26657" call.tx
</span></code></pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'<span data-action-function-target="arg" data-action-function-arg-value="username"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="email"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-UpdateProfile" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'<span data-action-function-target="arg" data-action-function-arg-value="username"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="email"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'<span data-action-function-target="arg" data-action-function-arg-value="username"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="email"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-UpdateProfile" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'<span data-action-function-target="arg" data-action-function-arg-value="username"></span>' -args $'<span data-action-function-target="arg" data-action-function-arg-value="email"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast=false <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER <span data-action-function-target="address">ADDRESS</span>
gnokey broadcast -remote "127.0.0.1:26657" call.tx
</span></code></pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'<span data-action-function-target="arg" data-action-function-arg-value="proposalId"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-Vote" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'<span data-action-function-target="arg" data-action-function-arg-value="proposalId"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'<span data-action-function-target="arg" data-action-function-arg-value="proposalId"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -chainid "dev" -remote "127.0.0.1:26657" <span data-action-function-target="address">ADDRESS</span></span><span data-action-function-target="mode" data-action-function-mode-value="secure" data-copy-target="action-function-Vote" class="u-inline">gnokey query -remote "127.0.0.1:26657" auth/accounts/<span data-action-function-target="address">ADDRESS</span>
gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'<span data-action-function-target="arg" data-action-function-arg-value="proposalId"></span>' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "<span data-action-function-target="send-code"></span>" -broadcast=false <span data-action-function-target="address">ADDRESS</span> > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER <span data-action-function-target="address">ADDRESS</span>
gnokey broadcast -remote "127.0.0.1:26657" call.tx
</span></code></pre>
Expand Down
Loading
Loading