Skip to content

Commit

Permalink
Fix CryptoCopycats and build
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Oct 30, 2018
1 parent f3390eb commit 60c72d4
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
script:
- yarn linter
- yarn build
- yarn deploy basic && yarn deploy extended && yarn deploy token
- yarn deploy basic && yarn deploy extended && yarn deploy ERC20 && yarn deploy ERC721 && yarn deploy validator
- yarn coverage && cat coverage/lcov.info | coveralls
- yarn test
cache:
Expand Down
94 changes: 47 additions & 47 deletions BREAKOUT-SESSION.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
# setup
```
yarn install
yarn build
yarn deploy
yarn tx
$ yarn install
$ yarn build
$ yarn deploy
$ yarn tx
```

# basic attribute addition
```
yarn tx addAttributeType 777 'Totally Phenomenal Lad/Lass'
yarn tx addValidator 1 'TPL validator'
yarn tx addValidatorApproval 1 777
yarn tx hasAttribute 2 777
yarn tx issueAttribute 2 777 0 -1
yarn tx hasAttribute 2 777
yarn tx getAttributeValue 2 777
yarn tx issueAttribute 2 777 0 -1
yarn tx hasAttribute 2 777
yarn tx getAttributeValue 2 777
$ yarn tx addAttributeType 777 'Totally Phenomenal Lad/Lass'
$ yarn tx addValidator 1 'TPL validator'
$ yarn tx addValidatorApproval 1 777
$ yarn tx hasAttribute 2 777
$ yarn tx issueAttribute 2 777 0 -1
$ yarn tx hasAttribute 2 777
$ yarn tx getAttributeValue 2 777
$ yarn tx issueAttribute 2 777 0 -1
$ yarn tx hasAttribute 2 777
$ yarn tx getAttributeValue 2 777
```

# DrinkToken
```
yarn deploy DrinkToken
yarn tx fermint
yarn tx getValidAttributeID20
yarn tx addAttributeType 11111 'Over 21'
yarn tx addValidator 3 'ID checker'
yarn tx addValidatorApproval 3 11111
yarn tx issueAttribute 0 11111 0 -3
yarn tx fermint
yarn tx transfer 1 1
yarn tx issueAttribute 1 11111 0 -3
yarn tx transfer 1 1
yarn tx liquidate -1
$ yarn deploy DrinkToken
$ yarn tx fermint
$ yarn tx getValidAttributeID20
$ yarn tx addAttributeType 11111 'Over 21'
$ yarn tx addValidator 3 'ID checker'
$ yarn tx addValidatorApproval 3 11111
$ yarn tx issueAttribute 0 11111 0 -3
$ yarn tx fermint
$ yarn tx transfer 1 1
$ yarn tx issueAttribute 1 11111 0 -3
$ yarn tx transfer 1 1
$ yarn tx liquidate -1
```

# CryptoCopycats
```
yarn deploy CryptoCopycats
yarn tx tokenOfOwnerByIndex 0 0
$ yarn deploy CryptoCopycats
$ yarn tx tokenOfOwnerByIndex 0 0
(new tab in current directory)
cd copycats
yarn install
REACT_APP_DNA=<tokenId> yarn start
$ cd copycats
$ yarn install
$ REACT_APP_DNA=<tokenId> yarn start
(back to old tab)
yarn transferFrom 0 1 <tokenId>
yarn deploy CCC
yarn tx getValidAttributeID721
yarn tx addAttributeType 22222 'Responsible pet owner'
yarn tx showAccounts
yarn tx addValidator c89f26cab710198682a8659f5f2f6749eA2fa914 'Validator Contract'
yarn tx addValidatorApproval c89f26cab710198682a8659f5f2f6749eA2fa914 22222
yarn tx issueCCAttribute true true false
yarn tx issueCCAttribute true true false -1
yarn tx transferFrom 0 1 <tokenId>
yarn tx revokeCCAttribute 1
yarn tx rescue <tokenId>
$ yarn transferFrom 0 1 <tokenId>
$ yarn deploy CCC
$ yarn tx getValidAttributeID721
$ yarn tx addAttributeType 22222 'Responsible pet owner'
$ yarn tx showAccounts
$ yarn tx addValidator c89f26cab710198682a8659f5f2f6749eA2fa914 'Validator Contract'
$ yarn tx addValidatorApproval c89f26cab710198682a8659f5f2f6749eA2fa914 22222
$ yarn tx issueCCAttribute true true false
$ yarn tx issueCCAttribute true true false -1
$ yarn tx transferFrom 0 1 <tokenId>
$ yarn tx revokeCCAttribute 1
$ yarn tx rescue <tokenId>
```

# Check out the contracts on mainnet:
Jurisdiction: devcon4.tplprotocol.eth
Jurisdiction: `devcon4.tplprotocol.eth`

DrinkToken: drinktoken.devcon4.tplprotocol.eth
DrinkToken: `drinktoken.devcon4.tplprotocol.eth`

CryptoCopycats: cryptocopycats.devcon4.tplprotocol.eth
CryptoCopycats: `cryptocopycats.devcon4.tplprotocol.eth`

CCC (validator): ccc.devcon4.tplprotocol.eth
CCC (validator): `ccc.devcon4.tplprotocol.eth`
1 change: 1 addition & 0 deletions copycats/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true

0 comments on commit 60c72d4

Please sign in to comment.