Skip to content

Commit

Permalink
perf(logic): reduce read params in ask query
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Jul 24, 2024
1 parent c6e6bf6 commit 92e6d05
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 79 deletions.
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
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: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Hrp", "Bech32"]
Expand Down
4 changes: 2 additions & 2 deletions x/logic/keeper/features/block_height_1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: block_height/1
Then the answer we get is:
""" yaml
height: 100
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Height"]
Expand All @@ -43,7 +43,7 @@ Feature: block_height/1
Then the answer we get is:
""" yaml
height: 101
gas_used: 6033
gas_used: 3877
answer:
has_more: false
variables: ["Height"]
Expand Down
4 changes: 2 additions & 2 deletions x/logic/keeper/features/block_time_1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: block_time/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Time"]
Expand Down Expand Up @@ -44,7 +44,7 @@ Feature: block_time/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6033
gas_used: 3877
answer:
has_more: false
variables: ["Time"]
Expand Down
6 changes: 3 additions & 3 deletions x/logic/keeper/features/consult_1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Feature: consult/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6034
gas_used: 3878
answer:
has_more: false
variables: ["Who"]
Expand Down Expand Up @@ -90,7 +90,7 @@ Feature: consult/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6033
gas_used: 3877
answer:
has_more: false
variables: ["X"]
Expand Down Expand Up @@ -144,7 +144,7 @@ Feature: consult/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6033
gas_used: 3877
answer:
has_more: false
variables: ["File"]
Expand Down
10 changes: 5 additions & 5 deletions x/logic/keeper/features/current_output_1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Feature: current_output/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6150
gas_used: 3976
answer:
has_more: false
variables:
Expand Down Expand Up @@ -66,7 +66,7 @@ Feature: current_output/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6190
gas_used: 4010
answer:
has_more: false
variables:
Expand Down Expand Up @@ -104,7 +104,7 @@ Feature: current_output/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6150
gas_used: 3976
answer:
has_more: false
variables:
Expand Down Expand Up @@ -145,7 +145,7 @@ Feature: current_output/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6164
gas_used: 3990
answer:
has_more: false
variables:
Expand Down Expand Up @@ -176,7 +176,7 @@ Feature: current_output/1
Then the answer we get is:
""" yaml
height: 42
gas_used: 6417
gas_used: 4261
answer:
has_more: false
variables:
Expand Down
2 changes: 1 addition & 1 deletion x/logic/keeper/features/open_3.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Feature: open/3
Then the answer we get is:
""" yaml
height: 42
gas_used: 6033
gas_used: 3877
answer:
has_more: false
variables:
Expand Down
22 changes: 11 additions & 11 deletions x/logic/keeper/features/open_4.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6038
gas_used: 3882
answer:
has_more: false
variables: ["URI"]
Expand Down Expand Up @@ -86,7 +86,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6034
gas_used: 3878
answer:
has_more: false
variables: ["Chars"]
Expand Down Expand Up @@ -127,7 +127,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6034
gas_used: 3878
answer:
has_more: false
variables: ["Chars"]
Expand All @@ -149,7 +149,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -170,7 +170,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -191,7 +191,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -212,7 +212,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -232,7 +232,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -251,7 +251,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Stream"]
Expand All @@ -270,7 +270,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Resource", "Stream"]
Expand All @@ -289,7 +289,7 @@ Feature: open/4
Then the answer we get is:
""" yaml
height: 42
gas_used: 6032
gas_used: 3876
answer:
has_more: false
variables: ["Mode", "Stream"]
Expand Down
Loading

0 comments on commit 92e6d05

Please sign in to comment.