Skip to content

Instantly share code, notes, and snippets.

View e00dan's full-sized avatar

e00dan

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"contractName": "HeadTail",
"abi": [
{
"inputs": [],
"name": "stake",
"outputs": [
{
"internalType": "uint256",
"name": "",
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
contract HeadTail {
address payable public userOneAddress;
bytes public userOneSignedChoiceHash;
@e00dan
e00dan / gist:368207c8c32294add58501196ee24d2c
Created May 4, 2021 13:00
Godwoken polyjuice msg parsing error
godwoken_1 | sync new block #1138 success
godwoken_1 | [contract debug]: BEGIN parse_message()
godwoken_1 | [contract debug]: args_len => 226
godwoken_1 | [contract debug]: [kind] => 0
godwoken_1 | [contract debug]: [flags] => 0
godwoken_1 | [contract debug]: [gas_limit] => 21000000
godwoken_1 | [contract debug]: [gas_price] => 50
godwoken_1 | [contract debug]: [value] 0x0000000000000000000000000000000000000000000000000000000000000000
godwoken_1 | [contract debug]: [input_size] => 164
godwoken_1 | [contract debug]: [input_data] 0xd536ac9500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002d3331326433356173643435346173646461736464643233343431323434343434343466796775696a6b6664723400000000000000000000000000000000000000
➜ force-bridge-eth git:(main) ✗ make local-ci
git submodule update --init
# make close-dev-env
rm -rf ~/.force-bridge/eth-rocksdb
rm -rf ~/.force-bridge/ckb-rocksdb
test -f ~/.force-bridge/config.toml && mv ~/.force-bridge/config.toml ~/.force-bridge/config_bak_`date "+%Y%m%d-%H%M%S"`.toml || echo 'config not exist'
cd offchain-modules && cargo build
Compiling force-eth-lib v0.1.0 (/home/kuzi/projects/force-bridge-eth/offchain-modules/lib)
Compiling force-eth-cli v0.1.0 (/home/kuzi/projects/force-bridge-eth/offchain-modules/cli)
Finished dev [unoptimized + debuginfo] target(s) in 16.63s
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
contract HeadTail {
address payable public userOneAddress;
bytes public userOneSignedChoiceHash;
{
"contractName": "HeadTail",
"abi": [
{
"inputs": [],
"name": "stake",
"outputs": [
{
"internalType": "uint256",
"name": "",
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
contract HeadTail {
address payable public userOneAddress;
bytes public userOneSignedChoiceHash;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
contract HeadTail {
address payable public userOneAddress;
bytes public userOneSignedChoiceHash;
➜ ckb
ckb 0.42.0
Nervos Core Dev <[email protected]>
Nervos CKB - The Common Knowledge Base
USAGE:
ckb [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
{
"custodian_lock": {
"script_type_hash": "0xa759e018be424a5bbc89c405cbb9dfb4d3b9c659df7783220c824d1c34d448eb",
"cell_dep": {
"out_point": {
"tx_hash": "0xc26256482613d7ccc9ef6ccf3f6461fc357b337a8fd8c24dbb1cef4764c7a2ca",
"index": "0x0"
},
"dep_type": "code"
}