Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,23 @@
# On the pre-split single-blob layout, depb's mempackage included its _test.gno,
# so type-checking useb decoded those extra bytes and useb cost MORE than usea.
#
# Measured: on this branch usea == useb == 3172401 (equal => the win). On master
# (pre-split) usea == 3172364 but useb == 3212984 -- importing depb costs +40620
# gas for its _test.gno bytes. The split removes that import penalty.
# Measured: on this branch usea == useb == 3277401 (equal => the win; includes the
# PreprocessGasPerByte addpkg charge). On master (pre-split, pre-charge) usea == 3172364
# but useb == 3212984 -- importing depb costs +40620 gas for its _test.gno bytes. The
# split removes that import penalty.
#
# The two GAS USED assertions below MUST stay equal to each other; that equality
# is the regression guard for the split (the absolute value is an ordinary pin).

gnoland start

gnokey maketx addpkg -pkgdir $WORK/depa -pkgpath gno.land/p/demo/depa -gas-fee 1000000ugnot -gas-wanted 5000000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/depb -pkgpath gno.land/p/demo/depb -gas-fee 1000000ugnot -gas-wanted 5000000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/depb -pkgpath gno.land/p/demo/depb -gas-fee 1000000ugnot -gas-wanted 8000000 -chainid=tendermint_test test1

gnokey maketx addpkg -pkgdir $WORK/usea -pkgpath gno.land/p/demo/usea -gas-fee 1000000ugnot -gas-wanted 5000000 -chainid=tendermint_test test1
stdout 'GAS USED:\s+3172401'
stdout 'GAS USED:\s+3277401'
gnokey maketx addpkg -pkgdir $WORK/useb -pkgpath gno.land/p/demo/useb -gas-fee 1000000ugnot -gas-wanted 5000000 -chainid=tendermint_test test1
stdout 'GAS USED:\s+3172401'
stdout 'GAS USED:\s+3277401'

-- depa/gnomod.toml --
module = "gno.land/p/demo/depa"
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/addpkg_private.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ loadpkg gno.land/p/nt/avl/v0
gnoland start

# add the public realm first
gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 820001ugnot -gas-wanted 8_200_000 -chainid=tendermint_test $test1_user_addr
gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 820001ugnot -gas-wanted 11_000_000 -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 1100001ugnot -gas-wanted 11_000_000 -chainid=tendermint_test $test1_user_addr
gnokey maketx addpkg -pkgdir $WORK/privaterealm -pkgpath gno.land/r/foobar/privaterealm -gas-fee 1100001ugnot -gas-wanted 24_000_000 -chainid=tendermint_test $test1_user_addr
stdout OK!

! gnokey maketx call -pkgpath gno.land/r/foobar/privaterealm -func SaveTreeToPublicRealm -gas-fee 5000000ugnot -gas-wanted 50000000 -chainid=tendermint_test $test1_user_addr
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/addpkg_public.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ loadpkg gno.land/p/nt/avl/v0
gnoland start

# add the public realm first
gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 750001ugnot -gas-wanted 7_500_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/publicrealm -pkgpath gno.land/r/foobar/publicrealm -gas-fee 750001ugnot -gas-wanted 11_000_000 -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 910001ugnot -gas-wanted 9_100_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/normalrealm -pkgpath gno.land/r/foobar/normalrealm -gas-fee 910001ugnot -gas-wanted 13_000_000 -chainid=tendermint_test test1
stdout OK!

gnokey maketx call -pkgpath gno.land/r/foobar/normalrealm -func SaveTreeToPublicRealm -gas-fee 570001ugnot -gas-wanted 5_700_000 -chainid=tendermint_test test1
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/adduser.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ gnoland start
gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/foobar/bar -gas-fee 350001ugnot -gas-wanted 3_500_000 -chainid=tendermint_test test8

## execute Render
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 1_500_000 -chainid=tendermint_test test8 $WORK/script/script.gno
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 2_000_000 -chainid=tendermint_test test8 $WORK/script/script.gno

## compare render
stdout 'main: --- hello from foo ---'
stdout 'OK!'
stdout 'GAS WANTED: 1500000'
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: '
stdout 'TX HASH: '

Expand Down
2 changes: 1 addition & 1 deletion gno.land/pkg/integration/testdata/assertorigincall.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ stderr 'invalid non-origin call'
stderr 'invalid non-origin call'

## 11. MsgRun -> run.main -> myrlm.B: PASS
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 1_500_000 -chainid tendermint_test test1 $WORK/run/myrlm-b.gno
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 2_000_000 -chainid tendermint_test test1 $WORK/run/myrlm-b.gno
stdout 'OK!'

## 12. MsgRun -> run.main -> myrlm.C: PANIC
Expand Down
2 changes: 1 addition & 1 deletion gno.land/pkg/integration/testdata/banker_security.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gnokey query bank/balances/${attacker_user_addr}
stdout '1000000000ugnot'

## Deploy the malicious realm that attempts to steal coins
gnokey maketx addpkg -pkgdir $WORK/malicious -pkgpath gno.land/r/test/malicious -gas-fee 380001ugnot -gas-wanted 3_800_000 -chainid=tendermint_test attacker
gnokey maketx addpkg -pkgdir $WORK/malicious -pkgpath gno.land/r/test/malicious -gas-fee 380001ugnot -gas-wanted 5_200_000 -chainid=tendermint_test attacker
stdout OK!

## ============================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ adduser attacker
gnoland start

## deploy vault realm
gnokey maketx addpkg -pkgdir $WORK/vault -pkgpath gno.land/r/test/vault -gas-fee 390001ugnot -gas-wanted 3_900_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/vault -pkgpath gno.land/r/test/vault -gas-fee 390001ugnot -gas-wanted 5_200_000 -chainid=tendermint_test test1

## verify initial owner is the DAO address
gnokey query "vm/qrender" --data "gno.land/r/test/vault:"
stdout 'owner: g1dao0000000000000000000000000000000000'

## deploy attack realm
gnokey maketx addpkg -pkgdir $WORK/attack -pkgpath gno.land/r/test/attack -gas-fee 420001ugnot -gas-wanted 4_200_000 -chainid=tendermint_test attacker
gnokey maketx addpkg -pkgdir $WORK/attack -pkgpath gno.land/r/test/attack -gas-fee 420001ugnot -gas-wanted 5_600_000 -chainid=tendermint_test attacker

## FOOTGUN 1: assign+recover via exported non-crossing setter.
## Under interrealm v2, borrow rule #1 makes SetOwner's owner=o write a same-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ adduser alice
gnoland start

## deploy registry
gnokey maketx addpkg -pkgdir $WORK/registry -pkgpath gno.land/r/test/escbug/registry -gas-fee 2000000ugnot -gas-wanted 6_000_000 -chainid=tendermint_test alice
gnokey maketx addpkg -pkgdir $WORK/registry -pkgpath gno.land/r/test/escbug/registry -gas-fee 2000000ugnot -gas-wanted 8_000_000 -chainid=tendermint_test alice

## deploy holder — its init(cur) cross-constructs and cross-registers X
gnokey maketx addpkg -pkgdir $WORK/holder -pkgpath gno.land/r/test/escbug/holder -gas-fee 2000000ugnot -gas-wanted 8_000_000 -chainid=tendermint_test alice
Expand Down
12 changes: 6 additions & 6 deletions gno.land/pkg/integration/testdata/gnokey_gasfee.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ stdout '"coins": "10000000000000ugnot"'
# gas-wanted/gas-fee on the simulate call are generous; simulate reports
# the actual gas the real tx would consume.
gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 3_500_000 -gas-fee 350001ugnot -chainid tendermint_test -simulate only test1
stdout 'GAS USED:\s+2815609'
stdout 'INFO: estimated gas usage: 2815609 \(suggested, with 5% margin: 2956390\), gas fee: 2956ugnot, current gas price: 1ugnot/1000gas'
stdout 'GAS USED:\s+2909359'
stdout 'INFO: estimated gas usage: 2909359 \(suggested, with 5% margin: 3054827\), gas fee: 3055ugnot, current gas price: 1ugnot/1000gas'

## No fee was charged, and the sequence number did not change.
gnokey query auth/accounts/$test1_user_addr
Expand All @@ -25,14 +25,14 @@ stdout '"coins": "10000000000000ugnot"'
# This is the documented simulate->broadcast workflow; the values on this
# line MUST match the simulate output above (modulo a small gas-wanted
# headroom).
gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 2_816_000 -gas-fee 2956ugnot -chainid tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/hello -pkgpath gno.land/r/hello -gas-wanted 2_910_000 -gas-fee 3055ugnot -chainid tendermint_test test1
stdout 'OK'
stdout 'EVENTS: \[.*"fee_delta":\{"denom":"ugnot","amount":206900\}.*\]'

## fee + storage deposit were charged; sequence number increased.
gnokey query auth/accounts/$test1_user_addr
stdout '"sequence": "1"'
stdout '"coins": "9999999790144ugnot"'
stdout '"coins": "9999999790045ugnot"'

# Tx Call -simulate only, estimate gas used and gas fee.
gnokey maketx call -pkgpath gno.land/r/hello -func Hello -gas-wanted 1_800_000 -gas-fee 180001ugnot -chainid tendermint_test -simulate only test1
Expand All @@ -42,7 +42,7 @@ stdout 'INFO: estimated gas usage: 1271011 \(suggested, with 5% margin: 13
## No additional fee was charged, and the sequence number did not change.
gnokey query auth/accounts/$test1_user_addr
stdout '"sequence": "1"'
stdout '"coins": "9999999790144ugnot"'
stdout '"coins": "9999999790045ugnot"'

# 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 1_335_000 -gas-fee 1335ugnot -chainid tendermint_test test1
Expand All @@ -51,7 +51,7 @@ stdout 'OK'
## fee is charged and sequence number increased
gnokey query auth/accounts/$test1_user_addr
stdout '"sequence": "2"'
stdout '"coins": "9999999788809ugnot"'
stdout '"coins": "9999999788710ugnot"'

-- hello/gnomod.toml --
module = "gno.land/r/hello"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdout 'data: # GovDAO'

# add the proposal (temporarily comment out to debug)
# First run a debug script to understand the addresses
gnokey maketx run -gas-fee 110001ugnot -gas-wanted 1_100_000 -chainid=tendermint_test member $WORK/debug/check_addresses.gno
gnokey maketx run -gas-fee 110001ugnot -gas-wanted 1_500_000 -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 }'
Expand Down
6 changes: 3 additions & 3 deletions gno.land/pkg/integration/testdata/interrealm_final.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ loadpkg gno.land/p/nt/ufmt/v0
gnoland start

## load packages
gnokey maketx addpkg -pkgdir $WORK/bob -pkgpath gno.land/r/test/bob -gas-fee 570001ugnot -gas-wanted 5_700_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/bob -pkgpath gno.land/r/test/bob -gas-fee 570001ugnot -gas-wanted 7_700_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/alice -pkgpath gno.land/r/test/alice -gas-fee 530001ugnot -gas-wanted 5_300_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/peter -pkgpath gno.land/p/test/peter -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/callerrealm -pkgpath gno.land/r/test/callerrealm -gas-fee 730001ugnot -gas-wanted 7_300_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/peter -pkgpath gno.land/p/test/peter -gas-fee 360001ugnot -gas-wanted 5_000_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/callerrealm -pkgpath gno.land/r/test/callerrealm -gas-fee 730001ugnot -gas-wanted 18_000_000 -chainid=tendermint_test test1

## test CASE_rA1
## interrealm v2: bob.Do is /r/bob-declared → borrow rule #1 borrows m.Realm = /r/bob.
Expand Down
6 changes: 3 additions & 3 deletions gno.land/pkg/integration/testdata/interrealm_mix_call.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ loadpkg gno.land/p/nt/ufmt/v0
gnoland start

## load packages
gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 620001ugnot -gas-wanted 6_200_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/callerrealm -pkgpath gno.land/r/test/callerrealm -gas-fee 700001ugnot -gas-wanted 7_000_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 360001ugnot -gas-wanted 5_000_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 620001ugnot -gas-wanted 8_500_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/callerrealm -pkgpath gno.land/r/test/callerrealm -gas-fee 700001ugnot -gas-wanted 9_500_000 -chainid=tendermint_test test1

## validate initial state
gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:"
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/interrealm_mix_run.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ loadpkg gno.land/p/nt/ufmt/v0
gnoland start

## load packages
gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 620001ugnot -gas-wanted 6_200_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/utils -pkgpath gno.land/p/test/utils -gas-fee 360001ugnot -gas-wanted 4_800_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/borrowrealm -pkgpath gno.land/r/test/borrowrealm -gas-fee 620001ugnot -gas-wanted 8_300_000 -chainid=tendermint_test test1

## validate initial state
gnokey query "vm/qrender" --data "gno.land/r/test/borrowrealm:"
Expand Down
2 changes: 1 addition & 1 deletion gno.land/pkg/integration/testdata/interrealm_v2.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ gnoland start
## Setup
## ============================================================

gnokey maketx addpkg -pkgdir $WORK/lib -pkgpath gno.land/p/test/v2lib -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/lib -pkgpath gno.land/p/test/v2lib -gas-fee 360001ugnot -gas-wanted 4_800_000 -chainid=tendermint_test test1
stdout OK!

gnokey maketx addpkg -pkgdir $WORK/owned -pkgpath gno.land/r/test/owned -gas-fee 1000001ugnot -gas-wanted 10_000_000 -chainid=tendermint_test test1
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/loadpkg_work.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ loadpkg gno.land/r/foobar/bar $WORK/bar
gnoland start

## execute Render
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 1_500_000 -chainid=tendermint_test test1 $WORK/script/script.gno
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 2_000_000 -chainid=tendermint_test test1 $WORK/script/script.gno

## compare render
stdout 'main: --- hello from foo ---'
stdout 'OK!'
stdout 'GAS WANTED: 1500000'
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: '
stdout 'TX HASH: '

Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/maketx_run.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ loadpkg gno.land/r/foobar/bar $WORK/bar
gnoland start

## execute Render
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 1_500_000 -chainid=tendermint_test test1 $WORK/script/script.gno
gnokey maketx run -gas-fee 150001ugnot -gas-wanted 2_000_000 -chainid=tendermint_test test1 $WORK/script/script.gno

## compare render
stdout 'main: --- hello from foo ---'
stdout 'OK!'
stdout 'GAS WANTED: 1500000'
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: '
stdout 'TX HASH: '

Expand Down
2 changes: 1 addition & 1 deletion gno.land/pkg/integration/testdata/params.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -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 380001ugnot -gas-wanted 3_800_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/myrealm -gas-fee 380001ugnot -gas-wanted 5_200_000 -chainid=tendermint_test test1

# query after adding the package, but before setting values
gnokey query params/vm:gno.land/r/myrealm:foo
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/params_sysparams2.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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 390001ugnot -gas-wanted 3_900_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/sys/params -gas-fee 390001ugnot -gas-wanted 6_700_000 -chainid=tendermint_test test1

## lock transfer
gnokey maketx call -pkgpath gno.land/r/sys/params -func SetLockTransfer -args "ugnot" -gas-fee 180001ugnot -gas-wanted 1_800_000 -chainid=tendermint_test test1
Expand Down Expand Up @@ -38,7 +38,7 @@ gnokey query params/bank:p:restricted_denoms
stdout 'data: \[\]' # still the same, value was not written.

# ---- 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 390001ugnot -gas-wanted 3_900_000 -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/params -pkgpath gno.land/r/myrealm -gas-fee 390001ugnot -gas-wanted 5_200_000 -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 5000000ugnot -gas-wanted 50000000 -chainid=tendermint_test test1
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/prevrealm.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ stdout ${RFOO_USER_ADDR}
## stdout ${test1_user_addr}

## 7. MsgRun -> myrlm.A: user address
gnokey maketx run -gas-fee 160001ugnot -gas-wanted 1_600_000 -chainid tendermint_test test1 $WORK/run/myrlm-a.gno
gnokey maketx run -gas-fee 160001ugnot -gas-wanted 2_100_000 -chainid tendermint_test test1 $WORK/run/myrlm-a.gno
stdout ${test1_user_addr}

## 8. MsgRun -> myrealm.B -> myrlm.A: user address
Expand Down Expand Up @@ -89,7 +89,7 @@ stdout ${RFOO_USER_ADDR}
## stdout ${test1_user_addr}

## 14. MsgRun -> std.PreviousRealm(): user address
gnokey maketx run -gas-fee 100001ugnot -gas-wanted 1_000_000 -chainid tendermint_test test1 $WORK/run/baz.gno
gnokey maketx run -gas-fee 100001ugnot -gas-wanted 1_400_000 -chainid tendermint_test test1 $WORK/run/baz.gno
stdout ${test1_user_addr}

-- r/myrlm/myrlm.gno --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gnoland start
gnokey maketx addpkg -pkgdir $WORK/short -pkgpath gno.land/r/test/realm_banker -gas-fee 370001ugnot -gas-wanted 3_700_000 -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 370001ugnot -gas-wanted 3_700_000 -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 450001ugnot -gas-wanted 4_500_000 -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 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
Expand Down
6 changes: 3 additions & 3 deletions gno.land/pkg/integration/testdata/restart_gas.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
gnoland start

gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/$test1_user_addr/bar -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
stdout 'GAS USED:\s+2839205'
stdout 'GAS USED:\s+2996705'

gnokey maketx addpkg -pkgdir $WORK/bar -pkgpath gno.land/r/$test1_user_addr/foo -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
stdout 'GAS USED:\s+2841534'
stdout 'GAS USED:\s+2999034'

gnoland restart

gnokey maketx addpkg -pkgdir $WORK/baz -pkgpath gno.land/r/$test1_user_addr/baz -gas-fee 360001ugnot -gas-wanted 3_600_000 -chainid=tendermint_test test1
stdout 'GAS USED:\s+2841548'
stdout 'GAS USED:\s+2999048'

-- bar/gnomod.toml --
module = "bar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## start a new node
gnoland start

gnokey maketx addpkg -pkgdir $WORK/contracts -pkgpath gno.land/r/foo -gas-fee 420001ugnot -gas-wanted 4_200_000 -max-deposit 1500000ugnot -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/contracts -pkgpath gno.land/r/foo -gas-fee 420001ugnot -gas-wanted 5_700_000 -max-deposit 1500000ugnot -chainid=tendermint_test test1
stdout OK!


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stdout 'OK!'
gnokey query bank/balances/$storage_collector_user_addr
stdout '1000000000ugnot'

gnokey maketx addpkg -pkgdir $WORK/bytesbank -pkgpath gno.land/r/bytesbank -gas-fee 370001ugnot -gas-wanted 3_700_000 -max-deposit 900000ugnot -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/bytesbank -pkgpath gno.land/r/bytesbank -gas-fee 370001ugnot -gas-wanted 4_800_000 -max-deposit 900000ugnot -chainid=tendermint_test test1
stdout 'EVENTS: \[{\"bytes_delta\":\d+,\"fee_delta\":{\"denom\":\"ugnot\",\"amount\":\d+},\"pkg_path\":\"gno.land/r/bytesbank\"}]'
stdout 'STORAGE DELTA: \d+ bytes'
stdout 'STORAGE FEE: \d+ugnot'
Expand Down
Loading