This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ blockchain-workshop git:(godwoken) ✗ yarn start | |
yarn run v1.22.10 | |
$ ts-node src/HeadTail.ts | |
web3-shh package will be deprecated in version 1.3.5 and will no longer be supported. | |
web3-bzz package will be deprecated in version 1.3.5 and will no longer be supported. | |
web3-shh package will be deprecated in version 1.3.5 and will no longer be supported. | |
web3-bzz package will be deprecated in version 1.3.5 and will no longer be supported. | |
{ | |
userOneEthAddress: '0xD173313A51f8fc37BcF67569b463abd89d81844f', | |
choice: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { initializeConfig } from "@ckb-lumos/config-manager"; | |
import path from "path"; | |
import { Indexer } from "@ckb-lumos/indexer"; | |
import { env } from "process"; | |
import { RPC } from "ckb-js-toolkit"; | |
import { Godwoken } from "@godwoken-examples/godwoken"; | |
import { asyncSleep } from "../modules/utils"; | |
import { Hash } from "@ckb-lumos/base"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
DeploymentConfig, | |
deploymentConfig, | |
} from "../modules/deployment-config"; | |
import { HexString, Script, Hash, utils } from "@ckb-lumos/base"; | |
import { Indexer } from "@ckb-lumos/indexer"; | |
import { | |
TransactionSkeleton, | |
parseAddress, | |
sealTransaction, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: BEGIN parse_message() | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: args_len => 56 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: [kind] => 0 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: [gas_limit] => 16777216 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: [gas_price] => 1 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: [value] 0x0000000000000000000000000000000000000000000000000000000000000000 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: [input_size] => 4 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: [input_data] 0x3408e470 | |
godwoken_1 | [2021-05-26T10:57:27Z DEBUG gw_generator::syscalls] [contract debug]: END parse_message() | |
godwoken_1 | [2021-05-26T10:57 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: BEGIN handle_message | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: load_account_script, account_id: => 7 | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: load_account_script, account_id: => 3 | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: rollup_script_hash 0x3bcd5dd6af0c2c1d865f787e648044f90177382288072c61c57bc989a2375f16 | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: sudt id => 1 | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: load_account_script, account_id: => 7 | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: load_account_code, account_id: => 7 | |
godwoken_1 | [2021-05-25T15:22:12Z DEBUG gw_generator::syscalls] [contract debug]: data_hash 0x1ffe548a9076c8491a073488307314f702dfcff3369cc886732a14f8b15d5e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
godwoken_1 | [2021-05-11T12:48:06Z DEBUG gw_generator::syscalls] [contract debug]: sudt id => 1 | |
godwoken_1 | [2021-05-11T12:48:06Z DEBUG gw_generator::syscalls] [contract debug]: load_account_script, account_id: => 6 | |
godwoken_1 | [2021-05-11T12:48:06Z DEBUG gw_generator::syscalls] [contract debug]: load_account_code, account_id: => 6 | |
godwoken_1 | [2021-05-11T12:48:06Z DEBUG gw_generator::syscalls] [contract debug]: data_hash 0x1ffe548a9076c8491a073488307314f702dfcff3369cc886732a14f8b15d5e1b | |
godwoken_1 | [2021-05-11T12:48:06Z DEBUG gw_generator::syscalls] [contract debug]: code data 0x6080604052600436106100a75760003560e01c80637fb1d0dd116100645780637fb1d0dd146101c057806390bddff0146101eb578063b70d2ee814610228578063d536ac9514610253578063ef3022df14610290578063f9846e1f146102ac576100a7565b8063258ae582146100ac5780633a4b66f1146100e95780634212259e146101145780635e157d1f1461013f57806370dea79a1461016a578063711aa39b14610195575b600080fd5b3480156100b857600080fd5b506 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
608060405234801561001057600080fd5b50611ed9806100206000396000f3fe6080604052600436106100a75760003560e01c80637fb1d0dd116100645780637fb1d0dd146101c057806390bddff0146101eb578063b70d2ee814610228578063d536ac9514610253578063ef3022df14610290578063f9846e1f146102ac576100a7565b8063258ae582146100ac5780633a4b66f1146100e95780634212259e146101145780635e157d1f1461013f57806370dea79a1461016a578063711aa39b14610195575b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce9190611105565b6102c8565b6040516100e091906114b4565b60405180910390f35b3480156100f557600080fd5b506100fe6102e4565b60405161010b9190611707565b60405180910390f35b34801561012057600080fd5b506101296102ea565b6040516101369190611707565b60405180910390f35b34801561014b57600080fd5b506101546102f0565b6040516101619190611565565b60405180910390f35b34801561017657600080fd5b5061017f61037e565b60405161018c91906114ea565b60405180910390f35b3480156101a157600080fd5b506101aa6105c2565b6040516101b791906114cf565b60405180910390f35b3480156101cc57600080fd5b506101d56105e6565b6040516101e291906114 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ godwoken-kicker git:(master) make sg | |
cd docker && docker-compose logs -f --tail 200 godwoken | |
Attaching to docker_godwoken_1 | |
godwoken_1 | { | |
godwoken_1 | "capacity": "0x2a6bf75e00", | |
godwoken_1 | "lock": { | |
godwoken_1 | "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8", | |
godwoken_1 | "hash_type": "type", | |
godwoken_1 | "args": "0x952809177232d0dba355ba5b6f4eaca39cc57746" | |
godwoken_1 | }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ godwoken-kicker git:(master) make sg | |
cd docker && docker-compose logs -f --tail 200 godwoken | |
Attaching to docker_godwoken_1 | |
godwoken_1 | +++ dirname /code/godwoken_entrypoint.sh | |
godwoken_1 | ++ cd /code | |
godwoken_1 | ++ pwd | |
godwoken_1 | + PROJECT_DIR=/code | |
godwoken_1 | + export TOP=/code/config | |
godwoken_1 | + TOP=/code/config | |
godwoken_1 | + export PolyjuiceDir=/code/godwoken-examples |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
608060405234801561001057600080fd5b50611ed9806100206000396000f3fe6080604052600436106100a75760003560e01c80637fb1d0dd116100645780637fb1d0dd146101c057806390bddff0146101eb578063b70d2ee814610228578063d536ac9514610253578063ef3022df14610290578063f9846e1f146102ac576100a7565b8063258ae582146100ac5780633a4b66f1146100e95780634212259e146101145780635e157d1f1461013f57806370dea79a1461016a578063711aa39b14610195575b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce9190611105565b6102c8565b6040516100e091906114b4565b60405180910390f35b3480156100f557600080fd5b506100fe6102e4565b60405161010b9190611707565b60405180910390f35b34801561012057600080fd5b506101296102ea565b6040516101369190611707565b60405180910390f35b34801561014b57600080fd5b506101546102f0565b6040516101619190611565565b60405180910390f35b34801561017657600080fd5b5061017f61037e565b60405161018c91906114ea565b60405180910390f35b3480156101a157600080fd5b506101aa6105c2565b6040516101b791906114cf565b60405180910390f35b3480156101cc57600080fd5b506101d56105e6565b6040516101e291906114 |