diff --git a/docs/builders/deploy-packages.md b/docs/builders/deploy-packages.md index a343a6f6144..89de4aa73f5 100644 --- a/docs/builders/deploy-packages.md +++ b/docs/builders/deploy-packages.md @@ -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: @@ -76,7 +75,6 @@ gnokey maketx addpkg \ -pkgdir "." \ -gas-fee 10000000ugnot \ -gas-wanted 8000000 \ --broadcast \ -chainid staging \ -remote "https://rpc.gno.land:443" \ MyKey diff --git a/docs/builders/example-minisocial-dapp.md b/docs/builders/example-minisocial-dapp.md index 87c54ba7b42..1cae91938e4 100644 --- a/docs/builders/example-minisocial-dapp.md +++ b/docs/builders/example-minisocial-dapp.md @@ -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} diff --git a/docs/builders/local-dev-with-gnodev.md b/docs/builders/local-dev-with-gnodev.md index f38d90fa3ea..43bf3d60254 100644 --- a/docs/builders/local-dev-with-gnodev.md +++ b/docs/builders/local-dev-with-gnodev.md @@ -165,7 +165,6 @@ gnokey maketx call \ -args "42" \ -gas-fee 1000000ugnot \ -gas-wanted 20000000 \ --broadcast \ {MYKEY} ``` diff --git a/docs/resources/gas-fees.md b/docs/resources/gas-fees.md index 10be961d6a1..03969fd66e8 100644 --- a/docs/resources/gas-fees.md +++ b/docs/resources/gas-fees.md @@ -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 diff --git a/docs/users/interact-with-gnokey.md b/docs/users/interact-with-gnokey.md index 6fffa9b7f77..fecc202f38f 100644 --- a/docs/users/interact-with-gnokey.md +++ b/docs/users/interact-with-gnokey.md @@ -170,7 +170,6 @@ gnokey maketx addpkg \ -pkgdir "." \ -gas-fee 10000000ugnot \ -gas-wanted 8000000 \ --broadcast \ -chainid staging \ -remote "https://rpc.gno.land:443" ``` @@ -184,7 +183,6 @@ gnokey maketx addpkg \ -pkgdir "." \ -gas-fee 10000000ugnot \ -gas-wanted 200000 \ --broadcast \ -chainid staging \ -remote "https://rpc.gno.land:443" mykey @@ -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 @@ -284,7 +281,6 @@ gnokey maketx call \ -args "" \ -gas-fee 10000000ugnot \ -gas-wanted 2000000 \ --broadcast \ -chainid staging \ -remote "https://rpc.gno.land:443" \ mykey @@ -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 @@ -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 @@ -583,6 +577,7 @@ gnokey maketx call \ -func "SignUp" \ -gas-fee 1000000ugnot \ -gas-wanted 2000000 \ +-broadcast=false \ mykey > userbook.tx ``` diff --git a/examples/gno.land/r/demo/microblog/README.md b/examples/gno.land/r/demo/microblog/README.md index 824baa079ea..fd3a63e2091 100644 --- a/examples/gno.land/r/demo/microblog/README.md +++ b/examples/gno.land/r/demo/microblog/README.md @@ -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 + --deposit 100000000ugnot --gas-fee 1000000ugnot --gas-wanted 2000000 --chainid dev --remote localhost:26657 ``` (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 + --deposit 100000000ugnot --gas-fee 1000000ugnot --gas-wanted 2000000 --chainid dev --remote localhost:26657 ``` 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 + --gas-fee "1000000ugnot" --gas-wanted "2000000" --chainid dev --remote localhost:26657 ``` \ No newline at end of file diff --git a/gno.land/pkg/gnoweb/components/ui/command.html b/gno.land/pkg/gnoweb/components/ui/command.html index 3d1053b3cdd..bdf3fa04d96 100644 --- a/gno.land/pkg/gnoweb/components/ui/command.html +++ b/gno.land/pkg/gnoweb/components/ui/command.html @@ -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 $''{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "{{.ChainId}}" -remote "{{.Remote}}" ADDRESSgnokey query -remote "{{.Remote}}" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $''{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $''{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "{{.ChainId}}" -remote "{{.Remote}}" ADDRESSgnokey query -remote "{{.Remote}}" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "{{.PkgPath}}" -func "{{.FuncName}}"{{range .ParamNames}} -args $''{{end}} -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "{{.ChainId}}" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "{{.Remote}}" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_create_post_with_fields.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_create_post_with_fields.md.txtar index 13848f300f2..45aa795f08e 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_create_post_with_fields.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_create_post_with_fields.md.txtar @@ -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 $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_empty_no_args.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_empty_no_args.md.txtar index a1135497d7c..16403950ac0 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_empty_no_args.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_empty_no_args.md.txtar @@ -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 "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_transfer_with_fields.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_transfer_with_fields.md.txtar index d36d81d6293..ad676219cd7 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_transfer_with_fields.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_transfer_with_fields.md.txtar @@ -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 $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_update_profile_complex.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_update_profile_complex.md.txtar index 12f95f858f8..cb9904a1195 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_update_profile_complex.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_update_profile_complex.md.txtar @@ -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 $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "UpdateProfile" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_vote_with_select.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_vote_with_select.md.txtar index 7bd847d9152..c55634b3f98 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_vote_with_select.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_vote_with_select.md.txtar @@ -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 $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Vote" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_duplicate_field_names.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_duplicate_field_names.md.txtar index f19da94e92f..37541eb77a2 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_duplicate_field_names.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_duplicate_field_names.md.txtar @@ -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 "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_invalid_field_attribute.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_invalid_field_attribute.md.txtar index aaf1d1b0621..d800a7b3abb 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_invalid_field_attribute.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_invalid_field_attribute.md.txtar @@ -46,8 +46,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 $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_markdown_content.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_markdown_content.md.txtar index 5570225c6c8..507644c315b 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_markdown_content.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_markdown_content.md.txtar @@ -46,8 +46,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 $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Transfer" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_nested_invalid.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_nested_invalid.md.txtar index 255475b99a7..a05e989ba28 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_nested_invalid.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_nested_invalid.md.txtar @@ -51,8 +51,8 @@ # and avoid trusting any computer connected to the internet, # as your private keys could be exposed. -gnokey maketx call -pkgpath "/r/test" -func "Outer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "Outer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "Outer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "Outer" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_self_closing_error.md.txtar b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_self_closing_error.md.txtar index 362a32cf2ff..52a9dca2435 100644 --- a/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_self_closing_error.md.txtar +++ b/gno.land/pkg/gnoweb/markdown/golden/ext_forms/exec_with_self_closing_error.md.txtar @@ -46,8 +46,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 $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS -gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx +gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -chainid "dev" -remote "127.0.0.1:26657" ADDRESSgnokey query -remote "127.0.0.1:26657" auth/accounts/ADDRESS +gnokey maketx call -pkgpath "/r/test" -func "CreatePost" -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast=false ADDRESS > call.tx gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS gnokey broadcast -remote "127.0.0.1:26657" call.tx diff --git a/gno.land/pkg/integration/testdata/addpkg.txtar b/gno.land/pkg/integration/testdata/addpkg.txtar index fce7d90996c..95557b4ac2e 100644 --- a/gno.land/pkg/integration/testdata/addpkg.txtar +++ b/gno.land/pkg/integration/testdata/addpkg.txtar @@ -4,7 +4,7 @@ gnoland start ## deploy realm -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/hello -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/hello -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## check output stdout OK! @@ -15,7 +15,7 @@ stdout 'EVENTS: \[.*\]' stdout 'TX HASH: ' ## call added realm -gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func SayHello -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast test1 +gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func SayHello -gas-fee 1000000ugnot -gas-wanted 2000000 test1 ## check output stdout '\("hello world!" string\)' @@ -27,7 +27,7 @@ stdout 'EVENTS: \[\]' stdout 'TX HASH: ' ## call added realm with 1 parmeter -gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func SayHello1 -args foo -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast test1 +gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func SayHello1 -args foo -gas-fee 1000000ugnot -gas-wanted 2000000 test1 ## check output stdout '\("hello foo!" string\)' @@ -39,7 +39,7 @@ stdout 'EVENTS: \[\]' stdout 'TX HASH: ' ## call added realm with 2 parmeter -gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func SayHello2 -args hello -args bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast test1 +gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func SayHello2 -args hello -args bar -gas-fee 1000000ugnot -gas-wanted 2000000 test1 ## check output stdout '\("hello bar!" string\)' @@ -51,7 +51,7 @@ stdout 'EVENTS: \[\]' stdout 'TX HASH: ' ## get previous realm -gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func PreviousRealm -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast test1 +gnokey maketx call -pkgpath gno.land/r/$test1_user_addr/hello -chainid=tendermint_test -func PreviousRealm -gas-fee 1000000ugnot -gas-wanted 2000000 test1 stdout 'UserRealm{ g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 }' diff --git a/gno.land/pkg/integration/testdata/addpkg_domain.txtar b/gno.land/pkg/integration/testdata/addpkg_domain.txtar index 9a788080fc9..b6ec9d7f8dc 100644 --- a/gno.land/pkg/integration/testdata/addpkg_domain.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_domain.txtar @@ -1,13 +1,13 @@ gnoland start # addpkg with anotherdomain.land -! gnokey maketx addpkg -pkgdir $WORK -pkgpath anotherdomain.land/r/foobar/bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK -pkgpath anotherdomain.land/r/foobar/bar -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout 'TX HASH:' stderr 'invalid package path' stderr 'invalid domain: anotherdomain.land/r/foobar/bar' # addpkg with gno.land -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/foobar/bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/foobar/bar -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout 'OK!' -- gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/addpkg_draft.txtar b/gno.land/pkg/integration/testdata/addpkg_draft.txtar index 26acfb7efe7..4996ad02f51 100644 --- a/gno.land/pkg/integration/testdata/addpkg_draft.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_draft.txtar @@ -2,7 +2,7 @@ gnoland start # add bar package located in $WORK directory as gno.land/r/$test1_user_addr/bar -! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 # check error message stdout 'TX HASH: ' diff --git a/gno.land/pkg/integration/testdata/addpkg_identifier_mismatch.txtar b/gno.land/pkg/integration/testdata/addpkg_identifier_mismatch.txtar index 9f75a4f23ee..8251af5df86 100644 --- a/gno.land/pkg/integration/testdata/addpkg_identifier_mismatch.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_identifier_mismatch.txtar @@ -4,11 +4,11 @@ loadpkg $WORK/hello gnoland start ## deploy realm should succeed -gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/$test1_user_addr/hello -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/$test1_user_addr/hello -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 stdout OK! ## deploy realm should fail, because we import incorrectly. -! gnokey maketx addpkg -pkgdir $WORK/bye -pkgpath gno.land/r/$test1_user_addr/bye -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/bye -pkgpath gno.land/r/$test1_user_addr/bye -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 stderr 'match its expected identifier' -- hello/gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/addpkg_import_draft.txtar b/gno.land/pkg/integration/testdata/addpkg_import_draft.txtar index 5b8990f2a2f..1e2b4578ba5 100644 --- a/gno.land/pkg/integration/testdata/addpkg_import_draft.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_import_draft.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/demo/draftrealm gnoland start # add bar package located in $WORK directory as gno.land/r/$test1_user_addr/bar -! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 # check error message stdout 'TX HASH: ' diff --git a/gno.land/pkg/integration/testdata/addpkg_import_private.txtar b/gno.land/pkg/integration/testdata/addpkg_import_private.txtar index d5af6958083..a7ddd1ece0f 100644 --- a/gno.land/pkg/integration/testdata/addpkg_import_private.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_import_private.txtar @@ -2,11 +2,11 @@ gnoland start # add the private realm -gnokey maketx addpkg -pkgdir $WORK/private -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/private -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! # add bar package located in $WORK directory as gno.land/r/$test1_user_addr/bar -! gnokey maketx addpkg -pkgdir $WORK/public -pkgpath gno.land/r/foobar/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx addpkg -pkgdir $WORK/public -pkgpath gno.land/r/foobar/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr # check error message stdout 'TX HASH: ' diff --git a/gno.land/pkg/integration/testdata/addpkg_invalid.txtar b/gno.land/pkg/integration/testdata/addpkg_invalid.txtar index 7e09842c0fc..45aaddd3eb9 100644 --- a/gno.land/pkg/integration/testdata/addpkg_invalid.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_invalid.txtar @@ -4,7 +4,7 @@ gnoland start # add bar package located in $WORK directory as gno.land/r/foobar/bar -! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/foobar/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/foobar/bar -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 # check error message stdout 'TX HASH: ' diff --git a/gno.land/pkg/integration/testdata/addpkg_namespace.txtar b/gno.land/pkg/integration/testdata/addpkg_namespace.txtar index 42f8f72f465..412f6fbd3c5 100644 --- a/gno.land/pkg/integration/testdata/addpkg_namespace.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_namespace.txtar @@ -9,7 +9,7 @@ patchpkg "g1manfred47kzduec920z88wfr64ylksmdcedlf5" $admin_user_addr # use our c gnoland start # give gui user more tokens -gnokey maketx send -send 1000000000ugnot -to $gui_user_addr -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid tendermint_test test1 +gnokey maketx send -send 1000000000ugnot -to $gui_user_addr -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid tendermint_test test1 # Check if sys/names is disabled # qeval -> sys/names.IsEnabled @@ -18,17 +18,17 @@ stdout 'false bool' # Gui should be able to addpkg on test1 addr # gui addpkg -> gno.land/r//mysuperpkg -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/mysuperpkg -gas-fee 1000000ugnot -gas-wanted 600000 -broadcast -chainid=tendermint_test gui +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/mysuperpkg -gas-fee 1000000ugnot -gas-wanted 600000 -chainid=tendermint_test gui stdout 'OK!' # Gui should be able to addpkg on random name # gui addpkg -> gno.land/r/randomname/mysuperpkg -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/randomname/mysuperpkg -gas-fee 1000000ugnot -gas-wanted 550000 -broadcast -chainid=tendermint_test gui +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/randomname/mysuperpkg -gas-fee 1000000ugnot -gas-wanted 550000 -chainid=tendermint_test gui stdout 'OK!' # Enable `sys/names` # admin call -> sys/names.Enable -gnokey maketx call -pkgpath gno.land/r/sys/names -func Enable -gas-fee 100000ugnot -gas-wanted 1500000 -broadcast -chainid tendermint_test admin +gnokey maketx call -pkgpath gno.land/r/sys/names -func Enable -gas-fee 100000ugnot -gas-wanted 1500000 -chainid tendermint_test admin stdout 'OK!' # Check that `sys/names` has been enabled @@ -39,12 +39,12 @@ stdout 'true bool' # Try to add a pkg an with unregistered user # gui addpkg -> gno.land/r//one -! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/one -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test gui +! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$test1_user_addr/one -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test gui stderr 'is not authorized to deploy packages to namespace' # Try to add a pkg with an unregistered user, on their own address as namespace # gui addpkg -> gno.land/r//one -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$gui_user_addr/one -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test gui +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/$gui_user_addr/one -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test gui stdout 'OK!' ## Test unregistered namespace @@ -52,24 +52,24 @@ stdout 'OK!' # Call addpkg with admin user on gui namespace # admin addpkg -> gno.land/r/guiland/one # This is expected to fail at the transaction simulation stage, which is why we set gas-wanted to 1. -! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/guiland/one -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test admin +! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/guiland/one -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test admin stderr 'is not authorized to deploy packages to namespace' ## Test registered namespace # test gui register namespace # gui call -> gnoland/users/v1.Register -gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 -func Register -send "1000000ugnot" -gas-fee 1000000ugnot -gas-wanted 13000000 -broadcast -chainid=tendermint_test -args 'guigui123' gui +gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 -func Register -send "1000000ugnot" -gas-fee 1000000ugnot -gas-wanted 13000000 -chainid=tendermint_test -args 'guigui123' gui stdout 'OK!' # Test gui publishing on guigui123/one # gui addpkg -> gno.land/r/guigui123/one -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/guigui123/one -gas-fee 1000000ugnot -gas-wanted 3700000 -broadcast -chainid=tendermint_test gui +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/guigui123/one -gas-fee 1000000ugnot -gas-wanted 3700000 -chainid=tendermint_test gui stdout 'OK!' # Test admin publishing on guigui123/two # admin addpkg -> gno.land/r/guigui123/two -! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/guigui123/two -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test admin +! gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/guigui123/two -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test admin stderr 'is not authorized to deploy packages to namespace' -- gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/addpkg_outofgas.txtar b/gno.land/pkg/integration/testdata/addpkg_outofgas.txtar index cf42f59c14d..c004deb3ddf 100644 --- a/gno.land/pkg/integration/testdata/addpkg_outofgas.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_outofgas.txtar @@ -4,12 +4,12 @@ gnoland start # add foo package -gnokey maketx addpkg -pkgdir $WORK/foo -pkgpath gno.land/r/foo -gas-fee 1000000ugnot -gas-wanted 350000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/foo -pkgpath gno.land/r/foo -gas-fee 1000000ugnot -gas-wanted 350000 -chainid=tendermint_test test1 # add bar package - out of gas at store.GetPackage() with gas 60000 -! gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/bar -gas-fee 1000000ugnot -gas-wanted 60000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/bar -gas-fee 1000000ugnot -gas-wanted 60000 -chainid=tendermint_test test1 stderr '--= Error =--' stderr 'Data: out of gas error' @@ -19,7 +19,7 @@ stderr '--= /Error =--' # out of gas at store.store.GetTypeSafe() with gas 63000 -! gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/bar -gas-fee 1000000ugnot -gas-wanted 63000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/bar -gas-fee 1000000ugnot -gas-wanted 63000 -chainid=tendermint_test test1 stderr '--= Error =--' stderr 'Data: out of gas error' diff --git a/gno.land/pkg/integration/testdata/addpkg_private.txtar b/gno.land/pkg/integration/testdata/addpkg_private.txtar index f67d6d754ab..89721a02649 100644 --- a/gno.land/pkg/integration/testdata/addpkg_private.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_private.txtar @@ -7,147 +7,147 @@ loadpkg gno.land/p/nt/avl gnoland start # add the public realm first -gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! # add the private realm -gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func ReadTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func ReadTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout OK! -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveTreeAsAValueOfTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveTreeAsAValueOfTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveIntToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveIntToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveStringToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveStringToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout OK! -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveSliceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveSliceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func ReadSliceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func ReadSliceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout 'private1' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func ReadMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func ReadMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout 100 -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveValueFromPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveValueFromPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveEmptySliceOfPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveEmptySliceOfPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithoutRef -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithoutRef -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout OK! -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithRefToStruct -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithRefToStruct -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithRefToTree -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithRefToTree -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithNewPrivateData -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMixedStructToPublicRealmWithNewPrivateData -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func EditMixedStructWithPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func EditMixedStructWithPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stdout 'Read Mixed Struct' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveInterfaceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveInterfaceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayToPublicRealm2 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayToPublicRealm2 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayToPublicRealm3 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayToPublicRealm3 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapWithPrivateKeyToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapWithPrivateKeyToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapWithPrivateValueToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapWithPrivateValueToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapWithBothPrivateToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapWithBothPrivateToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveEmptyMapWithPrivateTypesToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveEmptyMapWithPrivateTypesToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNestedToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNestedToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNestedToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNestedToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveClosureToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveClosureToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist reference of object from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveClosure2ToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveClosure2ToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist function or method from the private realm gno.land/r/foobar/privaterealm' # these functions are allowed since they do not use private types or references to private realm objects -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfSimpleFunctionsToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfSimpleFunctionsToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist function or method from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfFunctionsWithPrivateDataToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfFunctionsWithPrivateDataToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfFunctionsWithTreePointerToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveArrayOfFunctionsWithTreePointerToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist function or method from the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNilPointerToPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNilPointerToPrivateStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveEmptyStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveEmptyStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SavePrivateMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SavePrivateMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SavePrivateMapToPublicRealm2 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SavePrivateMapToPublicRealm2 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveCustomTypeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveCustomTypeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func TryToExploit1 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func TryToExploit1 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func TryToExploit2 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func TryToExploit2 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func TryToExploit3 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func TryToExploit3 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapOfMapOfMapOfPrivateToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveMapOfMapOfMapOfPrivateToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNilSliceOfSliceOfPrivateToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveNilSliceOfSliceOfPrivateToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr stderr 'cannot persist object of type defined in the private realm gno.land/r/foobar/privaterealm' -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test $test1_user_addr $WORK/msgrun/run.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test $test1_user_addr $WORK/msgrun/run.gno gnokey query vm/qeval --data 'gno.land/r/foobar/privaterealm.GetTreePointer()' stdout 'gno.land/p/nt/avl.Tree' diff --git a/gno.land/pkg/integration/testdata/addpkg_private_basic.txtar b/gno.land/pkg/integration/testdata/addpkg_private_basic.txtar index 5000eb35697..499d3b5efe1 100644 --- a/gno.land/pkg/integration/testdata/addpkg_private_basic.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_private_basic.txtar @@ -4,19 +4,19 @@ gnoland start # add a public realm -gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! # update the public realm -! gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stderr 'package already exists' # add a private realm -gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! # update the same private realm -gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! # ensure A is present @@ -24,7 +24,7 @@ gnokey query vm/qeval --data "gno.land/r/foobar/privaterealm.A" stdout '123' # update the edited private realm over the original -gnokey maketx addpkg -pkgdir $WORK/privaterealmedited -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +gnokey maketx addpkg -pkgdir $WORK/privaterealmedited -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stdout OK! # ensure A is deleted @@ -36,11 +36,11 @@ gnokey query vm/qeval --data "gno.land/r/foobar/privaterealm.B" stdout '456' # overwrite public realm with private realm -! gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stderr 'package already exists' # overwrite private realm with public realm -! gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test $test1_user_addr +! gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test $test1_user_addr stderr 'a private package cannot be overridden by a public package' -- privaterealm/gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/addpkg_public.txtar b/gno.land/pkg/integration/testdata/addpkg_public.txtar index c52617e18d5..d50b6e98ba5 100644 --- a/gno.land/pkg/integration/testdata/addpkg_public.txtar +++ b/gno.land/pkg/integration/testdata/addpkg_public.txtar @@ -7,56 +7,56 @@ loadpkg gno.land/p/nt/avl gnoland start # add the public realm first -gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 stdout OK! # add the normal realm (not marked as private) -gnokey maketx addpkg -pkgdir $WORK/normalrealm -pkgpath gno.land/r/foobar/normalrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/normalrealm -pkgpath gno.land/r/foobar/normalrealm -gas-fee 10000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveTreeToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveIntToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveIntToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveSliceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveSliceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMapToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmWithoutRef -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmWithoutRef -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmWithRefToStruct -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmWithRefToStruct -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmWithRefToTree -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmWithRefToTree -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveMixedStructToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveInterfaceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveInterfaceToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveArrayToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveArrayToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveNestedToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveNestedToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveNestedToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveNestedToPublicRealmAfterSaving -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveClosureToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveClosureToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveValueFromNormalStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveValueFromNormalStructToPublicRealm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! gnokey query vm/qeval --data 'gno.land/r/foobar/normalrealm.GetTreePointer()' diff --git a/gno.land/pkg/integration/testdata/adduser.txtar b/gno.land/pkg/integration/testdata/adduser.txtar index 17b7df3e586..f9f1d51b68a 100644 --- a/gno.land/pkg/integration/testdata/adduser.txtar +++ b/gno.land/pkg/integration/testdata/adduser.txtar @@ -4,10 +4,10 @@ adduser test8 gnoland start ## add bar.gno package located in $WORK directory as gno.land/r/foobar/bar -gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/foobar/bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test8 +gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/foobar/bar -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test8 ## execute Render -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test8 $WORK/script/script.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test8 $WORK/script/script.gno ## compare render stdout 'main: --- hello from foo ---' diff --git a/gno.land/pkg/integration/testdata/alloc_array.txtar b/gno.land/pkg/integration/testdata/alloc_array.txtar index 2493b7dc3c2..4ac4462d1cf 100644 --- a/gno.land/pkg/integration/testdata/alloc_array.txtar +++ b/gno.land/pkg/integration/testdata/alloc_array.txtar @@ -2,7 +2,7 @@ loadpkg gno.land/r/alloc $WORK gnoland start -! gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stderr 'Data: allocation limit exceeded' -- gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/alloc_byte_slice.txtar b/gno.land/pkg/integration/testdata/alloc_byte_slice.txtar index d44c3bd34eb..086e3885ec0 100644 --- a/gno.land/pkg/integration/testdata/alloc_byte_slice.txtar +++ b/gno.land/pkg/integration/testdata/alloc_byte_slice.txtar @@ -2,7 +2,7 @@ loadpkg gno.land/r/alloc $WORK gnoland start -! gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stderr 'Data: allocation limit exceeded' -- alloc.gno -- diff --git a/gno.land/pkg/integration/testdata/alloc_call.txtar b/gno.land/pkg/integration/testdata/alloc_call.txtar index d0ea2430926..520eec5d530 100644 --- a/gno.land/pkg/integration/testdata/alloc_call.txtar +++ b/gno.land/pkg/integration/testdata/alloc_call.txtar @@ -6,7 +6,7 @@ loadpkg gno.land/r/alloc $WORK/alloc gnoland start # this works fine, mostly for observing allocations and garbage collection. -gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 50000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 50000000 -chainid=tendermint_test test1 stdout 'OK!' -- alloc/alloc.gno -- diff --git a/gno.land/pkg/integration/testdata/alloc_run.txtar b/gno.land/pkg/integration/testdata/alloc_run.txtar index 294cc6d7a67..f58ead560b7 100644 --- a/gno.land/pkg/integration/testdata/alloc_run.txtar +++ b/gno.land/pkg/integration/testdata/alloc_run.txtar @@ -1,7 +1,7 @@ # start a new node gnoland start -! gnokey maketx run -max-deposit 2000000000ugnot -gas-fee 10000000ugnot -gas-wanted 2900000000 -broadcast -chainid=tendermint_test test1 $WORK/script/script.gno +! gnokey maketx run -max-deposit 2000000000ugnot -gas-fee 10000000ugnot -gas-wanted 2900000000 -chainid=tendermint_test test1 $WORK/script/script.gno stderr 'allocation limit exceeded' -- script/script.gno -- diff --git a/gno.land/pkg/integration/testdata/alloc_slice.txtar b/gno.land/pkg/integration/testdata/alloc_slice.txtar index c4093906e01..1f5f8ac9f0e 100644 --- a/gno.land/pkg/integration/testdata/alloc_slice.txtar +++ b/gno.land/pkg/integration/testdata/alloc_slice.txtar @@ -2,7 +2,7 @@ loadpkg gno.land/r/alloc $WORK gnoland start -! gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/alloc -func DoAlloc -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stderr 'Data: allocation limit exceeded' -- alloc.gno -- diff --git a/gno.land/pkg/integration/testdata/append.txtar b/gno.land/pkg/integration/testdata/append.txtar index 6cbb1b4866e..9404cc4c80a 100644 --- a/gno.land/pkg/integration/testdata/append.txtar +++ b/gno.land/pkg/integration/testdata/append.txtar @@ -5,18 +5,18 @@ loadpkg gno.land/r/append $WORK gnoland start # Call Append 1 -gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 400000 -args '1' -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 400000 -args '1' -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/append -func AppendNil -gas-fee 1000000ugnot -gas-wanted 400000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func AppendNil -gas-fee 1000000ugnot -gas-wanted 400000 -chainid=tendermint_test test1 stdout OK! # Call Append 2 -gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 400000 -args '2' -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 400000 -args '2' -chainid=tendermint_test test1 stdout OK! # Call Append 3 -gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 500000 -args '3' -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 500000 -args '3' -chainid=tendermint_test test1 stdout OK! # Call render @@ -24,34 +24,34 @@ gnokey query vm/qrender --data 'gno.land/r/append:' stdout '1-2-3-' # Call Pop -gnokey maketx call -pkgpath gno.land/r/append -func Pop -gas-fee 1000000ugnot -gas-wanted 500000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func Pop -gas-fee 1000000ugnot -gas-wanted 500000 -chainid=tendermint_test test1 stdout OK! # Call render gnokey query vm/qrender --data 'gno.land/r/append:' stdout '2-3-' # Call Append 42 -gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 400000 -args '42' -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func Append -gas-fee 1000000ugnot -gas-wanted 400000 -args '42' -chainid=tendermint_test test1 stdout OK! # Call render gnokey query vm/qrender --data 'gno.land/r/append:' stdout '2-3-42-' -gnokey maketx call -pkgpath gno.land/r/append -func CopyAppend -gas-fee 1000000ugnot -gas-wanted 450000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func CopyAppend -gas-fee 1000000ugnot -gas-wanted 450000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/append -func PopB -gas-fee 1000000ugnot -gas-wanted 450000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func PopB -gas-fee 1000000ugnot -gas-wanted 450000 -chainid=tendermint_test test1 stdout OK! # Call render gnokey query vm/qrender --data 'gno.land/r/append:' stdout '2-3-42-' -gnokey maketx call -pkgpath gno.land/r/append -func AppendMoreAndC -gas-fee 1000000ugnot -gas-wanted 450000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func AppendMoreAndC -gas-fee 1000000ugnot -gas-wanted 450000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/append -func ReassignC -gas-fee 1000000ugnot -gas-wanted 450000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/append -func ReassignC -gas-fee 1000000ugnot -gas-wanted 450000 -chainid=tendermint_test test1 stdout OK! gnokey query vm/qrender --data 'gno.land/r/append:' diff --git a/gno.land/pkg/integration/testdata/append_string.txtar b/gno.land/pkg/integration/testdata/append_string.txtar index ddacddccbf5..4488e1ae65a 100644 --- a/gno.land/pkg/integration/testdata/append_string.txtar +++ b/gno.land/pkg/integration/testdata/append_string.txtar @@ -2,12 +2,12 @@ loadpkg gno.land/r/append $WORK gnoland start -! gnokey maketx call -pkgpath gno.land/r/append -func Doappend -gas-fee 1000000ugnot -gas-wanted 2900000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/append -func Doappend -gas-fee 1000000ugnot -gas-wanted 2900000000 -chainid=tendermint_test test1 stdout 'TX HASH:' stderr 'Data: allocation limit exceeded' -! gnokey maketx call -pkgpath gno.land/r/append -func Doappend2 -gas-fee 1000000ugnot -gas-wanted 2900000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/append -func Doappend2 -gas-fee 1000000ugnot -gas-wanted 2900000000 -chainid=tendermint_test test1 stdout 'TX HASH:' stderr 'Data: allocation limit exceeded' diff --git a/gno.land/pkg/integration/testdata/assertorigincall.txtar b/gno.land/pkg/integration/testdata/assertorigincall.txtar index 550f1a6079c..c9511f8aa5c 100644 --- a/gno.land/pkg/integration/testdata/assertorigincall.txtar +++ b/gno.land/pkg/integration/testdata/assertorigincall.txtar @@ -36,85 +36,85 @@ gnoland start # Test cases ## 1. MsgCall -> myrlm.A: PANIC -! gnokey maketx call -pkgpath gno.land/r/myrlm -func A -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrlm -func A -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 stderr 'invalid non-origin call' ## 2. MsgCall -> myrlm.B: PASS -gnokey maketx call -pkgpath gno.land/r/myrlm -func B -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrlm -func B -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 stdout 'OK!' ## 3. MsgCall -> myrlm.C: PASS -gnokey maketx call -pkgpath gno.land/r/myrlm -func C -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrlm -func C -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 stdout 'OK!' ## 4. MsgCall -> r/foo.A -> myrlm.A: PANIC -! gnokey maketx call -pkgpath gno.land/r/foo -func A -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/foo -func A -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 stderr 'invalid non-origin call' ## 5. MsgCall -> r/foo.B -> myrlm.B: PASS -gnokey maketx call -pkgpath gno.land/r/foo -func B -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func B -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 stdout 'OK!' ## 6. MsgCall -> r/foo.C -> myrlm.C: PANIC -! gnokey maketx call -pkgpath gno.land/r/foo -func C -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/foo -func C -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 stderr 'invalid non-origin call' ## remove due to update to maketx call can only call realm (case 7,8,9) ## 7. MsgCall -> p/demo/bar.A: PANIC -## ! gnokey maketx call -pkgpath gno.land/p/demo/bar -func A -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +## ! gnokey maketx call -pkgpath gno.land/p/demo/bar -func A -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 ## stderr 'invalid non-origin call' ## 8. MsgCall -> p/demo/bar.B: PASS -## gnokey maketx call -pkgpath gno.land/p/demo/bar -func B -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +## gnokey maketx call -pkgpath gno.land/p/demo/bar -func B -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 ## stdout 'OK!' ## 9. MsgCall -> p/demo/bar.C: PANIC -## ! gnokey maketx call -pkgpath gno.land/p/demo/bar -func C -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +## ! gnokey maketx call -pkgpath gno.land/p/demo/bar -func C -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 ## stderr 'invalid non-origin call' ## 10. MsgRun -> run.main -> myrlm.A: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/myrlm-a.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 $WORK/run/myrlm-a.gno stderr 'invalid non-origin call' ## 11. MsgRun -> run.main -> myrlm.B: PASS -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/myrlm-b.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 $WORK/run/myrlm-b.gno stdout 'OK!' ## 12. MsgRun -> run.main -> myrlm.C: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/myrlm-c.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 $WORK/run/myrlm-c.gno stderr 'invalid non-origin call' ## 13. MsgRun -> run.main -> foo.A: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 15_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/foo-a.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 15_000_000 -chainid tendermint_test test1 $WORK/run/foo-a.gno stderr 'invalid non-origin call' ## 14. MsgRun -> run.main -> foo.B: PASS -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/foo-b.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 $WORK/run/foo-b.gno stdout 'OK!' ## 15. MsgRun -> run.main -> foo.C: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 15_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/foo-c.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 15_000_000 -chainid tendermint_test test1 $WORK/run/foo-c.gno stderr 'invalid non-origin call' ## 16. MsgRun -> run.main -> bar.A: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 15_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/bar-a.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 15_000_000 -chainid tendermint_test test1 $WORK/run/bar-a.gno stderr 'invalid non-origin call' ## 17. MsgRun -> run.main -> bar.B: PASS -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid tendermint_test test1 $WORK/run/bar-b.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid tendermint_test test1 $WORK/run/bar-b.gno stdout 'OK!' ## 18. MsgRun -> run.main -> bar.C: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/bar-c.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 $WORK/run/bar-c.gno stderr 'invalid non-origin call' ## remove testcase 19 due to maketx call forced to call a realm ## 19. MsgCall -> std.AssertOriginCall: pass -## gnokey maketx call -pkgpath std -func AssertOriginCall -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 +## gnokey maketx call -pkgpath std -func AssertOriginCall -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 ## stdout 'OK!' ## 20. MsgRun -> std.AssertOriginCall: PANIC -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -broadcast -chainid tendermint_test test1 $WORK/run/baz.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100_000_000 -chainid tendermint_test test1 $WORK/run/baz.gno stderr 'invalid non-origin call' diff --git a/gno.land/pkg/integration/testdata/atomicswap.txtar b/gno.land/pkg/integration/testdata/atomicswap.txtar index 4659a13ca63..3f8dfc79e5c 100644 --- a/gno.land/pkg/integration/testdata/atomicswap.txtar +++ b/gno.land/pkg/integration/testdata/atomicswap.txtar @@ -16,7 +16,7 @@ stdout 'coins.*:.*1010000000ugnot' # echo -n "secret" | sha256sum # This will produce a hashlock string like "2bb808d537b1da3e38bd30361aa85586dbbeacdd7126fef6a25ef97b5f27a25b". # Replace the hashlock argument in the command below with the generated hash. -gnokey maketx call -pkgpath gno.land/r/demo/defi/atomicswap -func NewCoinSwap -gas-fee 1000000ugnot -send 12345ugnot -gas-wanted 10000000 -args $test3_user_addr -args '2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b' -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/demo/defi/atomicswap -func NewCoinSwap -gas-fee 1000000ugnot -send 12345ugnot -gas-wanted 10000000 -args $test3_user_addr -args '2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b' -chainid=tendermint_test test2 stdout '(1 int)' stdout ".*$test2_user_addr.*$test3_user_addr.*12345ugnot.*" stdout 'OK!' @@ -29,7 +29,7 @@ stdout 'coins.*:.*1008534555ugnot' gnokey query auth/accounts/$test3_user_addr stdout 'coins.*:.*1010000000ugnot' -gnokey maketx call -pkgpath gno.land/r/demo/defi/atomicswap -func Claim -gas-fee 1000000ugnot -gas-wanted 10000000 -args '1' -args 'secret' -broadcast -chainid=tendermint_test test3 +gnokey maketx call -pkgpath gno.land/r/demo/defi/atomicswap -func Claim -gas-fee 1000000ugnot -gas-wanted 10000000 -args '1' -args 'secret' -chainid=tendermint_test test3 stdout 'OK!' stdout 'EVENTS: \[.*"fee_delta":\{"denom":"ugnot","amount":500\}.*\]' diff --git a/gno.land/pkg/integration/testdata/cpu-cycle-overrun1.txtar b/gno.land/pkg/integration/testdata/cpu-cycle-overrun1.txtar index b4a5d038192..7e9a79e26ca 100644 --- a/gno.land/pkg/integration/testdata/cpu-cycle-overrun1.txtar +++ b/gno.land/pkg/integration/testdata/cpu-cycle-overrun1.txtar @@ -3,20 +3,20 @@ loadpkg gno.land/p/nt/avl # start a new node gnoland start -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/cpu_cycle_overrun1 -gas-fee 1000000ugnot -gas-wanted 1000000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/cpu_cycle_overrun1 -gas-fee 1000000ugnot -gas-wanted 1000000000 -chainid=tendermint_test test1 stdout OK! # Call AddData 3 times -gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -chainid=tendermint_test test1 stdout OK! # Call AddData one more time. The call to Render used to hang. If you commented this out, then the call to Render would return quickly. # This bug was fixed by https://github.com/gnolang/gno/pull/4060 -gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/cpu_cycle_overrun1 -func AddData -gas-fee 1000000ugnot -gas-wanted 1000000000 -chainid=tendermint_test test1 stdout OK! # Call Render diff --git a/gno.land/pkg/integration/testdata/err_metadata.txtar b/gno.land/pkg/integration/testdata/err_metadata.txtar index e17fd4e18ba..e18ac1169cd 100644 --- a/gno.land/pkg/integration/testdata/err_metadata.txtar +++ b/gno.land/pkg/integration/testdata/err_metadata.txtar @@ -3,7 +3,7 @@ # start a new node gnoland start -! gnokey maketx addpkg -pkgdir $WORK/invalid -pkgpath gno.land/r/invalid -gas-fee 1000000ugnot -gas-wanted 60000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/invalid -pkgpath gno.land/r/invalid -gas-fee 1000000ugnot -gas-wanted 60000 -chainid=tendermint_test test1 stdout 'TX HASH:' stdout 'INFO:.*vm.version=develop' diff --git a/gno.land/pkg/integration/testdata/event_callback.txtar b/gno.land/pkg/integration/testdata/event_callback.txtar index 6eb3861efd3..03b98a5d741 100644 --- a/gno.land/pkg/integration/testdata/event_callback.txtar +++ b/gno.land/pkg/integration/testdata/event_callback.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/demo/cbee $WORK # start a new node gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/cbee -func Foo -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/cbee -func Foo -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: 2000000' stdout 'GAS USED: [0-9]+' diff --git a/gno.land/pkg/integration/testdata/event_defer_callback_loop.txtar b/gno.land/pkg/integration/testdata/event_defer_callback_loop.txtar index 8a674517523..a0a41200504 100644 --- a/gno.land/pkg/integration/testdata/event_defer_callback_loop.txtar +++ b/gno.land/pkg/integration/testdata/event_defer_callback_loop.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/demo/edcl $WORK # start a new node gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/edcl -func Main -gas-fee 1000000ugnot -gas-wanted 3000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/edcl -func Main -gas-fee 1000000ugnot -gas-wanted 3000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: 3000000' stdout 'GAS USED: [0-9]+' diff --git a/gno.land/pkg/integration/testdata/event_for_statement.txtar b/gno.land/pkg/integration/testdata/event_for_statement.txtar index 701e1af8354..92d23a0649d 100644 --- a/gno.land/pkg/integration/testdata/event_for_statement.txtar +++ b/gno.land/pkg/integration/testdata/event_for_statement.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/demo/foree $WORK # start a new node gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/foree -func Foo -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/foree -func Foo -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: 2000000' stdout 'GAS USED: [0-9]+' @@ -12,7 +12,7 @@ stdout 'HEIGHT: [0-9]+' stdout 'EVENTS: \[{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"},{\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\],\"pkg_path\":\"gno.land/r/demo/foree\"}\]' stdout 'TX HASH: ' -gnokey maketx call -pkgpath gno.land/r/demo/foree -func Bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/foree -func Bar -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: 2000000' stdout 'GAS USED: [0-9]+' diff --git a/gno.land/pkg/integration/testdata/event_normal.txtar b/gno.land/pkg/integration/testdata/event_normal.txtar index b8269a4ee23..5679232afe3 100644 --- a/gno.land/pkg/integration/testdata/event_normal.txtar +++ b/gno.land/pkg/integration/testdata/event_normal.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/demo/ee $WORK # start a new node gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/ee -func Foo -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/ee -func Foo -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: 2000000' stdout 'GAS USED: \d+' @@ -12,7 +12,7 @@ stdout 'HEIGHT: \d+' stdout 'EVENTS: \[{\"type\":\"foo\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"},{\"key\":\"key3\",\"value\":\"value3\"}\],\"pkg_path\":\"gno.land/r/demo/ee\"},{\"type\":\"bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\],\"pkg_path\":\"gno.land/r/demo/ee\"}\]' stdout 'TX HASH: ' -gnokey maketx call -pkgpath gno.land/r/demo/ee -func Bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/ee -func Bar -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: 2000000' stdout 'GAS USED: \d+' diff --git a/gno.land/pkg/integration/testdata/gc.txtar b/gno.land/pkg/integration/testdata/gc.txtar index 2af7d95a789..c9dddf9bff3 100644 --- a/gno.land/pkg/integration/testdata/gc.txtar +++ b/gno.land/pkg/integration/testdata/gc.txtar @@ -6,7 +6,7 @@ loadpkg gno.land/r/gc $WORK/r/gc gnoland start -no-parallel -gnokey maketx call -pkgpath gno.land/r/gc -func Alloc -gas-fee 10000000ugnot -gas-wanted 300000000 -simulate skip -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gc -func Alloc -gas-fee 10000000ugnot -gas-wanted 300000000 -simulate skip -chainid tendermint_test test1 stdout 'GAS USED: 262693098' -- r/gc/gc.gno -- diff --git a/gno.land/pkg/integration/testdata/ghverify.txtar b/gno.land/pkg/integration/testdata/ghverify.txtar index 2e9c6eef3d6..6f01363880d 100644 --- a/gno.land/pkg/integration/testdata/ghverify.txtar +++ b/gno.land/pkg/integration/testdata/ghverify.txtar @@ -4,35 +4,35 @@ loadpkg gno.land/r/gnoland/ghverify gnoland start # make a verification request -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func RequestVerification -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 6500000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func RequestVerification -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 6500000 -chainid=tendermint_test test1 stdout OK! # request tasks to complete (this is done by the agent) -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'request' -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'request' -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout '\("\[\{\\"id\\":\\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\\",\\"type\\":\\"0\\",\\"value_type\\":\\"string\\",\\"tasks\\":\[\{\\"gno_address\\":\\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\\",\\"github_handle\\":\\"deelawn\\"\}\]\}\]" string\)' # a verification request was made but there should be no verified address -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 800000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 800000 -chainid=tendermint_test test1 stdout "" # a verification request was made but there should be no verified handle -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 800000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 800000 -chainid=tendermint_test test1 stdout "" # fail on ingestion with a bad task ID -! gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'ingest,a' -gas-fee 1000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'ingest,a' -gas-fee 1000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 stderr 'invalid ingest id: a' # the agent publishes their response to the task and the verification is complete -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'ingest,g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5,OK' -gas-fee 1000000ugnot -gas-wanted 8000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'ingest,g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5,OK' -gas-fee 1000000ugnot -gas-wanted 8000000 -chainid=tendermint_test test1 stdout OK! # get verified github handle by gno address -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 809000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 809000 -chainid=tendermint_test test1 stdout "deelawn" # get verified gno address by github handle -gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 809000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 809000 -chainid=tendermint_test test1 stdout "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5" gnokey query vm/qrender --data 'gno.land/r/gnoland/ghverify:' diff --git a/gno.land/pkg/integration/testdata/gnokey_gasfee.txtar b/gno.land/pkg/integration/testdata/gnokey_gasfee.txtar index 3bc4edb9df4..125f3c18e47 100644 --- a/gno.land/pkg/integration/testdata/gnokey_gasfee.txtar +++ b/gno.land/pkg/integration/testdata/gnokey_gasfee.txtar @@ -10,7 +10,7 @@ stdout '"sequence": "0"' stdout '"coins": "10000000000000ugnot"' # Tx add package -simulate only, estimate gas used and gas fee -gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate only test1 +gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate only test1 stdout 'GAS USED: 269942' stdout 'INFO: estimated gas usage: 269942, gas fee: 283ugnot, current gas price: 1ugnot/1000gas' @@ -20,7 +20,7 @@ stdout '"sequence": "0"' stdout '"coins": "10000000000000ugnot"' # Using the simulated gas and estimated gas fee should ensure the transaction executes successfully. -gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 269914 -gas-fee 282ugnot -broadcast -chainid tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 269914 -gas-fee 282ugnot -chainid tendermint_test test1 stdout 'OK' stdout 'EVENTS: \[.*"fee_delta":\{"denom":"ugnot","amount":207700\}.*\]' @@ -30,7 +30,7 @@ stdout '"sequence": "1"' stdout '"coins": "9999999792018ugnot"' # Tx Call -simulate only, estimate gas used and gas fee -gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate only test1 +gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate only test1 stdout 'GAS USED: 113965' stdout 'INFO: estimated gas usage: 113965, gas fee: 119ugnot, current gas price: 1ugnot/1000gas' @@ -40,7 +40,7 @@ stdout '"sequence": "1"' stdout '"coins": "9999999792018ugnot"' # Using the simulated gas and estimated gas fee should ensure the transaction executes successfully. -gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 113942 -gas-fee 118ugnot -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 113942 -gas-fee 118ugnot -chainid tendermint_test test1 stdout 'OK' ## fee is charged and sequence number increased diff --git a/gno.land/pkg/integration/testdata/gnokey_simulate.txtar b/gno.land/pkg/integration/testdata/gnokey_simulate.txtar index a01a0992b51..c49e651950b 100644 --- a/gno.land/pkg/integration/testdata/gnokey_simulate.txtar +++ b/gno.land/pkg/integration/testdata/gnokey_simulate.txtar @@ -12,34 +12,34 @@ stdout '"sequence": "1"' # attempt adding the "test" package. # the package has a syntax error; simulation should catch this ahead of time and prevent the tx. # -simulate test -! gnokey maketx addpkg -pkgdir $WORK/test -pkgpath gno.land/r/test -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test -simulate test test1 +! gnokey maketx addpkg -pkgdir $WORK/test -pkgpath gno.land/r/test -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test -simulate test test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "1"' # -simulate only -! gnokey maketx addpkg -pkgdir $WORK/test -pkgpath gno.land/r/test -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test -simulate only test1 +! gnokey maketx addpkg -pkgdir $WORK/test -pkgpath gno.land/r/test -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test -simulate only test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "1"' # -simulate skip -! gnokey maketx addpkg -pkgdir $WORK/test -pkgpath gno.land/r/test -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test -simulate skip test1 +! gnokey maketx addpkg -pkgdir $WORK/test -pkgpath gno.land/r/test -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test -simulate skip test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "2"' # attempt calling hello.SetName correctly. # -simulate test and skip should do it successfully, -simulate only should not. # -simulate test -gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args John -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate test test1 +gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args John -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate test test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "3"' gnokey query vm/qeval --data "gno.land/r/hello.Hello()" stdout 'Hello, John!' # -simulate only -gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args Paul -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate only test1 +gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args Paul -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate only test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "3"' gnokey query vm/qeval --data "gno.land/r/hello.Hello()" stdout 'Hello, John!' # -simulate skip -gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args George -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate skip test1 +gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args George -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate skip test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "4"' gnokey query vm/qeval --data "gno.land/r/hello.Hello()" @@ -49,26 +49,26 @@ stdout 'Hello, George!' # all calls should fail, however -test skip should increase the account sequence. # none should change the name (ie. panic rollbacks). # -simulate test -! gnokey maketx call -pkgpath gno.land/r/hello -func Grumpy -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate test test1 +! gnokey maketx call -pkgpath gno.land/r/hello -func Grumpy -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate test test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "4"' gnokey query vm/qeval --data "gno.land/r/hello.Hello()" stdout 'Hello, George!' # -simulate only -! gnokey maketx call -pkgpath gno.land/r/hello -func Grumpy -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate only test1 +! gnokey maketx call -pkgpath gno.land/r/hello -func Grumpy -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate only test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "4"' gnokey query vm/qeval --data "gno.land/r/hello.Hello()" stdout 'Hello, George!' # -simulate skip -! gnokey maketx call -pkgpath gno.land/r/hello -func Grumpy -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate skip test1 +! gnokey maketx call -pkgpath gno.land/r/hello -func Grumpy -gas-wanted 2000000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate skip test1 gnokey query auth/accounts/$test1_user_addr stdout '"sequence": "5"' gnokey query vm/qeval --data "gno.land/r/hello.Hello()" stdout 'Hello, George!' # simulate should panic if gas-wanted is beyond the max block gas. -! gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args Paul -gas-wanted 100_000_000_000_000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate only test1 +! gnokey maketx call -pkgpath gno.land/r/hello -func SetName -args Paul -gas-wanted 100_000_000_000_000 -gas-fee 1000000ugnot -chainid tendermint_test -simulate only test1 stderr 'invalid gas wanted' -- test/test.gno -- diff --git a/gno.land/pkg/integration/testdata/gnoweb_airgapped.txtar b/gno.land/pkg/integration/testdata/gnoweb_airgapped.txtar index bbf3eb0707f..dd7187218ff 100644 --- a/gno.land/pkg/integration/testdata/gnoweb_airgapped.txtar +++ b/gno.land/pkg/integration/testdata/gnoweb_airgapped.txtar @@ -26,7 +26,7 @@ stdout '}' ! stderr '.+' # empty # Create transaction -gnokey maketx call -pkgpath "gno.land/r/realm" -func "SetName" -gas-fee 1000000ugnot -gas-wanted 2000000 -send "" -args "foo" user1 +gnokey maketx call -pkgpath "gno.land/r/realm" -func "SetName" -gas-fee 1000000ugnot -gas-wanted 2000000 -send "" -broadcast=false -args "foo" user1 cp stdout call.tx # Sign diff --git a/gno.land/pkg/integration/testdata/govdao_invite_t3_member.txtar b/gno.land/pkg/integration/testdata/govdao_invite_t3_member.txtar index a0e3a921b17..84dfa81fdbc 100644 --- a/gno.land/pkg/integration/testdata/govdao_invite_t3_member.txtar +++ b/gno.land/pkg/integration/testdata/govdao_invite_t3_member.txtar @@ -21,31 +21,31 @@ gnoland start gnokey query vm/qrender --data 'gno.land/r/gov/dao:' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "newmem123" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test newmember +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "newmem123" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test newmember stdout 'OK!' # Call from a non-member -! gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0 -broadcast -chainid=tendermint_test newmember2 +! gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0 -chainid=tendermint_test newmember2 stderr 'caller is not a member' # Call from with a proxy realm -! gnokey maketx call -pkgpath gno.land/r/demo/proxy -func CreateMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0 -broadcast -chainid=tendermint_test member +! gnokey maketx call -pkgpath gno.land/r/demo/proxy -func CreateMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0 -chainid=tendermint_test member stderr 'this function must be called by an EOA through msg call or msg run' # Add a T3 member with invitation points -gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0 -chainid=tendermint_test member stdout OK! # No invitation point left for the member -! gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args ${newmember2_user_addr} -broadcast -chainid=tendermint_test member +! gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args ${newmember2_user_addr} -chainid=tendermint_test member stderr 'not enough invitation points' # Call from a T3 member -! gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args ${newmember2_user_addr} -broadcast -chainid=tendermint_test newmember +! gnokey maketx call -pkgpath gno.land/r/gov/dao/v3/impl -func AddMember -gas-fee 1000000ugnot -gas-wanted 10000000 -args ${newmember2_user_addr} -chainid=tendermint_test newmember stderr 'caller is not on T1 or T2. To add members, propose them through proposals' # check output diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_add_member.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_add_member.txtar index 875a816a7b5..dad37ddcd64 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_add_member.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_add_member.txtar @@ -19,18 +19,18 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:' stdout 'data: # GovDAO' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # add the proposal (temporarily comment out to debug) # First run a debug script to understand the addresses -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/debug/check_addresses.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/debug/check_addresses.gno stdout '=== Debug info ===' stdout 'Origin caller: g1c0j899h88nwyvnzvh5jagpq6fkkyuj76nld6t0' stdout 'Current realm: CodeRealm{ g1c0j899h88nwyvnzvh5jagpq6fkkyuj76nld6t0, gno.land/e/g1c0j899h88nwyvnzvh5jagpq6fkkyuj76nld6t0/run }' # Create a proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check the proposal was created @@ -38,11 +38,11 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:0' stdout 'This is a proposal to add `g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0` to \*\*T2\*\*.' # vote on the proposal -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stdout OK! # check output diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_change_law.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_change_law.txtar index ad6b5eda519..48c562d4045 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_change_law.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_change_law.txtar @@ -15,11 +15,11 @@ gnoland start gnokey query vm/qrender --data 'gno.land/r/gov/dao:' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check the proposal was created @@ -27,11 +27,11 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:0' stdout '## Prop #0 - Change Law Proposal' # vote on the proposal -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stdout OK! -- proposer/create_proposal.gno -- diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_new_param.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_new_param.txtar index 3643a3e3fde..741d01be9ba 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_new_param.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_new_param.txtar @@ -18,11 +18,11 @@ gnoland start gnokey query vm/qrender --data 'gno.land/r/gov/dao:' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check the proposal was created @@ -30,11 +30,11 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:0' stdout 'This proposal wants to add a new key to sys/params: vm:bar:baz' # vote on the proposal -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stdout OK! # check output: diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_new_post.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_new_post.txtar index 29b071ad32d..cdfa3b48c23 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_new_post.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_new_post.txtar @@ -17,11 +17,11 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:' stdout 'data: # GovDAO' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check the proposal was created @@ -29,11 +29,11 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:0' stdout 'This propoposal is looking to add a new post to gnoland blog' # vote on the proposal -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 20000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 20000000 -args 0 -chainid=tendermint_test member stdout OK! # check output diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_only_members_proposals.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_only_members_proposals.txtar index 2c78f59f1b0..dac8e2d6020 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_only_members_proposals.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_only_members_proposals.txtar @@ -16,7 +16,7 @@ gnoland start gnokey query vm/qrender --data 'gno.land/r/gov/dao:' # try to add the proposal using a non-member -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test newmember $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test newmember $WORK/proposer/create_proposal.gno stdout 'only members can create new proposals' -- proposer/create_proposal.gno -- diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_promote_member.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_promote_member.txtar index 779257b417e..36367231ac0 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_promote_member.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_promote_member.txtar @@ -19,15 +19,15 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:' stdout 'data: # GovDAO' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test member stdout 'OK!' # Register withdrawmember with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "withdraw456" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test withdrawmember +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "withdraw456" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test withdrawmember stdout 'OK!' # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_invalid_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_invalid_proposal.gno stdout OK! # call gov/dao render to check the proposal was created @@ -36,19 +36,19 @@ stdout 'Prop #0 - Member Promotion Proposal' stdout 'This is a proposal to promote g16jv3rpz7mkt0gqulxas56se2js7v5vmc6n6e0r from \*\*T3\*\* to \*\*T2\*\*.' # vote on the proposal 1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # vote on the proposal 2 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test withdrawmember +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test withdrawmember stdout OK! # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call proposal execution -! gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +! gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stderr 'member not found, so cannot be promoted' # call gov/dao render to check everything the proposal was created @@ -57,15 +57,15 @@ stdout 'Prop #1 - Member Promotion Proposal' stdout 'This is a proposal to promote \[@withdraw456\]\(\/u\/withdraw456\) from \*\*T2\*\* to \*\*T3\*\*.' # vote on the proposal 1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -args YES -chainid=tendermint_test member stdout OK! # vote on the proposal 2 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -args YES -broadcast -chainid=tendermint_test withdrawmember +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -args YES -chainid=tendermint_test withdrawmember stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -chainid=tendermint_test member stdout OK! # check output diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_treasury_payment.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_treasury_payment.txtar index 68e0be578a9..2f38b34870b 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_treasury_payment.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_treasury_payment.txtar @@ -19,7 +19,7 @@ gnoland start gnokey query vm/qrender --data 'gno.land/r/gov/dao:' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # 1/3 verify receiver and treasury balances @@ -29,7 +29,7 @@ gnokey query bank/balances/g1axf7xdzvhcapsvr0yzadr32wgsgs0064xyysrm stdout 'data: ""' # member send 42 ugnot to treasury realm -gnokey maketx send -send 42ugnot -to g1axf7xdzvhcapsvr0yzadr32wgsgs0064xyysrm -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid tendermint_test member +gnokey maketx send -send 42ugnot -to g1axf7xdzvhcapsvr0yzadr32wgsgs0064xyysrm -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid tendermint_test member # 2/3 verify receiver and treasury balances gnokey query bank/balances/${receiver_user_addr} @@ -38,7 +38,7 @@ gnokey query bank/balances/g1axf7xdzvhcapsvr0yzadr32wgsgs0064xyysrm stdout 'data: "42ugnot"' # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check the proposal was created @@ -47,11 +47,11 @@ stdout 'Reason: integration test payment' stdout 'Payment: 42ugnot to g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0' # vote on the proposal -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stdout OK! # check output diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_treasury_tokens_update.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_treasury_tokens_update.txtar index 26feb814570..88df2236483 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_treasury_tokens_update.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_treasury_tokens_update.txtar @@ -19,18 +19,18 @@ gnoland start gnokey query vm/qrender --data 'gno.land/r/gov/dao:' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # register the tokens and fund the treasury address -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/tokens/register_tokens.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/tokens/register_tokens.gno # verify no balances are found even though the treasury address got tokens gnokey query vm/qrender --data 'gno.land/r/gov/dao/v3/treasury:GRC20' stdout 'No balances found.' # add the tokens update proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check the tokens update proposal was created @@ -41,11 +41,11 @@ stdout '- gno.land/r/demo/defi/grc20factory.TOKEN2' stdout '- gno.land/r/demo/defi/grc20factory.TOKEN3' # vote on the tokens update proposal -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # call tokens update proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stdout OK! # verify the balances associated with the tokens update proposal diff --git a/gno.land/pkg/integration/testdata/govdao_proposal_withdraw_member.txtar b/gno.land/pkg/integration/testdata/govdao_proposal_withdraw_member.txtar index 39d90c71343..3241da8e8c3 100644 --- a/gno.land/pkg/integration/testdata/govdao_proposal_withdraw_member.txtar +++ b/gno.land/pkg/integration/testdata/govdao_proposal_withdraw_member.txtar @@ -19,15 +19,15 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:' stdout 'data: # GovDAO' # Register member with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test member +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test member stdout 'OK!' # Register withdrawmember with a namespace first -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "withdraw456" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test withdrawmember +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "withdraw456" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test withdrawmember stdout 'OK!' # add the proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test member $WORK/proposer/create_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test member $WORK/proposer/create_proposal.gno stdout OK! # call gov/dao render to check everything the proposal was created @@ -35,15 +35,15 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:0' stdout 'This is a proposal to remove \[@withdraw456\]\(\/u\/withdraw456\) from the GovDAO' # vote on the proposal 1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test member stdout OK! # vote on the proposal 2 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test withdrawmember +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test withdrawmember stdout OK! # call proposal execution -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test member +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test member stdout OK! # check output diff --git a/gno.land/pkg/integration/testdata/grc20_invalid_address.txtar b/gno.land/pkg/integration/testdata/grc20_invalid_address.txtar index 132c8d7ebee..9a1fcd5a85b 100644 --- a/gno.land/pkg/integration/testdata/grc20_invalid_address.txtar +++ b/gno.land/pkg/integration/testdata/grc20_invalid_address.txtar @@ -4,10 +4,10 @@ loadpkg gno.land/r/demo/defi/foo20 gnoland start # execute Faucet -gnokey maketx call -pkgpath gno.land/r/demo/defi/foo20 -func Faucet -gas-fee 10000000ugnot -gas-wanted 40000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/defi/foo20 -func Faucet -gas-fee 10000000ugnot -gas-wanted 40000000 -chainid=tendermint_test test1 stdout 'OK!' # execute Transfer for invalid address # This is expected to fail at the transaction simulation stage. -! gnokey maketx call -pkgpath gno.land/r/demo/defi/foo20 -func Transfer -args g1ubwj0apf60hd90txhnh855fkac34rxlsvua0aa -args 1 -gas-fee 1000000ugnot -gas-wanted 10_000_000 -simulate only -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/demo/defi/foo20 -func Transfer -args g1ubwj0apf60hd90txhnh855fkac34rxlsvua0aa -args 1 -gas-fee 1000000ugnot -gas-wanted 10_000_000 -simulate only -chainid=tendermint_test test1 stderr '"gnokey" error: --= Error =--\nData: invalid address' diff --git a/gno.land/pkg/integration/testdata/grc20_registry.txtar b/gno.land/pkg/integration/testdata/grc20_registry.txtar index 1c83e7bcecc..a3709d30c82 100644 --- a/gno.land/pkg/integration/testdata/grc20_registry.txtar +++ b/gno.land/pkg/integration/testdata/grc20_registry.txtar @@ -8,15 +8,15 @@ loadpkg gno.land/r/registry $WORK/registry gnoland start # we call Transfer with foo20, before it's registered -gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo20' -args 'g123456789' -args '42' -gas-fee 1000000ugnot -gas-wanted 1500000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo20' -args 'g123456789' -args '42' -gas-fee 1000000ugnot -gas-wanted 1500000 -chainid=tendermint_test test1 stdout 'not found' # add foo20, and foo20wrapper -gnokey maketx addpkg -pkgdir $WORK/foo20 -pkgpath gno.land/r/foo20 -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test test1 -gnokey maketx addpkg -pkgdir $WORK/foo20wrapper -pkgpath gno.land/r/foo20wrapper -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/foo20 -pkgpath gno.land/r/foo20 -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/foo20wrapper -pkgpath gno.land/r/foo20wrapper -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 # we call Transfer with foo20, after it's registered -gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo20' -args 'g123456789' -args '42' -gas-fee 1000000ugnot -gas-wanted 8000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo20' -args 'g123456789' -args '42' -gas-fee 1000000ugnot -gas-wanted 8000000 -chainid=tendermint_test test1 stdout 'same address, success!' -- registry/registry.gno -- diff --git a/gno.land/pkg/integration/testdata/grc20_registry_emit.txtar b/gno.land/pkg/integration/testdata/grc20_registry_emit.txtar index 3a434875046..c753ce21a21 100644 --- a/gno.land/pkg/integration/testdata/grc20_registry_emit.txtar +++ b/gno.land/pkg/integration/testdata/grc20_registry_emit.txtar @@ -8,10 +8,10 @@ loadpkg gno.land/r/grc20transfer $WORK gnoland start # run the faucet before transferring the balance -gnokey maketx call -pkgpath gno.land/r/demo/defi/foo20 -func Faucet -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/defi/foo20 -func Faucet -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 # check the event after transferring the grc20 token -gnokey maketx call -pkgpath gno.land/r/grc20transfer -func TransferBy -args 'gno.land/r/demo/defi/foo20' -args 'g1c8cf99clyyjr2kh9awxnfyt36cvmr703tsmazp' -args '1000000' -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/grc20transfer -func TransferBy -args 'gno.land/r/demo/defi/foo20' -args 'g1c8cf99clyyjr2kh9awxnfyt36cvmr703tsmazp' -args '1000000' -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 stdout OK! stdout 'GAS WANTED: [0-9]+' stdout 'GAS USED: [0-9]+' diff --git a/gno.land/pkg/integration/testdata/grc721_emit.txtar b/gno.land/pkg/integration/testdata/grc721_emit.txtar index 7d0a0f79361..e4f3c19847e 100644 --- a/gno.land/pkg/integration/testdata/grc721_emit.txtar +++ b/gno.land/pkg/integration/testdata/grc721_emit.txtar @@ -5,23 +5,23 @@ loadpkg gno.land/r/foo721 $WORK/foo721 gnoland start # Mint -gnokey maketx call -pkgpath gno.land/r/foo721 -func Mint -args g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo721 -func Mint -args g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -chainid=tendermint_test test1 stdout '\[{\"type\":\"Mint\",\"attrs\":\[{\"key\":\"slug\",\"value\":\"FNFT\"},{\"key\":\"to\",\"value\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},{\"key\":\"tokenId\",\"value\":\"1\"}\],\"pkg_path\":\"gno.land/p/demo/tokens/grc721\"},.*\]' # Approve -gnokey maketx call -pkgpath gno.land/r/foo721 -func Approve -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo721 -func Approve -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -chainid=tendermint_test test1 stdout '\[{\"type\":\"Approval\",\"attrs\":\[{\"key\":\"slug\",\"value\":\"FNFT\"},{\"key\":\"owner\",\"value\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},{\"key\":\"to\",\"value\":\"g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj\"},{\"key\":\"tokenId\",\"value\":\"1\"}\],\"pkg_path\":\"gno.land/p/demo/tokens/grc721\"},.*\]' # SetApprovalForAll -gnokey maketx call -pkgpath gno.land/r/foo721 -func SetApprovalForAll -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args false -gas-fee 1000000ugnot -gas-wanted 35000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo721 -func SetApprovalForAll -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args false -gas-fee 1000000ugnot -gas-wanted 35000000 -chainid=tendermint_test test1 stdout '\[{\"type\":\"ApprovalForAll\",\"attrs\":\[{\"key\":\"slug\",\"value\":\"FNFT\"},{\"key\":\"owner\",\"value\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},{\"key\":\"to\",\"value\":\"g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj\"},{\"key\":\"approved\",\"value\":\"false\"}\],\"pkg_path\":\"gno.land/p/demo/tokens/grc721\"},.*\]' # TransferFrom -gnokey maketx call -pkgpath gno.land/r/foo721 -func TransferFrom -args g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo721 -func TransferFrom -args g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -chainid=tendermint_test test1 stdout '\[{\"type\":\"Transfer\",\"attrs\":\[{\"key\":\"slug\",\"value\":\"FNFT\"},{\"key\":\"from\",\"value\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},{\"key\":\"to\",\"value\":\"g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj\"},{\"key\":\"tokenId\",\"value\":\"1\"}\],\"pkg_path\":\"gno.land/p/demo/tokens/grc721\"},.*\]' # Burn -gnokey maketx call -pkgpath gno.land/r/foo721 -func Burn -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo721 -func Burn -args 1 -gas-fee 1000000ugnot -gas-wanted 35000000 -chainid=tendermint_test test1 stdout '\[{\"type\":\"Burn\",\"attrs\":\[{\"key\":\"slug\",\"value\":\"FNFT\"},{\"key\":\"from\",\"value\":\"g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj\"},{\"key\":\"tokenId\",\"value\":\"1\"}\],\"pkg_path\":\"gno.land/p/demo/tokens/grc721\"},.*\]' diff --git a/gno.land/pkg/integration/testdata/improved_coins.txtar b/gno.land/pkg/integration/testdata/improved_coins.txtar index 5f96b7354cb..4d4c89514e7 100644 --- a/gno.land/pkg/integration/testdata/improved_coins.txtar +++ b/gno.land/pkg/integration/testdata/improved_coins.txtar @@ -2,32 +2,32 @@ loadpkg gno.land/r/demo/coins $WORK gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "MakeNewCoins" -gas-fee 1000000ugnot -gas-wanted 4000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "MakeNewCoins" -gas-fee 1000000ugnot -gas-wanted 4000000 -chainid=tendermint_test test1 stdout '(300 int64)' stdout '(321 int64)' stdout '("ugnot" string)' stdout '("example" string)' -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "AddCoin" -gas-fee 1000000ugnot -gas-wanted 4000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "AddCoin" -gas-fee 1000000ugnot -gas-wanted 4000000 -chainid=tendermint_test test1 stdout '(300 int64)' -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "SubCoin" -gas-fee 1000000ugnot -gas-wanted 4000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "SubCoin" -gas-fee 1000000ugnot -gas-wanted 4000000 -chainid=tendermint_test test1 stdout '(123 int64)' -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "StringZeroCoin" -gas-fee 1000000ugnot -gas-wanted 3000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "StringZeroCoin" -gas-fee 1000000ugnot -gas-wanted 3000000 -chainid=tendermint_test test1 stdout '("0ugnot" string)' -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "IsZero" -gas-fee 1000000ugnot -gas-wanted 4000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "IsZero" -gas-fee 1000000ugnot -gas-wanted 4000000 -chainid=tendermint_test test1 stdout '(true bool)' stdout '(false bool)' stdout '(false bool)' -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "IsPositive" -gas-fee 1000000ugnot -gas-wanted 4000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "IsPositive" -gas-fee 1000000ugnot -gas-wanted 4000000 -chainid=tendermint_test test1 stdout '(false bool)' stdout '(false bool)' stdout '(true bool)' -gnokey maketx call -pkgpath gno.land/r/demo/coins -func "IsNegative" -gas-fee 1000000ugnot -gas-wanted 4000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/coins -func "IsNegative" -gas-fee 1000000ugnot -gas-wanted 4000000 -chainid=tendermint_test test1 stdout '(true bool)' stdout '(false bool)' stdout '(false bool)' diff --git a/gno.land/pkg/integration/testdata/infinite_loop.txtar b/gno.land/pkg/integration/testdata/infinite_loop.txtar index 1023d980b3b..0ddceeea8e9 100644 --- a/gno.land/pkg/integration/testdata/infinite_loop.txtar +++ b/gno.land/pkg/integration/testdata/infinite_loop.txtar @@ -6,27 +6,27 @@ gnoland start # addpkg + -simulate skip -! gnokey maketx addpkg -pkgdir $WORK/r1 -pkgpath gno.land/r/demo/r1 -simulate skip -gas-fee 10000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/r1 -pkgpath gno.land/r/demo/r1 -simulate skip -gas-fee 10000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 ! stdout OK! stderr 'out of gas.* location: CPUCycles' # addpkg + -simulate only -! gnokey maketx addpkg -pkgdir $WORK/r1 -pkgpath gno.land/r/demo/r1 -simulate only -gas-fee 10000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/r1 -pkgpath gno.land/r/demo/r1 -simulate only -gas-fee 10000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 ! stdout OK! stderr 'out of gas.* location: CPUCycles' # run + -simulate skip -! gnokey maketx run -simulate skip -gas-fee 10000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 $WORK/run.gno +! gnokey maketx run -simulate skip -gas-fee 10000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 $WORK/run.gno ! stdout OK! stderr 'out of gas.* location: CPUCycles' # run + -simulate only -! gnokey maketx run -simulate only -gas-fee 10000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 $WORK/run.gno +! gnokey maketx run -simulate only -gas-fee 10000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 $WORK/run.gno ! stdout OK! stderr 'out of gas.* location: CPUCycles' # maketx addpkg on r2 (successful) -gnokey maketx addpkg -pkgdir $WORK/r2 -pkgpath gno.land/r/demo/r2 -gas-fee 10000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/r2 -pkgpath gno.land/r/demo/r2 -gas-fee 10000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 stdout OK! # qeval on the render function diff --git a/gno.land/pkg/integration/testdata/interrealm_mix_call.txtar b/gno.land/pkg/integration/testdata/interrealm_mix_call.txtar index b86a7beed6a..cbf7ac5b2fa 100644 --- a/gno.land/pkg/integration/testdata/interrealm_mix_call.txtar +++ b/gno.land/pkg/integration/testdata/interrealm_mix_call.txtar @@ -6,9 +6,9 @@ loadpkg gno.land/p/nt/ufmt gnoland start ## load packages -gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 -gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 -gnokey maketx addpkg -pkgdir $WORK/callerrealm -pkgpath gno.land/r/test/callerrealm -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/callerrealm -pkgpath gno.land/r/test/callerrealm -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 ## validate initial state gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" @@ -17,44 +17,44 @@ gnokey query "vm/qrender" --data "gno.land/r/test/callerrealm:" stdout 'obj\.value = 0' ## execute NonCrossingMutation -! gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func NonCrossingMutation -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +! gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func NonCrossingMutation -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 stderr 'cannot modify external-realm or non-realm object' gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 0, value = 0' ## execute CrossingMutation -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func CrossingMutation -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func CrossingMutation -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 0, value = 1' ## execute NonCrossingObjectMutation -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func NonCrossingObjectMutation -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func NonCrossingObjectMutation -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 1, value = 1' ## execute ObjectMutationRootedAtCaller -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func ObjectMutationRootedAtCaller -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func ObjectMutationRootedAtCaller -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 gnokey query "vm/qrender" --data "gno.land/r/test/callerrealm:" stdout 'obj\.value = 1' ## execute CallMutateObject -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func CallMutateObject -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func CallMutateObject -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 2, value = 1' ## execute InspectRealmsCrossing -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func InspectRealmsCrossing -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func InspectRealmsCrossing -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 ## execute InspectRealmsNonCrossing -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func InspectRealmsNonCrossing -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func InspectRealmsNonCrossing -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 ## execute MutateObjectWithBorrowCrossing -gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func MutateObjectWithBorrowCrossing -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func MutateObjectWithBorrowCrossing -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 3, value = 1' ## execute MutateCrossingObjectRootedAtCaller -! gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func MutateCrossingObjectRootedAtCaller -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +! gnokey maketx call -pkgpath gno.land/r/test/callerrealm -func MutateCrossingObjectRootedAtCaller -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 stderr 'cannot directly modify readonly tainted object' gnokey query "vm/qrender" --data "gno.land/r/test/callerrealm:" stdout 'obj\.value = 1' diff --git a/gno.land/pkg/integration/testdata/interrealm_mix_run.txtar b/gno.land/pkg/integration/testdata/interrealm_mix_run.txtar index 2c28ce25bfe..b078ca7bd7e 100644 --- a/gno.land/pkg/integration/testdata/interrealm_mix_run.txtar +++ b/gno.land/pkg/integration/testdata/interrealm_mix_run.txtar @@ -7,55 +7,55 @@ loadpkg gno.land/p/nt/ufmt gnoland start ## load packages -gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 -gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 ## validate initial state gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 0, value = 0' ## run non_crossing_mutation -! gnokey maketx run runner $WORK/run/non_crossing_mutation.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +! gnokey maketx run runner $WORK/run/non_crossing_mutation.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test stderr 'cannot modify external-realm or non-realm object' gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 0, value = 0' ## run crossing_mutation -gnokey maketx run runner $WORK/run/crossing_mutation.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/crossing_mutation.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 0, value = 1' ## run borrowed_object_mutation -gnokey maketx run runner $WORK/run/borrowed_object_mutation.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/borrowed_object_mutation.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 1, value = 1' ## run object_mutation_rooted_at_caller -gnokey maketx run runner $WORK/run/object_mutation_rooted_at_caller.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/object_mutation_rooted_at_caller.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test ## run call_mutate_object -gnokey maketx run runner $WORK/run/call_mutate_object.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/call_mutate_object.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 2, value = 1' ## run inspect_realms_crossing -gnokey maketx run runner $WORK/run/inspect_realms_crossing.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/inspect_realms_crossing.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test ## run inspect_realms_non_crossing -gnokey maketx run runner $WORK/run/inspect_realms_non_crossing.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/inspect_realms_non_crossing.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test ## run mutate_object_with_borrow_crossing -gnokey maketx run runner $WORK/run/mutate_object_with_borrow_crossing.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/mutate_object_with_borrow_crossing.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 3, value = 1' ## run mutate_crossing_object -gnokey maketx run runner $WORK/run/mutate_crossing_object.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/mutate_crossing_object.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:" stdout 'Object\.value = 4, value = 1' ## run mutate_crossing_object_rooted_at_caller -gnokey maketx run runner $WORK/run/mutate_crossing_object_rooted_at_caller.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test +gnokey maketx run runner $WORK/run/mutate_crossing_object_rooted_at_caller.gno -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test -- run/non_crossing_mutation.gno -- package main diff --git a/gno.land/pkg/integration/testdata/issue_1167.txtar b/gno.land/pkg/integration/testdata/issue_1167.txtar index 1720a09e025..a393eca2016 100644 --- a/gno.land/pkg/integration/testdata/issue_1167.txtar +++ b/gno.land/pkg/integration/testdata/issue_1167.txtar @@ -4,25 +4,25 @@ loadpkg gno.land/p/nt/avl gnoland start # add contract -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/xx -gas-fee 1000000ugnot -gas-wanted 9000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/xx -gas-fee 1000000ugnot -gas-wanted 9000000 -chainid=tendermint_test test1 stdout OK! # execute New -gnokey maketx call -pkgpath gno.land/r/demo/xx -func New -args X -gas-fee 1000000ugnot -gas-wanted 900000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/xx -func New -args X -gas-fee 1000000ugnot -gas-wanted 900000 -chainid=tendermint_test test1 stdout OK! # execute Delta for the first time -gnokey maketx call -pkgpath gno.land/r/demo/xx -func Delta -args X -gas-fee 1000000ugnot -gas-wanted 3500000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/xx -func Delta -args X -gas-fee 1000000ugnot -gas-wanted 3500000 -chainid=tendermint_test test1 stdout OK! stdout '"1,1,1;' # execute Delta for the second time -gnokey maketx call -pkgpath gno.land/r/demo/xx -func Delta -args X -gas-fee 1000000ugnot -gas-wanted 3500000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/xx -func Delta -args X -gas-fee 1000000ugnot -gas-wanted 3500000 -chainid=tendermint_test test1 stdout OK! stdout '1,1,1;2,2,2;' # execute Delta for the third time -gnokey maketx call -pkgpath gno.land/r/demo/xx -func Delta -args X -gas-fee 1000000ugnot -gas-wanted 3500000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/xx -func Delta -args X -gas-fee 1000000ugnot -gas-wanted 3500000 -chainid=tendermint_test test1 stdout OK! stdout '1,1,1;2,2,2;3,3,3;' diff --git a/gno.land/pkg/integration/testdata/issue_1588.txtar b/gno.land/pkg/integration/testdata/issue_1588.txtar index 1c5b6e642f1..d1d3142e47a 100644 --- a/gno.land/pkg/integration/testdata/issue_1588.txtar +++ b/gno.land/pkg/integration/testdata/issue_1588.txtar @@ -3,13 +3,13 @@ gnoland start # add contract -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/xx -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/xx -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/demo/xx -func DefineFamily -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/xx -func DefineFamily -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! -gnokey maketx call -pkgpath gno.land/r/demo/xx -func GetOutcastChildAge -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/xx -func GetOutcastChildAge -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! stdout '(10 int)' diff --git a/gno.land/pkg/integration/testdata/issue_1786.txtar b/gno.land/pkg/integration/testdata/issue_1786.txtar index 98bac49bf06..f0170e4b899 100644 --- a/gno.land/pkg/integration/testdata/issue_1786.txtar +++ b/gno.land/pkg/integration/testdata/issue_1786.txtar @@ -7,15 +7,15 @@ loadpkg gno.land/r/gnoland/wugnot gnoland start # add contract -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/proxywugnot -gas-fee 1000000ugnot -gas-wanted 16000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/demo/proxywugnot -gas-fee 1000000ugnot -gas-wanted 16000000 -chainid=tendermint_test test1 stdout OK! # approve wugnot to `proxywugnot ≈ g1fndyg0we60rdfchyy5dwxzkfmhl5u34j932rg3` -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Approve -args "g1fndyg0we60rdfchyy5dwxzkfmhl5u34j932rg3" -args 10000 -gas-fee 1000000ugnot -gas-wanted 40000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Approve -args "g1fndyg0we60rdfchyy5dwxzkfmhl5u34j932rg3" -args 10000 -gas-fee 1000000ugnot -gas-wanted 40000000 -chainid=tendermint_test test1 stdout OK! # send 10000ugnot to `proxywugnot` to wrap it -gnokey maketx call -pkgpath gno.land/r/demo/proxywugnot --send "10000ugnot" -func ProxyWrap -gas-fee 1000000ugnot -gas-wanted 40000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/proxywugnot --send "10000ugnot" -func ProxyWrap -gas-fee 1000000ugnot -gas-wanted 40000000 -chainid=tendermint_test test1 stdout OK! # check user's wugnot balance @@ -23,7 +23,7 @@ gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"g1jg8mtutu9k stdout '10000 int64' # unwrap 500 wugnot -gnokey maketx call -pkgpath gno.land/r/demo/proxywugnot -func ProxyUnwrap -args 500 -gas-fee 1000000ugnot -gas-wanted 40000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/proxywugnot -func ProxyUnwrap -args 500 -gas-fee 1000000ugnot -gas-wanted 40000000 -chainid=tendermint_test test1 # XXX without patching anything it will panic # panic msg: insufficient coins error diff --git a/gno.land/pkg/integration/testdata/issue_2283.txtar b/gno.land/pkg/integration/testdata/issue_2283.txtar index 112f6899394..25244c2bb44 100644 --- a/gno.land/pkg/integration/testdata/issue_2283.txtar +++ b/gno.land/pkg/integration/testdata/issue_2283.txtar @@ -17,7 +17,7 @@ gnoland start ! gnokey broadcast $WORK/add_feeds.tx -gnokey maketx addpkg -pkgdir $WORK/bye -pkgpath gno.land/r/demo/bye -gas-fee 1000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/bye -pkgpath gno.land/r/demo/bye -gas-fee 1000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 stdout OK! -- imports/imports.gno -- diff --git a/gno.land/pkg/integration/testdata/issue_2283_cacheTypes.txtar b/gno.land/pkg/integration/testdata/issue_2283_cacheTypes.txtar index a6a7eb0cec8..0d382b415c7 100644 --- a/gno.land/pkg/integration/testdata/issue_2283_cacheTypes.txtar +++ b/gno.land/pkg/integration/testdata/issue_2283_cacheTypes.txtar @@ -19,7 +19,7 @@ gnoland start ! gnokey broadcast $WORK/add_feeds.tx -gnokey maketx addpkg -pkgdir $WORK/bye -pkgpath gno.land/r/demo/bye -gas-fee 1000000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/bye -pkgpath gno.land/r/demo/bye -gas-fee 1000000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1 stdout OK! -- add_feeds.tx -- diff --git a/gno.land/pkg/integration/testdata/issue_2763.txtar b/gno.land/pkg/integration/testdata/issue_2763.txtar index a20a66b494f..33fb0cf57a5 100644 --- a/gno.land/pkg/integration/testdata/issue_2763.txtar +++ b/gno.land/pkg/integration/testdata/issue_2763.txtar @@ -3,7 +3,7 @@ gnoland start # add contract # Note: previously "addpkg does not add *_test.gno files, so it works as expected without causing any redeclaration issues." # addpkg now add `_test.gno` files so redeclarations is not allowed aymore -! gnokey maketx addpkg -pkgdir $WORK/foo -pkgpath gno.land/r/demo/foo -gas-fee 1000000ugnot -gas-wanted 16000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx addpkg -pkgdir $WORK/foo -pkgpath gno.land/r/demo/foo -gas-fee 1000000ugnot -gas-wanted 16000000 -chainid=tendermint_test test1 stderr 'add2 redeclared in this block' -- foo/gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/issue_gnochess_97.txtar b/gno.land/pkg/integration/testdata/issue_gnochess_97.txtar index b2af003a8ea..137f7f54b04 100644 --- a/gno.land/pkg/integration/testdata/issue_gnochess_97.txtar +++ b/gno.land/pkg/integration/testdata/issue_gnochess_97.txtar @@ -4,13 +4,13 @@ loadpkg gno.land/r/demo/bug97 $WORK gnoland start -gnokey maketx call -pkgpath 'gno.land/r/demo/bug97' -func 'RealmCall1' -gas-fee 1000000ugnot -gas-wanted 2000000 -send '' -broadcast -chainid='tendermint_test' test1 +gnokey maketx call -pkgpath 'gno.land/r/demo/bug97' -func 'RealmCall1' -gas-fee 1000000ugnot -gas-wanted 2000000 -send '' -chainid='tendermint_test' test1 stdout 'OK!' -gnokey maketx call -pkgpath 'gno.land/r/demo/bug97' -func 'RealmCall2' -gas-fee 1000000ugnot -gas-wanted 2000000 -send '' -broadcast -chainid='tendermint_test' test1 +gnokey maketx call -pkgpath 'gno.land/r/demo/bug97' -func 'RealmCall2' -gas-fee 1000000ugnot -gas-wanted 2000000 -send '' -chainid='tendermint_test' test1 stdout 'OK!' -gnokey maketx call -pkgpath 'gno.land/r/demo/bug97' -func 'RealmCall1' -gas-fee 1000000ugnot -gas-wanted 2000000 -send '' -broadcast -chainid='tendermint_test' test1 +gnokey maketx call -pkgpath 'gno.land/r/demo/bug97' -func 'RealmCall1' -gas-fee 1000000ugnot -gas-wanted 2000000 -send '' -chainid='tendermint_test' test1 stdout 'OK!' -- bug97.gno -- diff --git a/gno.land/pkg/integration/testdata/loadpkg_example.txtar b/gno.land/pkg/integration/testdata/loadpkg_example.txtar index 42501ce96b0..9c0025d2f36 100644 --- a/gno.land/pkg/integration/testdata/loadpkg_example.txtar +++ b/gno.land/pkg/integration/testdata/loadpkg_example.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/p/nt/ufmt ## start a new node gnoland start -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/importtest -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/importtest -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! ## execute Render diff --git a/gno.land/pkg/integration/testdata/loadpkg_work.txtar b/gno.land/pkg/integration/testdata/loadpkg_work.txtar index 3d6382f6ec7..931416be3c0 100644 --- a/gno.land/pkg/integration/testdata/loadpkg_work.txtar +++ b/gno.land/pkg/integration/testdata/loadpkg_work.txtar @@ -5,7 +5,7 @@ loadpkg gno.land/r/foobar/bar $WORK/bar gnoland start ## execute Render -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 $WORK/script/script.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 $WORK/script/script.gno ## compare render stdout 'main: --- hello from foo ---' diff --git a/gno.land/pkg/integration/testdata/maketx_call_pure.txtar b/gno.land/pkg/integration/testdata/maketx_call_pure.txtar index edbf2483fe8..4fc5fa88dc5 100644 --- a/gno.land/pkg/integration/testdata/maketx_call_pure.txtar +++ b/gno.land/pkg/integration/testdata/maketx_call_pure.txtar @@ -10,15 +10,15 @@ gnokey query vm/qeval --data 'gno.land/p/foo/call_pure.Hello()' stdout 'notok' # 2. call to pure package ERROR -! gnokey maketx call -pkgpath gno.land/p/foo/call_pure -func Hello -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/p/foo/call_pure -func Hello -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stderr '"gnokey" error: --= Error =--\nData: invalid package path' # 3. call to stdlibs ERROR -! gnokey maketx call -pkgpath strconv -func Itoa -args 11 -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath strconv -func Itoa -args 11 -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stderr '"gnokey" error: --= Error =--\nData: invalid package path' # 4. normal call to realm ERROR (need crossing) -! gnokey maketx call -pkgpath gno.land/r/foo/call_realm -func Render -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/foo/call_realm -func Render -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stderr 'wrong number of arguments in call to Render: want 0 got 1' # XXX: While the error is correct, the correct message should be something like the message below: # stderr 'cannot cross-call a non-crossing function gno.land/r/foo/call_realm.Render from ' diff --git a/gno.land/pkg/integration/testdata/many_inserts_stack_overflow.txtar b/gno.land/pkg/integration/testdata/many_inserts_stack_overflow.txtar index bcb7abbcc0f..e0ab194997d 100644 --- a/gno.land/pkg/integration/testdata/many_inserts_stack_overflow.txtar +++ b/gno.land/pkg/integration/testdata/many_inserts_stack_overflow.txtar @@ -4,12 +4,12 @@ loadpkg gno.land/r/archive/boards # start a new node gnoland start -no-parallel -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateBoard -args 'testboard' -gas-fee 1000000ugnot -gas-wanted 50000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateBoard -args 'testboard' -gas-fee 1000000ugnot -gas-wanted 50000000 -chainid=tendermint_test test1 stdout 'OK!' -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateThread -args 1 -args 'thread1' -args 'thread1' -gas-fee 1000000ugnot -gas-wanted 50000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateThread -args 1 -args 'thread1' -args 'thread1' -gas-fee 1000000ugnot -gas-wanted 50000000 -chainid=tendermint_test test1 stdout 'OK!' -gnokey maketx run -max-deposit 2000000000ugnot -gas-fee 10000000ugnot -gas-wanted 2999999999 -broadcast -chainid=tendermint_test test1 $WORK/script/script.gno +gnokey maketx run -max-deposit 2000000000ugnot -gas-fee 10000000ugnot -gas-wanted 2999999999 -chainid=tendermint_test test1 $WORK/script/script.gno stdout 'OK!' -- script/script.gno -- diff --git a/gno.land/pkg/integration/testdata/map_delete.txtar b/gno.land/pkg/integration/testdata/map_delete.txtar index 06fa64208c4..9f40f3b9d12 100644 --- a/gno.land/pkg/integration/testdata/map_delete.txtar +++ b/gno.land/pkg/integration/testdata/map_delete.txtar @@ -3,7 +3,7 @@ loadpkg gno.land/r/demo/mapdelete $WORK gnoland start # delete map -gnokey maketx call -pkgpath gno.land/r/demo/mapdelete -func DeleteMap -args 3 -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/mapdelete -func DeleteMap -args 3 -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! # check deletion diff --git a/gno.land/pkg/integration/testdata/moul_authz.txtar b/gno.land/pkg/integration/testdata/moul_authz.txtar index 08f68fc9535..f6e885da017 100644 --- a/gno.land/pkg/integration/testdata/moul_authz.txtar +++ b/gno.land/pkg/integration/testdata/moul_authz.txtar @@ -7,11 +7,11 @@ stdout 'g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0' gnoland start -gnokey maketx call -pkgpath gno.land/r/testing/resource -func Edit -args edited -gas-fee 100000ugnot -gas-wanted 2000000 -broadcast -chainid tendermint_test alice +gnokey maketx call -pkgpath gno.land/r/testing/resource -func Edit -args edited -gas-fee 100000ugnot -gas-wanted 2000000 -chainid tendermint_test alice -gnokey maketx call -pkgpath gno.land/r/testing/admin -func ExecuteAction -args 0 -gas-fee 100000ugnot -gas-wanted 2100000 -broadcast -chainid tendermint_test alice +gnokey maketx call -pkgpath gno.land/r/testing/admin -func ExecuteAction -args 0 -gas-fee 100000ugnot -gas-wanted 2100000 -chainid tendermint_test alice -gnokey maketx call -pkgpath gno.land/r/testing/resource -func Value -gas-fee 100000ugnot -gas-wanted 2000000 -broadcast -chainid tendermint_test alice +gnokey maketx call -pkgpath gno.land/r/testing/resource -func Value -gas-fee 100000ugnot -gas-wanted 2000000 -chainid tendermint_test alice stdout 'edited' diff --git a/gno.land/pkg/integration/testdata/object_pointer.txtar b/gno.land/pkg/integration/testdata/object_pointer.txtar index 385368196e1..02d11836c78 100644 --- a/gno.land/pkg/integration/testdata/object_pointer.txtar +++ b/gno.land/pkg/integration/testdata/object_pointer.txtar @@ -5,17 +5,17 @@ loadpkg gno.land/r/testing/bug_caller $WORK/bug_caller gnoland start # 1. (Working) Init the object, Set a value and Get the value -gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func WorkingNew -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func WorkingNew -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK!' -gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func Set -args 42 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func Set -args 42 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK!' gnokey query vm/qeval --data "gno.land/r/testing/bug_caller.Get()" stdout '42 int' # Works as expected # 2. (Also working) -gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func BuggedNew -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func BuggedNew -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK!' -gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func Set -args 42 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/bug_caller -func Set -args 42 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK!' gnokey query vm/qeval --data "gno.land/r/testing/bug_caller.Get()" stdout '42 int' # Works as expected diff --git a/gno.land/pkg/integration/testdata/object_pointer_2.txtar b/gno.land/pkg/integration/testdata/object_pointer_2.txtar index 041aef62580..957d6fc3265 100644 --- a/gno.land/pkg/integration/testdata/object_pointer_2.txtar +++ b/gno.land/pkg/integration/testdata/object_pointer_2.txtar @@ -3,9 +3,9 @@ loadpkg gno.land/r/testing/ext_realm $WORK/ext_realm loadpkg gno.land/r/testing/caller_realm $WORK/caller_realm gnoland start -gnokey maketx call -pkgpath gno.land/r/testing/caller_realm -func SaveObject -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/caller_realm -func SaveObject -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK!' -gnokey maketx call -pkgpath gno.land/r/testing/caller_realm -func Mutate -args "hello" -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/caller_realm -func Mutate -args "hello" -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK!' stdout '("reply from ext realm" string)' diff --git a/gno.land/pkg/integration/testdata/object_pointer_pure.txtar b/gno.land/pkg/integration/testdata/object_pointer_pure.txtar index 4a11b1cb160..11d6d0594f7 100644 --- a/gno.land/pkg/integration/testdata/object_pointer_pure.txtar +++ b/gno.land/pkg/integration/testdata/object_pointer_pure.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/testing/realm_caller $WORK/realm_caller gnoland start -gnokey maketx call -pkgpath gno.land/r/testing/realm_caller -func Set -args 42 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/testing/realm_caller -func Set -args 42 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test test1 stdout 'OK' gnokey query vm/qeval --data "gno.land/r/testing/realm_caller.Get()" diff --git a/gno.land/pkg/integration/testdata/params.txtar b/gno.land/pkg/integration/testdata/params.txtar index ad67ea998a9..9c89b74d9c3 100644 --- a/gno.land/pkg/integration/testdata/params.txtar +++ b/gno.land/pkg/integration/testdata/params.txtar @@ -13,7 +13,7 @@ gnokey query params/vm:gno.land/r/myrealm:baz stdout 'data: $' # add params to gno.land/r/myrealm -gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/myrealm -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/myrealm -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 # query after adding the package, but before setting values gnokey query params/vm:gno.land/r/myrealm:foo @@ -24,47 +24,47 @@ gnokey query params/vm:gno.land/r/myrealm:baz stdout 'data: $' ## set foo (string) -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetFoo -args foo1 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetFoo -args foo1 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:foo stdout 'data: "foo1"' # override foo -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetFoo -args foo2 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetFoo -args foo2 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:foo stdout 'data: "foo2"' # set bar (bool) -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBar -args true -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBar -args true -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:bar stdout 'data: true' # override bar -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBar -args false -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBar -args false -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:bar stdout 'data: false' # set baz (int64) -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBaz -args 1337 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBaz -args 1337 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:baz stdout 'data: "1337"' # override baz -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBaz -args -31337 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetBaz -args -31337 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:baz stdout 'data: "-31337"' # It is impossible to call std.SetParamXXX with a param key in the : format (e.g. "bank:p:lockTransfer") because it is an invalid key. -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetLockTransfer -args ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetLockTransfer -args ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: invalid param key: bank:p:lockTransfer' # . is invalid (e.g., "bank.lockTransfer") -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetInvalidString -args ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetInvalidString -args ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: invalid param key: bank:p:lockTransfer' # . (e.g., "bank_lockTransfer") is a valid name. -gnokey maketx call -pkgpath gno.land/r/myrealm -func SetValidString -args ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrealm -func SetValidString -args ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/vm:gno.land/r/myrealm:bank_lockTransfer stdout 'data: "ugnot"' diff --git a/gno.land/pkg/integration/testdata/params_sysparams1.txtar b/gno.land/pkg/integration/testdata/params_sysparams1.txtar index e83f9952bf5..fbae324bc88 100644 --- a/gno.land/pkg/integration/testdata/params_sysparams1.txtar +++ b/gno.land/pkg/integration/testdata/params_sysparams1.txtar @@ -4,14 +4,14 @@ gnoland start # Test sys/params.SetSysParamXXX when called from gno.land/r/sys/params -gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/sys/params -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/sys/params -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## before set lock transfer gnokey query params/bank:p:restricted_denoms stdout 'data: \[\]\n' ## lock transfer -gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "ugnot" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "ugnot" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 ## query bank module gnokey query params/bank:p:restricted_denoms diff --git a/gno.land/pkg/integration/testdata/params_sysparams2.txtar b/gno.land/pkg/integration/testdata/params_sysparams2.txtar index e37ea04f047..e13eda7eea6 100644 --- a/gno.land/pkg/integration/testdata/params_sysparams2.txtar +++ b/gno.land/pkg/integration/testdata/params_sysparams2.txtar @@ -4,27 +4,27 @@ gnoland start # ---- 1 Test sys/params.SetSysParamXXX when called from gno.land/r/sys/params -gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/sys/params -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/sys/params -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## lock transfer -gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "ugnot" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "ugnot" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/bank:p:restricted_denoms stdout 'data: \["ugnot"\]' # unlock transfer -gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query params/bank:p:restricted_denoms stdout 'data: \[""\]' # set non-existing module param -gnokey maketx call -pkgpath gno.land/r/sys/params -func SetBankArbitrary -args "foo" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/sys/params -func SetBankArbitrary -args "foo" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 #stderr 'invalid bank parameter name: newkey' gnokey query params/bank:p:newkey stdout 'data: "foo"' # set invalid key -! gnokey maketx call -pkgpath gno.land/r/sys/params -func SetInvalidKey -args "ugnot" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/sys/params -func SetInvalidKey -args "ugnot" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'invalid param name: bank:restricted_denoms' gnokey query params/bank:p:restricted_denoms @@ -35,34 +35,34 @@ stdout 'data: \n' # ---- 2 Test sys/params.SetSysParamXXX when called outside of gno.land/r/sys/params -gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/myrealm -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/myrealm -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## can not call SetSysParamXXX out side of gno.land/r/params -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamString -args "foo" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamString -args "foo" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: "sys/params" can only be used from "gno.land/r/sys/params"' # XXX can only be *imported* from... enforce import rule gnokey query params/bank:p:foo stdout 'data: \n' -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamBool -args true -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamBool -args true -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: "sys/params" can only be used from "gno.land/r/sys/params"' # XXX can only be *imported* from... enforce import rule gnokey query params/bank:p:bar stdout 'data: \n' -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamInt64 -args -100 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamInt64 -args -100 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: "sys/params" can only be used from "gno.land/r/sys/params"' # XXX can only be *imported* from... enforce import rule gnokey query params/bank:p:baz stdout 'data: \n' -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamUint64 -args 100 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamUint64 -args 100 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: "sys/params" can only be used from "gno.land/r/sys/params"' # XXX can only be *imported* from... enforce import rule gnokey query params/bank:p:baz stdout 'data: \n' -! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamBytes -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/myrealm -func SetSysParamBytes -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'Data: "sys/params" can only be used from "gno.land/r/sys/params"' # XXX can only be *imported* from... enforce import rule gnokey query params/bank:p:baz diff --git a/gno.land/pkg/integration/testdata/prevrealm.txtar b/gno.land/pkg/integration/testdata/prevrealm.txtar index a2030b96be2..0bea0c8462a 100644 --- a/gno.land/pkg/integration/testdata/prevrealm.txtar +++ b/gno.land/pkg/integration/testdata/prevrealm.txtar @@ -34,62 +34,62 @@ env RFOO_USER_ADDR=g1evezrh92xaucffmtgsaa3rvmz5s8kedffsg469 # Test cases ## 1. MsgCall -> myrlm.A: user address -gnokey maketx call -pkgpath gno.land/r/myrlm -func A -gas-fee 100000ugnot -gas-wanted 1500000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrlm -func A -gas-fee 100000ugnot -gas-wanted 1500000 -chainid tendermint_test test1 stdout ${test1_user_addr} ## 2. MsgCall -> myrealm.B -> myrlm.A: user address -gnokey maketx call -pkgpath gno.land/r/myrlm -func B -gas-fee 100000ugnot -gas-wanted 1500000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/myrlm -func B -gas-fee 100000ugnot -gas-wanted 1500000 -chainid tendermint_test test1 stdout ${test1_user_addr} ## 3. MsgCall -> r/foo.A -> myrlm.A: r/foo -gnokey maketx call -pkgpath gno.land/r/foo -func A -gas-fee 100000ugnot -gas-wanted 1500000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func A -gas-fee 100000ugnot -gas-wanted 1500000 -chainid tendermint_test test1 stdout ${RFOO_USER_ADDR} ## 4. MsgCall -> r/foo.B -> myrlm.B -> r/foo.A: r/foo -gnokey maketx call -pkgpath gno.land/r/foo -func B -gas-fee 100000ugnot -gas-wanted 1500000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func B -gas-fee 100000ugnot -gas-wanted 1500000 -chainid tendermint_test test1 stdout ${RFOO_USER_ADDR} ## remove due to update to maketx call can only call realm (case 5, 6, 13) ## 5. MsgCall -> p/demo/bar.A: user address -## gnokey maketx call -pkgpath gno.land/p/demo/bar -func A -gas-fee 100000ugnot -gas-wanted 4000000 -broadcast -chainid tendermint_test test1 +## gnokey maketx call -pkgpath gno.land/p/demo/bar -func A -gas-fee 100000ugnot -gas-wanted 4000000 -chainid tendermint_test test1 ## stdout ${test1_user_addr} ## 6. MsgCall -> p/demo/bar.B: user address -## gnokey maketx call -pkgpath gno.land/p/demo/bar -func B -gas-fee 100000ugnot -gas-wanted 4000000 -broadcast -chainid tendermint_test test1 +## gnokey maketx call -pkgpath gno.land/p/demo/bar -func B -gas-fee 100000ugnot -gas-wanted 4000000 -chainid tendermint_test test1 ## stdout ${test1_user_addr} ## 7. MsgRun -> myrlm.A: user address -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/myrlm-a.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/myrlm-a.gno stdout ${test1_user_addr} ## 8. MsgRun -> myrealm.B -> myrlm.A: user address -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/myrlm-b.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/myrlm-b.gno stdout ${test1_user_addr} ## 9. MsgRun -> r/foo.A -> myrlm.A: r/foo -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/foo-a.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/foo-a.gno stdout ${RFOO_USER_ADDR} ## 10. MsgRun -> r/foo.B -> myrlm.B -> r/foo.A: r/foo -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/foo-b.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/foo-b.gno stdout ${RFOO_USER_ADDR} ## 11. MsgRun -> p/demo/bar.A -> myrlm.A: user address ## XXX: crossing call only allowed in realm packages, doesn't work - not possible -# ! gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/bar-a.gno +# ! gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/bar-a.gno # stderr 'crossing' ## 12. MsgRun -> p/demo/bar.B -> myrlm.B -> r/foo.A: user address ## XXX: crossing call only allowed in realm packages, doesn't work - not possible -# ! gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/bar-b.gno +# ! gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/bar-b.gno # stderr 'crossing' ## 13. MsgCall -> std.PreviousRealm(): user address -## gnokey maketx call -pkgpath std -func PreviousRealm -gas-fee 100000ugnot -gas-wanted 4000000 -broadcast -chainid tendermint_test test1 +## gnokey maketx call -pkgpath std -func PreviousRealm -gas-fee 100000ugnot -gas-wanted 4000000 -chainid tendermint_test test1 ## stdout ${test1_user_addr} ## 14. MsgRun -> std.PreviousRealm(): user address -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -broadcast -chainid tendermint_test test1 $WORK/run/baz.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 12000000 -chainid tendermint_test test1 $WORK/run/baz.gno stdout ${test1_user_addr} -- r/myrlm/myrlm.gno -- diff --git a/gno.land/pkg/integration/testdata/ptr_mapkey.txtar b/gno.land/pkg/integration/testdata/ptr_mapkey.txtar index d8ac6c1cc25..579ed6c090a 100644 --- a/gno.land/pkg/integration/testdata/ptr_mapkey.txtar +++ b/gno.land/pkg/integration/testdata/ptr_mapkey.txtar @@ -2,7 +2,7 @@ loadpkg gno.land/r/demo/ptrmap $WORK gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/ptrmap -func AddToMap -args 5 -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/ptrmap -func AddToMap -args 5 -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 stdout OK! gnokey query vm/qeval --data "gno.land/r/demo/ptrmap.GetFromMap()" diff --git a/gno.land/pkg/integration/testdata/realm_banker_issued_coin_denom.txtar b/gno.land/pkg/integration/testdata/realm_banker_issued_coin_denom.txtar index 3bd365e28b9..6883f1510b1 100644 --- a/gno.land/pkg/integration/testdata/realm_banker_issued_coin_denom.txtar +++ b/gno.land/pkg/integration/testdata/realm_banker_issued_coin_denom.txtar @@ -7,40 +7,40 @@ adduser test2 gnoland start ## add realm_banker -gnokey maketx addpkg -pkgdir $WORK/short -pkgpath gno.land/r/test/realm_banker -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/short -pkgpath gno.land/r/test/realm_banker -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## add realm_banker with long package_name -gnokey maketx addpkg -pkgdir $WORK/long -pkgpath gno.land/r/test/package89_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_1234567890 -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/long -pkgpath gno.land/r/test/package89_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_1234567890 -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## add invalid realm_denom -gnokey maketx addpkg -pkgdir $WORK/invalid_realm_denom -pkgpath gno.land/r/test/invalid_realm_denom -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/invalid_realm_denom -pkgpath gno.land/r/test/invalid_realm_denom -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 ## test2 spend all balance -gnokey maketx send -send "999990000ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx send -send "999990000ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 ## check test2 balance gnokey query bank/balances/${test2_user_addr} stdout '' ## mint coin from banker -gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Mint -args ${test2_user_addr} -args "ugnot" -args "31337" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Mint -args ${test2_user_addr} -args "ugnot" -args "31337" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 ## check balance after minting, without patching banker will return '31337ugnot' gnokey query bank/balances/${test2_user_addr} stdout '"31337/gno.land/r/test/realm_banker:ugnot"' ## burn coin -gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Burn -args ${test2_user_addr} -args "ugnot" -args "7" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Burn -args ${test2_user_addr} -args "ugnot" -args "7" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 ## check balance after burning gnokey query bank/balances/${test2_user_addr} stdout '"31330/gno.land/r/test/realm_banker:ugnot"' ## transfer 100000ugnot to test2 for gas-fee of below tx -gnokey maketx send -send "100000ugnot" -to ${test2_user_addr} -gas-fee 100000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx send -send "100000ugnot" -to ${test2_user_addr} -gas-fee 100000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 ## transfer coin -gnokey maketx send -send "1330/gno.land/r/test/realm_banker:ugnot" -to g1yr0dpfgthph7y6mepdx8afuec4q3ga2lg8tjt0 -gas-fee 100000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test2 +gnokey maketx send -send "1330/gno.land/r/test/realm_banker:ugnot" -to g1yr0dpfgthph7y6mepdx8afuec4q3ga2lg8tjt0 -gas-fee 100000ugnot -gas-wanted 10000000 -chainid=tendermint_test test2 ## check sender balance gnokey query bank/balances/${test2_user_addr} @@ -51,24 +51,24 @@ gnokey query bank/balances/g1yr0dpfgthph7y6mepdx8afuec4q3ga2lg8tjt0 stdout '"1330/gno.land/r/test/realm_banker:ugnot"' ## mint coin from long named package with banker -gnokey maketx call -pkgpath gno.land/r/test/package89_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_1234567890 -func Mint -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "ugnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/test/package89_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_1234567890 -func Mint -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "ugnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 gnokey query bank/balances/g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7 stdout '"100/gno.land/r/test/package89_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_1234567890:ugnot"' ## mint invalid base denom -! gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Mint -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "2gnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Mint -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "2gnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'cannot issue coins with invalid denom base name, it should start by a lowercase letter and be followed by 2-15 lowercase letters or digits' ## burn invalid base denom -! gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Burn -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "2gnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/test/realm_banker -func Burn -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "2gnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'cannot issue coins with invalid denom base name, it should start by a lowercase letter and be followed by 2-15 lowercase letters or digits' ## mint invalid realm denom -! gnokey maketx call -pkgpath gno.land/r/test/invalid_realm_denom -func Mint -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "ugnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/test/invalid_realm_denom -func Mint -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "ugnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'invalid denom, can only issue/remove coins with the realm.s prefix' ## burn invalid realm denom -! gnokey maketx call -pkgpath gno.land/r/test/invalid_realm_denom -func Burn -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "ugnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/test/invalid_realm_denom -func Burn -args "g1cq2ecdq3eyn5qa0fzznpurg87zq3k77g63q6u7" -args "ugnot" -args "100" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'invalid denom, can only issue/remove coins with the realm.s prefix' -- short/gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/restart.txtar b/gno.land/pkg/integration/testdata/restart.txtar index de34bdde31b..9847584ba36 100644 --- a/gno.land/pkg/integration/testdata/restart.txtar +++ b/gno.land/pkg/integration/testdata/restart.txtar @@ -4,12 +4,12 @@ loadpkg gno.land/r/demo/counter $WORK gnoland start -gnokey maketx call -pkgpath gno.land/r/demo/counter -func Incr -gas-fee 1000000ugnot -gas-wanted 300000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/counter -func Incr -gas-fee 1000000ugnot -gas-wanted 300000 -chainid tendermint_test test1 stdout '\(1 int\)' gnoland restart -gnokey maketx call -pkgpath gno.land/r/demo/counter -func Incr -gas-fee 1000000ugnot -gas-wanted 300000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/demo/counter -func Incr -gas-fee 1000000ugnot -gas-wanted 300000 -chainid tendermint_test test1 stdout '\(2 int\)' -- counter.gno -- diff --git a/gno.land/pkg/integration/testdata/restart_missing_type.txtar b/gno.land/pkg/integration/testdata/restart_missing_type.txtar index eae00fc8555..fcada6245c3 100644 --- a/gno.land/pkg/integration/testdata/restart_missing_type.txtar +++ b/gno.land/pkg/integration/testdata/restart_missing_type.txtar @@ -10,7 +10,7 @@ loadpkg gno.land/p/nt/avl gnoland start # give gui user more tokens -gnokey maketx send -send 1000000000ugnot -to $user1_user_addr -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid tendermint_test test1 +gnokey maketx send -send 1000000000ugnot -to $user1_user_addr -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid tendermint_test test1 # tx1 out of gas gnokey sign -tx-path $WORK/tx1.tx -chainid tendermint_test -account-sequence 0 -account-number 58 user1 diff --git a/gno.land/pkg/integration/testdata/run.txtar b/gno.land/pkg/integration/testdata/run.txtar index 0bf670eab21..5145cb9b31b 100644 --- a/gno.land/pkg/integration/testdata/run.txtar +++ b/gno.land/pkg/integration/testdata/run.txtar @@ -4,7 +4,7 @@ loadpkg gno.land/r/foobar/bar $WORK/bar gnoland start ## execute Render -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1 $WORK/script/script.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test test1 $WORK/script/script.gno ## compare render stdout 'main: --- hello from foo ---' diff --git a/gno.land/pkg/integration/testdata/set_fee_collector.txtar b/gno.land/pkg/integration/testdata/set_fee_collector.txtar index 0a6717e8536..0d14c4e260b 100644 --- a/gno.land/pkg/integration/testdata/set_fee_collector.txtar +++ b/gno.land/pkg/integration/testdata/set_fee_collector.txtar @@ -14,12 +14,12 @@ loadpkg gno.land/r/gnoland/users/v1 gnoland start ## Load member as T1 to be able to vote afterwards -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/load_user.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/load_user.gno ## Submit a proposal to change fee_collector to collector1 ## pay the fee and submit a proposal to change the fee collector. -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/propose_collector1.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/propose_collector1.gno stdout '0' ## Check collector1 balance @@ -27,23 +27,23 @@ gnokey query bank/balances/$collector1_user_addr stdout '1000000000ugnot' # Register member with a namespace -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "collector111" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test collector1 +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "collector111" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test collector1 stdout 'OK!' # Register member with a namespace -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "collector222" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test collector2 +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "collector222" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test collector2 stdout 'OK!' ## Vote change proposal with unrestricted account test1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test test1 stdout 'OK!' ## Execute change proposal with unrestricted account test1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test test1 stdout 'OK!' ## Make costly tx -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/costly.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/costly.gno ## Check collector1 balance, must have changed gnokey query bank/balances/$collector1_user_addr @@ -52,13 +52,13 @@ stdout '997490700ugnot' ## Submit a proposal to change fee_collector to collector2 ## pay the fee and submit a proposal to change the fee collector. -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/propose_collector2.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/propose_collector2.gno stdout '1' ## Vote change proposal with unrestricted account test1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -args YES -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -args YES -chainid=tendermint_test test1 stdout 'OK!' ## Execute change proposal with unrestricted account test1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 1 -chainid=tendermint_test test1 stdout 'OK!' ## Check collector1 balance @@ -70,7 +70,7 @@ gnokey query bank/balances/$collector2_user_addr stdout '997403000ugnot' ## Make costly tx -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/costly.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/costly.gno ## Check collector1 balance, must not have changed gnokey query bank/balances/$collector1_user_addr diff --git a/gno.land/pkg/integration/testdata/simulate_gas.txtar b/gno.land/pkg/integration/testdata/simulate_gas.txtar index 92e41a27f85..b7a36f68616 100644 --- a/gno.land/pkg/integration/testdata/simulate_gas.txtar +++ b/gno.land/pkg/integration/testdata/simulate_gas.txtar @@ -5,11 +5,11 @@ loadpkg gno.land/r/simulate $WORK/simulate gnoland start # simulate only -gnokey maketx call -pkgpath gno.land/r/simulate -func Hello -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test -simulate only test1 +gnokey maketx call -pkgpath gno.land/r/simulate -func Hello -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test -simulate only test1 stdout 'GAS USED: 110247' # simulate skip -gnokey maketx call -pkgpath gno.land/r/simulate -func Hello -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test -simulate skip test1 +gnokey maketx call -pkgpath gno.land/r/simulate -func Hello -gas-fee 1000000ugnot -gas-wanted 2000000 -chainid=tendermint_test -simulate skip test1 stdout 'GAS USED: 110247' # same as simulate only -- package/package.gno -- diff --git a/gno.land/pkg/integration/testdata/storage_deposit.txtar b/gno.land/pkg/integration/testdata/storage_deposit.txtar index eb04ea08d43..e0ade1f50a0 100644 --- a/gno.land/pkg/integration/testdata/storage_deposit.txtar +++ b/gno.land/pkg/integration/testdata/storage_deposit.txtar @@ -3,7 +3,7 @@ ## start a new node gnoland start -gnokey maketx addpkg -pkgdir $WORK/realm -pkgpath gno.land/r/foo -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 502500ugnot -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/realm -pkgpath gno.land/r/foo -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 502500ugnot -chainid=tendermint_test test1 stdout 'EVENTS: \[{\"bytes_delta\":5025,\"fee_delta\":{\"denom\":\"ugnot\",\"amount\":502500},\"pkg_path\":\"gno.land/r/foo\"}\]' stdout 'STORAGE DELTA: 5025 bytes' stdout 'STORAGE FEE: 502500ugnot' @@ -14,7 +14,7 @@ gnokey query vm/qstorage --data gno.land/r/foo stdout 'storage: 5025, deposit: 502500' ## Set an object with a smaller size. Exactly 2 bytes are released when we update the realm record from 'hello' to 'foo'. -gnokey maketx call -pkgpath gno.land/r/foo -func NewFoo -args "foo" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func NewFoo -args "foo" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! stdout 'EVENTS: \[{\"bytes_delta\":-2,\"fee_refund\":{\"denom\":\"ugnot\",\"amount\":200},\"pkg_path\":\"gno.land/r/foo\",\"refund_withheld\":false}\]' stdout 'STORAGE DELTA: -2 bytes' @@ -27,7 +27,7 @@ stdout 'storage: 5023, deposit: 502300' ## remove an object - gnokey maketx call -pkgpath gno.land/r/foo -func Clear -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 + gnokey maketx call -pkgpath gno.land/r/foo -func Clear -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! stdout 'EVENTS: \[{\"bytes_delta\":-27,\"fee_refund\":{\"denom\":\"ugnot\",\"amount\":2700},\"pkg_path\":\"gno.land/r/foo\",\"refund_withheld\":false}\]' stdout 'STORAGE DELTA: -27 bytes' @@ -42,7 +42,7 @@ stdout 'storage: 5023, deposit: 502300' stdout '"coins": "9999996500400ugnot"' ## test storage deposit for package gno.land/p/foo -gnokey maketx addpkg -pkgdir $WORK/package -pkgpath gno.land/p/foo -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 302900ugnot -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/package -pkgpath gno.land/p/foo -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 302900ugnot -chainid=tendermint_test test1 stdout OK! stdout 'EVENTS: \[{\"bytes_delta\":3029,\"fee_delta\":{\"denom\":\"ugnot\",\"amount\":302900},\"pkg_path\":\"gno.land/p/foo\"}\]' stdout 'STORAGE DELTA: 3029 bytes' diff --git a/gno.land/pkg/integration/testdata/storage_deposit_bank_send.txtar b/gno.land/pkg/integration/testdata/storage_deposit_bank_send.txtar index d49123fa769..a99e73e8988 100644 --- a/gno.land/pkg/integration/testdata/storage_deposit_bank_send.txtar +++ b/gno.land/pkg/integration/testdata/storage_deposit_bank_send.txtar @@ -3,13 +3,13 @@ ## start a new node gnoland start -gnokey maketx addpkg -pkgdir $WORK/contracts -pkgpath gno.land/r/foo -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 835100ugnot -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/contracts -pkgpath gno.land/r/foo -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 835100ugnot -chainid=tendermint_test test1 stdout OK! # Users are not allowed to withdraw deposits from the realm balance via the realm banker. ## Get realm gno.land/r/foo (g1evezrh92xaucffmtgsaa3rvmz5s8kedffsg469) balance -gnokey maketx call -pkgpath gno.land/r/foo -func PkgAddress -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func PkgAddress -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'g1evezrh92xaucffmtgsaa3rvmz5s8kedffsg469' stdout OK! @@ -19,7 +19,7 @@ stdout '"coins": ""' ## Get realm gno.land/r/foo storage deposit address balance (g1nln0nrcd20s6a2736n864ma8lac0zep8hw7th9) balance -gnokey maketx call -pkgpath gno.land/r/foo -func StorageDepositAddress -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func StorageDepositAddress -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'g1nln0nrcd20s6a2736n864ma8lac0zep8hw7th9' stdout OK! @@ -36,7 +36,7 @@ gnokey query auth/accounts/$test1_user_addr stdout '"coins": "9999996164900ugnot"' ## realm send -! gnokey maketx call -pkgpath gno.land/r/foo -func RealmSend -args $test1_user_addr -args 1 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/foo -func RealmSend -args $test1_user_addr -args 1 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'insufficient coins error' ## realm balance after realm send has not changed @@ -52,7 +52,7 @@ gnokey query auth/accounts/$test1_user_addr stdout '9999996164900ugnot' ## realm banker send in msg run should bebehave the same. -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 $WORK/run/realm_send.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 $WORK/run/realm_send.gno stderr 'insufficient coins error' @@ -60,16 +60,16 @@ stderr 'insufficient coins error' ## Origin banker send within user's allowed amount -gnokey maketx call -pkgpath gno.land/r/foo -func OriginSend -args $test1_user_addr -args 1 -send 1ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/foo -func OriginSend -args $test1_user_addr -args 1 -send 1ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'OK' ## Origin banker send more than user's allowed amount -! gnokey maketx call -pkgpath gno.land/r/foo -func OriginSend -args $test1_user_addr -args 2 -send 1ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/foo -func OriginSend -args $test1_user_addr -args 2 -send 1ugnot -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'cannot send "2ugnot", limit "1ugnot" exceeded' ## Origin banker send more than user's allowed amount (no send flag specified) -! gnokey maketx call -pkgpath gno.land/r/foo -func OriginSend -args $test1_user_addr -args 1 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/foo -func OriginSend -args $test1_user_addr -args 1 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'cannot send "1ugnot", limit "" exceeded' diff --git a/gno.land/pkg/integration/testdata/storage_deposit_collector.txtar b/gno.land/pkg/integration/testdata/storage_deposit_collector.txtar index ae2a98fd3de..a894eaf8e0d 100644 --- a/gno.land/pkg/integration/testdata/storage_deposit_collector.txtar +++ b/gno.land/pkg/integration/testdata/storage_deposit_collector.txtar @@ -21,27 +21,27 @@ loadpkg gno.land/r/gnoland/users/v1 gnoland start -lock-transfer ## Load member as T1 to be able to vote afterwards -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/load_user.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/load_user.gno ## Submit a proposal to change storage_fee_collector to storage_collector ## pay the fee and submit a proposal to change the fee collector. -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/propose_collector.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/propose_collector.gno stdout '0' ## Vote change proposal with unrestricted account test1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gov/dao -func MustVoteOnProposalSimple -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -args YES -chainid=tendermint_test test1 stdout 'OK!' ## Execute change proposal with unrestricted account test1 -gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gov/dao -func ExecuteProposal -gas-fee 1000000ugnot -gas-wanted 10000000 -args 0 -chainid=tendermint_test test1 stdout 'OK!' ## Check storage_collector balance gnokey query bank/balances/$storage_collector_user_addr stdout '1000000000ugnot' -gnokey maketx addpkg -pkgdir $WORK/bytesbank -pkgpath gno.land/r/bytesbank -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 502500ugnot -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/bytesbank -pkgpath gno.land/r/bytesbank -gas-fee 1000000ugnot -gas-wanted 20000000 -max-deposit 502500ugnot -chainid=tendermint_test test1 stdout 'EVENTS: \[{\"bytes_delta\":3411,\"fee_delta\":{\"denom\":\"ugnot\",\"amount\":341100},\"pkg_path\":\"gno.land/r/bytesbank\"}]' stdout 'STORAGE DELTA: 3411 bytes' stdout 'STORAGE FEE: 341100ugnot' @@ -52,7 +52,7 @@ gnokey query vm/qstorage --data gno.land/r/bytesbank stdout 'storage: 3411, deposit: 341100' ## Set an object with a smaller size. Exactly 2 bytes are released when we update the realm record from 'hello' to 'foo'. -gnokey maketx call -pkgpath gno.land/r/bytesbank -func Credit -args $norman_user_addr -args 500000 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test alice +gnokey maketx call -pkgpath gno.land/r/bytesbank -func Credit -args $norman_user_addr -args 500000 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test alice stdout OK! stdout 'STORAGE DELTA: 501531 bytes' stdout 'STORAGE FEE: 50153100ugnot' @@ -63,7 +63,7 @@ stdout 'storage: 504942, deposit: 50494200' ## Norman frees the storage of bytes bank, but storage deposit goes to storage fee collector ## instead of him -gnokey maketx call -pkgpath gno.land/r/bytesbank -func Debit -args 0 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test norman +gnokey maketx call -pkgpath gno.land/r/bytesbank -func Debit -args 0 -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test norman stdout OK! stdout 'STORAGE DELTA: -501132 bytes' diff --git a/gno.land/pkg/integration/testdata/time_simple.txtar b/gno.land/pkg/integration/testdata/time_simple.txtar index 54ac0fe8988..b07c51c0b6b 100644 --- a/gno.land/pkg/integration/testdata/time_simple.txtar +++ b/gno.land/pkg/integration/testdata/time_simple.txtar @@ -3,7 +3,7 @@ gnoland start -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/time_simple -gas-fee 100000ugnot -gas-wanted 15000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/time_simple -gas-fee 100000ugnot -gas-wanted 15000000 -chainid=tendermint_test test1 stdout OK! -- gnomod.toml -- diff --git a/gno.land/pkg/integration/testdata/transfer_lock.txtar b/gno.land/pkg/integration/testdata/transfer_lock.txtar index 3f24c780c9b..435d2e75125 100644 --- a/gno.land/pkg/integration/testdata/transfer_lock.txtar +++ b/gno.land/pkg/integration/testdata/transfer_lock.txtar @@ -15,25 +15,25 @@ gnoland start -lock-transfer ## test1 is the DefaultAccount in the integration test. To ensure that the unrestricted account can send tokens even when token transfers are locked, ## we included it in the unrestricted account list in the genesis state. By default, the unrestricted account list is empty. -gnokey maketx send -send "9999999ugnot" -to $regular1_user_addr -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx send -send "9999999ugnot" -to $regular1_user_addr -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'OK!' ## Restricted simple token transfer -! gnokey maketx send -send "9999999ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 1ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +! gnokey maketx send -send "9999999ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 1ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stderr 'restricted token transfer error' ## Restricted token transfer by calling a realm deposit function. -! gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -gas-fee 1000000ugnot -send "10000ugnot" -gas-wanted 2000000 -broadcast -chainid=tendermint_test regular1 +! gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -gas-fee 1000000ugnot -send "10000ugnot" -gas-wanted 2000000 -chainid=tendermint_test regular1 stderr 'restricted token transfer error' ## making a storage deposit to a realm package while adding the package is acceptable -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/bank -max-deposit "2000000ugnot" -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test regular1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/bank -max-deposit "2000000ugnot" -gas-fee 1000000ugnot -gas-wanted 11000000 -chainid=tendermint_test regular1 stdout 'OK!' ## paying gas fees to add a package is acceptable. -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/bank2 -gas-fee 1000000ugnot -gas-wanted 12500000 -broadcast -chainid=tendermint_test regular1 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/bank2 -gas-fee 1000000ugnot -gas-wanted 12500000 -chainid=tendermint_test regular1 stdout 'OK!' ## paying gas fees to call a realm function is acceptable. diff --git a/gno.land/pkg/integration/testdata/transfer_unlock.txtar b/gno.land/pkg/integration/testdata/transfer_unlock.txtar index 9e0bce1dc52..4c571713537 100644 --- a/gno.land/pkg/integration/testdata/transfer_unlock.txtar +++ b/gno.land/pkg/integration/testdata/transfer_unlock.txtar @@ -12,40 +12,40 @@ gnoland start -lock-transfer ## test1 is the DefaultAccount in the integration test. To ensure that the unrestricted account can send tokens even when token transfers are locked, ## we included it in the unrestricted account list in the genesis state. By default, the unrestricted account list is empty. -gnokey maketx send -send "9999999ugnot" -to $regular1_user_addr -gas-fee 100000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx send -send "9999999ugnot" -to $regular1_user_addr -gas-fee 100000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'OK!' ## Restricted simple token transfer for a regular account -! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 100000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 100000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stderr 'restricted token transfer error' ## Load member as T1 to be able to vote afterwards -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/load_user.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/load_user.gno ## Submit a proposal to unlock the transfer. When token transfer is locked, only the predefined unrestricted account test1 in the genesis state can ## pay the fee and submit a proposal to unlock the transfer. -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/propose_unlock.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/propose_unlock.gno stdout '0' ## Vote unlock proposal with unrestricted account test1 -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/vote_proposal.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/vote_proposal.gno stdout 'OK!' ## Execute unlock proposal with unrestricted account test1 -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/exec_proposal.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/exec_proposal.gno stdout 'OK!' # Register member with a namespace -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stdout 'OK!' ## Restricted transfer is unlocked, allowing simple token transfers for regular accounts. -gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 100000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 100000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stdout 'OK!' diff --git a/gno.land/pkg/integration/testdata/transfer_unrestricted.txtar b/gno.land/pkg/integration/testdata/transfer_unrestricted.txtar index 0d988d9e708..beae18e6c3b 100644 --- a/gno.land/pkg/integration/testdata/transfer_unrestricted.txtar +++ b/gno.land/pkg/integration/testdata/transfer_unrestricted.txtar @@ -17,49 +17,49 @@ gnoland start -lock-transfer ## test1 is the DefaultAccount in the integration test. To ensure that the unrestricted account can send tokens even when token transfers are locked, ## we included it in the unrestricted account list in the genesis state. By default, the unrestricted account list is empty. -gnokey maketx send -send "9999999ugnot" -to $regular1_user_addr -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx send -send "9999999ugnot" -to $regular1_user_addr -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'OK!' -gnokey maketx send -send "9999999ugnot" -to $regular2_user_addr -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx send -send "9999999ugnot" -to $regular2_user_addr -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout 'OK!' ## Restricted simple token transfer for a regular account -! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stderr 'restricted token transfer error' -! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular2 +! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular2 stderr 'restricted token transfer error' ## Load member as T1 to be able to vote afterwards -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/load_user.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/load_user.gno ## Submit a proposal to add a regular use as the unrestricted account. -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/propose_unrestricted.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/propose_unrestricted.gno stdout '0' ## Vote for the unrestricted account proposal using test1 -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/vote_proposal.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/vote_proposal.gno stdout 'OK!' ## Execute the unrestricted account proposal using test1 -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/exec_proposal.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/exec_proposal.gno stdout 'OK!' ## Token transfers for regular1 accounts is allowed. -gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stdout 'OK!' ## Token transfers for regular2 accounts is allowed. -gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular2 +gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular2 stdout 'OK!' @@ -69,17 +69,17 @@ stdout '["g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","g18e22n23g462drp4pyszyl6e6m ## Submit a proposal to remove regular1 and regular2 as the unrestricted accounts. -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/propose_restricted.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/propose_restricted.gno stdout '1' ## Vote for the remove unrestricted account proposal using test1 -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/vote_proposal1.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/vote_proposal1.gno stdout 'OK!' ## Execute the remove unrestricted account proposal using test1 -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/exec_proposal1.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/exec_proposal1.gno stdout 'OK!' @@ -88,11 +88,11 @@ gnokey query params/auth:p:unrestricted_addrs stdout '["g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5"]' ## Restricted simple token transfer for a regular account -! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stderr 'restricted token transfer error' -! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular2 +! gnokey maketx send -send "100ugnot" -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -gas-fee 10000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular2 stderr 'restricted token transfer error' diff --git a/gno.land/pkg/integration/testdata/update_storage_params.txtar b/gno.land/pkg/integration/testdata/update_storage_params.txtar index bdc16172d31..88cd41a3e62 100644 --- a/gno.land/pkg/integration/testdata/update_storage_params.txtar +++ b/gno.land/pkg/integration/testdata/update_storage_params.txtar @@ -13,15 +13,15 @@ loadpkg gno.land/r/gov/dao/v3/loader $WORK/loader gnoland start ## add a contract -gnokey maketx addpkg -pkgdir $WORK/storage -pkgpath gno.land/r/storage -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +gnokey maketx addpkg -pkgdir $WORK/storage -pkgpath gno.land/r/storage -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stdout OK! ## Propose to update default deposit. -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -broadcast -chainid=tendermint_test test1 $WORK/run/submit_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 100000000 -chainid=tendermint_test test1 $WORK/run/submit_proposal.gno stdout OK! ## Vote "update default deposit" -gnokey maketx run -gas-fee 95000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/vote_proposal.gno +gnokey maketx run -gas-fee 95000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/vote_proposal.gno stdout 'OK!' @@ -30,7 +30,7 @@ gnokey query params/vm:p:default_deposit stdout '600000000ugnot' ## Execute "update default deposit" proposal -gnokey maketx run -gas-fee 20000ugnot -gas-wanted 20000000 -broadcast -chainid=tendermint_test test1 $WORK/run/exec_proposal.gno +gnokey maketx run -gas-fee 20000ugnot -gas-wanted 20000000 -chainid=tendermint_test test1 $WORK/run/exec_proposal.gno stdout 'OK!' @@ -41,7 +41,7 @@ stdout '1ugnot' ## failed due to not providing enough default deposit -! gnokey maketx call -pkgpath gno.land/r/storage -func SetName -args "hellooo" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/storage -func SetName -args "hellooo" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test test1 stderr 'not enough deposit to cover the storage usage' diff --git a/gno.land/pkg/integration/testdata/user_journey.txtar b/gno.land/pkg/integration/testdata/user_journey.txtar index 2cf90ff295f..8bf8411100c 100644 --- a/gno.land/pkg/integration/testdata/user_journey.txtar +++ b/gno.land/pkg/integration/testdata/user_journey.txtar @@ -31,7 +31,7 @@ stdout 'data: "100000000000ugnot"' ################################ # User3 funds user1 (100ugnot) and user2 (4e10ugnot) using the disperse Realm -gnokey maketx call -pkgpath gno.land/r/demo/disperse -func DisperseUgnotString -args "$user1_user_addr,$user2_user_addr" -args '100,40000000000' -send 40000000100ugnot -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user3 +gnokey maketx call -pkgpath gno.land/r/demo/disperse -func DisperseUgnotString -args "$user1_user_addr,$user2_user_addr" -args '100,40000000000' -send 40000000100ugnot -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user3 stdout 'OK!' # Verify users' new balances @@ -43,7 +43,7 @@ gnokey query bank/balances/${user3_user_addr} stdout 'data: "59998999900ugnot"' # Disperse + Gas used # User2 sends some more ugnot to user1 (1e10ugnot) -gnokey maketx send -send 10000000000ugnot -to $user1_user_addr -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid tendermint_test user2 +gnokey maketx send -send 10000000000ugnot -to $user1_user_addr -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid tendermint_test user2 stdout 'OK!' # Verify users' new balances @@ -63,13 +63,13 @@ gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user2_user stdout '0 int64' # user2 make a deposit of 1e7ugnot -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -send 10000000ugnot -gas-fee 100000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -send 10000000ugnot -gas-fee 100000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user2_user_addr}\")" stdout '10000000 int64' # user2 transfers 1e7ugnot to user1 -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Transfer -args ${user1_user_addr} -args 10000000 -gas-fee 100000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Transfer -args ${user1_user_addr} -args 10000000 -gas-fee 100000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' # Verify users' new balances @@ -79,7 +79,7 @@ gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user2_user stdout '0 int64' # user1 withdraw 1e7ugnot -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Withdraw -args 10000000 -gas-fee 100000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Withdraw -args 10000000 -gas-fee 100000ugnot -gas-wanted 14000000 -chainid=tendermint_test user1 stdout 'OK!' ################################ @@ -90,11 +90,11 @@ stdout 'OK!' env DISPERSE_REALM_ADDR=g1yryw6qs8h9anvguu4dfdc0u7zh4gvv8vqf59sj # user1 creates a new token with 5 decimals and 10 drip ammount for the faucet -gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func New -args MyAwesomeToken -args MAT -args 5 -args 0 -args 10 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func New -args MyAwesomeToken -args MAT -args 5 -args 0 -args 10 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user1 stdout 'OK!' # user1 mints 1000 MAT to himself -gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Mint -args MAT -args "$user1_user_addr" -args 1000 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Mint -args MAT -args "$user1_user_addr" -args 1000 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user1 stdout 'OK!' # Verify user1's MAT balance @@ -102,7 +102,7 @@ gnokey query vm/qeval --data "gno.land/r/demo/defi/grc20factory.BalanceOf(\"MAT\ stdout '1000 int64' # Approve disperse Realm to spend 500 MAT on behalf of user1 -gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Approve -args MAT -args "$DISPERSE_REALM_ADDR" -args 500 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Approve -args MAT -args "$DISPERSE_REALM_ADDR" -args 500 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user1 stdout 'OK!' # Check disperse Realm allowance to spend MAT on behalf of user1 @@ -110,7 +110,7 @@ gnokey query vm/qeval --data "gno.land/r/demo/defi/grc20factory.Allowance(\"MAT\ stdout '500 int64' # Disperse 490 MAT to user2 and 10 to user3 -gnokey maketx call -pkgpath gno.land/r/demo/disperse -func DisperseGRC20String -args "$user2_user_addr,$user3_user_addr" -args '490MAT,10MAT' -gas-fee 1000000ugnot -gas-wanted 50000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/demo/disperse -func DisperseGRC20String -args "$user2_user_addr,$user3_user_addr" -args '490MAT,10MAT' -gas-fee 1000000ugnot -gas-wanted 50000000 -chainid=tendermint_test user1 stdout 'OK!' # Verify user2's and user3's MAT balances @@ -120,7 +120,7 @@ gnokey query vm/qeval --data "gno.land/r/demo/defi/grc20factory.BalanceOf(\"MAT\ stdout '10 int64' # user3 requests MAT from the faucet -gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Faucet -args MAT -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user3 +gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Faucet -args MAT -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user3 stdout 'OK!' # Verify user3's MAT balance @@ -128,7 +128,7 @@ gnokey query vm/qeval --data "gno.land/r/demo/defi/grc20factory.BalanceOf(\"MAT\ stdout '20 int64' # user2 transfers 200 MAT to user3 -gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Transfer -args MAT -args "$user3_user_addr" -args 200 -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/demo/defi/grc20factory -func Transfer -args MAT -args "$user3_user_addr" -args 200 -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' # Verify user2's and user3's MAT balances @@ -142,33 +142,33 @@ stdout '220 int64' ########################### # user3 register as gnoland/user -gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 -func Register -args user333 -gas-fee 1000000ugnot -gas-wanted 14000000 -send 1000000ugnot -broadcast -chainid=tendermint_test user3 +gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 -func Register -args user333 -gas-fee 1000000ugnot -gas-wanted 14000000 -send 1000000ugnot -chainid=tendermint_test user3 stdout 'OK!' # user3 creates a new board and a thread -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateBoard -args 'user3_awesome_board' -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user3 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateBoard -args 'user3_awesome_board' -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user3 stdout 'OK!' -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateThread -args 1 -args 'My first thread' -args 'Hey Guys!' -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user3 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateThread -args 1 -args 'My first thread' -args 'Hey Guys!' -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user3 stdout 'OK!' # user1 tries to reply to the thread without registering -! gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateReply -args 1 -args 1 -args 1 -args 'Hello!' -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user1 +! gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateReply -args 1 -args 1 -args 1 -args 'Hello!' -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user1 stderr 'please register, otherwise minimum fee 100000000 is required if anonymous' # user2 registers as gnoland/user -gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 -func Register -args user222 -gas-fee 1000000ugnot -gas-wanted 14000000 -send 1000000ugnot -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 -func Register -args user222 -gas-fee 1000000ugnot -gas-wanted 14000000 -send 1000000ugnot -chainid=tendermint_test user2 stdout 'OK!' # user2 posts a reply to the thread -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateReply -args 1 -args 1 -args 1 -args 'Hey hey hey!' -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateReply -args 1 -args 1 -args 1 -args 'Hey hey hey!' -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' # user2 creates a new thread -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateThread -args 1 -args 'My own thread' -args 'Posting on my own thread' -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateThread -args 1 -args 'My own thread' -args 'Posting on my own thread' -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' # user1 replies to user3's thread anonymously -gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateReply -args 1 -args 1 -args 1 -args 'I prefer not to register' -send 100000000ugnot -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/archive/boards -func CreateReply -args 1 -args 1 -args 1 -args 'I prefer not to register' -send 100000000ugnot -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user1 stdout 'OK!' ###################### @@ -176,11 +176,11 @@ stdout 'OK!' ###################### # Enable `sys/names` to deploy packages to user namespace -gnokey maketx call -pkgpath gno.land/r/sys/names -func Enable -gas-fee 100000ugnot -gas-wanted 1500000 -broadcast -chainid tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/sys/names -func Enable -gas-fee 100000ugnot -gas-wanted 1500000 -chainid tendermint_test test1 stdout 'OK!' # user2 publishes a custom home package to its namespace -gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/user222/home -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/user222/home -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' # Render user2's home package @@ -188,7 +188,7 @@ gnokey query vm/qrender --data "gno.land/r/user222/home:" stdout 'My awesome home package with admin: '${user2_user_addr} # user2's transfer ownership to user1 -gnokey maketx call -pkgpath gno.land/r/user222/home -func TransferOwnership -args "$user1_user_addr" -send 100000000ugnot -gas-fee 1000000ugnot -gas-wanted 14000000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/user222/home -func TransferOwnership -args "$user1_user_addr" -send 100000000ugnot -gas-fee 1000000ugnot -gas-wanted 14000000 -chainid=tendermint_test user2 stdout 'OK!' # Wait for https://github.com/gnolang/gno/pull/4278 to be merged diff --git a/gno.land/pkg/integration/testdata/valopers.txtar b/gno.land/pkg/integration/testdata/valopers.txtar index 688a322f88a..343de6b7267 100644 --- a/gno.land/pkg/integration/testdata/valopers.txtar +++ b/gno.land/pkg/integration/testdata/valopers.txtar @@ -9,22 +9,22 @@ adduser regular1 gnoland start # Register member with a namespace -gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test regular1 +gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 10000000 -chainid=tendermint_test regular1 stdout 'OK!' # Add user as a member for govdao -gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/load_user.gno +gnokey maketx run -gas-fee 100000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/load_user.gno # add a valoper with a bad address -! gnokey maketx call -pkgpath gno.land/r/gnops/valopers -func Register -gas-fee 1000000ugnot -gas-wanted 30000000 -send 20000000ugnot -args berty -args "My validator description" -args 1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl -args gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/gnops/valopers -func Register -gas-fee 1000000ugnot -gas-wanted 30000000 -send 20000000ugnot -args berty -args "My validator description" -args 1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl -args gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj -chainid=tendermint_test test1 stderr 'panic: invalid address' # add a valoper with a bad pubkey -! gnokey maketx call -pkgpath gno.land/r/gnops/valopers -func Register -gas-fee 1000000ugnot -gas-wanted 30000000 -send 20000000ugnot -args berty -args "My validator description" -args g1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl -args gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40zzz -broadcast -chainid=tendermint_test test1 +! gnokey maketx call -pkgpath gno.land/r/gnops/valopers -func Register -gas-fee 1000000ugnot -gas-wanted 30000000 -send 20000000ugnot -args berty -args "My validator description" -args g1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl -args gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40zzz -chainid=tendermint_test test1 stderr 'panic: invalid checksum' # add a valoper -gnokey maketx call -pkgpath gno.land/r/gnops/valopers -func Register -gas-fee 1000000ugnot -gas-wanted 30000000 -send 20000000ugnot -args berty -args "My validator description" -args g1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl -args gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj -broadcast -chainid=tendermint_test test1 +gnokey maketx call -pkgpath gno.land/r/gnops/valopers -func Register -gas-fee 1000000ugnot -gas-wanted 30000000 -send 20000000ugnot -args berty -args "My validator description" -args g1ut590acnamvhkrh4qz6dz9zt9e3hyu499u0gvl -args gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj -chainid=tendermint_test test1 stdout OK! # see the valoper in the Render @@ -32,11 +32,11 @@ gnokey query vm/qrender --data 'gno.land/r/gnops/valopers:' stdout '\* \[berty\]' # make a proposal for a non-existing valoper -! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/new_proposal_bad.gno +! gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/new_proposal_bad.gno stderr 'panic: valoper does not exist' # make a proposal -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/new_proposal_good.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/new_proposal_good.gno stdout OK! # see the valoper in gov/dao Render @@ -44,7 +44,7 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:' stdout 'Add valoper berty' # make a proposal for updating instructions -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/new_instructions_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/new_instructions_proposal.gno stdout OK! # see the instructions in gov/dao proposition Render @@ -52,7 +52,7 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:1' stdout 'new instructions' # make a proposal for updating minimum fee -gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -broadcast -chainid=tendermint_test test1 $WORK/run/new_minfee_proposal.gno +gnokey maketx run -gas-fee 1000000ugnot -gas-wanted 95000000 -chainid=tendermint_test test1 $WORK/run/new_minfee_proposal.gno stdout OK! # see the instructions in gov/dao proposition Render diff --git a/gno.land/pkg/integration/testdata/wugnot.txtar b/gno.land/pkg/integration/testdata/wugnot.txtar index 3d38ca58844..8b5c733c9d8 100644 --- a/gno.land/pkg/integration/testdata/wugnot.txtar +++ b/gno.land/pkg/integration/testdata/wugnot.txtar @@ -21,7 +21,7 @@ gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user1_user stdout '0 int64' # Deposit using user1 -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -send 10000ugnot -gas-fee 100000ugnot -gas-wanted 50000000 -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -send 10000ugnot -gas-fee 100000ugnot -gas-wanted 50000000 -chainid=tendermint_test user1 stdout 'OK!' gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user1_user_addr}\")" @@ -37,7 +37,7 @@ gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user2_user stdout '0 int64' # Deposit using user2 -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -send 10000ugnot -gas-fee 10000ugnot -gas-wanted 10_000_000 -broadcast -chainid=tendermint_test user2 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Deposit -send 10000ugnot -gas-fee 10000ugnot -gas-wanted 10_000_000 -chainid=tendermint_test user2 stdout 'OK!' gnokey query vm/qeval --data "gno.land/r/gnoland/wugnot.BalanceOf(\"${user1_user_addr}\")" @@ -52,7 +52,7 @@ stdout 'Total supply..: 20000' stdout 'Known accounts..: 2' -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Transfer -gas-fee 11000ugnot -gas-wanted 11_000_000 -args ${user3_user_addr} -args '10000' -broadcast -chainid=tendermint_test user1 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Transfer -gas-fee 11000ugnot -gas-wanted 11_000_000 -args ${user3_user_addr} -args '10000' -chainid=tendermint_test user1 stdout 'OK!' gnokey query vm/qrender --data "gno.land/r/gnoland/wugnot:" @@ -60,7 +60,7 @@ stdout 'Total supply..: 20000' stdout 'Known accounts..: 2' # user1 is no longer known, as they transferred all their balance # XXX: use test3 instead (depends on https://github.com/gnolang/gno/issues/1269#issuecomment-1806386069) -gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Withdraw -args 10000 -gas-fee 11000ugnot -gas-wanted 11_000_000 -broadcast -chainid=tendermint_test user3 +gnokey maketx call -pkgpath gno.land/r/gnoland/wugnot -func Withdraw -args 10000 -gas-fee 11000ugnot -gas-wanted 11_000_000 -chainid=tendermint_test user3 stdout 'OK!' gnokey query vm/qrender --data "gno.land/r/gnoland/wugnot:" diff --git a/gno.land/pkg/keyscli/maketx.go b/gno.land/pkg/keyscli/maketx.go index 117a9bb3c3d..56132fd13f9 100644 --- a/gno.land/pkg/keyscli/maketx.go +++ b/gno.land/pkg/keyscli/maketx.go @@ -70,7 +70,7 @@ func (c *MakeTxCfg) RegisterFlags(fs *flag.FlagSet) { fs.BoolVar( &c.Broadcast, "broadcast", - false, + true, "sign and broadcast", ) diff --git a/tm2/pkg/crypto/keys/client/maketx.go b/tm2/pkg/crypto/keys/client/maketx.go index 6c11ed7ac6c..7cf8281bf27 100644 --- a/tm2/pkg/crypto/keys/client/maketx.go +++ b/tm2/pkg/crypto/keys/client/maketx.go @@ -89,7 +89,7 @@ func (c *MakeTxCfg) RegisterFlags(fs *flag.FlagSet) { fs.BoolVar( &c.Broadcast, "broadcast", - false, + true, "sign, simulate and broadcast", )