From 2745f8b8460a56afcbee482cc815dbcd9ccbc1d6 Mon Sep 17 00:00:00 2001 From: paritytech-ci Date: Fri, 8 Mar 2024 17:15:51 +0000 Subject: [PATCH] Updated docs for master} and pushed to gh-pages --- ink/struct.EnvAccess.html | 4 ++-- ink_env/macro.pay_with_call.html | 2 +- ink_env/test/fn.assert_contract_termination.html | 5 +++-- ink_env/test/index.html | 2 +- ink_env/test/macro.pay_with_call.html | 2 +- src/ink/env_access.rs.html | 4 ++-- src/ink_env/engine/off_chain/test_api.rs.html | 4 +++- 7 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ink/struct.EnvAccess.html b/ink/struct.EnvAccess.html index a59eda477f3..b240410db91 100644 --- a/ink/struct.EnvAccess.html +++ b/ink/struct.EnvAccess.html @@ -218,7 +218,7 @@
Example
}) .unwrap_or_else(|error| panic!("Received a `LangError` while instatiating: {:?}", error)) } -

See our delegator example +

See our delegator example for a complete contract example.

Note

For more details visit: [ink_env::instantiate_contract]

@@ -264,7 +264,7 @@
Example
}) .unwrap_or_else(|error| panic!("Received a `LangError` while instatiating: {:?}", error)) } -

See our delegator example +

See our delegator example for a complete contract example.

Note

For more details visit: [ink_env::instantiate_contract_v1]

diff --git a/ink_env/macro.pay_with_call.html b/ink_env/macro.pay_with_call.html index 8b67b3addec..01af60c571b 100644 --- a/ink_env/macro.pay_with_call.html +++ b/ink_env/macro.pay_with_call.html @@ -1,4 +1,4 @@ -pay_with_call in ink_env - Rust
macro_rules! pay_with_call {
+pay_with_call in ink_env - Rust
macro_rules! pay_with_call {
     ($contract:ident . $message:ident ( $( $params:expr ),* ) , $amount:expr) => { ... };
 }
Expand description

Prepend contract message call with value transfer. Used for tests in off-chain environment.

diff --git a/ink_env/test/fn.assert_contract_termination.html b/ink_env/test/fn.assert_contract_termination.html index bb5e873cc3e..dca463ef55f 100644 --- a/ink_env/test/fn.assert_contract_termination.html +++ b/ink_env/test/fn.assert_contract_termination.html @@ -1,4 +1,4 @@ -assert_contract_termination in ink_env::test - Rust
pub fn assert_contract_termination<T, F>(
+assert_contract_termination in ink_env::test - Rust
pub fn assert_contract_termination<T, F>(
     should_terminate: F,
     expected_beneficiary: T::AccountId,
     expected_value_transferred_to_beneficiary: T::Balance
@@ -23,5 +23,6 @@ 

Usage

-

See integration-tests/contract-terminate for a complete usage example.

+

See our contract-terminate +example for a complete usage exemplification.

\ No newline at end of file diff --git a/ink_env/test/index.html b/ink_env/test/index.html index 7bca7fef881..e416ab539ad 100644 --- a/ink_env/test/index.html +++ b/ink_env/test/index.html @@ -1,4 +1,4 @@ -ink_env::test - Rust

Module ink_env::test

source ·
Expand description

Operations on the off-chain testing environment.

+ink_env::test - Rust

Module ink_env::test

source ·
Expand description

Operations on the off-chain testing environment.

Macros

  • Prepend contract message call with value transfer. Used for tests in off-chain environment.

Structs

Traits

  • Types implementing this trait can be used as chain extensions.

Functions

  • Advances the chain by a single block.
  • Tests if a contract terminates successfully after self.env().terminate() has been called.
  • Gets the currently set callee.
  • Returns the amount of storage cells used by the account account_id.
  • Returns the default accounts for testing purposes: diff --git a/ink_env/test/macro.pay_with_call.html b/ink_env/test/macro.pay_with_call.html index f05bfc8d3aa..76ee733d11c 100644 --- a/ink_env/test/macro.pay_with_call.html +++ b/ink_env/test/macro.pay_with_call.html @@ -1,4 +1,4 @@ -pay_with_call in ink_env::test - Rust
    macro_rules! pay_with_call {
    +pay_with_call in ink_env::test - Rust
    macro_rules! pay_with_call {
         ($contract:ident . $message:ident ( $( $params:expr ),* ) , $amount:expr) => { ... };
     }
    Expand description

    Prepend contract message call with value transfer. Used for tests in off-chain environment.

    diff --git a/src/ink/env_access.rs.html b/src/ink/env_access.rs.html index ade2a0b5aa2..d96167e23d6 100644 --- a/src/ink/env_access.rs.html +++ b/src/ink/env_access.rs.html @@ -1836,7 +1836,7 @@ /// # } /// ``` /// - /// See [our `delegator` example](https://github.com/paritytech/ink/tree/master/integration-tests/integration%20tests/examples/delegator) + /// See [our `delegator` example](https://github.com/paritytech/ink-examples/tree/main/upgradeable-contracts#delegator) /// for a complete contract example. /// /// # Note @@ -1923,7 +1923,7 @@ /// # } /// ``` /// - /// See [our `delegator` example](https://github.com/paritytech/ink/tree/master/integration-tests/integration%20tests/examples/delegator) + /// See [our `delegator` example](https://github.com/paritytech/ink-examples/tree/main/upgradeable-contracts#delegator) /// for a complete contract example. /// /// # Note diff --git a/src/ink_env/engine/off_chain/test_api.rs.html b/src/ink_env/engine/off_chain/test_api.rs.html index a136841c1cd..84c8170ee5b 100644 --- a/src/ink_env/engine/off_chain/test_api.rs.html +++ b/src/ink_env/engine/off_chain/test_api.rs.html @@ -430,6 +430,7 @@ 430 431 432 +433
    // Copyright (C) Parity Technologies (UK) Ltd.
     //
     // Licensed under the Apache License, Version 2.0 (the "License");
    @@ -827,7 +828,8 @@
     /// );
     /// ```
     ///
    -/// See `integration-tests/contract-terminate` for a complete usage example.
    +/// See our [`contract-terminate`](https://github.com/paritytech/ink-examples/tree/main/contract-terminate)
    +/// example for a complete usage exemplification.
     pub fn assert_contract_termination<T, F>(
         should_terminate: F,
         expected_beneficiary: T::AccountId,