Name | Type | Required | Description | Example |
---|---|---|---|---|
srcSymbol | String | True | Source token symbol | EOS |
destSymbol | String | True | Destination token symbol | IQ |
srcAmount | Number | True | Source amount | 12.345 |
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
/*****************************************************************************/ | |
static unsigned __int128 decode_number128(unsigned char* input, uint len) { | |
uint i; | |
unsigned __int128 result; | |
result = 0; | |
for(i = 0 ; i < len ; i++) { | |
result = result << 8; | |
result += (unsigned char)input[i]; | |
} |
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
#include <stdio.h> | |
#include <string.h> | |
const char* fields[] = { | |
"parentHash", | |
"ommersHash", | |
"beneficiary", | |
"stateRoot", | |
"transactionsRoot", |
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
#include <stdio.h> | |
#include <string.h> | |
const char* fields[] = { | |
"parentHash", | |
"ommersHash", | |
"beneficiary", | |
"stateRoot", | |
"transactionsRoot", |
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
#include <stdio.h> | |
#include <string.h> | |
const char* fields[] = { | |
"parentHash", | |
"ommersHash", | |
"beneficiary", | |
"stateRoot", | |
"transactionsRoot", |
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
mapping(address=>uint[5]) user_reward; | |
uint start_time = now; | |
uint seconds_per_week = 1234; // put real number | |
function send_reward(address user, uint time) { | |
uint week_index = (time - start_time) / seconds_per_week; | |
if(user_reward[user][week_index] > 0 || week_index > 4) return 0; | |
uint reward = 1; |
Name | Type | Required | Description | Example |
---|---|---|---|---|
srcSymbol | String | True | Source token symbol | EOS |
destSymbol | String | True | Destination token symbol | IQ |
srcAmount | Number | True | Source amount | 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
import pickle | |
from pycoin.serialize import b2h, h2b | |
from pycoin import encoding | |
import rlp | |
from ethereum import tester, utils, abi, blocks, transactions | |
import sha3, copy | |
def get_seedhash(block_number): |
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
[{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}] |
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
0x608060405234801561001057600080fd5b50610145806100206000396000f3fe608060405234801561001057600080fd5b5060043610610048576000357c0100000000000000000000000000000000000000000000000000000000900480633ccfd60b1461004d575b600080fd5b610055610057565b005b731be6064ca70e40a39473372be0ac8a5e16f7be4573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156100a557600080fd5b731be6064ca70e40a39473372be0ac8a5e16f7be4573ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050158015610116573d6000803e3d6000fd5b5056fea165627a7a72305820ac81bc5a972087d48184fec9f15c4f7f3a684b7129bc1298fb415e405f6d61990029 |