├── .env.example ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .husky └── pre-commit ├── .prettierignore ├── .prettierrc ├── .travis.yml ├── .vscode ├── launch.json └── tasks.json ├── README.md ├── package.json ├── scripts └── testnet.sh ├── src └── contracts │ ├── accumulatorMultiSig.ts │ ├── ackermann.ts │ ├── acs.ts │ ├── auction.ts │ ├── cltv.ts │ ├── counter.ts │ ├── crowdfund.ts │ ├── demo.ts │ ├── erc20.ts │ ├── erc721.ts │ ├── hashPuzzle.ts │ ├── hashedMapNonState.ts │ ├── hashedMapState.ts │ ├── hashedSetNonState.ts │ ├── hashedSetState.ts │ ├── helloWorld.ts │ ├── mimc7.ts │ ├── montyHall.ts │ ├── p2pkh.ts │ └── recallable.ts ├── tests ├── local │ ├── accumulatorMultiSig.test.ts │ ├── ackerman.test.ts │ ├── acs.test.ts │ ├── auction.test.ts │ ├── cltv.test.ts │ ├── counter.test.ts │ ├── crowdfund.test.ts │ ├── demo.test.ts │ ├── erc20.test.ts │ ├── erc721.test.ts │ ├── hashPuzzle.test.ts │ ├── hashedMapNonState.test.ts │ ├── hashedMapState.test.ts │ ├── hashedSetNonState.test.ts │ ├── hashedSetState.test.ts │ ├── helloWorld.test.ts │ ├── mimc7.test.ts │ ├── multi_contracts_call.test.ts │ ├── p2pkh.test.ts │ └── recallable.test.ts ├── testnet │ ├── accumulatorMultiSig.ts │ ├── ackerman.ts │ ├── acs.ts │ ├── auction.ts │ ├── cltv.ts │ ├── counter.ts │ ├── counterFromTx.ts │ ├── demo.ts │ ├── erc721.ts │ ├── hashPuzzle.ts │ ├── hashedMapState.ts │ ├── helloWorld.ts │ ├── multi_contracts_call.ts │ ├── p2pkh.ts │ ├── p2pkhFromTx.ts │ └── recallable.ts └── utils │ ├── helper.ts │ └── privateKey.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/package.json -------------------------------------------------------------------------------- /scripts/testnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/scripts/testnet.sh -------------------------------------------------------------------------------- /src/contracts/accumulatorMultiSig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/accumulatorMultiSig.ts -------------------------------------------------------------------------------- /src/contracts/ackermann.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/ackermann.ts -------------------------------------------------------------------------------- /src/contracts/acs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/acs.ts -------------------------------------------------------------------------------- /src/contracts/auction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/auction.ts -------------------------------------------------------------------------------- /src/contracts/cltv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/cltv.ts -------------------------------------------------------------------------------- /src/contracts/counter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/counter.ts -------------------------------------------------------------------------------- /src/contracts/crowdfund.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/crowdfund.ts -------------------------------------------------------------------------------- /src/contracts/demo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/demo.ts -------------------------------------------------------------------------------- /src/contracts/erc20.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/erc20.ts -------------------------------------------------------------------------------- /src/contracts/erc721.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/erc721.ts -------------------------------------------------------------------------------- /src/contracts/hashPuzzle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/hashPuzzle.ts -------------------------------------------------------------------------------- /src/contracts/hashedMapNonState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/hashedMapNonState.ts -------------------------------------------------------------------------------- /src/contracts/hashedMapState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/hashedMapState.ts -------------------------------------------------------------------------------- /src/contracts/hashedSetNonState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/hashedSetNonState.ts -------------------------------------------------------------------------------- /src/contracts/hashedSetState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/hashedSetState.ts -------------------------------------------------------------------------------- /src/contracts/helloWorld.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/helloWorld.ts -------------------------------------------------------------------------------- /src/contracts/mimc7.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/mimc7.ts -------------------------------------------------------------------------------- /src/contracts/montyHall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/montyHall.ts -------------------------------------------------------------------------------- /src/contracts/p2pkh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/p2pkh.ts -------------------------------------------------------------------------------- /src/contracts/recallable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/src/contracts/recallable.ts -------------------------------------------------------------------------------- /tests/local/accumulatorMultiSig.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/accumulatorMultiSig.test.ts -------------------------------------------------------------------------------- /tests/local/ackerman.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/ackerman.test.ts -------------------------------------------------------------------------------- /tests/local/acs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/acs.test.ts -------------------------------------------------------------------------------- /tests/local/auction.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/auction.test.ts -------------------------------------------------------------------------------- /tests/local/cltv.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/cltv.test.ts -------------------------------------------------------------------------------- /tests/local/counter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/counter.test.ts -------------------------------------------------------------------------------- /tests/local/crowdfund.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/crowdfund.test.ts -------------------------------------------------------------------------------- /tests/local/demo.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/demo.test.ts -------------------------------------------------------------------------------- /tests/local/erc20.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/erc20.test.ts -------------------------------------------------------------------------------- /tests/local/erc721.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/erc721.test.ts -------------------------------------------------------------------------------- /tests/local/hashPuzzle.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/hashPuzzle.test.ts -------------------------------------------------------------------------------- /tests/local/hashedMapNonState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/hashedMapNonState.test.ts -------------------------------------------------------------------------------- /tests/local/hashedMapState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/hashedMapState.test.ts -------------------------------------------------------------------------------- /tests/local/hashedSetNonState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/hashedSetNonState.test.ts -------------------------------------------------------------------------------- /tests/local/hashedSetState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/hashedSetState.test.ts -------------------------------------------------------------------------------- /tests/local/helloWorld.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/helloWorld.test.ts -------------------------------------------------------------------------------- /tests/local/mimc7.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/mimc7.test.ts -------------------------------------------------------------------------------- /tests/local/multi_contracts_call.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/multi_contracts_call.test.ts -------------------------------------------------------------------------------- /tests/local/p2pkh.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/p2pkh.test.ts -------------------------------------------------------------------------------- /tests/local/recallable.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/local/recallable.test.ts -------------------------------------------------------------------------------- /tests/testnet/accumulatorMultiSig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/accumulatorMultiSig.ts -------------------------------------------------------------------------------- /tests/testnet/ackerman.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/ackerman.ts -------------------------------------------------------------------------------- /tests/testnet/acs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/acs.ts -------------------------------------------------------------------------------- /tests/testnet/auction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/auction.ts -------------------------------------------------------------------------------- /tests/testnet/cltv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/cltv.ts -------------------------------------------------------------------------------- /tests/testnet/counter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/counter.ts -------------------------------------------------------------------------------- /tests/testnet/counterFromTx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/counterFromTx.ts -------------------------------------------------------------------------------- /tests/testnet/demo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/demo.ts -------------------------------------------------------------------------------- /tests/testnet/erc721.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/erc721.ts -------------------------------------------------------------------------------- /tests/testnet/hashPuzzle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/hashPuzzle.ts -------------------------------------------------------------------------------- /tests/testnet/hashedMapState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/hashedMapState.ts -------------------------------------------------------------------------------- /tests/testnet/helloWorld.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/helloWorld.ts -------------------------------------------------------------------------------- /tests/testnet/multi_contracts_call.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/multi_contracts_call.ts -------------------------------------------------------------------------------- /tests/testnet/p2pkh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/p2pkh.ts -------------------------------------------------------------------------------- /tests/testnet/p2pkhFromTx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/p2pkhFromTx.ts -------------------------------------------------------------------------------- /tests/testnet/recallable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/testnet/recallable.ts -------------------------------------------------------------------------------- /tests/utils/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/utils/helper.ts -------------------------------------------------------------------------------- /tests/utils/privateKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tests/utils/privateKey.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sCrypt-Inc/scryptTS-examples/HEAD/tsconfig.json --------------------------------------------------------------------------------