Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/crypto-com/defi-wallet-core-rs
/ functions
Functions
824 in github.com/crypto-com/defi-wallet-core-rs
⨍
Functions
824
◇
Types & classes
307
↓ 115 callers
Function
measure_time
example/cpp-example/cronos.cc:451
↓ 48 callers
Function
getEnv
example/cpp-example/chainmain.cc:29
↓ 47 callers
Method
get_key
return the secret key for a given derivation path
common/src/wallet.rs:220
↓ 42 callers
Method
call
Queries the blockchain via an eth_call for the provided transaction.
common/src/contract.rs:199
↓ 39 callers
Function
get_ethers_provider
urlinfo: url string of the node to connect to, "http://mynode:8545" agentinfo: agent string for http header
common/src/node/ethereum/provider.rs:25
↓ 38 callers
Method
iter
(&self)
common/src/node/ethereum/abi.rs:153
↓ 34 callers
Method
balance_of
Returns the decimal amount of tokens owned by `account_address`.
bindings/cpp/src/contract.rs:21
↓ 34 callers
Method
legacy
Uses a Legacy transaction instead of an EIP-1559 one to execute the call. If legacy is true, it will use legacy transaction, else it will use EIP-1559
common/src/contract.rs:164
↓ 34 callers
Method
try_into
(self)
common/src/transaction/ethereum.rs:100
↓ 33 callers
Function
address_from_str
(address_str: &str)
common/src/node/ethereum/utils.rs:1141
↓ 29 callers
Method
add_msg
(&mut self, msg: CosmosMsg)
bindings/wasm/src/cosmos_sdk.rs:295
↓ 23 callers
Function
build_signed_single_msg_tx
creates the signed transaction with a single Cosmos SDK message
common/src/transaction/cosmos_sdk.rs:698
↓ 22 callers
Function
new_erc721
Construct an Erc721 struct
bindings/cpp/src/contract.rs:161
↓ 21 callers
Method
sign_into
( &mut self, private_key: PrivateKey, tx_info: CosmosSDKTxInfoRaw, )
bindings/wasm/src/cosmos_sdk.rs:307
↓ 20 callers
Function
new_erc20
Construct an Erc20 struct
bindings/cpp/src/contract.rs:10
↓ 19 callers
Method
get_signing_key
gets the inner signing key
common/src/wallet.rs:276
↓ 18 callers
Method
get_eth_address
returns the ethereum address from index in wallet
bindings/cpp/src/lib.rs:884
↓ 16 callers
Function
query_chainmain_balance
(address: &str)
bindings/wasm/tests/test_helper.rs:113
↓ 16 callers
Function
u256_from_str
(u256_str: &str)
common/src/node/ethereum/utils.rs:1146
↓ 15 callers
Function
createWallet
example/cpp-example/chainmain.cc:36
↓ 15 callers
Method
from_hex
constructs secret key from hex
common/src/wallet.rs:270
↓ 15 callers
Method
get_key_from_index
return the secret key for a given coin and index
common/src/wallet.rs:229
↓ 15 callers
Method
get_public_key_bytes
gets public key to byte array
common/src/wallet.rs:300
↓ 15 callers
Method
send
Signs and broadcasts the provided transaction
common/src/contract.rs:177
↓ 15 callers
Method
to_bytes
converts private key to byte array
common/src/wallet.rs:310
↓ 14 callers
Method
broadcast_tx
(&mut self)
bindings/wasm/tests/nft.rs:145
↓ 14 callers
Function
get_single_msg_sign_payload
creates the transaction signing payload (`SignDoc`) with a single Cosmos SDK message
common/src/transaction/cosmos_sdk.rs:688
↓ 13 callers
Method
as_ref
(&self)
common/src/transaction/nft.rs:58
↓ 12 callers
Function
chainmain_client
()
bindings/wasm/tests/test_helper.rs:56
↓ 12 callers
Function
create_localwallet_client
( polling_interval_ms: u64, key: Arc<SecretKey>, chain_id: u64, client: Provider<Http>, )
common/src/node/ethereum/utils.rs:480
↓ 12 callers
Method
get_tx
Returns the raw transaction request
common/src/contract.rs:172
↓ 12 callers
Function
new_erc1155
Construct an Erc1155 struct
bindings/cpp/src/contract.rs:419
↓ 11 callers
Method
get_address
returns the address from index in wallet
common/src/wallet.rs:209
↓ 11 callers
Method
is_approved_for_all
Query if an address is an authorized `approved_address` for `owner`
bindings/cpp/src/contract.rs:372
↓ 11 callers
Method
uri
Get distinct Uniform Resource Identifier (URI) for a given token
bindings/cpp/src/contract.rs:467
↓ 11 callers
Function
wait_for_timeout
(secs: Option<u64>)
bindings/wasm/tests/test_helper.rs:133
↓ 10 callers
Function
collect_files
(pattern, search_path, recursive=True)
example/cpp-example/helper.py:143
↓ 10 callers
Method
get_default_address
returns the default address of the wallet
common/src/wallet.rs:215
↓ 10 callers
Method
set_approval_for_all
Enable or disable approval for a third party `approved_address` to manage all of sender's assets
bindings/cpp/src/contract.rs:338
↓ 9 callers
Method
eth_sign
signs an arbitrary message as per EIP-191 TODO: chain_id may not be necessary?
common/src/wallet.rs:282
↓ 9 callers
Function
hex_decode
(hex_string: &str)
common/src/utils.rs:3
↓ 9 callers
Method
to_chain_params
returns the chain id and if the chain needs the legacy transaction request
common/src/transaction/ethereum.rs:47
↓ 8 callers
Method
get_backup_mnemonic_phrase
returns the backup mnemonic phrase (if any)
common/src/wallet.rs:167
↓ 8 callers
Method
safe_transfer_from
Safely transfers `token_id` token from `from_address` to `to_address`.
bindings/cpp/src/contract.rs:256
↓ 8 callers
Function
test_denom1
()
bindings/wasm/tests/nft.rs:165
↓ 7 callers
Method
approve
Allows `approved_address` to withdraw from your account multiple times, up to the `amount` amount.
bindings/cpp/src/contract.rs:118
↓ 7 callers
Function
build_signed_eth_tx
builds a signed ethereum transaction given the inputs
common/src/transaction/ethereum.rs:171
↓ 7 callers
Function
chainmain_tx_info
(address: &str)
bindings/wasm/tests/test_helper.rs:65
↓ 7 callers
Function
get_private_key
(mnemonic: &str)
bindings/wasm/tests/test_helper.rs:90
↓ 7 callers
Method
name
Returns the name of the token
bindings/cpp/src/contract.rs:35
↓ 7 callers
Method
symbol
Returns the symbol of the token
bindings/cpp/src/contract.rs:41
↓ 7 callers
Function
tonic_web_wasm_client
()
bindings/wasm/tests/test_helper.rs:95
↓ 6 callers
Method
as_ref
(&self)
common/src/node/ethereum/eip712.rs:61
↓ 6 callers
Function
broadcast_contract_transfer_tx_blocking
( transfer_details: ContractTransfer, network: EthNetwork, secret_key: Arc<SecretKey>, web3api
common/src/node/ethereum/utils.rs:1081
↓ 6 callers
Function
broadcast_tx
broadcast the cosmos transaction
bindings/cpp/src/lib.rs:1172
↓ 6 callers
Method
cosmos_cli
(self, i=0)
integration_tests/network.py:28
↓ 6 callers
Method
encode
Encode input data of specified function and arguments. The encoded data should be set to field data of EthTxInfo when invoking function build_signed_e
common/src/transaction/ethereum/abi_contract.rs:70
↓ 6 callers
Method
next
(&mut self)
common/src/node/ethereum/abi.rs:171
↓ 6 callers
Method
owner_of
Returns the owner of the `token_id` token.
bindings/cpp/src/contract.rs:185
↓ 6 callers
Method
recover_wallet
recovers/imports HD wallet from a BIP39 backup phrase (English words) and password
common/src/wallet.rs:157
↓ 6 callers
Function
run_git
(args: impl IntoIterator<Item = impl AsRef<OsStr>>)
proto-build/src/main.rs:96
↓ 6 callers
Method
sign
constructs the plaintext message and signs it according to EIP-191 (as per EIP-4361). The returned vector is a serialized recoverable signature (as us
common/src/login.rs:20
↓ 6 callers
Method
to_address
converts private to address with coin type
common/src/wallet.rs:320
↓ 6 callers
Method
transfer_from
Moves `amount` tokens from `from_address` to `to_address` using the allowance mechanism.
bindings/cpp/src/contract.rs:91
↓ 5 callers
Function
build_signed_msg_tx
creates the signed transaction with some Cosmos SDK messages
common/src/transaction/cosmos_sdk.rs:721
↓ 5 callers
Function
create_nft_msg
(private_key: &secp256k1::SigningKey, msg: impl Msg)
common/src/transaction/nft.rs:724
↓ 5 callers
Method
encode
( &mut self, function_name: &str, function_args: &str, // json )
bindings/cpp/src/ethereum.rs:174
↓ 5 callers
Function
get_contract_balance
given the account address and contract information, it returns the amount of ERC20/ERC721/ERC1155 token it owns
common/src/node/ethereum/utils.rs:449
↓ 5 callers
Function
get_eth_nonce
Returns the corresponding account's nonce / number of transactions sent from it.
bindings/cpp/src/lib.rs:1311
↓ 5 callers
Method
interval
Sets the default polling interval for event filters and pending transactions
bindings/cpp/src/contract.rs:61
↓ 5 callers
Function
u256_from_dec_str
(u256_str: &str)
common/src/node/ethereum/utils.rs:1151
↓ 4 callers
Function
broadcast_contract_approval_tx_blocking
( approval_details: ContractApproval, network: EthNetwork, secret_key: Arc<SecretKey>, web3api
common/src/node/ethereum/utils.rs:1058
↓ 4 callers
Method
build_bank_send_msg
(recipient_address: String, amount: u64, denom: String)
bindings/wasm/src/cosmos_sdk.rs:100
↓ 4 callers
Function
construct_simple_eth_transfer_tx
constructs a simple transfer of Eth/native token on a given network
common/src/transaction/ethereum.rs:111
↓ 4 callers
Method
decimals
Returns the number of decimals the token uses
bindings/cpp/src/contract.rs:48
↓ 4 callers
Method
derive_address
get address from a private key
common/src/wallet.rs:58
↓ 4 callers
Method
get_address
returns the address from index in wallet
bindings/cpp/src/lib.rs:879
↓ 4 callers
Method
get_backup_mnemonic_phrase
(&self)
bindings/wasm/src/lib.rs:243
↓ 4 callers
Method
get_public_key_hex
gets public key to a hex string without the 0x prefix
common/src/wallet.rs:305
↓ 4 callers
Function
get_signer
()
common/src/transaction/ethereum/signer.rs:173
↓ 4 callers
Method
nft
(&mut self, denom_id: String, token_id: String)
bindings/wasm/src/cosmos_sdk.rs:446
↓ 4 callers
Method
nft
NFT queries the NFT for the given denom and token ID
common/src/node/nft.rs:258
↓ 4 callers
Function
parse_units
Multiplies the provided amount with 10^{units} provided.
bindings/cpp/src/uint.rs:376
↓ 4 callers
Method
personal_sign
Sign an arbitrary message as per EIP-191. Return a signature of hex string with prefix `0x`.
common/src/transaction/ethereum/signer.rs:42
↓ 4 callers
Function
restore_wallet
recovers/imports HD wallet from a BIP39 backup phrase (English words) and password
bindings/cpp/src/lib.rs:776
↓ 4 callers
Method
safe_batch_transfer_from
Batched version of safeTransferFrom.
bindings/cpp/src/contract.rs:520
↓ 4 callers
Function
sign_tx
(tx: &mut CosmosTx)
bindings/wasm/tests/distribution.rs:122
↓ 4 callers
Method
total_supply
TotalSupply queries the total supply of all coins.
proto/src/prost/chainmain.supply.v1.rs:94
↓ 3 callers
Method
allowance
Returns the amount which `spender` is still allowed to withdraw from `owner`.
bindings/cpp/src/contract.rs:142
↓ 3 callers
Function
broadcast_eth_signed_raw_tx
broadcast signed cronos tx
bindings/cpp/src/lib.rs:1375
↓ 3 callers
Function
build_eth_signed_tx
sign cronos tx with private key
bindings/cpp/src/lib.rs:1250
↓ 3 callers
Function
build_signed_eth_tx
( tx_info: EthTxInfo, chain_id: u64, private_key: PrivateKey, )
bindings/wasm/src/ethereum.rs:244
↓ 3 callers
Method
build_struct_hash
Build hash of specified struct name and field values. This function could be reused to construct hash of any associating structs in this typed data.
common/src/node/ethereum/eip712.rs:194
↓ 3 callers
Method
collection
( &mut self, denom_id: String, pagination: Option<PageRequest>, )
bindings/wasm/src/cosmos_sdk.rs:422
↓ 3 callers
Function
convert_json_by_type
Convert a JSON value to an EIP-712 field value by specified type.
common/src/node/ethereum/eip712/deserializer.rs:71
↓ 3 callers
Function
convert_values
Convert JSON values to EIP-712 field values of specified struct type.
common/src/node/ethereum/eip712/deserializer.rs:124
↓ 3 callers
Method
deploy
Deploy Greeter contract on `w3` and return the receipt.
integration_tests/utils.py:78
↓ 3 callers
Function
eth_sign_transaction_with_chainid
Parse the json data that meets the walletconnect standard and build raw transaction Sign with the specified chainid
common/src/transaction/ethereum.rs:370
↓ 3 callers
Method
function_call
Creates a contract call builder based on the provided method name and arguments. The method name must be present in the ABI. The arguments are checked
common/src/contract.rs:125
↓ 3 callers
Function
get_account_details_blocking
( api_url: &str, address: &str, )
common/src/node/cosmos_sdk.rs:112
next →
1–100 of 824, ranked by callers