Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddimaria/rust-blockchain-tutorial
/ functions
Functions
184 in github.com/ddimaria/rust-blockchain-tutorial
⨍
Functions
184
◇
Types & classes
24
Method
construct
(name: String, symbol: String)
contracts/erc20/src/lib.rs:17
Function
creates_a_blockchain
()
chain/src/blockchain.rs:349
Function
creates_and_gets_a_block
()
chain/src/blockchain.rs:354
Method
deref
(&self)
types/src/block.rs:43
Method
flush
noop
chain/src/storage.rs:43
Method
from
(error: serde_json::Error)
web3/src/error.rs:34
Method
from
(error: Box<bincode::ErrorKind>)
types/src/error.rs:39
Method
from
(value: SignedTransaction)
types/src/transaction.rs:183
Method
from
(value: i32)
types/src/block.rs:49
Method
from
(value: RecoverableSignature)
utils/src/crypto.rs:23
Method
from
(error: AddrParseError)
chain/src/error.rs:104
Method
from
(error: anyhow::Error)
runtime/src/error.rs:33
Method
genesis
TODO(ddimaria): add initial accounts and seed with coin (requires recalculation of the state_root)
types/src/block.rs:107
Method
get_client
Create a new HTTP JSON-RPC client with given url.
web3/src/lib.rs:34
Method
get_hex_blocknumber
Utility function for unwrapping an optional BlockNumber. If the Option is Some, convert it to a hex string. If the Option is None, use "latest".
web3/src/block.rs:21
Method
get_transaction_receipt
get the receipt of the transaction
chain/src/transaction.rs:28
Function
gets_a_transaction_receipt
()
chain/src/transaction.rs:60
Function
gets_an_account_balance
()
chain/src/method.rs:203
Function
it_adds_and_gets_an_account
()
chain/src/account.rs:149
Function
it_calls_contract_functions
()
runtime/src/contract.rs:89
Function
it_creates_a_db
()
chain/src/storage.rs:92
Function
it_deploys_a_contract
()
web3/src/contract.rs:91
Function
it_gets_a_balance
()
web3/src/account.rs:102
Function
it_gets_a_balance_by_block
()
web3/src/account.rs:109
Function
it_gets_a_block_number
()
web3/src/block.rs:73
Function
it_gets_a_contract_code
()
web3/src/contract.rs:96
Function
it_gets_a_transaction_count
()
web3/src/account.rs:119
Function
it_gets_a_transaction_receipt
()
web3/src/transaction.rs:171
Function
it_gets_and_insert_account_data_from_db
()
chain/src/storage.rs:97
Function
it_gets_the_latest_block
()
web3/src/block.rs:79
Function
it_hashes
()
utils/src/crypto.rs:284
Function
it_increments_a_nonce
()
chain/src/account.rs:157
Function
it_loads_a_contract
()
runtime/src/contract.rs:83
Function
it_parses_string_params
()
runtime/src/contract.rs:98
Function
it_parses_u64_params
()
runtime/src/contract.rs:104
Function
it_recovers
()
utils/src/crypto.rs:297
Function
it_recovers_an_address_from_a_signed_transaction
()
types/src/transaction.rs:286
Function
it_retrieves_contract_function_names
()
runtime/src/contract.rs:112
Function
it_retrieves_the_saved_private_key
()
chain/src/keys.rs:55
Function
it_retrieves_the_saved_public_key
()
chain/src/keys.rs:62
Function
it_rlp_encodes
()
utils/src/crypto.rs:329
Function
it_save_keys
()
chain/src/keys.rs:50
Function
it_sends_a_raw_contract_call_transaction
()
web3/src/transaction.rs:192
Function
it_sends_a_raw_transfer_transaction
()
web3/src/transaction.rs:182
Function
it_sends_a_transaction
()
web3/src/transaction.rs:165
Function
it_transfers
()
chain/src/account.rs:170
Function
it_verifies
()
utils/src/crypto.rs:313
Function
it_verifies_a_signed_transaction
()
types/src/transaction.rs:296
Method
key_string
(key: K)
chain/src/storage.rs:76
Function
main
()
chain/src/main.rs:29
Method
mint
(account: String, amount: u64)
contracts/erc20/src/lib.rs:21
Method
new
(url: &str)
web3/src/lib.rs:28
Method
new
(code_hash: Option<Bytes>)
types/src/account.rs:27
Method
new
( from: Account, to: Option<Account>, value: U256, nonce: Option<U256>,
types/src/transaction.rs:52
Method
new
( number: U64, parent_hash: H256, transactions: Vec<Transaction>, state_root:
types/src/block.rs:79
Method
new
(storage: Arc<Storage>)
chain/src/account.rs:22
Method
new
(storage: Arc<Storage>)
chain/src/blockchain.rs:34
Method
new
()
chain/src/world_state.rs:9
Method
new
()
chain/src/transaction.rs:15
Method
new
(database_name: Option<&str>)
chain/src/storage.rs:49
Function
newtype
(item: TokenStream)
proc_macros/src/lib.rs:7
Method
on_call
(&self, name: &str, params: Params, kind: MethodKind, _t: TransportProtocol)
chain/src/logger.rs:25
Method
on_connect
(&self, remote_addr: SocketAddr, request: &HttpRequest, _t: TransportProtocol)
chain/src/logger.rs:12
Method
on_disconnect
(&self, remote_addr: SocketAddr, _t: TransportProtocol)
chain/src/logger.rs:57
Method
on_request
(&self, _t: TransportProtocol)
chain/src/logger.rs:20
Method
on_response
(&self, result: &str, started_at: Self::Instant, _t: TransportProtocol)
chain/src/logger.rs:49
Method
on_result
( &self, name: &str, succeess: bool, started_at: Self::Instant, _t: Tr
chain/src/logger.rs:34
Method
path
(database_name: &str)
chain/src/storage.rs:80
Function
private_and_public_key_addresses_match
()
utils/src/crypto.rs:276
Method
recover_address
(signed_transaction: SignedTransaction)
types/src/transaction.rs:123
Method
recover_pieces
( signed_transaction: SignedTransaction, )
types/src/transaction.rs:137
Method
recover_public_key
(signed_transaction: SignedTransaction)
types/src/transaction.rs:130
Method
remove
noop
chain/src/storage.rs:38
Method
root_hash
(transactions: &[Transaction])
types/src/transaction.rs:163
Function
root_hash_changes
()
chain/src/account.rs:177
Function
send_a_raw_transaction
()
chain/src/blockchain.rs:387
Function
sends_a_transaction
()
chain/src/blockchain.rs:369
Function
sends_a_transaction
()
chain/src/transaction.rs:49
Function
server
(blockchain: Option<Arc<Mutex<BlockChain>>>)
chain/src/helpers.rs:58
Method
to_trie
(transactions: &[Transaction])
types/src/transaction.rs:148
Method
transfer
(to: String, amount: u64)
contracts/erc20/src/lib.rs:25
Method
try_from
(value: &str)
types/src/block.rs:59
Function
valid_syntax
()
proc_macros/src/newtype.rs:50
Method
verify
(signed_transaction: SignedTransaction, address: Address)
types/src/transaction.rs:114
← previous
101–184 of 184, ranked by callers