Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #5 from omisego/0.0.5
Browse files Browse the repository at this point in the history
0.0.5
  • Loading branch information
cypherhat authored Jan 22, 2020
2 parents d26c5c8 + 9371eae commit aba90dd
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 1 deletion.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 0.0.5 (January 18, 2020)

NEW FEATURES:

N/A

IMPROVEMENTS:

* Wallet Smoke Test
- [x] Execute test of `activateChildChain`.
* Re-generate Plasma bindings

BUG FIXES:

N/A

## 0.0.4 (November 17, 2019)

NEW FEATURES:
Expand Down
21 changes: 21 additions & 0 deletions contracts/plasma/BlockController.abi
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,26 @@
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
}
],
"name": "isDeposit",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
28 changes: 27 additions & 1 deletion contracts/plasma/BlockController.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions scripts/smoke.plasma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,29 @@ UNAUTHORIZED=$(vault write -f -field=address immutability-eth-plugin/wallets/pla
echo "UNAUTHORIZED=$UNAUTHORIZED"
banner
vault write -f -output-curl-string immutability-eth-plugin/wallets/plasma-deployer/accounts
banner
echo "*** SHOULD FAIL! ***"
echo "UNAUTHORIZED ACTIVATION OF CHILD CHAIN BY $UNAUTHORIZED"
echo "vault write immutability-eth-plugin/wallets/plasma-deployer/accounts/$UNAUTHORIZED/plasma/activateChildChain contract=$PLASMA_CONTRACT"
vault write immutability-eth-plugin/wallets/plasma-deployer/accounts/$UNAUTHORIZED/plasma/activateChildChain contract=$PLASMA_CONTRACT
banner
vault write -output-curl-string immutability-eth-plugin/wallets/plasma-deployer/accounts/$UNAUTHORIZED/plasma/activateChildChain contract=$PLASMA_CONTRACT

banner
echo "*** SHOULD SUCCEED ***"
echo "AUTHORIZED ACTIVATION OF CHILD CHAIN BY $ORIGINAL_AUTHORITY"
echo "vault write immutability-eth-plugin/wallets/plasma-deployer/accounts/$ORIGINAL_AUTHORITY/plasma/activateChildChain contract=$PLASMA_CONTRACT"
vault write immutability-eth-plugin/wallets/plasma-deployer/accounts/$ORIGINAL_AUTHORITY/plasma/activateChildChain contract=$PLASMA_CONTRACT
banner
vault write -output-curl-string immutability-eth-plugin/wallets/plasma-deployer/accounts/$ORIGINAL_AUTHORITY/plasma/activateChildChain contract=$PLASMA_CONTRACT

banner
echo "*** SHOULD FAIL ***"
echo "SECOND CALL TO ACTIVATION OF CHILD CHAIN BY $ORIGINAL_AUTHORITY"
echo "vault write immutability-eth-plugin/wallets/plasma-deployer/accounts/$ORIGINAL_AUTHORITY/plasma/activateChildChain contract=$PLASMA_CONTRACT"
vault write immutability-eth-plugin/wallets/plasma-deployer/accounts/$ORIGINAL_AUTHORITY/plasma/activateChildChain contract=$PLASMA_CONTRACT
banner
vault write -output-curl-string immutability-eth-plugin/wallets/plasma-deployer/accounts/$ORIGINAL_AUTHORITY/plasma/activateChildChain contract=$PLASMA_CONTRACT

banner
echo "*** SHOULD FAIL! ***"
Expand Down

0 comments on commit aba90dd

Please sign in to comment.