Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blue account #1033

Merged
merged 16 commits into from
Oct 31, 2019
8 changes: 8 additions & 0 deletions cmd/bnscli/clitests/blue_delete_account.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

set -e

bnscli blue-delete-account \
-domain wunderland \
-name alice \
| bnscli view
11 changes: 11 additions & 0 deletions cmd/bnscli/clitests/blue_delete_account.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Sum": {
"BlueaccountDeleteAccountMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice"
}
}
}
7 changes: 7 additions & 0 deletions cmd/bnscli/clitests/blue_delete_domain.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

bnscli blue-delete-domain \
-domain wunderland \
| bnscli view
10 changes: 10 additions & 0 deletions cmd/bnscli/clitests/blue_delete_domain.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Sum": {
"BlueaccountDeleteDomainMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland"
}
}
}
26 changes: 26 additions & 0 deletions cmd/bnscli/clitests/blue_register_account.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

set -e

bnscli blue-register-account \
-domain wunderland \
-name alice \
| bnscli view

echo ''

bnscli blue-register-account \
-domain wunderland \
-name alice \
-client-token "68656c6c6f20776f726c640a" \
| bnscli view

echo ''

bnscli blue-register-account \
-domain wunderland \
-name alice \
-client-token "68656c6c6f20776f726c640a" \
| bnscli blue-with-bc-address -addr 111 -bc first \
| bnscli blue-with-bc-address -addr 222 -bc second \
| bnscli view
47 changes: 47 additions & 0 deletions cmd/bnscli/clitests/blue_register_account.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"Sum": {
"BlueaccountRegisterAccountMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice",
"targets": null
}
}
}
{
"Sum": {
"BlueaccountRegisterAccountMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice",
"targets": null,
"client_token": "aGVsbG8gd29ybGQK"
}
}
}
{
"Sum": {
"BlueaccountRegisterAccountMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice",
"targets": [
{
"blockchain_id": "first",
"address": "111"
},
{
"blockchain_id": "second",
"address": "222"
}
],
"client_token": "aGVsbG8gd29ybGQK"
}
}
}
14 changes: 14 additions & 0 deletions cmd/bnscli/clitests/blue_register_domain.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

bnscli blue-register-domain \
-domain wunderland \
| bnscli view

echo ''

bnscli blue-register-domain \
-domain wunderland \
-client-token "68656c6c6f20776f726c640a" \
| bnscli view
21 changes: 21 additions & 0 deletions cmd/bnscli/clitests/blue_register_domain.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Sum": {
"BlueaccountRegisterDomainMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland"
}
}
}
{
"Sum": {
"BlueaccountRegisterDomainMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"client_token": "aGVsbG8gd29ybGQK"
}
}
}
19 changes: 19 additions & 0 deletions cmd/bnscli/clitests/blue_replace_account_targets.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -e

bnscli blue-replace-account-targets \
-domain wunderland \
-name alice \
| bnscli view

echo

bnscli blue-replace-account-targets \
-domain wunderland \
-name alice \
| bnscli blue-with-bc-address -addr 111 -bc first \
| bnscli blue-with-bc-address -addr 222 -bc second \
| bnscli view

echo
33 changes: 33 additions & 0 deletions cmd/bnscli/clitests/blue_replace_account_targets.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"Sum": {
"BlueaccountReplaceAccountTargetMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice",
"new_targets": null
}
}
}
{
"Sum": {
"BlueaccountReplaceAccountTargetMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice",
"new_targets": [
{
"blockchain_id": "first",
"address": "111"
},
{
"blockchain_id": "second",
"address": "222"
}
]
}
}
}
9 changes: 9 additions & 0 deletions cmd/bnscli/clitests/blue_transfer_account.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

bnscli blue-transfer-account \
-domain wunderland \
-name alice \
-owner 'seq:foo/bar/1' \
| bnscli view
12 changes: 12 additions & 0 deletions cmd/bnscli/clitests/blue_transfer_account.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Sum": {
"BlueaccountTransferAccountMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"name": "alice",
"new_owner": "60AAA3D972FDA7AF6B7E6A9D5369BA40E5AD8071"
}
}
}
8 changes: 8 additions & 0 deletions cmd/bnscli/clitests/blue_transfer_domain.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

set -e

bnscli blue-transfer-domain \
-domain wunderland \
-owner 'seq:foo/bar/1' \
| bnscli view
11 changes: 11 additions & 0 deletions cmd/bnscli/clitests/blue_transfer_domain.test.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Sum": {
"BlueaccountTransferDomainMsg": {
"metadata": {
"schema": 1
},
"domain": "wunderland",
"new_owner": "60AAA3D972FDA7AF6B7E6A9D5369BA40E5AD8071"
}
}
}
Loading