Skip to content

Commit

Permalink
test(logic): update test with gas and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jul 25, 2024
1 parent 2e3f121 commit b3eac0d
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 69 deletions.
14 changes: 7 additions & 7 deletions docs/predicate/bech32_address_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bech32_address(Address, 'axone15wn30a9z4uc692s0kkx5fp5d4qfr3ac77gvjg4').

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address"]
Expand Down Expand Up @@ -72,7 +72,7 @@ bech32_address(-(Hrp, Address), 'axone15wn30a9z4uc692s0kkx5fp5d4qfr3ac77gvjg4').

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Hrp", "Address"]
Expand Down Expand Up @@ -102,7 +102,7 @@ bech32_address(-(axone, Address), 'axone15wn30a9z4uc692s0kkx5fp5d4qfr3ac77gvjg4'

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address"]
Expand All @@ -129,7 +129,7 @@ bech32_address(-('axone', [163,167,23,244,162,175,49,162,170,15,181,141,68,134,1

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand Down Expand Up @@ -162,7 +162,7 @@ axone_addr('axone1p8u47en82gmzfm259y6z93r9qe63l25d858vqu').

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
results:
Expand All @@ -188,7 +188,7 @@ bech32_address(Address, axoneincorrect).

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address"]
Expand All @@ -215,7 +215,7 @@ bech32_address(-('axone', X), foo(bar)).

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["X"]
Expand Down
4 changes: 2 additions & 2 deletions docs/predicate/block_height_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ block_height(Height).

``` yaml
height: 100
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Height"]
Expand Down Expand Up @@ -79,7 +79,7 @@ Height > 100.

``` yaml
height: 101
gas_used: 3877
gas_used: 4141
answer:
has_more: false
variables: ["Height"]
Expand Down
4 changes: 2 additions & 2 deletions docs/predicate/block_time_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ block_time(Time).

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Time"]
Expand Down Expand Up @@ -80,7 +80,7 @@ Time > 1709550216.

``` yaml
height: 42
gas_used: 3877
gas_used: 4141
answer:
has_more: false
variables: ["Time"]
Expand Down
6 changes: 3 additions & 3 deletions docs/predicate/consult_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ hello(Who).

``` yaml
height: 42
gas_used: 3878
gas_used: 4142
answer:
has_more: false
variables: ["Who"]
Expand Down Expand Up @@ -129,7 +129,7 @@ response: |

``` yaml
height: 42
gas_used: 3877
gas_used: 4141
answer:
has_more: false
variables: ["X"]
Expand Down Expand Up @@ -194,7 +194,7 @@ source_file(File).

``` yaml
height: 42
gas_used: 3877
gas_used: 4141
answer:
has_more: false
variables: ["File"]
Expand Down
8 changes: 4 additions & 4 deletions docs/predicate/current_output_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ write_char_to_user_output(x).

``` yaml
height: 42
gas_used: 3976
gas_used: 4240
answer:
has_more: false
variables:
Expand Down Expand Up @@ -108,7 +108,7 @@ log_message('Hello world!').

``` yaml
height: 42
gas_used: 4010
gas_used: 4274
answer:
has_more: false
variables:
Expand Down Expand Up @@ -155,7 +155,7 @@ log_message('Hello world!').

``` yaml
height: 42
gas_used: 3976
gas_used: 4240
answer:
has_more: false
variables:
Expand Down Expand Up @@ -205,7 +205,7 @@ log_message("Hello 🧙!").

``` yaml
height: 42
gas_used: 3990
gas_used: 4254
answer:
has_more: false
variables:
Expand Down
2 changes: 1 addition & 1 deletion docs/predicate/open_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ open(

``` yaml
height: 42
gas_used: 3877
gas_used: 4141
answer:
has_more: false
variables:
Expand Down
14 changes: 7 additions & 7 deletions docs/predicate/open_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ open(URI, read, _, []).

``` yaml
height: 42
gas_used: 3882
gas_used: 4146
answer:
has_more: false
variables: ["URI"]
Expand Down Expand Up @@ -152,7 +152,7 @@ read_resource('cosmwasm:storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08x

``` yaml
height: 42
gas_used: 3878
gas_used: 4142
answer:
has_more: false
variables: ["Chars"]
Expand Down Expand Up @@ -202,7 +202,7 @@ read_resource('cosmwasm:storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08x

``` yaml
height: 42
gas_used: 3878
gas_used: 4142
answer:
has_more: false
variables: ["Chars"]
Expand All @@ -229,7 +229,7 @@ open('cosmwasm:storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08xd26fpdn3t

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -255,7 +255,7 @@ open('cosmwasm:storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08xd26fpdn3t

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -281,7 +281,7 @@ open('cosmwasm:storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08xd26fpdn3t

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -306,7 +306,7 @@ open('cosmwasm:storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08xd26fpdn3t

``` yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Stream"]
Expand Down
34 changes: 17 additions & 17 deletions x/logic/keeper/features/bech32_address_2.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address"]
Expand All @@ -39,7 +39,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Hrp", "Address"]
Expand All @@ -63,7 +63,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address"]
Expand All @@ -84,7 +84,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand All @@ -109,7 +109,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
results:
Expand All @@ -130,7 +130,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
results:
Expand All @@ -146,7 +146,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
results:
Expand All @@ -163,7 +163,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Hrp"]
Expand All @@ -186,7 +186,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address"]
Expand All @@ -207,7 +207,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["X"]
Expand All @@ -227,7 +227,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand All @@ -247,7 +247,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand All @@ -267,7 +267,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand All @@ -287,7 +287,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand All @@ -307,7 +307,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Bech32"]
Expand All @@ -327,7 +327,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Address", "Bech32"]
Expand All @@ -347,7 +347,7 @@ Feature: bech32_address/2
Then the answer we get is:
""" yaml
height: 42
gas_used: 3876
gas_used: 4140
answer:
has_more: false
variables: ["Hrp", "Bech32"]
Expand Down
Loading

0 comments on commit b3eac0d

Please sign in to comment.