From f09ddf165baa310e3b7c3864cb0e06e97a5ac370 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:48:55 +0000 Subject: [PATCH] Deploy rust API reference 953d921646c2f8e9b0555a41961327d55b60f561 --- rust/crates.js | 2 +- rust/help.html | 2 +- .../context/trait.Context.html | 24 +- .../contract/trait.Contract.html | 4 +- .../env/enum.CryptoError.html | 2 +- rust/oasis_contract_sdk/env/trait.Env.html | 8 +- .../oasis_contract_sdk/error/trait.Error.html | 4 +- .../oasis_contract_sdk/event/trait.Event.html | 6 +- rust/oasis_contract_sdk/index.html | 2 +- .../testing/struct.MockContext.html | 14 +- .../testing/struct.MockEnv.html | 2 +- .../map/trait.MapKey.html | 4 +- .../token/struct.Denomination.html | 4 +- .../common/crypto/hash/struct.Hash.html | 2 +- .../crypto/signature/struct.PublicKey.html | 6 +- .../crypto/signature/struct.Signature.html | 6 +- .../crypto/x25519/struct.PrivateKey.html | 4 +- .../crypto/x25519/struct.PublicKey.html | 4 +- .../common/namespace/struct.Namespace.html | 4 +- .../common/quantity/struct.Quantity.html | 8 +- .../common/sgx/pcs/enum.Error.html | 2 +- .../common/sgx/struct.MrEnclave.html | 6 +- .../common/sgx/struct.MrSigner.html | 4 +- .../common/sgx/struct.VerifiedQuote.html | 2 +- .../consensus/address/struct.Address.html | 6 +- .../keymanager/churp/enum.Error.html | 2 +- .../consensus/keymanager/enum.Error.html | 2 +- .../consensus/registry/struct.RolesMask.html | 2 +- .../struct.VerifiedEndorsedCapabilityTEE.html | 2 +- .../consensus/state/enum.StateError.html | 2 +- .../consensus/verifier/enum.Error.html | 2 +- .../client/enum.RpcClientError.html | 2 +- .../enclave_rpc/demux/enum.Error.html | 2 +- .../enclave_rpc/types/struct.SessionID.html | 6 +- .../storage/mkvs/sync/enum.SyncerError.html | 2 +- .../rwset/struct.CoarsenedKey.html | 2 +- .../transaction/types/struct.TxnBatch.html | 2 +- .../types/struct.Error.html | 6 +- .../signature/ed25519/struct.PublicKey.html | 2 +- .../crypto/signature/enum.Error.html | 2 +- .../crypto/signature/enum.PublicKey.html | 6 +- .../crypto/signature/struct.Signature.html | 2 +- .../dispatcher/enum.Error.html | 4 +- .../error/struct.RuntimeError.html | 2 +- .../oasis_runtime_sdk/history/enum.Error.html | 4 +- .../keymanager/enum.KeyManagerError.html | 2 +- .../keymanager/struct.KeyPairId.html | 2 +- .../modules/access/enum.Error.html | 4 +- .../modules/accounts/enum.Error.html | 4 +- .../modules/consensus/enum.Error.html | 4 +- .../enum.ParameterValidationError.html | 2 +- .../consensus_accounts/enum.Error.html | 2 +- .../modules/core/enum.Error.html | 2 +- .../core/struct.TxSimulationFailure.html | 4 +- .../modules/rewards/enum.Error.html | 2 +- .../enum.ParameterValidationError.html | 2 +- .../modules/rofl/app_id/struct.AppId.html | 6 +- .../modules/rofl/enum.Error.html | 4 +- .../rofl/enum.ParameterValidationError.html | 2 +- .../schedule_control/enum.Error.html | 4 +- .../keymanager/enum.KeyManagerError.html | 2 +- .../testing/keymanager/struct.KeyPairId.html | 2 +- .../types/address/enum.Error.html | 2 +- .../types/address/struct.Address.html | 6 +- .../types/token/struct.Denomination.html | 4 +- .../types/transaction/enum.Error.html | 2 +- .../enum.Error.html | 10 +- .../enum.Event.html | 2 +- .../struct.Module.html | 104 +-- .../struct.Parameters.html | 2 +- .../types/enum.Policy.html | 4 +- .../types/struct.Call.html | 4 +- .../types/struct.Code.html | 4 +- .../types/struct.CodeId.html | 14 +- .../types/struct.Instance.html | 8 +- .../types/struct.InstanceId.html | 14 +- .../types/struct.Instantiate.html | 4 +- .../types/struct.Upgrade.html | 4 +- rust/rofl_utils/all.html | 1 + rust/rofl_utils/https/fn.agent.html | 4 + .../https/fn.agent_with_config.html | 2 + rust/rofl_utils/https/index.html | 4 + rust/rofl_utils/https/sidebar-items.js | 1 + rust/rofl_utils/index.html | 2 + rust/rofl_utils/sidebar-items.js | 1 + rust/search-index.js | 11 +- .../oasis_core_runtime-desc-0-.js | 2 +- .../oasis_runtime_sdk-desc-0-.js | 2 +- .../rofl_utils/rofl_utils-desc-0-.js | 1 + rust/settings.html | 2 +- rust/src-files.js | 3 +- rust/src/rofl_utils/https.rs.html | 679 ++++++++++++++++++ rust/src/rofl_utils/lib.rs.html | 7 + rust/trait.impl/core/convert/trait.From.js | 4 +- .../oasis_runtime_sdk/error/trait.Error.js | 2 +- .../oasis_runtime_sdk/event/trait.Event.js | 2 +- .../module/trait.BlockHandler.js | 2 +- .../module/trait.InvariantHandler.js | 2 +- .../module/trait.MethodHandler.js | 2 +- .../module/trait.MigrationHandler.js | 2 +- .../oasis_runtime_sdk/module/trait.Module.js | 2 +- .../module/trait.Parameters.js | 2 +- .../module/trait.TransactionHandler.js | 2 +- 103 files changed, 937 insertions(+), 233 deletions(-) create mode 100644 rust/rofl_utils/all.html create mode 100644 rust/rofl_utils/https/fn.agent.html create mode 100644 rust/rofl_utils/https/fn.agent_with_config.html create mode 100644 rust/rofl_utils/https/index.html create mode 100644 rust/rofl_utils/https/sidebar-items.js create mode 100644 rust/rofl_utils/index.html create mode 100644 rust/rofl_utils/sidebar-items.js create mode 100644 rust/search.desc/rofl_utils/rofl_utils-desc-0-.js create mode 100644 rust/src/rofl_utils/https.rs.html create mode 100644 rust/src/rofl_utils/lib.rs.html diff --git a/rust/crates.js b/rust/crates.js index 00fdd5c97f..91368ed9c9 100644 --- a/rust/crates.js +++ b/rust/crates.js @@ -1 +1 @@ -window.ALL_CRATES = ["fuzz_mkvs_node","fuzz_mkvs_proof","oasis_contract_sdk","oasis_contract_sdk_storage","oasis_contract_sdk_types","oasis_core_runtime","oasis_runtime_sdk","oasis_runtime_sdk_contracts","oasis_runtime_sdk_macros"]; \ No newline at end of file +window.ALL_CRATES = ["fuzz_mkvs_node","fuzz_mkvs_proof","oasis_contract_sdk","oasis_contract_sdk_storage","oasis_contract_sdk_types","oasis_core_runtime","oasis_runtime_sdk","oasis_runtime_sdk_contracts","oasis_runtime_sdk_macros","rofl_utils"]; \ No newline at end of file diff --git a/rust/help.html b/rust/help.html index 7cbe2591cf..2983594f48 100644 --- a/rust/help.html +++ b/rust/help.html @@ -1 +1 @@ -
The public store.
The confidential store.
Contract instance identifier.
-Contract instance address.
-Caller address.
-Tokens deposited by the caller.
+Contract instance identifier.
+Contract instance address.
+Caller address.
+Tokens deposited by the caller.
Whether the call is read-only and must not make any storage modifications.
-Call format.
-Emits a message.
+Call format.
+Emits a message.
Emits an event.
Public contract store.
Confidential contract store.
diff --git a/rust/oasis_contract_sdk/contract/trait.Contract.html b/rust/oasis_contract_sdk/contract/trait.Contract.html index 580c9d9d07..bc73b87a07 100644 --- a/rust/oasis_contract_sdk/contract/trait.Contract.html +++ b/rust/oasis_contract_sdk/contract/trait.Contract.html @@ -20,7 +20,7 @@ ) -> Result<(), Self::Error> { ... } fn handle_reply<C: Context>( _ctx: &mut C, - _reply: Reply, + _reply: Reply, ) -> Result<Option<Self::Response>, Self::Error> { ... } fn pre_upgrade<C: Context>( _ctx: &mut C, @@ -48,7 +48,7 @@ ) -> Result<(), Self::Error>Instantiate the contract.
Handle replies from sent messages.
pub enum CryptoError {
DecryptionFailed,
}
Errors that can be returned from crypto functions.
-pub trait Env {
// Required methods
- fn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse;
- fn address_for_instance(&self, instance_id: InstanceId) -> Address;
+ fn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse;
+ fn address_for_instance(&self, instance_id: InstanceId) -> Address;
fn debug_print(&self, msg: &str);
}
Environment query trait.
-Perform an environment query.
-Returns an address for the contract instance id.
+Perform an environment query.
+Returns an address for the contract instance id.
Prints a message to the console. Useful when debugging.
A contract error that gets propagated to the caller.
It extends std::error::Error
with module name and error code so that errors can be easily
serialized and transferred between different processes.
Name of the module that emitted the error.
Converts the error into an execution result.
+Converts the error into an execution result.
An event emitted by the contract.
This trait can be derived:
@@ -21,5 +21,5 @@ }Name of the module that emitted the event.