Crate near_sdk[−][src]
Re-exports
pub use crate::utils::*; |
Modules
collections | Collections that offer an alternative to standard containers from |
env | Blockchain-specific methods available to the smart contract. This is a wrapper around a
low-level |
json_types | Helper types for JSON serialization. |
test_utils | |
utils |
Macros
log | |
metadata |
|
setup_alloc | Boilerplate for setting up allocator used in Wasm binary. |
testing_env |
Structs
Metadata | Metadata of the contract. |
MethodMetadata | Metadata of a single method. |
MockedBlockchain | Mocked blockchain that can be used in the tests for the smart contracts.
It implements |
Promise | A structure representing a result of the scheduled execution on another contract. |
RuntimeFeesConfig | |
VMConfig | |
VMContext | Context for the contract execution. |
Enums
PromiseOrValue | |
PromiseResult | When there is a callback attached to one or more contract calls the execution results of these calls are available to the contract invoked through the callback. |
ReturnData |
Traits
BlockchainInterface | A low-level interface of either real or mocked blockchain that contract interacts with. |
BorshIntoStorageKey | Converts a Borsh serializable object into a |
IntoStorageKey | Converts Self into a |
Type Definitions
AccountId | Account identifier. Provides access to user’s state. |
Balance | Balance is type for storing amounts of tokens. |
BlockHeight | Height of the block. |
BlockHeightDelta | Block height delta that measures the difference between |
CryptoHash | Raw type for 32 bytes of the hash. |
Duration | Raw type for duration in nanoseconds |
EpochHeight | Height of the epoch. |
GCCount | |
Gas | Gas is a type for storing amount of gas. |
IteratorIndex | |
MerkleHash | Hash used by a struct implementing the Merkle tree. |
Nonce | Nonce for transactions. |
NumBlocks | Number of blocks in current group. |
NumSeats | Number of seats of validators (block producer or hidden ones) in current group (settlement). |
NumShards | Number of shards in current group. |
PromiseId | |
PromiseIndex | |
ProtocolVersion | |
PublicKey | |
ReceiptIndex | |
ShardId | Shard index, from 0 to NUM_SHARDS - 1. |
StorageUsage | StorageUsage is used to count the amount of storage used by a contract. |
StorageUsageChange | StorageUsageChange is used to count the storage usage within a single contract call. |
Timestamp | Raw type for timestamp in nanoseconds |
ValidatorId | Validator identifier in current group. |
ValidatorMask | Mask which validators participated in multi sign. |
Attribute Macros
callback |
|
callback_vec |
|
ext_contract | |
init |
|
near_bindgen | |
result_serializer |
|
serializer |
|
Derive Macros
BorshStorageKey |
|
PanicOnDefault |
|