Skip to content
Snippets Groups Projects

[Version-unspecific] queryMimirV2IDs: jsonify the map for a deterministic sorted order

Merged Multipartite requested to merge Multi/jsonify-queryMimirV2IDs-map into develop
Files
2
@@ -17,7 +17,6 @@ asserts:
# check two conditions:
# 1) 3-node V2 majority cannot set an economic mimir (e.g. 1-GLOBAL)
# 2) 3 out of 5 nodes (60%, minority) cannot set an economic mimir (according to previous node mimir rules)
---
type: tx-mimir
key: "1-GLOBAL"
value: 500
@@ -58,7 +57,6 @@ asserts:
---
# check that 4 node accounts (80%) can set an econimic mimir
# in effect, ensure that we are still honoring old node mimir logic
---
type: tx-mimir
key: "1-GLOBAL"
value: 500
@@ -83,7 +81,6 @@ asserts:
- . == 500
---
# check that 3 node accounts (mimir v2) can set an operational mimir (e.g. 2-GLOBAL)
---
type: tx-mimir
key: "2-GLOBAL"
value: 1
@@ -93,25 +90,23 @@ type: create-blocks
count: 1
---
# once the vote has started, the id mapping should populate
---
type: check
endpoint: http://localhost:1317/thorchain/mimirV2/ids
asserts:
- .[0].id == 1
- .[0].name == "AFFILIATEFEEBASISPOINTSMAXGLOBAL"
- .[0].legacy_key == "MAXAFFILIATEFEEBASISPOINTS"
- .[0].vote_key == "1-GLOBAL"
- .[0].type == "EconomicMimir"
- .[0].votes."500" == 4
- .[1].id == 2
- .[1].name == "BONDPAUSEGLOBAL"
- .[1].legacy_key == "PAUSEBOND"
- .[1].vote_key == "2-GLOBAL"
- .[1].type == "OperationalMimir"
- .[1].votes."1" == 1
- .|[.[]][0].id == 1
Please register or sign in to reply
- .|[.[]][0].name == "AFFILIATEFEEBASISPOINTSMAXGLOBAL"
- .|[.[]][0].legacy_key == "MAXAFFILIATEFEEBASISPOINTS"
- .|[.[]][0].vote_key == "1-GLOBAL"
- .|[.[]][0].type == "EconomicMimir"
- .|[.[]][0].votes."500" == 4
- .|[.[]][1].id == 2
- .|[.[]][1].name == "BONDPAUSEGLOBAL"
- .|[.[]][1].legacy_key == "PAUSEBOND"
- .|[.[]][1].vote_key == "2-GLOBAL"
- .|[.[]][1].type == "OperationalMimir"
- .|[.[]][1].votes."1" == 1
---
# send in two more votes
---
type: tx-mimir
key: "2-GLOBAL"
value: 1
@@ -141,7 +136,6 @@ asserts:
- . == 1
---
# check that an operation mimir can be unset by removing 1 vote
---
type: tx-mimir
key: "2-GLOBAL"
value: -1
Loading