|
| 1 | +Feature: Register as stakepool owner |
| 2 | + |
| 3 | + Rule: Constructing a stakepool registration certificate (this may be client-side only and not Rosetta) |
| 4 | + |
| 5 | + Scenario: Valid case - constructing a stakepool registration certificate |
| 6 | + Given exchange holds funds in my address |
| 7 | + When exchange is provided with registration details |
| 8 | + Then exchange can successful construct a stakepool registration certiifcate |
| 9 | + |
| 10 | + |
| 11 | + Rule: Publishing a stakepool registration certificate |
| 12 | + |
| 13 | + Scenario: Valid case - publish stakepool registration certificate for pool that I operate |
| 14 | + Given exchange holds funds in my address |
| 15 | + And exchange has successfully constructed a stakepool registration certificate for pool that I operate |
| 16 | + And exchange has witnessed the certificate (action not performed with Rosetta) |
| 17 | + When exchange publishes this certificate |
| 18 | + Then regestration transaction is accepted on the blockchain |
| 19 | + |
| 20 | + Scenario: Valid case - publish stakepool registration certificate for a 3rd party pool |
| 21 | + Given exchange holds funds in my address |
| 22 | + And exchange has successfully constructed a stakepool registration certificate for a 3rd party pool |
| 23 | + And exchange has witnessed the certificate (action not performed with Rosetta) |
| 24 | + When exchange publishes this certificate |
| 25 | + Then regestration transaction is accepted on the blockchain |
| 26 | + |
| 27 | + Scenario: Invalid case - for a 3rd party pool (that I don't have control of?) |
| 28 | + Given ... |
| 29 | + |
| 30 | + Scenario: Invalid case - invalid witness |
| 31 | + Given exchange holds funds in my address |
| 32 | + And exchange has successfully constructed a stakepool registration certificate |
| 33 | + And exchange has witnessed the certificate with a different key (is this possible?) |
| 34 | + When exchange publishes this certificate |
| 35 | + Then an error is returned |
| 36 | + And regestration transaction is not accepted on the blockchain |
| 37 | + |
| 38 | + Scenario: Invalid case - missing witness |
| 39 | + Given exchange holds funds in my address |
| 40 | + And exchange has successfully constructed a stakepool registration certificate |
| 41 | + And exchange has not witnessed the certificate |
| 42 | + When exchange publishes this certificate |
| 43 | + Then an error is returned |
| 44 | + And regestration transaction is not accepted on the blockchain |
0 commit comments