Skip to content

Commit 92e1d54

Browse files
committed
fix gas
1 parent 83eda47 commit 92e1d54

19 files changed

+34
-34
lines changed

gno.land/pkg/integration/testdata/gc.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gnoland start -no-parallel
77

88

99
gnokey maketx call -pkgpath gno.land/r/gc -func Alloc -gas-fee 10000000ugnot -gas-wanted 300000000 -simulate skip -broadcast -chainid tendermint_test test1
10-
stdout 'GAS USED: 262693098'
10+
stdout 'GAS USED: 262693253'
1111

1212
-- r/gc/gc.gno --
1313
package gc

gno.land/pkg/integration/testdata/ghverify.txtar

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ loadpkg gno.land/r/gnoland/ghverify
44
gnoland start
55

66
# make a verification request
7-
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func RequestVerification -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 6500000 -broadcast -chainid=tendermint_test test1
7+
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func RequestVerification -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 7000000 -broadcast -chainid=tendermint_test test1
88
stdout OK!
99

1010
# request tasks to complete (this is done by the agent)
1111
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint -args 'request' -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1
1212
stdout '\("\[\{\\"id\\":\\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\\",\\"type\\":\\"0\\",\\"value_type\\":\\"string\\",\\"tasks\\":\[\{\\"gno_address\\":\\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\\",\\"github_handle\\":\\"deelawn\\"\}\]\}\]" string\)'
1313

1414
# a verification request was made but there should be no verified address
15-
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 800000 -broadcast -chainid=tendermint_test test1
15+
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 1200000 -broadcast -chainid=tendermint_test test1
1616
stdout ""
1717

1818
# a verification request was made but there should be no verified handle
19-
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 800000 -broadcast -chainid=tendermint_test test1
19+
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 1200000 -broadcast -chainid=tendermint_test test1
2020
stdout ""
2121

2222
# fail on ingestion with a bad task ID
@@ -28,11 +28,11 @@ gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GnorkleEntrypoint
2828
stdout OK!
2929

3030
# get verified github handle by gno address
31-
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 809000 -broadcast -chainid=tendermint_test test1
31+
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetHandleByAddress -args 'g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5' -gas-fee 1000000ugnot -gas-wanted 1200000 -broadcast -chainid=tendermint_test test1
3232
stdout "deelawn"
3333

3434
# get verified gno address by github handle
35-
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 809000 -broadcast -chainid=tendermint_test test1
35+
gnokey maketx call -pkgpath gno.land/r/gnoland/ghverify -func GetAddressByHandle -args 'deelawn' -gas-fee 1000000ugnot -gas-wanted 1200000 -broadcast -chainid=tendermint_test test1
3636
stdout "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5"
3737

3838
gnokey query vm/qrender --data 'gno.land/r/gnoland/ghverify:'

gno.land/pkg/integration/testdata/gnokey_gasfee.txtar

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ stdout '"coins": "9999999792018ugnot"'
3131

3232
# Tx Call -simulate only, estimate gas used and gas fee
3333
gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 2000000 -gas-fee 1000000ugnot -broadcast -chainid tendermint_test -simulate only test1
34-
stdout 'GAS USED: 113965'
35-
stdout 'INFO: estimated gas usage: 113965, gas fee: 119ugnot, current gas price: 1ugnot/1000gas'
34+
stdout 'GAS USED: 114120'
35+
stdout 'INFO: estimated gas usage: 114120, gas fee: 120ugnot, current gas price: 1ugnot/1000gas'
3636

3737
## No fee was charged, and the sequence number did not change.
3838
gnokey query auth/accounts/$test1_user_addr
3939
stdout '"sequence": "1"'
4040
stdout '"coins": "9999999792018ugnot"'
4141

4242
# Using the simulated gas and estimated gas fee should ensure the transaction executes successfully.
43-
gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 113942 -gas-fee 118ugnot -broadcast -chainid tendermint_test test1
43+
gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 114120 -gas-fee 120ugnot -broadcast -chainid tendermint_test test1
4444
stdout 'OK'
4545

4646
## fee is charged and sequence number increased
4747
gnokey query auth/accounts/$test1_user_addr
4848
stdout '"sequence": "2"'
49-
stdout '"coins": "9999999791900ugnot"'
49+
stdout '"coins": "9999999791898ugnot"'
5050

5151
-- hello/gnomod.toml --
5252
module = "gno.land/r/hello"

gno.land/pkg/integration/testdata/govdao_invite_t3_member.txtar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ gnoland start
2121
gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
2222

2323
# Register member with a namespace first
24-
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
24+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
2525
stdout 'OK!'
2626

2727
# Register member with a namespace first
28-
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
28+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "newmem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test newmember
2929
stdout 'OK!'
3030

3131
# Call from a non-member

gno.land/pkg/integration/testdata/govdao_proposal_add_member.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
1919
stdout 'data: # GovDAO'
2020

2121
# Register member with a namespace first
22-
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
22+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
2323
stdout 'OK!'
2424

2525
# add the proposal (temporarily comment out to debug)

gno.land/pkg/integration/testdata/govdao_proposal_change_law.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gnoland start
1515
gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
1616

1717
# Register member with a namespace first
18-
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
18+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
1919
stdout 'OK!'
2020

2121
# add the proposal

gno.land/pkg/integration/testdata/govdao_proposal_new_param.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gnoland start
1818
gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
1919

2020
# Register member with a namespace first
21-
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
21+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
2222
stdout 'OK!'
2323

2424
# add the proposal

gno.land/pkg/integration/testdata/govdao_proposal_new_post.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
1717
stdout 'data: # GovDAO'
1818

1919
# Register member with a namespace first
20-
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
20+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
2121
stdout 'OK!'
2222

2323
# add the proposal

gno.land/pkg/integration/testdata/govdao_proposal_promote_member.txtar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
1919
stdout 'data: # GovDAO'
2020

2121
# Register member with a namespace first
22-
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
22+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
2323
stdout 'OK!'
2424

2525
# Register withdrawmember with a namespace first
26-
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
26+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "withdraw456" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test withdrawmember
2727
stdout 'OK!'
2828

2929
# add the proposal

gno.land/pkg/integration/testdata/govdao_proposal_treasury_payment.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gnoland start
1919
gnokey query vm/qrender --data 'gno.land/r/gov/dao:'
2020

2121
# Register member with a namespace first
22-
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
22+
gnokey maketx call -send "1000000ugnot" -pkgpath gno.land/r/gnoland/users/v1 -func Register -args "mem123" -gas-fee 1000000ugnot -gas-wanted 12000000 -broadcast -chainid=tendermint_test member
2323
stdout 'OK!'
2424

2525
# 1/3 verify receiver and treasury balances

0 commit comments

Comments
 (0)