github.com/Tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app48-govern-account/deploy.yaml (about) 1 jobs: 2 # 3 # Add validator 4 # 5 6 - name: InitialTotalPower 7 query-vals: 8 field: "Set.TotalPower" 9 10 - name: AddValidator 11 update-account: 12 target: 5F0577625C94E3237C800DFAD3FB0949A1761C3013B40E53CC5F64F576BFB985 13 power: 232322 14 15 # Pull power from the validator set in the result of query-vals 16 - name: CheckAdded 17 query-vals: 18 field: "Set.${AddValidator.address}.Power" 19 20 - name: AssertPowerNonZero 21 assert: 22 key: $CheckAdded 23 relation: gt 24 val: 0 25 26 # Check the power supplied in AddValidator matches the queried value 27 - name: AssertPowerEqual 28 assert: 29 key: $CheckAdded 30 relation: eq 31 val: $AddValidator.power 32 33 # 34 # Remove validator 35 # 36 37 - name: RemoveValidator 38 update-account: 39 target: 5F0577625C94E3237C800DFAD3FB0949A1761C3013B40E53CC5F64F576BFB985 40 power: 0 41 42 - name: PowerAfterRemoved 43 query-vals: 44 field: "Set.TotalPower" 45 46 - name: AssertPowerNonZero 47 assert: 48 key: $PowerAfterRemoved 49 relation: eq 50 val: $InitialTotalPower 51 52 # 53 # Change native token 54 # 55 - name: MakeValidatorWealthy 56 update-account: 57 target: $AddValidator.address 58 native: 1111111119 59 60 - name: CheckNative 61 query-account: 62 account: $AddValidator.address 63 field: balance 64 65 - name: AssertNativeEqual 66 assert: 67 key: $CheckNative 68 relation: eq 69 val: $MakeValidatorWealthy.native 70 71 # 72 # Change permissions 73 # 74 - name: MakeValidatorWealthy 75 update-account: 76 target: $AddValidator.address 77 permissions: ["send"] 78 79 - name: CheckBase 80 query-account: 81 account: $AddValidator.address 82 field: permissions.base 83 84 - name: AssertOnlyHasSendPermission 85 assert: 86 key: $CheckBase 87 relation: eq 88 val: 2 89 90 - name: MakeNewAccount 91 update-account: 92 target: new(specialKey,secp256k1) 93 native: 300 94 95 - name: AssertNewAddress 96 assert: 97 key: $MakeNewAccount.address 98 relation: ne 99 val: "" 100