diff --git a/static/sway/core/all.html b/static/sway/core/all.html index 15e7ca67..78c0dbe1 100644 --- a/static/sway/core/all.html +++ b/static/sway/core/all.html @@ -1,4 +1,4 @@ -List of all items in this project

List of all items

Structs

Describes a location in storage.

+List of all items in this project

List of all items

Structs

Traits

Trait for the addition of two values.

Trait to bitwise AND two values of the same type.

Trait to bitwise OR two values of the same type.

diff --git a/static/sway/core/codec/fn.abi_decode.html b/static/sway/core/codec/fn.abi_decode.html index 805fe5df..df2854ac 100644 --- a/static/sway/core/codec/fn.abi_decode.html +++ b/static/sway/core/codec/fn.abi_decode.html @@ -1,4 +1,4 @@ -abi_decode in codec - Sway

Function core::codec::abi_decode

pub fn abi_decode<T>(data: raw_slice) -> T
+abi_decode in codec - Sway

Function core::codec::abi_decode

pub fn abi_decode<T>(data: raw_slice) -> T
 where
     T: AbiDecode,
 
Expand description
\ No newline at end of file diff --git a/static/sway/core/codec/fn.abi_decode_in_place.html b/static/sway/core/codec/fn.abi_decode_in_place.html index e330c8f2..fa3515c0 100644 --- a/static/sway/core/codec/fn.abi_decode_in_place.html +++ b/static/sway/core/codec/fn.abi_decode_in_place.html @@ -1,4 +1,4 @@ -abi_decode_in_place in codec - Sway
pub fn abi_decode_in_place<T>(ptr: raw_ptr, len: u64, target: raw_ptr)
+abi_decode_in_place in codec - Sway
pub fn abi_decode_in_place<T>(ptr: raw_ptr, len: u64, target: raw_ptr)
 where
     T: AbiDecode,
 
Expand description
\ No newline at end of file diff --git a/static/sway/core/codec/fn.contract_call.html b/static/sway/core/codec/fn.contract_call.html index a434e8f5..991f4edf 100644 --- a/static/sway/core/codec/fn.contract_call.html +++ b/static/sway/core/codec/fn.contract_call.html @@ -1,4 +1,4 @@ -contract_call in codec - Sway
pub fn contract_call<T, TArgs>(
+contract_call in codec - Sway
pub fn contract_call<T, TArgs>(
     contract_id: b256,
     method_name: str,
     args: TArgs,
diff --git a/static/sway/core/codec/fn.decode_first_param.html b/static/sway/core/codec/fn.decode_first_param.html
index 228a56b2..4d2c3436 100644
--- a/static/sway/core/codec/fn.decode_first_param.html
+++ b/static/sway/core/codec/fn.decode_first_param.html
@@ -1,4 +1,4 @@
-decode_first_param in codec - Sway
pub fn decode_first_param<T>() -> T
+decode_first_param in codec - Sway
pub fn decode_first_param<T>() -> T
 where
     T: AbiDecode,
 
\ No newline at end of file diff --git a/static/sway/core/codec/fn.decode_predicate_data.html b/static/sway/core/codec/fn.decode_predicate_data.html index ccdd9364..9001c99a 100644 --- a/static/sway/core/codec/fn.decode_predicate_data.html +++ b/static/sway/core/codec/fn.decode_predicate_data.html @@ -1,4 +1,4 @@ -decode_predicate_data in codec - Sway
pub fn decode_predicate_data<T>() -> T
+decode_predicate_data in codec - Sway
pub fn decode_predicate_data<T>() -> T
 where
     T: AbiDecode,
 
\ No newline at end of file diff --git a/static/sway/core/codec/fn.decode_predicate_data_by_index.html b/static/sway/core/codec/fn.decode_predicate_data_by_index.html index 19fa8964..83aa14a2 100644 --- a/static/sway/core/codec/fn.decode_predicate_data_by_index.html +++ b/static/sway/core/codec/fn.decode_predicate_data_by_index.html @@ -1,4 +1,4 @@ -decode_predicate_data_by_index in codec - Sway
pub fn decode_predicate_data_by_index<T>(index: u64) -> T
+decode_predicate_data_by_index in codec - Sway
pub fn decode_predicate_data_by_index<T>(index: u64) -> T
 where
     T: AbiDecode,
 
\ No newline at end of file diff --git a/static/sway/core/codec/fn.decode_script_data.html b/static/sway/core/codec/fn.decode_script_data.html index d7ebabac..08a39f30 100644 --- a/static/sway/core/codec/fn.decode_script_data.html +++ b/static/sway/core/codec/fn.decode_script_data.html @@ -1,4 +1,4 @@ -decode_script_data in codec - Sway
pub fn decode_script_data<T>() -> T
+decode_script_data in codec - Sway
pub fn decode_script_data<T>() -> T
 where
     T: AbiDecode,
 
\ No newline at end of file diff --git a/static/sway/core/codec/fn.decode_second_param.html b/static/sway/core/codec/fn.decode_second_param.html index 0c05457e..41040054 100644 --- a/static/sway/core/codec/fn.decode_second_param.html +++ b/static/sway/core/codec/fn.decode_second_param.html @@ -1,4 +1,4 @@ -decode_second_param in codec - Sway
pub fn decode_second_param<T>() -> T
+decode_second_param in codec - Sway
pub fn decode_second_param<T>() -> T
 where
     T: AbiDecode,
 
\ No newline at end of file diff --git a/static/sway/core/codec/fn.encode.html b/static/sway/core/codec/fn.encode.html index 01d26698..2392cdf0 100644 --- a/static/sway/core/codec/fn.encode.html +++ b/static/sway/core/codec/fn.encode.html @@ -1,4 +1,4 @@ -encode in codec - Sway

Function core::codec::encode

pub fn encode<T>(item: T) -> raw_slice
+encode in codec - Sway

Function core::codec::encode

pub fn encode<T>(item: T) -> raw_slice
 where
     T: AbiEncode,
 
\ No newline at end of file diff --git a/static/sway/core/codec/index.html b/static/sway/core/codec/index.html index 5826184d..eae8ae2e 100644 --- a/static/sway/core/codec/index.html +++ b/static/sway/core/codec/index.html @@ -1 +1 @@ -codec in core - Sway

Module core::codec

Structs

Traits

Functions

\ No newline at end of file +codec in core - Sway

Module core::codec

Structs

Traits

Functions

\ No newline at end of file diff --git a/static/sway/core/codec/struct.Buffer.html b/static/sway/core/codec/struct.Buffer.html index b6063d77..2298dcfc 100644 --- a/static/sway/core/codec/struct.Buffer.html +++ b/static/sway/core/codec/struct.Buffer.html @@ -1,3 +1,3 @@ -Buffer in codec - Sway

Struct core::codec::Buffer

pub struct Buffer {
+Buffer in codec - Sway

Struct core::codec::Buffer

pub struct Buffer {
     buffer: (raw_ptr, u64, u64), // ptr, capacity, size
-}

Fields

buffer: (raw_ptr, u64, u64)

Implementations

fn new() -> Self

Trait Implementations

fn as_raw_slice(self) -> raw_slice

\ No newline at end of file +}

Fields

buffer: (raw_ptr, u64, u64)

Implementations

fn new() -> Self

fn with_capacity(cap: u64) -> Self

Trait Implementations

fn as_raw_slice(self) -> raw_slice

\ No newline at end of file diff --git a/static/sway/core/codec/struct.BufferReader.html b/static/sway/core/codec/struct.BufferReader.html index 416a30bd..50b310cd 100644 --- a/static/sway/core/codec/struct.BufferReader.html +++ b/static/sway/core/codec/struct.BufferReader.html @@ -1,3 +1,3 @@ -BufferReader in codec - Sway
pub struct BufferReader {
+BufferReader in codec - Sway
pub struct BufferReader {
     ptr: raw_ptr,
 }

Fields

ptr: raw_ptr

Implementations

fn from_parts(ptr: raw_ptr, _len: u64) -> BufferReader

fn from_first_parameter() -> BufferReader

fn from_second_parameter() -> BufferReader

fn from_script_data() -> BufferReader

fn from_predicate_data() -> BufferReader

fn from_predicate_data_by_index(
predicate_index: u64,
) -> BufferReader

fn read_8_bytes(refmut self) -> T

fn read_32_bytes(refmut self) -> T

fn read_bytes(refmut self, count: u64) -> raw_slice

fn read(refmut self) -> T

fn decode(refmut self) -> T

\ No newline at end of file diff --git a/static/sway/core/codec/trait.AbiDecode.html b/static/sway/core/codec/trait.AbiDecode.html index 11279f37..0ca53213 100644 --- a/static/sway/core/codec/trait.AbiDecode.html +++ b/static/sway/core/codec/trait.AbiDecode.html @@ -1,3 +1,3 @@ -AbiDecode in codec - Sway
pub trait AbiDecode {
+AbiDecode in codec - Sway
pub trait AbiDecode {
     fn abi_decode(ref mut buffer: BufferReader) -> Self;
 }

Required Methods

\ No newline at end of file diff --git a/static/sway/core/codec/trait.AbiEncode.html b/static/sway/core/codec/trait.AbiEncode.html index 5a6a83e2..abaeae02 100644 --- a/static/sway/core/codec/trait.AbiEncode.html +++ b/static/sway/core/codec/trait.AbiEncode.html @@ -1,3 +1,3 @@ -AbiEncode in codec - Sway
pub trait AbiEncode {
+AbiEncode in codec - Sway
pub trait AbiEncode {
     fn abi_encode(self, buffer: Buffer) -> Buffer;
 }

Required Methods

\ No newline at end of file diff --git a/static/sway/core/index.html b/static/sway/core/index.html index ddf6c923..8584d88f 100644 --- a/static/sway/core/index.html +++ b/static/sway/core/index.html @@ -1 +1 @@ -core in core - Sway

Library core

Modules

Primitives

256 bits (32 bytes), i.e. a hash
Boolean true or false
string slice
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
16-bit unsigned integer
256-bit unsigned integer
32-bit unsigned integer
64-bit unsigned integer
8-bit unsigned integer
\ No newline at end of file +core in core - Sway

Library core

Modules

Primitives

256 bits (32 bytes), i.e. a hash
Boolean true or false
string slice
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
fixed-length string
16-bit unsigned integer
256-bit unsigned integer
32-bit unsigned integer
64-bit unsigned integer
8-bit unsigned integer
\ No newline at end of file diff --git a/static/sway/core/ops/fn.ok_str_eq.html b/static/sway/core/ops/fn.ok_str_eq.html index 48ac23d8..1e999b17 100644 --- a/static/sway/core/ops/fn.ok_str_eq.html +++ b/static/sway/core/ops/fn.ok_str_eq.html @@ -1 +1 @@ -ok_str_eq in ops - Sway

Function core::ops::ok_str_eq

pub fn ok_str_eq() 
Expand description
\ No newline at end of file +ok_str_eq in ops - Sway

Function core::ops::ok_str_eq

pub fn ok_str_eq() 
Expand description
\ No newline at end of file diff --git a/static/sway/core/ops/index.html b/static/sway/core/ops/index.html index 7677fe61..0069a7df 100644 --- a/static/sway/core/ops/index.html +++ b/static/sway/core/ops/index.html @@ -1,4 +1,4 @@ -ops in core - Sway

Module core::ops

Traits

Trait for the addition of two values.

+ops in core - Sway

Module core::ops

Traits

Trait for the addition of two values.

Trait to bitwise AND two values of the same type.

Trait to bitwise OR two values of the same type.

Trait to bitwise XOR two values of the same type.

diff --git a/static/sway/core/ops/trait.Add.html b/static/sway/core/ops/trait.Add.html index 42afe5ba..8a9c2082 100644 --- a/static/sway/core/ops/trait.Add.html +++ b/static/sway/core/ops/trait.Add.html @@ -1,4 +1,4 @@ -Add in ops - Sway

Trait core::ops::Add

pub trait Add {
+Add in ops - Sway

Trait core::ops::Add

pub trait Add {
     /// Add two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.BitwiseAnd.html b/static/sway/core/ops/trait.BitwiseAnd.html
index 29fc134c..9d670449 100644
--- a/static/sway/core/ops/trait.BitwiseAnd.html
+++ b/static/sway/core/ops/trait.BitwiseAnd.html
@@ -1,4 +1,4 @@
-BitwiseAnd in ops - Sway
pub trait BitwiseAnd {
+BitwiseAnd in ops - Sway
pub trait BitwiseAnd {
     /// Bitwise AND two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.BitwiseOr.html b/static/sway/core/ops/trait.BitwiseOr.html
index 7122cfa2..0fd0e8d5 100644
--- a/static/sway/core/ops/trait.BitwiseOr.html
+++ b/static/sway/core/ops/trait.BitwiseOr.html
@@ -1,4 +1,4 @@
-BitwiseOr in ops - Sway
pub trait BitwiseOr {
+BitwiseOr in ops - Sway
pub trait BitwiseOr {
     /// Bitwise OR two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.BitwiseXor.html b/static/sway/core/ops/trait.BitwiseXor.html
index 3e41a860..394b1cab 100644
--- a/static/sway/core/ops/trait.BitwiseXor.html
+++ b/static/sway/core/ops/trait.BitwiseXor.html
@@ -1,4 +1,4 @@
-BitwiseXor in ops - Sway
pub trait BitwiseXor {
+BitwiseXor in ops - Sway
pub trait BitwiseXor {
     /// Bitwise XOR two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Divide.html b/static/sway/core/ops/trait.Divide.html
index 8cc60f52..fcec9415 100644
--- a/static/sway/core/ops/trait.Divide.html
+++ b/static/sway/core/ops/trait.Divide.html
@@ -1,4 +1,4 @@
-Divide in ops - Sway

Trait core::ops::Divide

pub trait Divide {
+Divide in ops - Sway

Trait core::ops::Divide

pub trait Divide {
     /// Divide two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Eq.html b/static/sway/core/ops/trait.Eq.html
index f3406eb7..028ca426 100644
--- a/static/sway/core/ops/trait.Eq.html
+++ b/static/sway/core/ops/trait.Eq.html
@@ -1,4 +1,4 @@
-Eq in ops - Sway

Trait core::ops::Eq

pub trait Eq {
+Eq in ops - Sway

Trait core::ops::Eq

pub trait Eq {
     /// Evaluates if two values of the same type are equal.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Mod.html b/static/sway/core/ops/trait.Mod.html
index 1464bc7c..3bbce6bc 100644
--- a/static/sway/core/ops/trait.Mod.html
+++ b/static/sway/core/ops/trait.Mod.html
@@ -1,4 +1,4 @@
-Mod in ops - Sway

Trait core::ops::Mod

pub trait Mod {
+Mod in ops - Sway

Trait core::ops::Mod

pub trait Mod {
     /// Modulo two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Multiply.html b/static/sway/core/ops/trait.Multiply.html
index 2fd22cb3..2f588a82 100644
--- a/static/sway/core/ops/trait.Multiply.html
+++ b/static/sway/core/ops/trait.Multiply.html
@@ -1,4 +1,4 @@
-Multiply in ops - Sway

Trait core::ops::Multiply

pub trait Multiply {
+Multiply in ops - Sway

Trait core::ops::Multiply

pub trait Multiply {
     /// Multiply two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Not.html b/static/sway/core/ops/trait.Not.html
index 88e08342..e2c73c27 100644
--- a/static/sway/core/ops/trait.Not.html
+++ b/static/sway/core/ops/trait.Not.html
@@ -1,4 +1,4 @@
-Not in ops - Sway

Trait core::ops::Not

pub trait Not {
+Not in ops - Sway

Trait core::ops::Not

pub trait Not {
     /// Inverts the value of the type.
     ///
     /// # Returns
diff --git a/static/sway/core/ops/trait.Ord.html b/static/sway/core/ops/trait.Ord.html
index 64e8830c..50cc5a4b 100644
--- a/static/sway/core/ops/trait.Ord.html
+++ b/static/sway/core/ops/trait.Ord.html
@@ -1,4 +1,4 @@
-Ord in ops - Sway

Trait core::ops::Ord

pub trait Ord {
+Ord in ops - Sway

Trait core::ops::Ord

pub trait Ord {
     /// Evaluates if one value of the same type is greater than another.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Shift.html b/static/sway/core/ops/trait.Shift.html
index 8c18c0d2..90ee1c5f 100644
--- a/static/sway/core/ops/trait.Shift.html
+++ b/static/sway/core/ops/trait.Shift.html
@@ -1,4 +1,4 @@
-Shift in ops - Sway

Trait core::ops::Shift

pub trait Shift {
+Shift in ops - Sway

Trait core::ops::Shift

pub trait Shift {
     /// Bit shift left by an amount.
     ///
     /// # Arguments
diff --git a/static/sway/core/ops/trait.Subtract.html b/static/sway/core/ops/trait.Subtract.html
index 81bb315f..885c3de0 100644
--- a/static/sway/core/ops/trait.Subtract.html
+++ b/static/sway/core/ops/trait.Subtract.html
@@ -1,4 +1,4 @@
-Subtract in ops - Sway

Trait core::ops::Subtract

pub trait Subtract {
+Subtract in ops - Sway

Trait core::ops::Subtract

pub trait Subtract {
     /// Subtract two values of the same type.
     ///
     /// # Arguments
diff --git a/static/sway/core/primitive.b256.html b/static/sway/core/primitive.b256.html
index 8e1ac068..6f405040 100644
--- a/static/sway/core/primitive.b256.html
+++ b/static/sway/core/primitive.b256.html
@@ -1,4 +1,4 @@
-b256 in core - Sway

Primitive core::b256

b256
Expand description
256 bits (32 bytes), i.e. a hash

Implementations

fn min() -> Self

The smallest value that can be represented by this type.

+b256 in core - Sway

Primitive core::b256

b256
Expand description
256 bits (32 bytes), i.e. a hash

Implementations

fn min() -> Self

The smallest value that can be represented by this type.

Returns

  • [b256] - The smallest b256 value.
  • diff --git a/static/sway/core/primitive.bool.html b/static/sway/core/primitive.bool.html index 99b0e46c..c5334cbe 100644 --- a/static/sway/core/primitive.bool.html +++ b/static/sway/core/primitive.bool.html @@ -1,4 +1,4 @@ -bool in core - Sway

    Primitive core::bool

    bool
    Expand description
    Boolean true or false

    Trait Implementations

    fn not(self) -> Self

    fn eq(self, other: Self) -> bool

    fn neq(self, other: Self) -> bool

    Evaluates if two values of the same type are not equal.

    +bool in core - Sway

    Primitive core::bool

    bool
    Expand description
    Boolean true or false

    Trait Implementations

    fn not(self) -> Self

    fn eq(self, other: Self) -> bool

    fn neq(self, other: Self) -> bool

    Evaluates if two values of the same type are not equal.

    Additional Information

    This function is inherited when eq() is implemented.

    Arguments

    diff --git a/static/sway/core/primitive.str.html b/static/sway/core/primitive.str.html index 97446e20..5eb1bc20 100644 --- a/static/sway/core/primitive.str.html +++ b/static/sway/core/primitive.str.html @@ -1,4 +1,4 @@ -str in core - Sway

    Primitive core::str

    str
    Expand description
    string slice

    Implementations

    fn as_ptr(self) -> raw_ptr

    Return a raw_ptr to the beginning of the string slice on the heap

    +str in core - Sway

    Primitive core::str

    str
    Expand description
    string slice

    Implementations

    fn as_ptr(self) -> raw_ptr

    Return a raw_ptr to the beginning of the string slice on the heap

    fn len(self) -> u64

    Return the length of the string slice in bytes

    Trait Implementations

    fn eq(self, other: Self) -> bool

    fn neq(self, other: Self) -> bool

    Evaluates if two values of the same type are not equal.

    Additional Information

    diff --git a/static/sway/core/primitive.str[0].html b/static/sway/core/primitive.str[0].html index eeca7d26..7ee6ec51 100644 --- a/static/sway/core/primitive.str[0].html +++ b/static/sway/core/primitive.str[0].html @@ -1 +1 @@ -str[0] in core - Sway

    Primitive core::str[0]

    str[0]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    \ No newline at end of file +str[0] in core - Sway

    Primitive core::str[0]

    str[0]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[10].html b/static/sway/core/primitive.str[10].html index 47dbdf75..c7b1ebaa 100644 --- a/static/sway/core/primitive.str[10].html +++ b/static/sway/core/primitive.str[10].html @@ -1 +1 @@ -str[10] in core - Sway

    Primitive core::str[10]

    str[10]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[10]

    \ No newline at end of file +str[10] in core - Sway

    Primitive core::str[10]

    str[10]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[10]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[11].html b/static/sway/core/primitive.str[11].html index 2449042b..c31e6fa2 100644 --- a/static/sway/core/primitive.str[11].html +++ b/static/sway/core/primitive.str[11].html @@ -1 +1 @@ -str[11] in core - Sway

    Primitive core::str[11]

    str[11]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[11]

    \ No newline at end of file +str[11] in core - Sway

    Primitive core::str[11]

    str[11]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[11]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[12].html b/static/sway/core/primitive.str[12].html index df060e87..4c2ffb15 100644 --- a/static/sway/core/primitive.str[12].html +++ b/static/sway/core/primitive.str[12].html @@ -1 +1 @@ -str[12] in core - Sway

    Primitive core::str[12]

    str[12]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[12]

    \ No newline at end of file +str[12] in core - Sway

    Primitive core::str[12]

    str[12]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[12]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[13].html b/static/sway/core/primitive.str[13].html index f0479e58..ccf85ec2 100644 --- a/static/sway/core/primitive.str[13].html +++ b/static/sway/core/primitive.str[13].html @@ -1 +1 @@ -str[13] in core - Sway

    Primitive core::str[13]

    str[13]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[13]

    \ No newline at end of file +str[13] in core - Sway

    Primitive core::str[13]

    str[13]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[13]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[14].html b/static/sway/core/primitive.str[14].html index d4d4b647..59f1ca19 100644 --- a/static/sway/core/primitive.str[14].html +++ b/static/sway/core/primitive.str[14].html @@ -1 +1 @@ -str[14] in core - Sway

    Primitive core::str[14]

    str[14]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[14]

    \ No newline at end of file +str[14] in core - Sway

    Primitive core::str[14]

    str[14]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[14]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[15].html b/static/sway/core/primitive.str[15].html index 272c1ccc..86c360a2 100644 --- a/static/sway/core/primitive.str[15].html +++ b/static/sway/core/primitive.str[15].html @@ -1 +1 @@ -str[15] in core - Sway

    Primitive core::str[15]

    str[15]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[15]

    \ No newline at end of file +str[15] in core - Sway

    Primitive core::str[15]

    str[15]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[15]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[16].html b/static/sway/core/primitive.str[16].html index 6cabe707..67654abe 100644 --- a/static/sway/core/primitive.str[16].html +++ b/static/sway/core/primitive.str[16].html @@ -1 +1 @@ -str[16] in core - Sway

    Primitive core::str[16]

    str[16]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[16]

    \ No newline at end of file +str[16] in core - Sway

    Primitive core::str[16]

    str[16]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[16]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[17].html b/static/sway/core/primitive.str[17].html index 0597285a..e691a0da 100644 --- a/static/sway/core/primitive.str[17].html +++ b/static/sway/core/primitive.str[17].html @@ -1 +1 @@ -str[17] in core - Sway

    Primitive core::str[17]

    str[17]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[17]

    \ No newline at end of file +str[17] in core - Sway

    Primitive core::str[17]

    str[17]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[17]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[18].html b/static/sway/core/primitive.str[18].html index 3d2c4dda..bc93c629 100644 --- a/static/sway/core/primitive.str[18].html +++ b/static/sway/core/primitive.str[18].html @@ -1 +1 @@ -str[18] in core - Sway

    Primitive core::str[18]

    str[18]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[18]

    \ No newline at end of file +str[18] in core - Sway

    Primitive core::str[18]

    str[18]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[18]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[19].html b/static/sway/core/primitive.str[19].html index 75569a0b..815ae91b 100644 --- a/static/sway/core/primitive.str[19].html +++ b/static/sway/core/primitive.str[19].html @@ -1 +1 @@ -str[19] in core - Sway

    Primitive core::str[19]

    str[19]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[19]

    \ No newline at end of file +str[19] in core - Sway

    Primitive core::str[19]

    str[19]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[19]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[1].html b/static/sway/core/primitive.str[1].html index cc526dfe..00d2a176 100644 --- a/static/sway/core/primitive.str[1].html +++ b/static/sway/core/primitive.str[1].html @@ -1 +1 @@ -str[1] in core - Sway

    Primitive core::str[1]

    str[1]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[1]

    \ No newline at end of file +str[1] in core - Sway

    Primitive core::str[1]

    str[1]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[1]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[20].html b/static/sway/core/primitive.str[20].html index 7555de61..5e16d6c8 100644 --- a/static/sway/core/primitive.str[20].html +++ b/static/sway/core/primitive.str[20].html @@ -1 +1 @@ -str[20] in core - Sway

    Primitive core::str[20]

    str[20]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[20]

    \ No newline at end of file +str[20] in core - Sway

    Primitive core::str[20]

    str[20]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[20]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[21].html b/static/sway/core/primitive.str[21].html index 65ad5058..cf2b073b 100644 --- a/static/sway/core/primitive.str[21].html +++ b/static/sway/core/primitive.str[21].html @@ -1 +1 @@ -str[21] in core - Sway

    Primitive core::str[21]

    str[21]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[21]

    \ No newline at end of file +str[21] in core - Sway

    Primitive core::str[21]

    str[21]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[21]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[22].html b/static/sway/core/primitive.str[22].html index 2c7db623..3d183ab1 100644 --- a/static/sway/core/primitive.str[22].html +++ b/static/sway/core/primitive.str[22].html @@ -1 +1 @@ -str[22] in core - Sway

    Primitive core::str[22]

    str[22]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[22]

    \ No newline at end of file +str[22] in core - Sway

    Primitive core::str[22]

    str[22]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[22]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[23].html b/static/sway/core/primitive.str[23].html index 956d1253..578dbf1c 100644 --- a/static/sway/core/primitive.str[23].html +++ b/static/sway/core/primitive.str[23].html @@ -1 +1 @@ -str[23] in core - Sway

    Primitive core::str[23]

    str[23]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[23]

    \ No newline at end of file +str[23] in core - Sway

    Primitive core::str[23]

    str[23]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[23]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[24].html b/static/sway/core/primitive.str[24].html index 79bbaa3d..2438df3b 100644 --- a/static/sway/core/primitive.str[24].html +++ b/static/sway/core/primitive.str[24].html @@ -1 +1 @@ -str[24] in core - Sway

    Primitive core::str[24]

    str[24]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[24]

    \ No newline at end of file +str[24] in core - Sway

    Primitive core::str[24]

    str[24]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[24]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[25].html b/static/sway/core/primitive.str[25].html index 2329a867..b1c8f1b6 100644 --- a/static/sway/core/primitive.str[25].html +++ b/static/sway/core/primitive.str[25].html @@ -1 +1 @@ -str[25] in core - Sway

    Primitive core::str[25]

    str[25]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[25]

    \ No newline at end of file +str[25] in core - Sway

    Primitive core::str[25]

    str[25]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[25]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[26].html b/static/sway/core/primitive.str[26].html index 8c4c3fd2..82026808 100644 --- a/static/sway/core/primitive.str[26].html +++ b/static/sway/core/primitive.str[26].html @@ -1 +1 @@ -str[26] in core - Sway

    Primitive core::str[26]

    str[26]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[26]

    \ No newline at end of file +str[26] in core - Sway

    Primitive core::str[26]

    str[26]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[26]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[27].html b/static/sway/core/primitive.str[27].html index cec69a8a..9a70c5a9 100644 --- a/static/sway/core/primitive.str[27].html +++ b/static/sway/core/primitive.str[27].html @@ -1 +1 @@ -str[27] in core - Sway

    Primitive core::str[27]

    str[27]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[27]

    \ No newline at end of file +str[27] in core - Sway

    Primitive core::str[27]

    str[27]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[27]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[28].html b/static/sway/core/primitive.str[28].html index 0dfc59ed..213629bc 100644 --- a/static/sway/core/primitive.str[28].html +++ b/static/sway/core/primitive.str[28].html @@ -1 +1 @@ -str[28] in core - Sway

    Primitive core::str[28]

    str[28]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[28]

    \ No newline at end of file +str[28] in core - Sway

    Primitive core::str[28]

    str[28]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[28]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[29].html b/static/sway/core/primitive.str[29].html index de2f2c11..234f806b 100644 --- a/static/sway/core/primitive.str[29].html +++ b/static/sway/core/primitive.str[29].html @@ -1 +1 @@ -str[29] in core - Sway

    Primitive core::str[29]

    str[29]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[29]

    \ No newline at end of file +str[29] in core - Sway

    Primitive core::str[29]

    str[29]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[29]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[2].html b/static/sway/core/primitive.str[2].html index 62d59a78..e359e621 100644 --- a/static/sway/core/primitive.str[2].html +++ b/static/sway/core/primitive.str[2].html @@ -1 +1 @@ -str[2] in core - Sway

    Primitive core::str[2]

    str[2]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[2]

    \ No newline at end of file +str[2] in core - Sway

    Primitive core::str[2]

    str[2]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[2]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[30].html b/static/sway/core/primitive.str[30].html index 29a6b0c8..de60753d 100644 --- a/static/sway/core/primitive.str[30].html +++ b/static/sway/core/primitive.str[30].html @@ -1 +1 @@ -str[30] in core - Sway

    Primitive core::str[30]

    str[30]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[30]

    \ No newline at end of file +str[30] in core - Sway

    Primitive core::str[30]

    str[30]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[30]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[31].html b/static/sway/core/primitive.str[31].html index fd9234f3..1cb1e4c6 100644 --- a/static/sway/core/primitive.str[31].html +++ b/static/sway/core/primitive.str[31].html @@ -1 +1 @@ -str[31] in core - Sway

    Primitive core::str[31]

    str[31]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[31]

    \ No newline at end of file +str[31] in core - Sway

    Primitive core::str[31]

    str[31]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[31]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[32].html b/static/sway/core/primitive.str[32].html index c0a93402..be603193 100644 --- a/static/sway/core/primitive.str[32].html +++ b/static/sway/core/primitive.str[32].html @@ -1 +1 @@ -str[32] in core - Sway

    Primitive core::str[32]

    str[32]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[32]

    \ No newline at end of file +str[32] in core - Sway

    Primitive core::str[32]

    str[32]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[32]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[33].html b/static/sway/core/primitive.str[33].html index d0b81027..14b59099 100644 --- a/static/sway/core/primitive.str[33].html +++ b/static/sway/core/primitive.str[33].html @@ -1 +1 @@ -str[33] in core - Sway

    Primitive core::str[33]

    str[33]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[33]

    \ No newline at end of file +str[33] in core - Sway

    Primitive core::str[33]

    str[33]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[33]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[34].html b/static/sway/core/primitive.str[34].html index 17532925..ebac1730 100644 --- a/static/sway/core/primitive.str[34].html +++ b/static/sway/core/primitive.str[34].html @@ -1 +1 @@ -str[34] in core - Sway

    Primitive core::str[34]

    str[34]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[34]

    \ No newline at end of file +str[34] in core - Sway

    Primitive core::str[34]

    str[34]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[34]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[35].html b/static/sway/core/primitive.str[35].html index 90fecb38..16b84765 100644 --- a/static/sway/core/primitive.str[35].html +++ b/static/sway/core/primitive.str[35].html @@ -1 +1 @@ -str[35] in core - Sway

    Primitive core::str[35]

    str[35]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[35]

    \ No newline at end of file +str[35] in core - Sway

    Primitive core::str[35]

    str[35]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[35]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[36].html b/static/sway/core/primitive.str[36].html index f1f61d0c..d64cc0ab 100644 --- a/static/sway/core/primitive.str[36].html +++ b/static/sway/core/primitive.str[36].html @@ -1 +1 @@ -str[36] in core - Sway

    Primitive core::str[36]

    str[36]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[36]

    \ No newline at end of file +str[36] in core - Sway

    Primitive core::str[36]

    str[36]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[36]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[37].html b/static/sway/core/primitive.str[37].html index 8b93cc33..0628a214 100644 --- a/static/sway/core/primitive.str[37].html +++ b/static/sway/core/primitive.str[37].html @@ -1 +1 @@ -str[37] in core - Sway

    Primitive core::str[37]

    str[37]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[37]

    \ No newline at end of file +str[37] in core - Sway

    Primitive core::str[37]

    str[37]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[37]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[38].html b/static/sway/core/primitive.str[38].html index c9a3d50d..b078dc97 100644 --- a/static/sway/core/primitive.str[38].html +++ b/static/sway/core/primitive.str[38].html @@ -1 +1 @@ -str[38] in core - Sway

    Primitive core::str[38]

    str[38]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[38]

    \ No newline at end of file +str[38] in core - Sway

    Primitive core::str[38]

    str[38]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[38]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[39].html b/static/sway/core/primitive.str[39].html index d3472e76..797d57f4 100644 --- a/static/sway/core/primitive.str[39].html +++ b/static/sway/core/primitive.str[39].html @@ -1 +1 @@ -str[39] in core - Sway

    Primitive core::str[39]

    str[39]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[39]

    \ No newline at end of file +str[39] in core - Sway

    Primitive core::str[39]

    str[39]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[39]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[3].html b/static/sway/core/primitive.str[3].html index e64d3675..f490657c 100644 --- a/static/sway/core/primitive.str[3].html +++ b/static/sway/core/primitive.str[3].html @@ -1 +1 @@ -str[3] in core - Sway

    Primitive core::str[3]

    str[3]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[3]

    \ No newline at end of file +str[3] in core - Sway

    Primitive core::str[3]

    str[3]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[3]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[40].html b/static/sway/core/primitive.str[40].html index 185326d3..69e84b6b 100644 --- a/static/sway/core/primitive.str[40].html +++ b/static/sway/core/primitive.str[40].html @@ -1 +1 @@ -str[40] in core - Sway

    Primitive core::str[40]

    str[40]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[40]

    \ No newline at end of file +str[40] in core - Sway

    Primitive core::str[40]

    str[40]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[40]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[41].html b/static/sway/core/primitive.str[41].html index e79670a6..3a7a5132 100644 --- a/static/sway/core/primitive.str[41].html +++ b/static/sway/core/primitive.str[41].html @@ -1 +1 @@ -str[41] in core - Sway

    Primitive core::str[41]

    str[41]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[41]

    \ No newline at end of file +str[41] in core - Sway

    Primitive core::str[41]

    str[41]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[41]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[42].html b/static/sway/core/primitive.str[42].html index 355d59c2..39455697 100644 --- a/static/sway/core/primitive.str[42].html +++ b/static/sway/core/primitive.str[42].html @@ -1 +1 @@ -str[42] in core - Sway

    Primitive core::str[42]

    str[42]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[42]

    \ No newline at end of file +str[42] in core - Sway

    Primitive core::str[42]

    str[42]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[42]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[43].html b/static/sway/core/primitive.str[43].html index 240faabc..97a785ad 100644 --- a/static/sway/core/primitive.str[43].html +++ b/static/sway/core/primitive.str[43].html @@ -1 +1 @@ -str[43] in core - Sway

    Primitive core::str[43]

    str[43]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[43]

    \ No newline at end of file +str[43] in core - Sway

    Primitive core::str[43]

    str[43]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[43]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[44].html b/static/sway/core/primitive.str[44].html index acf5c0fb..811b1da4 100644 --- a/static/sway/core/primitive.str[44].html +++ b/static/sway/core/primitive.str[44].html @@ -1 +1 @@ -str[44] in core - Sway

    Primitive core::str[44]

    str[44]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[44]

    \ No newline at end of file +str[44] in core - Sway

    Primitive core::str[44]

    str[44]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[44]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[45].html b/static/sway/core/primitive.str[45].html index 13e802ce..082ee59c 100644 --- a/static/sway/core/primitive.str[45].html +++ b/static/sway/core/primitive.str[45].html @@ -1 +1 @@ -str[45] in core - Sway

    Primitive core::str[45]

    str[45]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[45]

    \ No newline at end of file +str[45] in core - Sway

    Primitive core::str[45]

    str[45]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[45]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[46].html b/static/sway/core/primitive.str[46].html index b1480b09..b713e671 100644 --- a/static/sway/core/primitive.str[46].html +++ b/static/sway/core/primitive.str[46].html @@ -1 +1 @@ -str[46] in core - Sway

    Primitive core::str[46]

    str[46]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[46]

    \ No newline at end of file +str[46] in core - Sway

    Primitive core::str[46]

    str[46]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[46]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[47].html b/static/sway/core/primitive.str[47].html index b01eeade..6fe26fb7 100644 --- a/static/sway/core/primitive.str[47].html +++ b/static/sway/core/primitive.str[47].html @@ -1 +1 @@ -str[47] in core - Sway

    Primitive core::str[47]

    str[47]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[47]

    \ No newline at end of file +str[47] in core - Sway

    Primitive core::str[47]

    str[47]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[47]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[48].html b/static/sway/core/primitive.str[48].html index 7cf96d87..db0e0101 100644 --- a/static/sway/core/primitive.str[48].html +++ b/static/sway/core/primitive.str[48].html @@ -1 +1 @@ -str[48] in core - Sway

    Primitive core::str[48]

    str[48]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[48]

    \ No newline at end of file +str[48] in core - Sway

    Primitive core::str[48]

    str[48]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[48]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[49].html b/static/sway/core/primitive.str[49].html index 2c9ff648..8a178c2c 100644 --- a/static/sway/core/primitive.str[49].html +++ b/static/sway/core/primitive.str[49].html @@ -1 +1 @@ -str[49] in core - Sway

    Primitive core::str[49]

    str[49]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[49]

    \ No newline at end of file +str[49] in core - Sway

    Primitive core::str[49]

    str[49]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[49]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[4].html b/static/sway/core/primitive.str[4].html index 7949d74c..6c8e51aa 100644 --- a/static/sway/core/primitive.str[4].html +++ b/static/sway/core/primitive.str[4].html @@ -1 +1 @@ -str[4] in core - Sway

    Primitive core::str[4]

    str[4]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[4]

    \ No newline at end of file +str[4] in core - Sway

    Primitive core::str[4]

    str[4]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[4]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[50].html b/static/sway/core/primitive.str[50].html index e6e1a25d..fb9d4aab 100644 --- a/static/sway/core/primitive.str[50].html +++ b/static/sway/core/primitive.str[50].html @@ -1 +1 @@ -str[50] in core - Sway

    Primitive core::str[50]

    str[50]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[50]

    \ No newline at end of file +str[50] in core - Sway

    Primitive core::str[50]

    str[50]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[50]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[51].html b/static/sway/core/primitive.str[51].html index 02b61be6..8e944089 100644 --- a/static/sway/core/primitive.str[51].html +++ b/static/sway/core/primitive.str[51].html @@ -1 +1 @@ -str[51] in core - Sway

    Primitive core::str[51]

    str[51]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[51]

    \ No newline at end of file +str[51] in core - Sway

    Primitive core::str[51]

    str[51]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[51]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[52].html b/static/sway/core/primitive.str[52].html index 3edc52d6..a163826a 100644 --- a/static/sway/core/primitive.str[52].html +++ b/static/sway/core/primitive.str[52].html @@ -1 +1 @@ -str[52] in core - Sway

    Primitive core::str[52]

    str[52]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[52]

    \ No newline at end of file +str[52] in core - Sway

    Primitive core::str[52]

    str[52]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[52]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[53].html b/static/sway/core/primitive.str[53].html index 1f172187..07016ddf 100644 --- a/static/sway/core/primitive.str[53].html +++ b/static/sway/core/primitive.str[53].html @@ -1 +1 @@ -str[53] in core - Sway

    Primitive core::str[53]

    str[53]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[53]

    \ No newline at end of file +str[53] in core - Sway

    Primitive core::str[53]

    str[53]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[53]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[54].html b/static/sway/core/primitive.str[54].html index 2b916892..e3d5423d 100644 --- a/static/sway/core/primitive.str[54].html +++ b/static/sway/core/primitive.str[54].html @@ -1 +1 @@ -str[54] in core - Sway

    Primitive core::str[54]

    str[54]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[54]

    \ No newline at end of file +str[54] in core - Sway

    Primitive core::str[54]

    str[54]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[54]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[55].html b/static/sway/core/primitive.str[55].html index 4259a7d9..8ec85e7c 100644 --- a/static/sway/core/primitive.str[55].html +++ b/static/sway/core/primitive.str[55].html @@ -1 +1 @@ -str[55] in core - Sway

    Primitive core::str[55]

    str[55]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[55]

    \ No newline at end of file +str[55] in core - Sway

    Primitive core::str[55]

    str[55]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[55]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[56].html b/static/sway/core/primitive.str[56].html index 8fdf5fbb..e3a5ea12 100644 --- a/static/sway/core/primitive.str[56].html +++ b/static/sway/core/primitive.str[56].html @@ -1 +1 @@ -str[56] in core - Sway

    Primitive core::str[56]

    str[56]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[56]

    \ No newline at end of file +str[56] in core - Sway

    Primitive core::str[56]

    str[56]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[56]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[57].html b/static/sway/core/primitive.str[57].html index b766d429..d4f58d01 100644 --- a/static/sway/core/primitive.str[57].html +++ b/static/sway/core/primitive.str[57].html @@ -1 +1 @@ -str[57] in core - Sway

    Primitive core::str[57]

    str[57]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[57]

    \ No newline at end of file +str[57] in core - Sway

    Primitive core::str[57]

    str[57]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[57]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[58].html b/static/sway/core/primitive.str[58].html index bcc262a4..a7e3fe81 100644 --- a/static/sway/core/primitive.str[58].html +++ b/static/sway/core/primitive.str[58].html @@ -1 +1 @@ -str[58] in core - Sway

    Primitive core::str[58]

    str[58]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[58]

    \ No newline at end of file +str[58] in core - Sway

    Primitive core::str[58]

    str[58]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[58]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[59].html b/static/sway/core/primitive.str[59].html index 68ccda68..bad5d20c 100644 --- a/static/sway/core/primitive.str[59].html +++ b/static/sway/core/primitive.str[59].html @@ -1 +1 @@ -str[59] in core - Sway

    Primitive core::str[59]

    str[59]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[59]

    \ No newline at end of file +str[59] in core - Sway

    Primitive core::str[59]

    str[59]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[59]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[5].html b/static/sway/core/primitive.str[5].html index f5028d48..0ed4e24a 100644 --- a/static/sway/core/primitive.str[5].html +++ b/static/sway/core/primitive.str[5].html @@ -1 +1 @@ -str[5] in core - Sway

    Primitive core::str[5]

    str[5]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[5]

    \ No newline at end of file +str[5] in core - Sway

    Primitive core::str[5]

    str[5]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[5]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[60].html b/static/sway/core/primitive.str[60].html index 9400f669..3ddb7dac 100644 --- a/static/sway/core/primitive.str[60].html +++ b/static/sway/core/primitive.str[60].html @@ -1 +1 @@ -str[60] in core - Sway

    Primitive core::str[60]

    str[60]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[60]

    \ No newline at end of file +str[60] in core - Sway

    Primitive core::str[60]

    str[60]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[60]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[61].html b/static/sway/core/primitive.str[61].html index 033398d8..f74b38e7 100644 --- a/static/sway/core/primitive.str[61].html +++ b/static/sway/core/primitive.str[61].html @@ -1 +1 @@ -str[61] in core - Sway

    Primitive core::str[61]

    str[61]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[61]

    \ No newline at end of file +str[61] in core - Sway

    Primitive core::str[61]

    str[61]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[61]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[62].html b/static/sway/core/primitive.str[62].html index 64710d2c..2612e35d 100644 --- a/static/sway/core/primitive.str[62].html +++ b/static/sway/core/primitive.str[62].html @@ -1 +1 @@ -str[62] in core - Sway

    Primitive core::str[62]

    str[62]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[62]

    \ No newline at end of file +str[62] in core - Sway

    Primitive core::str[62]

    str[62]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[62]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[63].html b/static/sway/core/primitive.str[63].html index f7dcf37a..7e7b9234 100644 --- a/static/sway/core/primitive.str[63].html +++ b/static/sway/core/primitive.str[63].html @@ -1 +1 @@ -str[63] in core - Sway

    Primitive core::str[63]

    str[63]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[63]

    \ No newline at end of file +str[63] in core - Sway

    Primitive core::str[63]

    str[63]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[63]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[64].html b/static/sway/core/primitive.str[64].html index eeebd84b..88abdba8 100644 --- a/static/sway/core/primitive.str[64].html +++ b/static/sway/core/primitive.str[64].html @@ -1 +1 @@ -str[64] in core - Sway

    Primitive core::str[64]

    str[64]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[64]

    \ No newline at end of file +str[64] in core - Sway

    Primitive core::str[64]

    str[64]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[64]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[6].html b/static/sway/core/primitive.str[6].html index 9dea0ba0..47a26219 100644 --- a/static/sway/core/primitive.str[6].html +++ b/static/sway/core/primitive.str[6].html @@ -1 +1 @@ -str[6] in core - Sway

    Primitive core::str[6]

    str[6]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[6]

    \ No newline at end of file +str[6] in core - Sway

    Primitive core::str[6]

    str[6]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[6]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[7].html b/static/sway/core/primitive.str[7].html index 96e65d25..acfa02c8 100644 --- a/static/sway/core/primitive.str[7].html +++ b/static/sway/core/primitive.str[7].html @@ -1 +1 @@ -str[7] in core - Sway

    Primitive core::str[7]

    str[7]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[7]

    \ No newline at end of file +str[7] in core - Sway

    Primitive core::str[7]

    str[7]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[7]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[8].html b/static/sway/core/primitive.str[8].html index 4385cd1b..b5ac0dd4 100644 --- a/static/sway/core/primitive.str[8].html +++ b/static/sway/core/primitive.str[8].html @@ -1 +1 @@ -str[8] in core - Sway

    Primitive core::str[8]

    str[8]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[8]

    \ No newline at end of file +str[8] in core - Sway

    Primitive core::str[8]

    str[8]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[8]

    \ No newline at end of file diff --git a/static/sway/core/primitive.str[9].html b/static/sway/core/primitive.str[9].html index 8f73db4f..368e6283 100644 --- a/static/sway/core/primitive.str[9].html +++ b/static/sway/core/primitive.str[9].html @@ -1 +1 @@ -str[9] in core - Sway

    Primitive core::str[9]

    str[9]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[9]

    \ No newline at end of file +str[9] in core - Sway

    Primitive core::str[9]

    str[9]
    Expand description
    fixed-length string

    Trait Implementations

    fn abi_encode(self, buffer: Buffer) -> Buffer

    fn abi_decode(refmut buffer: BufferReader) -> str[9]

    \ No newline at end of file diff --git a/static/sway/core/primitive.u16.html b/static/sway/core/primitive.u16.html index bcf76b14..0baa4f84 100644 --- a/static/sway/core/primitive.u16.html +++ b/static/sway/core/primitive.u16.html @@ -1,4 +1,4 @@ -u16 in core - Sway

    Primitive core::u16

    u16
    Expand description
    16-bit unsigned integer

    Implementations

    fn min() -> Self

    The smallest value that can be represented by this integer type.

    +u16 in core - Sway

    Primitive core::u16

    u16
    Expand description
    16-bit unsigned integer

    Implementations

    fn min() -> Self

    The smallest value that can be represented by this integer type.

    Returns

    • [u16] - The smallest u16 value.
    • diff --git a/static/sway/core/primitive.u256.html b/static/sway/core/primitive.u256.html index 1630bc24..a90c7659 100644 --- a/static/sway/core/primitive.u256.html +++ b/static/sway/core/primitive.u256.html @@ -1,4 +1,4 @@ -u256 in core - Sway

      Primitive core::u256

      u256
      Expand description
      256-bit unsigned integer

      Implementations

      fn min() -> Self

      The smallest value that can be represented by this integer type.

      +u256 in core - Sway

      Primitive core::u256

      u256
      Expand description
      256-bit unsigned integer

      Implementations

      fn min() -> Self

      The smallest value that can be represented by this integer type.

      Returns

      • [u256] - The smallest u256 value.
      • diff --git a/static/sway/core/primitive.u32.html b/static/sway/core/primitive.u32.html index b1522eeb..0ba0a78d 100644 --- a/static/sway/core/primitive.u32.html +++ b/static/sway/core/primitive.u32.html @@ -1,4 +1,4 @@ -u32 in core - Sway

        Primitive core::u32

        u32
        Expand description
        32-bit unsigned integer

        Implementations

        fn min() -> Self

        The smallest value that can be represented by this integer type.

        +u32 in core - Sway

        Primitive core::u32

        u32
        Expand description
        32-bit unsigned integer

        Implementations

        fn min() -> Self

        The smallest value that can be represented by this integer type.

        Returns

        • [u32] - The smallest u32 value.
        • diff --git a/static/sway/core/primitive.u64.html b/static/sway/core/primitive.u64.html index 0f59b989..aeb142b7 100644 --- a/static/sway/core/primitive.u64.html +++ b/static/sway/core/primitive.u64.html @@ -1,4 +1,4 @@ -u64 in core - Sway

          Primitive core::u64

          u64
          Expand description
          64-bit unsigned integer

          Implementations

          fn min() -> Self

          The smallest value that can be represented by this integer type.

          +u64 in core - Sway

          Primitive core::u64

          u64
          Expand description
          64-bit unsigned integer

          Implementations

          fn min() -> Self

          The smallest value that can be represented by this integer type.

          Returns

          • [u64] - The smallest u64 value.
          • diff --git a/static/sway/core/primitive.u8.html b/static/sway/core/primitive.u8.html index ee181e48..867d9b2e 100644 --- a/static/sway/core/primitive.u8.html +++ b/static/sway/core/primitive.u8.html @@ -1,4 +1,4 @@ -u8 in core - Sway

            Primitive core::u8

            u8
            Expand description
            8-bit unsigned integer

            Implementations

            fn min() -> Self

            The smallest value that can be represented by this integer type.

            +u8 in core - Sway

            Primitive core::u8

            u8
            Expand description
            8-bit unsigned integer

            Implementations

            fn min() -> Self

            The smallest value that can be represented by this integer type.

            Returns

            • [u8] - The smallest u8 value.
            • diff --git a/static/sway/core/raw_slice/index.html b/static/sway/core/raw_slice/index.html index 6a39079a..5a43bdd2 100644 --- a/static/sway/core/raw_slice/index.html +++ b/static/sway/core/raw_slice/index.html @@ -1,2 +1,2 @@ -raw_slice in core - Sway

              Module core::raw_slice

              Traits

              Trait to return a type as a raw_slice.

              +raw_slice in core - Sway

              Module core::raw_slice

              Traits

              Trait to return a type as a raw_slice.

              \ No newline at end of file diff --git a/static/sway/core/raw_slice/trait.AsRawSlice.html b/static/sway/core/raw_slice/trait.AsRawSlice.html index f86d3799..f2d02924 100644 --- a/static/sway/core/raw_slice/trait.AsRawSlice.html +++ b/static/sway/core/raw_slice/trait.AsRawSlice.html @@ -1,4 +1,4 @@ -AsRawSlice in raw_slice - Sway
              pub trait AsRawSlice {
              +AsRawSlice in raw_slice - Sway
              pub trait AsRawSlice {
                   /// Converts self into a `raw_slice`.
                   ///
                   /// # Returns
              diff --git a/static/sway/core/storage/index.html b/static/sway/core/storage/index.html
              index ff27d305..1bba2e76 100644
              --- a/static/sway/core/storage/index.html
              +++ b/static/sway/core/storage/index.html
              @@ -1,2 +1,2 @@
              -storage in core - Sway

              Module core::storage

              Structs

              Describes a location in storage.

              +storage in core - Sway

              Module core::storage

              Structs

              Describes a location in storage.

              \ No newline at end of file diff --git a/static/sway/core/storage/struct.StorageKey.html b/static/sway/core/storage/struct.StorageKey.html index 14fea47f..b71f9222 100644 --- a/static/sway/core/storage/struct.StorageKey.html +++ b/static/sway/core/storage/struct.StorageKey.html @@ -1,4 +1,4 @@ -StorageKey in storage - Sway
              pub struct StorageKey<T> {
              +StorageKey in storage - Sway
              pub struct StorageKey<T> {
                   /// The assigned location in storage.
                   slot: b256,
                   /// The assigned offset based on the data structure `T`.
              diff --git a/static/sway/core/str/fn.from_str_array.html b/static/sway/core/str/fn.from_str_array.html
              index df0130bc..73121ba0 100644
              --- a/static/sway/core/str/fn.from_str_array.html
              +++ b/static/sway/core/str/fn.from_str_array.html
              @@ -1 +1 @@
              -from_str_array in str - Sway
              pub fn from_str_array<S>(s: S) -> str 
              \ No newline at end of file +from_str_array in str - Sway
              pub fn from_str_array<S>(s: S) -> str 
              \ No newline at end of file diff --git a/static/sway/core/str/index.html b/static/sway/core/str/index.html index 337d7819..5e65d89e 100644 --- a/static/sway/core/str/index.html +++ b/static/sway/core/str/index.html @@ -1 +1 @@ -str in core - Sway

              Module core::str

              Functions

              \ No newline at end of file +str in core - Sway

              Module core::str

              Functions

              \ No newline at end of file diff --git a/static/sway/redstone/all.html b/static/sway/redstone/all.html index 63628925..53d2d533 100644 --- a/static/sway/redstone/all.html +++ b/static/sway/redstone/all.html @@ -1,5 +1,3 @@ -List of all items in this project

              List of all items

              Structs

              Traits

              Constants

              Functions

              Primitives

              256-bit unsigned integer
              64-bit unsigned integer
              \ No newline at end of file +List of all items in this project

              List of all items

              Structs

              Enums

              Traits

              Constants

              Functions

              Primitives

              256-bit unsigned integer
              64-bit unsigned integer
              \ No newline at end of file diff --git a/static/sway/redstone/core/config/index.html b/static/sway/redstone/core/config/index.html index 9e62d68a..af84f5c4 100644 --- a/static/sway/redstone/core/config/index.html +++ b/static/sway/redstone/core/config/index.html @@ -1,2 +1,2 @@ -config in redstone - Sway

              Structs

              Configuration for a RedStone payload processor.

              +config in redstone - Sway

              Structs

              Configuration for a RedStone payload processor.

              \ No newline at end of file diff --git a/static/sway/redstone/core/config/struct.Config.html b/static/sway/redstone/core/config/struct.Config.html index 960b8084..60d3ca90 100644 --- a/static/sway/redstone/core/config/struct.Config.html +++ b/static/sway/redstone/core/config/struct.Config.html @@ -1,4 +1,4 @@ -Config in config - Sway
              pub struct Config {
              +Config in config - Sway
              pub struct Config {
                   /// List of identifiers for signers authorized to sign the data.
                   ///
                   /// Each signer is identified by a unique bits (`b256`),
              @@ -15,9 +15,9 @@
                   pub signer_count_threshold: u64,
                   /// The current block time in timestamp format, used for verifying data timeliness.
                   ///
              -    /// The value's been expressed in milliseconds since the Unix epoch (January 1, 1970) and allows
              +    /// The value's been expressed in seconds since the Unix epoch (January 1, 1970) and allows
                   /// for determining whether the data is current in the context of blockchain time.
              -    pub block_timestamp: u64, // unix
              +    pub block_timestamp: u64,
               }
              Expand description

              Configuration for a RedStone payload processor.

              Specifies the parameters necessary for the verification and aggregation of values
              from various data points passed by the RedStone payload.

              @@ -30,6 +30,6 @@

              Specifies how many unique signers (from different addresses) are required
              for the data to be considered valid and trustworthy.

              block_timestamp: u64

              The current block time in timestamp format, used for verifying data timeliness.

              -

              The value’s been expressed in milliseconds since the Unix epoch (January 1, 1970) and allows
              +

              The value’s been expressed in seconds since the Unix epoch (January 1, 1970) and allows
              for determining whether the data is current in the context of blockchain time.

              -

              Implementations

              fn cap(self) -> u64

              fn signer_index(self, signer: b256) -> Option<u64>

              fn feed_id_index(self, feed_id: u256) -> Option<u64>

              fn index(self, feed_id_index: u64, signer_index: u64) -> u64

              Trait Implementations

              fn validate_signer(
              self,
              data_package: DataPackage,
              index: u64,
              ) -> Option<u64>

              fn validate_signer_count(
              self,
              results: Vec<Vec<u256>>,
              )

              fn validate_timestamps(
              self,
              payload: Payload,
              )

              \ No newline at end of file +

              Implementations

              fn cap(self) -> u64

              fn signer_index(self, signer: b256) -> Option<u64>

              fn feed_id_index(self, feed_id: u256) -> Option<u64>

              fn index(self, feed_id_index: u64, signer_index: u64) -> u64

              Trait Implementations

              fn validate_signer(
              self,
              data_package: DataPackage,
              index: u64,
              ) -> u64

              fn validate_signer_count(
              self,
              results: Vec<Vec<u256>>,
              )

              fn validate_timestamps(self, payload: Payload) -> u64

              \ No newline at end of file diff --git a/static/sway/redstone/core/errors/constant.INSUFFICIENT_SIGNER_COUNT.html b/static/sway/redstone/core/errors/constant.INSUFFICIENT_SIGNER_COUNT.html deleted file mode 100644 index 6067d060..00000000 --- a/static/sway/redstone/core/errors/constant.INSUFFICIENT_SIGNER_COUNT.html +++ /dev/null @@ -1,2 +0,0 @@ -INSUFFICIENT_SIGNER_COUNT in errors - Sway
              pub const INSUFFICIENT_SIGNER_COUNT = 0x2710_0000
              Expand description

              655360000 + feed_index

              -
              \ No newline at end of file diff --git a/static/sway/redstone/core/errors/constant.SIGNER_NOT_RECOGNIZED.html b/static/sway/redstone/core/errors/constant.SIGNER_NOT_RECOGNIZED.html deleted file mode 100644 index cd55e4d4..00000000 --- a/static/sway/redstone/core/errors/constant.SIGNER_NOT_RECOGNIZED.html +++ /dev/null @@ -1,2 +0,0 @@ -SIGNER_NOT_RECOGNIZED in errors - Sway
              pub const SIGNER_NOT_RECOGNIZED = 0x4e20_0000
              Expand description

              1310720000 + data_package_index

              -
              \ No newline at end of file diff --git a/static/sway/redstone/core/errors/constant.TIMESTAMP_OUT_OF_RANGE.html b/static/sway/redstone/core/errors/constant.TIMESTAMP_OUT_OF_RANGE.html deleted file mode 100644 index fae2c346..00000000 --- a/static/sway/redstone/core/errors/constant.TIMESTAMP_OUT_OF_RANGE.html +++ /dev/null @@ -1 +0,0 @@ -TIMESTAMP_OUT_OF_RANGE in errors - Sway
              pub const TIMESTAMP_OUT_OF_RANGE = 0x9C40_0000
              \ No newline at end of file diff --git a/static/sway/redstone/core/errors/enum.RedStoneError.html b/static/sway/redstone/core/errors/enum.RedStoneError.html new file mode 100644 index 00000000..fb80306a --- /dev/null +++ b/static/sway/redstone/core/errors/enum.RedStoneError.html @@ -0,0 +1,108 @@ +RedStoneError in errors - Sway
              pub enum RedStoneError {
              +    EmptyAllowedSigners: (),
              +    EmptyFeedIds: (),
              +    SignerCountThresholdToSmall: (),
              +    DuplicatedSigner: (),
              +    DuplicatedFeedId: (),
              +    DuplicatedValueForSigner: (b256, u256),
              +    SignerNotRecognized: (b256, u64),
              +    InsufficientSignerCount: (u64, u64),
              +    TimestampOutOfRange: (bool, u64, u64),
              +    TimestampDifferentThanOthers: (u64, u64, u64),
              +}
              Expand description

              Enum RedStoneError

              +

              This enum represents various errors that can occur during the execution of a RedStone payload processing.
              +Each variant contains relevant information for specific error types.

              +

              Variants

              +

              EmptyAllowedSigners

              +
              EmptyAllowedSigners: ()
              +
              +
                +
              • Description: Raised when the allowed signers list is empty.
              • +
              +

              EmptyFeedIds

              +
              EmptyFeedIds: ()
              +
              +
                +
              • Description: Raised when the list of feed IDs is empty.
              • +
              +

              SignerCountThresholdToSmall

              +
              SignerCountThresholdToSmall: ()
              +
              +
                +
              • Description: Raised when the signer count threshold is smaller than the signer list length.
              • +
              +

              DuplicatedSigner

              +
              DuplicatedSigner: ()
              +
              +
                +
              • Description: Raised when a duplicated signer is found in the list of allowed signers.
              • +
              +

              DuplicatedFeedId

              +
              DuplicatedFeedId: ()
              +
              +
                +
              • Description: Raised when a duplicated feed ID is found.
              • +
              +

              DuplicatedValueForSigner

              +
              DuplicatedValueForSigner: (b256, u256)
              +
              +
                +
              • Description: Raised when the payload contains multiple values for the same signer and feed ID.
              • +
              • Fields: +
                  +
                • b256: The signer’s address.
                • +
                • u256: The feed ID.
                • +
                +
              • +
              +

              SignerNotRecognized

              +
              SignerNotRecognized: (b256, u64)
              +
              +
                +
              • Description: Raised when a recovered signer address is not one of the allowed signers.
              • +
              • Fields: +
                  +
                • b256: The signer’s address.
                • +
                • u64: The index at which the signer was encountered.
                • +
                +
              • +
              +

              InsufficientSignerCount

              +
              InsufficientSignerCount: (u64, u64)
              +
              +
                +
              • Description: Raised when the number of valid signers is less than the threshold.
              • +
              • Fields: +
                  +
                • u64: The current number of signers.
                • +
                • u64: The index of the feed being processed.
                • +
                +
              • +
              +

              TimestampOutOfRange

              +
              TimestampOutOfRange: (bool, u64, u64)
              +
              +
                +
              • Description: Raised when a timestamp is too far in the future or past.
              • +
              • Fields: +
                  +
                • bool: Whether the timestamp is too far in the future (true) or in the past (false).
                • +
                • u64: The provided block timestamp.
                • +
                • u64: The recovered timestamp.
                • +
                +
              • +
              +

              TimestampDifferentThanOthers

              +
              TimestampDifferentThanOthers: (u64, u64, u64)
              +
              +
                +
              • Description: Raised when one timestamp differs from the others provided.
              • +
              • Fields: +
                  +
                • u64: The reference timestamp.
                • +
                • u64: The differing timestamp.
                • +
                • u64: The index of the data package that’s timestamp differs.
                • +
                +
              • +
              +

              Variants

              EmptyAllowedSigners: ()

              EmptyFeedIds: ()

              SignerCountThresholdToSmall: ()

              DuplicatedSigner: ()

              DuplicatedFeedId: ()

              DuplicatedValueForSigner: (b256u256)

              SignerNotRecognized: (b256u64)

              InsufficientSignerCount: (u64u64)

              TimestampOutOfRange: (boolu64u64)

              TimestampDifferentThanOthers: (u64u64u64)

              \ No newline at end of file diff --git a/static/sway/redstone/core/errors/index.html b/static/sway/redstone/core/errors/index.html index e6522014..d33e6ecd 100644 --- a/static/sway/redstone/core/errors/index.html +++ b/static/sway/redstone/core/errors/index.html @@ -1,3 +1 @@ -errors in redstone - Sway

              Constants

              655360000 + feed_index

              -

              1310720000 + data_package_index

              -
              \ No newline at end of file +errors in redstone - Sway

              Enums

              \ No newline at end of file diff --git a/static/sway/redstone/core/index.html b/static/sway/redstone/core/index.html index ef4f921e..dee10546 100644 --- a/static/sway/redstone/core/index.html +++ b/static/sway/redstone/core/index.html @@ -1 +1 @@ -core in redstone - Sway

              Module redstone::core

              Modules

              \ No newline at end of file +core in redstone - Sway

              Module redstone::core

              Modules

              \ No newline at end of file diff --git a/static/sway/redstone/core/processor/fn.process_input.html b/static/sway/redstone/core/processor/fn.process_input.html index c21f6260..dce12b1a 100644 --- a/static/sway/redstone/core/processor/fn.process_input.html +++ b/static/sway/redstone/core/processor/fn.process_input.html @@ -1,7 +1,17 @@ -process_input in processor - Sway
              pub fn process_input(bytes: Bytes, config: Config) -> (Vec<u256>, u64) 
              Expand description

              The main processor of the RedStone payload.

              +process_input in processor - Sway
              pub fn process_input(bytes: Bytes, config: Config) -> (Vec<u256>, u64) 
              Expand description

              The main processor of the RedStone payload.
              +This function processes the provided payload bytes according to the specified configuration.

              Arguments

              • config - Configuration of the payload processing.
              • payload_bytes - Network-specific byte-list of the payload to be processed.
              +

              Returns

              +

              This function returns a tuple containing:

              +
                +
              • Vec<u256> - A vector of processed values extracted from the payload, one for each feed_ids as in Config.
              • +
              • u64 - The timestamp of the processed data.
              • +
              +

              Example

              +
              let (values, size) = process_input(payload_bytes, config);
              +
              \ No newline at end of file diff --git a/static/sway/redstone/core/processor/index.html b/static/sway/redstone/core/processor/index.html index 9181e256..4169aa49 100644 --- a/static/sway/redstone/core/processor/index.html +++ b/static/sway/redstone/core/processor/index.html @@ -1,2 +1 @@ -processor in redstone - Sway

              Functions

              The main processor of the RedStone payload.

              -
              \ No newline at end of file +processor in redstone - Sway

              Functions

              The main processor of the RedStone payload.

              \ No newline at end of file diff --git a/static/sway/redstone/core/validation/fn.validate_timestamp.html b/static/sway/redstone/core/validation/fn.validate_timestamp.html index b8be0537..dde04a6d 100644 --- a/static/sway/redstone/core/validation/fn.validate_timestamp.html +++ b/static/sway/redstone/core/validation/fn.validate_timestamp.html @@ -1 +1 @@ -validate_timestamp in validation - Sway
              pub fn validate_timestamp(i: u64, timestamp: u64, block_timestamp: u64) 
              \ No newline at end of file +validate_timestamp in validation - Sway
              pub fn validate_timestamp(timestamp: u64, block_timestamp: u64) 
              \ No newline at end of file diff --git a/static/sway/redstone/core/validation/index.html b/static/sway/redstone/core/validation/index.html index beb25a84..be3f7946 100644 --- a/static/sway/redstone/core/validation/index.html +++ b/static/sway/redstone/core/validation/index.html @@ -1 +1 @@ -validation in redstone - Sway

              Functions

              \ No newline at end of file +validation in redstone - Sway

              Functions

              \ No newline at end of file diff --git a/static/sway/redstone/crypto/index.html b/static/sway/redstone/crypto/index.html index 89e85569..1b127af3 100644 --- a/static/sway/redstone/crypto/index.html +++ b/static/sway/redstone/crypto/index.html @@ -1 +1 @@ -crypto in redstone - Sway

              Modules

              \ No newline at end of file +crypto in redstone - Sway

              Modules

              \ No newline at end of file diff --git a/static/sway/redstone/crypto/recover/fn.recover_signer_address.html b/static/sway/redstone/crypto/recover/fn.recover_signer_address.html index eb4a9dc6..a79c723a 100644 --- a/static/sway/redstone/crypto/recover/fn.recover_signer_address.html +++ b/static/sway/redstone/crypto/recover/fn.recover_signer_address.html @@ -1 +1 @@ -recover_signer_address in recover - Sway
              pub fn recover_signer_address(signature_bytes: Bytes, signable_bytes: Bytes) -> b256 
              \ No newline at end of file +recover_signer_address in recover - Sway
              pub fn recover_signer_address(signature_bytes: Bytes, signable_bytes: Bytes) -> b256 
              \ No newline at end of file diff --git a/static/sway/redstone/crypto/recover/index.html b/static/sway/redstone/crypto/recover/index.html index adae8ac9..23b3b317 100644 --- a/static/sway/redstone/crypto/recover/index.html +++ b/static/sway/redstone/crypto/recover/index.html @@ -1 +1 @@ -recover in redstone - Sway

              Functions

              \ No newline at end of file +recover in redstone - Sway

              Functions

              \ No newline at end of file diff --git a/static/sway/redstone/index.html b/static/sway/redstone/index.html index f5a65edd..2fe2872d 100644 --- a/static/sway/redstone/index.html +++ b/static/sway/redstone/index.html @@ -1 +1 @@ -redstone in redstone - Sway

              Library redstone

              Modules

              Primitives

              256-bit unsigned integer
              64-bit unsigned integer
              \ No newline at end of file +redstone in redstone - Sway

              Library redstone

              Modules

              Primitives

              256-bit unsigned integer
              64-bit unsigned integer
              \ No newline at end of file diff --git a/static/sway/redstone/primitive.u256.html b/static/sway/redstone/primitive.u256.html index 40218980..41e759eb 100644 --- a/static/sway/redstone/primitive.u256.html +++ b/static/sway/redstone/primitive.u256.html @@ -1 +1 @@ -u256 in redstone - Sway

              Primitive redstone::u256

              u256
              Expand description
              256-bit unsigned integer

              Implementations

              fn avg_with(self, other: Self) -> Self

              Trait Implementations

              fn _from_be_bytes(bytes: Bytes) -> Self

              fn size() -> u64

              \ No newline at end of file +u256 in redstone - Sway

              Primitive redstone::u256

              u256
              Expand description
              256-bit unsigned integer

              Implementations

              fn avg_with(self, other: Self) -> Self

              Trait Implementations

              fn _from_be_bytes(bytes: Bytes) -> Self

              fn size() -> u64

              \ No newline at end of file diff --git a/static/sway/redstone/primitive.u64.html b/static/sway/redstone/primitive.u64.html index 20a6428c..c3df3e9a 100644 --- a/static/sway/redstone/primitive.u64.html +++ b/static/sway/redstone/primitive.u64.html @@ -1 +1 @@ -u64 in redstone - Sway

              Primitive redstone::u64

              u64
              Expand description
              64-bit unsigned integer

              Trait Implementations

              fn _from_be_bytes(bytes: Bytes) -> Self

              fn size() -> u64

              \ No newline at end of file +u64 in redstone - Sway

              Primitive redstone::u64

              u64
              Expand description
              64-bit unsigned integer

              Trait Implementations

              fn _from_be_bytes(bytes: Bytes) -> Self

              fn size() -> u64

              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.DATA_FEED_ID_BS.html b/static/sway/redstone/protocol/constants/constant.DATA_FEED_ID_BS.html index 8bf78f39..5235c5a6 100644 --- a/static/sway/redstone/protocol/constants/constant.DATA_FEED_ID_BS.html +++ b/static/sway/redstone/protocol/constants/constant.DATA_FEED_ID_BS.html @@ -1 +1 @@ -DATA_FEED_ID_BS in constants - Sway
              pub const DATA_FEED_ID_BS = 32
              \ No newline at end of file +DATA_FEED_ID_BS in constants - Sway
              pub const DATA_FEED_ID_BS = 32
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.DATA_PACKAGES_COUNT_BS.html b/static/sway/redstone/protocol/constants/constant.DATA_PACKAGES_COUNT_BS.html index e7f52f89..98f16e2a 100644 --- a/static/sway/redstone/protocol/constants/constant.DATA_PACKAGES_COUNT_BS.html +++ b/static/sway/redstone/protocol/constants/constant.DATA_PACKAGES_COUNT_BS.html @@ -1 +1 @@ -DATA_PACKAGES_COUNT_BS in constants - Sway
              pub const DATA_PACKAGES_COUNT_BS = 2
              \ No newline at end of file +DATA_PACKAGES_COUNT_BS in constants - Sway
              pub const DATA_PACKAGES_COUNT_BS = 2
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.DATA_POINTS_COUNT_BS.html b/static/sway/redstone/protocol/constants/constant.DATA_POINTS_COUNT_BS.html index bf16a672..22c9175b 100644 --- a/static/sway/redstone/protocol/constants/constant.DATA_POINTS_COUNT_BS.html +++ b/static/sway/redstone/protocol/constants/constant.DATA_POINTS_COUNT_BS.html @@ -1 +1 @@ -DATA_POINTS_COUNT_BS in constants - Sway
              pub const DATA_POINTS_COUNT_BS = 3
              \ No newline at end of file +DATA_POINTS_COUNT_BS in constants - Sway
              pub const DATA_POINTS_COUNT_BS = 3
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.DATA_POINT_VALUE_BYTE_SIZE_BS.html b/static/sway/redstone/protocol/constants/constant.DATA_POINT_VALUE_BYTE_SIZE_BS.html index 68142e1a..4e787826 100644 --- a/static/sway/redstone/protocol/constants/constant.DATA_POINT_VALUE_BYTE_SIZE_BS.html +++ b/static/sway/redstone/protocol/constants/constant.DATA_POINT_VALUE_BYTE_SIZE_BS.html @@ -1 +1 @@ -DATA_POINT_VALUE_BYTE_SIZE_BS in constants - Sway
              pub const DATA_POINT_VALUE_BYTE_SIZE_BS = 4
              \ No newline at end of file +DATA_POINT_VALUE_BYTE_SIZE_BS in constants - Sway
              pub const DATA_POINT_VALUE_BYTE_SIZE_BS = 4
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER.html b/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER.html index eee49282..c430cb0e 100644 --- a/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER.html +++ b/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER.html @@ -1 +1 @@ -REDSTONE_MARKER in constants - Sway
              pub const REDSTONE_MARKER = [0x00, 0x00, 0x02, 0xed, 0x57, 0x01, 0x1e, 0x00, 0x00]
              \ No newline at end of file +REDSTONE_MARKER in constants - Sway
              pub const REDSTONE_MARKER = [0x00, 0x00, 0x02, 0xed, 0x57, 0x01, 0x1e, 0x00, 0x00]
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER_BS.html b/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER_BS.html index f379d91b..3bfb5909 100644 --- a/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER_BS.html +++ b/static/sway/redstone/protocol/constants/constant.REDSTONE_MARKER_BS.html @@ -1 +1 @@ -REDSTONE_MARKER_BS in constants - Sway
              pub const REDSTONE_MARKER_BS = 9
              \ No newline at end of file +REDSTONE_MARKER_BS in constants - Sway
              pub const REDSTONE_MARKER_BS = 9
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.SIGNATURE_BS.html b/static/sway/redstone/protocol/constants/constant.SIGNATURE_BS.html index f9a488e3..2b570ce0 100644 --- a/static/sway/redstone/protocol/constants/constant.SIGNATURE_BS.html +++ b/static/sway/redstone/protocol/constants/constant.SIGNATURE_BS.html @@ -1 +1 @@ -SIGNATURE_BS in constants - Sway
              pub const SIGNATURE_BS = 65
              \ No newline at end of file +SIGNATURE_BS in constants - Sway
              pub const SIGNATURE_BS = 65
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.TIMESTAMP_BS.html b/static/sway/redstone/protocol/constants/constant.TIMESTAMP_BS.html index 06056292..c1082c68 100644 --- a/static/sway/redstone/protocol/constants/constant.TIMESTAMP_BS.html +++ b/static/sway/redstone/protocol/constants/constant.TIMESTAMP_BS.html @@ -1 +1 @@ -TIMESTAMP_BS in constants - Sway
              pub const TIMESTAMP_BS = 6
              \ No newline at end of file +TIMESTAMP_BS in constants - Sway
              pub const TIMESTAMP_BS = 6
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.UNSIGNED_METADATA_BYTE_SIZE_BS.html b/static/sway/redstone/protocol/constants/constant.UNSIGNED_METADATA_BYTE_SIZE_BS.html index d5ad0376..8ebd568b 100644 --- a/static/sway/redstone/protocol/constants/constant.UNSIGNED_METADATA_BYTE_SIZE_BS.html +++ b/static/sway/redstone/protocol/constants/constant.UNSIGNED_METADATA_BYTE_SIZE_BS.html @@ -1 +1 @@ -UNSIGNED_METADATA_BYTE_SIZE_BS in constants - Sway
              pub const UNSIGNED_METADATA_BYTE_SIZE_BS = 3
              \ No newline at end of file +UNSIGNED_METADATA_BYTE_SIZE_BS in constants - Sway
              pub const UNSIGNED_METADATA_BYTE_SIZE_BS = 3
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.WRONG_PAYLOAD.html b/static/sway/redstone/protocol/constants/constant.WRONG_PAYLOAD.html index 2d14db17..70e25117 100644 --- a/static/sway/redstone/protocol/constants/constant.WRONG_PAYLOAD.html +++ b/static/sway/redstone/protocol/constants/constant.WRONG_PAYLOAD.html @@ -1 +1 @@ -WRONG_PAYLOAD in constants - Sway
              pub const WRONG_PAYLOAD = 0xff0000
              \ No newline at end of file +WRONG_PAYLOAD in constants - Sway
              pub const WRONG_PAYLOAD = 0xff0000
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/constant.WRONG_REDSTONE_MARKER.html b/static/sway/redstone/protocol/constants/constant.WRONG_REDSTONE_MARKER.html index d20a68bd..03282340 100644 --- a/static/sway/redstone/protocol/constants/constant.WRONG_REDSTONE_MARKER.html +++ b/static/sway/redstone/protocol/constants/constant.WRONG_REDSTONE_MARKER.html @@ -1 +1 @@ -WRONG_REDSTONE_MARKER in constants - Sway
              pub const WRONG_REDSTONE_MARKER = 0xc80000
              \ No newline at end of file +WRONG_REDSTONE_MARKER in constants - Sway
              pub const WRONG_REDSTONE_MARKER = 0xc80000
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/constants/index.html b/static/sway/redstone/protocol/constants/index.html index 85f0664b..96cc9acb 100644 --- a/static/sway/redstone/protocol/constants/index.html +++ b/static/sway/redstone/protocol/constants/index.html @@ -1 +1 @@ -constants in redstone - Sway

              Constants

              \ No newline at end of file +constants in redstone - Sway

              Constants

              \ No newline at end of file diff --git a/static/sway/redstone/protocol/data_package/fn.make_data_package.html b/static/sway/redstone/protocol/data_package/fn.make_data_package.html index 8c9ddc02..ec67e416 100644 --- a/static/sway/redstone/protocol/data_package/fn.make_data_package.html +++ b/static/sway/redstone/protocol/data_package/fn.make_data_package.html @@ -1 +1 @@ -make_data_package in data_package - Sway
              pub fn make_data_package(bytes: Bytes) -> (DataPackage, u64) 
              \ No newline at end of file +make_data_package in data_package - Sway
              pub fn make_data_package(bytes: Bytes) -> (DataPackage, u64) 
              \ No newline at end of file diff --git a/static/sway/redstone/protocol/data_package/index.html b/static/sway/redstone/protocol/data_package/index.html index b8746cd3..f784e28f 100644 --- a/static/sway/redstone/protocol/data_package/index.html +++ b/static/sway/redstone/protocol/data_package/index.html @@ -1 +1 @@ -data_package in redstone - Sway

              Structs

              Functions

              \ No newline at end of file +data_package in redstone - Sway

              Structs

              Functions

              \ No newline at end of file diff --git a/static/sway/redstone/protocol/data_package/struct.DataPackage.html b/static/sway/redstone/protocol/data_package/struct.DataPackage.html index 41dc5b3f..f4c593ec 100644 --- a/static/sway/redstone/protocol/data_package/struct.DataPackage.html +++ b/static/sway/redstone/protocol/data_package/struct.DataPackage.html @@ -1,8 +1,8 @@ -DataPackage in data_package - Sway
              pub struct DataPackage {
              +DataPackage in data_package - Sway
              pub struct DataPackage {
                   pub timestamp: u64,
                   pub signer_address: b256,
                   pub data_points: Vec<DataPoint>,
              -}

              Fields

              timestamp: u64signer_address: b256data_points: Vec

              Trait Implementations

              fn eq(self, other: Self) -> bool

              fn neq(self, other: Self) -> bool

              Evaluates if two values of the same type are not equal.

              +}

              Fields

              timestamp: u64signer_address: b256data_points: Vec

              Trait Implementations

              fn eq(self, other: Self) -> bool

              fn neq(self, other: Self) -> bool

              Evaluates if two values of the same type are not equal.

              Additional Information

              This function is inherited when eq() is implemented.

              Arguments

              diff --git a/static/sway/redstone/protocol/data_point/index.html b/static/sway/redstone/protocol/data_point/index.html index d02607ea..944019d9 100644 --- a/static/sway/redstone/protocol/data_point/index.html +++ b/static/sway/redstone/protocol/data_point/index.html @@ -1 +1 @@ -data_point in redstone - Sway

              Structs

              \ No newline at end of file +data_point in redstone - Sway

              Structs

              \ No newline at end of file diff --git a/static/sway/redstone/protocol/data_point/struct.DataPoint.html b/static/sway/redstone/protocol/data_point/struct.DataPoint.html index 1206f2e9..f999e9b4 100644 --- a/static/sway/redstone/protocol/data_point/struct.DataPoint.html +++ b/static/sway/redstone/protocol/data_point/struct.DataPoint.html @@ -1,7 +1,7 @@ -DataPoint in data_point - Sway
              pub struct DataPoint {
              +DataPoint in data_point - Sway
              pub struct DataPoint {
                   pub feed_id: u256,
                   pub value: u256,
              -}

              Fields

              feed_id: u256value: u256

              Trait Implementations

              fn eq(self, other: Self) -> bool

              fn neq(self, other: Self) -> bool

              Evaluates if two values of the same type are not equal.

              +}

              Fields

              feed_id: u256value: u256

              Implementations

              fn from_bytes(bytes: Bytes) -> Self

              Trait Implementations

              fn eq(self, other: Self) -> bool

              fn neq(self, other: Self) -> bool

              Evaluates if two values of the same type are not equal.

              Additional Information

              This function is inherited when eq() is implemented.

              Arguments

              @@ -30,4 +30,4 @@

              Examples

              assert(result); }
              -

            fn from_bytes(bytes: Bytes) -> Self

            \ No newline at end of file +
            \ No newline at end of file diff --git a/static/sway/redstone/protocol/index.html b/static/sway/redstone/protocol/index.html index b13778bc..5b1db804 100644 --- a/static/sway/redstone/protocol/index.html +++ b/static/sway/redstone/protocol/index.html @@ -1 +1 @@ -protocol in redstone - Sway

            Modules

            \ No newline at end of file +protocol in redstone - Sway

            Modules

            \ No newline at end of file diff --git a/static/sway/redstone/protocol/payload/index.html b/static/sway/redstone/protocol/payload/index.html index a7eae346..8ee36add 100644 --- a/static/sway/redstone/protocol/payload/index.html +++ b/static/sway/redstone/protocol/payload/index.html @@ -1 +1 @@ -payload in redstone - Sway

            Structs

            \ No newline at end of file +payload in redstone - Sway

            Structs

            \ No newline at end of file diff --git a/static/sway/redstone/protocol/payload/struct.Payload.html b/static/sway/redstone/protocol/payload/struct.Payload.html index 7643d551..cbbc919a 100644 --- a/static/sway/redstone/protocol/payload/struct.Payload.html +++ b/static/sway/redstone/protocol/payload/struct.Payload.html @@ -1,6 +1,6 @@ -Payload in payload - Sway
            pub struct Payload {
            +Payload in payload - Sway
            pub struct Payload {
                 pub data_packages: Vec<DataPackage>,
            -}

            Fields

            data_packages: Vec

            Trait Implementations

            fn eq(self, other: Self) -> bool

            fn neq(self, other: Self) -> bool

            Evaluates if two values of the same type are not equal.

            +}

            Fields

            data_packages: Vec

            Implementations

            fn from_bytes(bytes: Bytes) -> Self

            Trait Implementations

            fn eq(self, other: Self) -> bool

            fn neq(self, other: Self) -> bool

            Evaluates if two values of the same type are not equal.

            Additional Information

            This function is inherited when eq() is implemented.

            Arguments

            @@ -29,4 +29,4 @@

            Examples

            assert(result); }
-

fn from_bytes(bytes: Bytes) -> Self

\ No newline at end of file +
\ No newline at end of file diff --git a/static/sway/redstone/utils/from_bytes/index.html b/static/sway/redstone/utils/from_bytes/index.html index 466958b0..846c5846 100644 --- a/static/sway/redstone/utils/from_bytes/index.html +++ b/static/sway/redstone/utils/from_bytes/index.html @@ -1 +1,2 @@ -from_bytes in redstone - Sway

Traits

\ No newline at end of file +from_bytes in redstone - Sway

Traits

obtains a value from bytes with the suitable byte size”

+
\ No newline at end of file diff --git a/static/sway/redstone/utils/from_bytes/trait.FromBytes.html b/static/sway/redstone/utils/from_bytes/trait.FromBytes.html index cef8d463..f95a97ce 100644 --- a/static/sway/redstone/utils/from_bytes/trait.FromBytes.html +++ b/static/sway/redstone/utils/from_bytes/trait.FromBytes.html @@ -1,3 +1,4 @@ -FromBytes in from_bytes - Sway
pub trait FromBytes {
+FromBytes in from_bytes - Sway
pub trait FromBytes {
     fn from_bytes(bytes: Bytes) -> Self;
-}

Required Methods

\ No newline at end of file +}
Expand description

obtains a value from bytes with the suitable byte size”

+

Required Methods

\ No newline at end of file diff --git a/static/sway/redstone/utils/from_bytes_convertible/index.html b/static/sway/redstone/utils/from_bytes_convertible/index.html index 70b0d4ad..f0322589 100644 --- a/static/sway/redstone/utils/from_bytes_convertible/index.html +++ b/static/sway/redstone/utils/from_bytes_convertible/index.html @@ -1 +1 @@ -from_bytes_convertible in redstone - Sway

Traits

\ No newline at end of file +from_bytes_convertible in redstone - Sway

Traits

\ No newline at end of file diff --git a/static/sway/redstone/utils/from_bytes_convertible/trait.FromBytesConvertible.html b/static/sway/redstone/utils/from_bytes_convertible/trait.FromBytesConvertible.html index 2fe0688c..667f1392 100644 --- a/static/sway/redstone/utils/from_bytes_convertible/trait.FromBytesConvertible.html +++ b/static/sway/redstone/utils/from_bytes_convertible/trait.FromBytesConvertible.html @@ -1,4 +1,4 @@ -FromBytesConvertible in from_bytes_convertible - Sway
pub trait FromBytesConvertible {
+FromBytesConvertible in from_bytes_convertible - Sway
pub trait FromBytesConvertible {
     fn size() -> u64;
     fn _from_be_bytes(bytes: Bytes) -> Self;
 }

Required Methods

\ No newline at end of file diff --git a/static/sway/redstone/utils/index.html b/static/sway/redstone/utils/index.html index 7487107d..fe55d8a0 100644 --- a/static/sway/redstone/utils/index.html +++ b/static/sway/redstone/utils/index.html @@ -1 +1 @@ -utils in redstone - Sway

Module redstone::utils

Modules

\ No newline at end of file +utils in redstone - Sway

Module redstone::utils

Modules

\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.AVAX.html b/static/sway/redstone/utils/sample/constant.AVAX.html new file mode 100644 index 00000000..38e6334c --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.AVAX.html @@ -0,0 +1 @@ +AVAX in sample - Sway
pub const AVAX = 0x41564158u256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.BTC.html b/static/sway/redstone/utils/sample/constant.BTC.html new file mode 100644 index 00000000..4a9b9cd9 --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.BTC.html @@ -0,0 +1 @@ +BTC in sample - Sway

Constant redstone::utils::sample::BTC

pub const BTC = 0x425443u256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.DIFFERENT_TIMESTAMP.html b/static/sway/redstone/utils/sample/constant.DIFFERENT_TIMESTAMP.html new file mode 100644 index 00000000..4b6583d2 --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.DIFFERENT_TIMESTAMP.html @@ -0,0 +1 @@ +DIFFERENT_TIMESTAMP in sample - Sway
pub const DIFFERENT_TIMESTAMP = 1728055861
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.ETH.html b/static/sway/redstone/utils/sample/constant.ETH.html new file mode 100644 index 00000000..534553ec --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.ETH.html @@ -0,0 +1 @@ +ETH in sample - Sway

Constant redstone::utils::sample::ETH

pub const ETH = 0x455448u256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_BTC_PRICE_0.html b/static/sway/redstone/utils/sample/constant.SAMPLE_BTC_PRICE_0.html new file mode 100644 index 00000000..36debfbd --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_BTC_PRICE_0.html @@ -0,0 +1 @@ +SAMPLE_BTC_PRICE_0 in sample - Sway
pub const SAMPLE_BTC_PRICE_0 = 0x58f356b791eu256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_BTC_PRICE_1.html b/static/sway/redstone/utils/sample/constant.SAMPLE_BTC_PRICE_1.html new file mode 100644 index 00000000..ca7e7451 --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_BTC_PRICE_1.html @@ -0,0 +1 @@ +SAMPLE_BTC_PRICE_1 in sample - Sway
pub const SAMPLE_BTC_PRICE_1 = 0x58f32c910a0u256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_ETH_PRICE_0.html b/static/sway/redstone/utils/sample/constant.SAMPLE_ETH_PRICE_0.html new file mode 100644 index 00000000..aa4b905f --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_ETH_PRICE_0.html @@ -0,0 +1 @@ +SAMPLE_ETH_PRICE_0 in sample - Sway
pub const SAMPLE_ETH_PRICE_0 = 0x38b8d93cdfu256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_ETH_PRICE_1.html b/static/sway/redstone/utils/sample/constant.SAMPLE_ETH_PRICE_1.html new file mode 100644 index 00000000..0fd8081e --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_ETH_PRICE_1.html @@ -0,0 +1 @@ +SAMPLE_ETH_PRICE_1 in sample - Sway
pub const SAMPLE_ETH_PRICE_1 = 0x38ba3376e5u256
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_ID_MALLEABILITY.html b/static/sway/redstone/utils/sample/constant.SAMPLE_ID_MALLEABILITY.html new file mode 100644 index 00000000..270b097c --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_ID_MALLEABILITY.html @@ -0,0 +1 @@ +SAMPLE_ID_MALLEABILITY in sample - Sway
pub const SAMPLE_ID_MALLEABILITY = 6
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V27.html b/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V27.html index 09262246..d9f24f5f 100644 --- a/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V27.html +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V27.html @@ -1 +1 @@ -SAMPLE_ID_V27 in sample - Sway
pub const SAMPLE_ID_V27 = 0
\ No newline at end of file +SAMPLE_ID_V27 in sample - Sway
pub const SAMPLE_ID_V27 = 0
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V28.html b/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V28.html index 88652ea7..4d4a8077 100644 --- a/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V28.html +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_ID_V28.html @@ -1 +1 @@ -SAMPLE_ID_V28 in sample - Sway
pub const SAMPLE_ID_V28 = 1
\ No newline at end of file +SAMPLE_ID_V28 in sample - Sway
pub const SAMPLE_ID_V28 = 5
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_0.html b/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_0.html index 93c1555c..203a23b6 100644 --- a/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_0.html +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_0.html @@ -1 +1 @@ -SAMPLE_SIGNER_ADDRESS_0 in sample - Sway
pub const SAMPLE_SIGNER_ADDRESS_0 = 0x00000000000000000000000012470f7aBA85c8b81D63137DD5925D6EE114952b
\ No newline at end of file +SAMPLE_SIGNER_ADDRESS_0 in sample - Sway
pub const SAMPLE_SIGNER_ADDRESS_0 = 0x000000000000000000000000ad05Ce43E0bCD11345f08a28995951DEc30D5226
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_1.html b/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_1.html index a4587770..f12af5f9 100644 --- a/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_1.html +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_SIGNER_ADDRESS_1.html @@ -1 +1 @@ -SAMPLE_SIGNER_ADDRESS_1 in sample - Sway
pub const SAMPLE_SIGNER_ADDRESS_1 = 0x0000000000000000000000001ea62d73edf8ac05dfcea1a34b9796e937a29eff
\ No newline at end of file +SAMPLE_SIGNER_ADDRESS_1 in sample - Sway
pub const SAMPLE_SIGNER_ADDRESS_1 = 0x000000000000000000000000dE13FdEE7a9B483129a81794d02FCB4021069f0C
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/constant.SAMPLE_TIMESTAMP.html b/static/sway/redstone/utils/sample/constant.SAMPLE_TIMESTAMP.html new file mode 100644 index 00000000..6c8f3f8a --- /dev/null +++ b/static/sway/redstone/utils/sample/constant.SAMPLE_TIMESTAMP.html @@ -0,0 +1 @@ +SAMPLE_TIMESTAMP in sample - Sway
pub const SAMPLE_TIMESTAMP = 1727881330
\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/index.html b/static/sway/redstone/utils/sample/index.html index 5ecb5856..8aa1b0cc 100644 --- a/static/sway/redstone/utils/sample/index.html +++ b/static/sway/redstone/utils/sample/index.html @@ -1 +1 @@ -sample in redstone - Sway

Structs

Constants

\ No newline at end of file +sample in redstone - Sway

Structs

Constants

\ No newline at end of file diff --git a/static/sway/redstone/utils/sample/struct.SampleDataPackage.html b/static/sway/redstone/utils/sample/struct.SampleDataPackage.html index 9e5e403d..f2355b5c 100644 --- a/static/sway/redstone/utils/sample/struct.SampleDataPackage.html +++ b/static/sway/redstone/utils/sample/struct.SampleDataPackage.html @@ -1,4 +1,4 @@ -SampleDataPackage in sample - Sway
pub struct SampleDataPackage {
+SampleDataPackage in sample - Sway
pub struct SampleDataPackage {
     pub signable_bytes: Bytes,
     pub signature_r: b256,
     pub signature_s: b256,
diff --git a/static/sway/redstone/utils/sample/struct.SamplePayload.html b/static/sway/redstone/utils/sample/struct.SamplePayload.html
index 1a51d585..449bec6f 100644
--- a/static/sway/redstone/utils/sample/struct.SamplePayload.html
+++ b/static/sway/redstone/utils/sample/struct.SamplePayload.html
@@ -1,3 +1,3 @@
-SamplePayload in sample - Sway
pub struct SamplePayload {
+SamplePayload in sample - Sway
pub struct SamplePayload {
     pub data_packages: Vec<SampleDataPackage>,
-}

Fields

data_packages: Vec

Implementations

fn sample(indices: Vec<u64>) -> SamplePayload

fn bytes(self) -> Bytes

fn big_timestamp_span() -> SamplePayload

fn eth_btc_2x2() -> SamplePayload

fn eth_btc_2plus1() -> SamplePayload

\ No newline at end of file +}

Fields

data_packages: Vec

Implementations

fn sample(indices: Vec<u64>) -> SamplePayload

fn bytes(self) -> Bytes

fn different_timestamps() -> SamplePayload

fn eth_btc_2x2() -> SamplePayload

fn eth_btc_2plus1() -> SamplePayload

fn eth_duplicated_btc() -> SamplePayload

\ No newline at end of file diff --git a/static/sway/redstone/utils/test_helpers/index.html b/static/sway/redstone/utils/test_helpers/index.html new file mode 100644 index 00000000..df9953a4 --- /dev/null +++ b/static/sway/redstone/utils/test_helpers/index.html @@ -0,0 +1 @@ +test_helpers in redstone - Sway

Traits

\ No newline at end of file diff --git a/static/sway/redstone/utils/test_helpers/trait.With.html b/static/sway/redstone/utils/test_helpers/trait.With.html new file mode 100644 index 00000000..4e21b245 --- /dev/null +++ b/static/sway/redstone/utils/test_helpers/trait.With.html @@ -0,0 +1,3 @@ +With in test_helpers - Sway
pub trait With<T> {
+    fn with(self, value: T) -> Self;
+}

Required Methods

\ No newline at end of file diff --git a/static/sway/search.js b/static/sway/search.js index 09e4b940..80c9c2b4 100644 --- a/static/sway/search.js +++ b/static/sway/search.js @@ -1,2 +1,2 @@ -var SEARCH_INDEX={"core":[{"html_filename":"trait.AsRawSlice.html","module_info":["core","raw_slice"],"name":"AsRawSlice","preview":"Trait to return a type as a raw_slice.\n","type_name":"trait"},{"html_filename":"fn.from_str_array.html","module_info":["core","str"],"name":"from_str_array","preview":"","type_name":"function"},{"html_filename":"trait.Add.html","module_info":["core","ops"],"name":"Add","preview":"Trait for the addition of two values.\n","type_name":"trait"},{"html_filename":"trait.Subtract.html","module_info":["core","ops"],"name":"Subtract","preview":"Trait for the subtraction of two values.\n","type_name":"trait"},{"html_filename":"trait.Multiply.html","module_info":["core","ops"],"name":"Multiply","preview":"Trait for the multiplication of two values.\n","type_name":"trait"},{"html_filename":"trait.Divide.html","module_info":["core","ops"],"name":"Divide","preview":"Trait for the division of two values.\n","type_name":"trait"},{"html_filename":"trait.Mod.html","module_info":["core","ops"],"name":"Mod","preview":"Trait for the modulo of two values.\n","type_name":"trait"},{"html_filename":"trait.Not.html","module_info":["core","ops"],"name":"Not","preview":"Trait to invert a type.\n","type_name":"trait"},{"html_filename":"trait.Eq.html","module_info":["core","ops"],"name":"Eq","preview":"Trait to evaluate if two types are equal.\n","type_name":"trait"},{"html_filename":"trait.Ord.html","module_info":["core","ops"],"name":"Ord","preview":"Trait to evaluate if one value is greater or less than another of the same type.\n","type_name":"trait"},{"html_filename":"trait.BitwiseAnd.html","module_info":["core","ops"],"name":"BitwiseAnd","preview":"Trait to bitwise AND two values of the same type.\n","type_name":"trait"},{"html_filename":"trait.BitwiseOr.html","module_info":["core","ops"],"name":"BitwiseOr","preview":"Trait to bitwise OR two values of the same type.\n","type_name":"trait"},{"html_filename":"trait.BitwiseXor.html","module_info":["core","ops"],"name":"BitwiseXor","preview":"Trait to bitwise XOR two values of the same type.\n","type_name":"trait"},{"html_filename":"trait.Shift.html","module_info":["core","ops"],"name":"Shift","preview":"Trait to bit shift a value.\n","type_name":"trait"},{"html_filename":"fn.ok_str_eq.html","module_info":["core","ops"],"name":"ok_str_eq","preview":"","type_name":"function"},{"html_filename":"struct.StorageKey.html","module_info":["core","storage"],"name":"StorageKey","preview":"Describes a location in storage.\n","type_name":"struct"},{"html_filename":"struct.Buffer.html","module_info":["core","codec"],"name":"Buffer","preview":"","type_name":"struct"},{"html_filename":"struct.BufferReader.html","module_info":["core","codec"],"name":"BufferReader","preview":"","type_name":"struct"},{"html_filename":"trait.AbiDecode.html","module_info":["core","codec"],"name":"AbiDecode","preview":"","type_name":"trait"},{"html_filename":"trait.AbiEncode.html","module_info":["core","codec"],"name":"AbiEncode","preview":"","type_name":"trait"},{"html_filename":"fn.encode.html","module_info":["core","codec"],"name":"encode","preview":"","type_name":"function"},{"html_filename":"fn.abi_decode.html","module_info":["core","codec"],"name":"abi_decode","preview":"","type_name":"function"},{"html_filename":"fn.abi_decode_in_place.html","module_info":["core","codec"],"name":"abi_decode_in_place","preview":"","type_name":"function"},{"html_filename":"fn.contract_call.html","module_info":["core","codec"],"name":"contract_call","preview":"","type_name":"function"},{"html_filename":"fn.decode_script_data.html","module_info":["core","codec"],"name":"decode_script_data","preview":"","type_name":"function"},{"html_filename":"fn.decode_predicate_data.html","module_info":["core","codec"],"name":"decode_predicate_data","preview":"","type_name":"function"},{"html_filename":"fn.decode_predicate_data_by_index.html","module_info":["core","codec"],"name":"decode_predicate_data_by_index","preview":"","type_name":"function"},{"html_filename":"fn.decode_first_param.html","module_info":["core","codec"],"name":"decode_first_param","preview":"","type_name":"function"},{"html_filename":"fn.decode_second_param.html","module_info":["core","codec"],"name":"decode_second_param","preview":"","type_name":"function"},{"html_filename":"primitive.u256.html","module_info":["core"],"name":"u256","preview":"256-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u64.html","module_info":["core"],"name":"u64","preview":"64-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u32.html","module_info":["core"],"name":"u32","preview":"32-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u16.html","module_info":["core"],"name":"u16","preview":"16-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u8.html","module_info":["core"],"name":"u8","preview":"8-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.b256.html","module_info":["core"],"name":"b256","preview":"256 bits (32 bytes), i.e. a hash","type_name":"primitive"},{"html_filename":"primitive.str.html","module_info":["core"],"name":"str","preview":"string slice","type_name":"primitive"},{"html_filename":"primitive.bool.html","module_info":["core"],"name":"bool","preview":"Boolean true or false","type_name":"primitive"},{"html_filename":"primitive.str[0].html","module_info":["core"],"name":"str[0]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[1].html","module_info":["core"],"name":"str[1]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[2].html","module_info":["core"],"name":"str[2]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[3].html","module_info":["core"],"name":"str[3]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[4].html","module_info":["core"],"name":"str[4]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[5].html","module_info":["core"],"name":"str[5]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[6].html","module_info":["core"],"name":"str[6]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[7].html","module_info":["core"],"name":"str[7]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[8].html","module_info":["core"],"name":"str[8]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[9].html","module_info":["core"],"name":"str[9]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[10].html","module_info":["core"],"name":"str[10]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[11].html","module_info":["core"],"name":"str[11]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[12].html","module_info":["core"],"name":"str[12]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[13].html","module_info":["core"],"name":"str[13]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[14].html","module_info":["core"],"name":"str[14]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[15].html","module_info":["core"],"name":"str[15]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[16].html","module_info":["core"],"name":"str[16]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[17].html","module_info":["core"],"name":"str[17]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[18].html","module_info":["core"],"name":"str[18]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[19].html","module_info":["core"],"name":"str[19]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[20].html","module_info":["core"],"name":"str[20]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[21].html","module_info":["core"],"name":"str[21]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[22].html","module_info":["core"],"name":"str[22]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[23].html","module_info":["core"],"name":"str[23]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[24].html","module_info":["core"],"name":"str[24]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[25].html","module_info":["core"],"name":"str[25]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[26].html","module_info":["core"],"name":"str[26]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[27].html","module_info":["core"],"name":"str[27]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[28].html","module_info":["core"],"name":"str[28]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[29].html","module_info":["core"],"name":"str[29]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[30].html","module_info":["core"],"name":"str[30]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[31].html","module_info":["core"],"name":"str[31]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[32].html","module_info":["core"],"name":"str[32]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[33].html","module_info":["core"],"name":"str[33]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[34].html","module_info":["core"],"name":"str[34]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[35].html","module_info":["core"],"name":"str[35]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[36].html","module_info":["core"],"name":"str[36]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[37].html","module_info":["core"],"name":"str[37]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[38].html","module_info":["core"],"name":"str[38]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[39].html","module_info":["core"],"name":"str[39]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[40].html","module_info":["core"],"name":"str[40]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[41].html","module_info":["core"],"name":"str[41]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[42].html","module_info":["core"],"name":"str[42]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[43].html","module_info":["core"],"name":"str[43]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[44].html","module_info":["core"],"name":"str[44]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[45].html","module_info":["core"],"name":"str[45]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[46].html","module_info":["core"],"name":"str[46]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[47].html","module_info":["core"],"name":"str[47]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[48].html","module_info":["core"],"name":"str[48]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[49].html","module_info":["core"],"name":"str[49]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[50].html","module_info":["core"],"name":"str[50]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[51].html","module_info":["core"],"name":"str[51]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[52].html","module_info":["core"],"name":"str[52]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[53].html","module_info":["core"],"name":"str[53]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[54].html","module_info":["core"],"name":"str[54]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[55].html","module_info":["core"],"name":"str[55]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[56].html","module_info":["core"],"name":"str[56]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[57].html","module_info":["core"],"name":"str[57]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[58].html","module_info":["core"],"name":"str[58]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[59].html","module_info":["core"],"name":"str[59]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[60].html","module_info":["core"],"name":"str[60]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[61].html","module_info":["core"],"name":"str[61]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[62].html","module_info":["core"],"name":"str[62]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[63].html","module_info":["core"],"name":"str[63]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[64].html","module_info":["core"],"name":"str[64]","preview":"fixed-length string","type_name":"primitive"}],"redstone":[{"html_filename":"trait.FromBytesConvertible.html","module_info":["redstone","utils","from_bytes_convertible"],"name":"FromBytesConvertible","preview":"","type_name":"trait"},{"html_filename":"trait.FromBytes.html","module_info":["redstone","utils","from_bytes"],"name":"FromBytes","preview":"","type_name":"trait"},{"html_filename":"constant.SAMPLE_SIGNER_ADDRESS_0.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_SIGNER_ADDRESS_0","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_SIGNER_ADDRESS_1.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_SIGNER_ADDRESS_1","preview":"","type_name":"constant"},{"html_filename":"struct.SampleDataPackage.html","module_info":["redstone","utils","sample"],"name":"SampleDataPackage","preview":"","type_name":"struct"},{"html_filename":"struct.SamplePayload.html","module_info":["redstone","utils","sample"],"name":"SamplePayload","preview":"","type_name":"struct"},{"html_filename":"constant.SAMPLE_ID_V27.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ID_V27","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_ID_V28.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ID_V28","preview":"","type_name":"constant"},{"html_filename":"fn.recover_signer_address.html","module_info":["redstone","crypto","recover"],"name":"recover_signer_address","preview":"","type_name":"function"},{"html_filename":"constant.REDSTONE_MARKER.html","module_info":["redstone","protocol","constants"],"name":"REDSTONE_MARKER","preview":"","type_name":"constant"},{"html_filename":"constant.REDSTONE_MARKER_BS.html","module_info":["redstone","protocol","constants"],"name":"REDSTONE_MARKER_BS","preview":"","type_name":"constant"},{"html_filename":"constant.UNSIGNED_METADATA_BYTE_SIZE_BS.html","module_info":["redstone","protocol","constants"],"name":"UNSIGNED_METADATA_BYTE_SIZE_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_PACKAGES_COUNT_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_PACKAGES_COUNT_BS","preview":"","type_name":"constant"},{"html_filename":"constant.SIGNATURE_BS.html","module_info":["redstone","protocol","constants"],"name":"SIGNATURE_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_POINTS_COUNT_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_POINTS_COUNT_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_POINT_VALUE_BYTE_SIZE_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_POINT_VALUE_BYTE_SIZE_BS","preview":"","type_name":"constant"},{"html_filename":"constant.TIMESTAMP_BS.html","module_info":["redstone","protocol","constants"],"name":"TIMESTAMP_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_FEED_ID_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_FEED_ID_BS","preview":"","type_name":"constant"},{"html_filename":"constant.WRONG_REDSTONE_MARKER.html","module_info":["redstone","protocol","constants"],"name":"WRONG_REDSTONE_MARKER","preview":"","type_name":"constant"},{"html_filename":"constant.WRONG_PAYLOAD.html","module_info":["redstone","protocol","constants"],"name":"WRONG_PAYLOAD","preview":"","type_name":"constant"},{"html_filename":"struct.DataPoint.html","module_info":["redstone","protocol","data_point"],"name":"DataPoint","preview":"","type_name":"struct"},{"html_filename":"struct.DataPackage.html","module_info":["redstone","protocol","data_package"],"name":"DataPackage","preview":"","type_name":"struct"},{"html_filename":"fn.make_data_package.html","module_info":["redstone","protocol","data_package"],"name":"make_data_package","preview":"","type_name":"function"},{"html_filename":"struct.Payload.html","module_info":["redstone","protocol","payload"],"name":"Payload","preview":"","type_name":"struct"},{"html_filename":"constant.TIMESTAMP_OUT_OF_RANGE.html","module_info":["redstone","core","errors"],"name":"TIMESTAMP_OUT_OF_RANGE","preview":"","type_name":"constant"},{"html_filename":"constant.INSUFFICIENT_SIGNER_COUNT.html","module_info":["redstone","core","errors"],"name":"INSUFFICIENT_SIGNER_COUNT","preview":"655360000 + feed_index\n","type_name":"constant"},{"html_filename":"constant.SIGNER_NOT_RECOGNIZED.html","module_info":["redstone","core","errors"],"name":"SIGNER_NOT_RECOGNIZED","preview":"1310720000 + data_package_index\n","type_name":"constant"},{"html_filename":"fn.validate_timestamp.html","module_info":["redstone","core","validation"],"name":"validate_timestamp","preview":"","type_name":"function"},{"html_filename":"struct.Config.html","module_info":["redstone","core","config"],"name":"Config","preview":"Configuration for a RedStone payload processor.\n","type_name":"struct"},{"html_filename":"fn.process_input.html","module_info":["redstone","core","processor"],"name":"process_input","preview":"The main processor of the RedStone payload.\n","type_name":"function"},{"html_filename":"primitive.u256.html","module_info":["redstone"],"name":"u256","preview":"256-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u64.html","module_info":["redstone"],"name":"u64","preview":"64-bit unsigned integer","type_name":"primitive"}],"std":[{"html_filename":"constant.ZERO_B256.html","module_info":["std","constants"],"name":"ZERO_B256","preview":"A b256 of zero value.\n","type_name":"constant"},{"html_filename":"constant.ZERO_U256.html","module_info":["std","constants"],"name":"ZERO_U256","preview":"A u256 of zero value.\n","type_name":"constant"},{"html_filename":"constant.DEFAULT_SUB_ID.html","module_info":["std","constants"],"name":"DEFAULT_SUB_ID","preview":"The default Sub Id for assets.\n","type_name":"constant"},{"html_filename":"constant.FAILED_REQUIRE_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_REQUIRE_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::revert::require.","type_name":"constant"},{"html_filename":"constant.FAILED_TRANSFER_TO_ADDRESS_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_TRANSFER_TO_ADDRESS_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.","type_name":"constant"},{"html_filename":"constant.FAILED_ASSERT_EQ_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_ASSERT_EQ_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.","type_name":"constant"},{"html_filename":"constant.FAILED_ASSERT_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_ASSERT_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::assert::assert.","type_name":"constant"},{"html_filename":"constant.FAILED_ASSERT_NE_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_ASSERT_NE_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.","type_name":"constant"},{"html_filename":"fn.log.html","module_info":["std","logging"],"name":"log","preview":"Log any stack type.\n","type_name":"function"},{"html_filename":"fn.revert.html","module_info":["std","revert"],"name":"revert","preview":"Will either panic or revert with a given number depending on the context.\n","type_name":"function"},{"html_filename":"fn.require.html","module_info":["std","revert"],"name":"require","preview":"Checks if the given condition is true and if not, logs value and reverts.","type_name":"function"},{"html_filename":"enum.Result.html","module_info":["std","result"],"name":"Result","preview":"Result is a type that represents either success (Ok) or failure (Err).","type_name":"enum"},{"html_filename":"enum.Option.html","module_info":["std","option"],"name":"Option","preview":"A type that represents an optional value, either Some(val) or None.","type_name":"enum"},{"html_filename":"fn.assert.html","module_info":["std","assert"],"name":"assert","preview":"Asserts that the given condition will always be true during runtime.","type_name":"function"},{"html_filename":"fn.assert_eq.html","module_info":["std","assert"],"name":"assert_eq","preview":"Asserts that the given values v1 & v2 will always be equal during runtime.","type_name":"function"},{"html_filename":"fn.assert_ne.html","module_info":["std","assert"],"name":"assert_ne","preview":"Asserts that the given values v1 & v2 will never be equal during runtime.","type_name":"function"},{"html_filename":"trait.From.html","module_info":["std","convert"],"name":"From","preview":"Used to do value-to-value conversions.\n","type_name":"trait"},{"html_filename":"trait.Into.html","module_info":["std","convert"],"name":"Into","preview":"Used to do value-to-value conversions.\n","type_name":"trait"},{"html_filename":"trait.TryFrom.html","module_info":["std","convert"],"name":"TryFrom","preview":"Used to attempt to do value-to-value conversions.
","type_name":"trait"},{"html_filename":"trait.TryInto.html","module_info":["std","convert"],"name":"TryInto","preview":"","type_name":"trait"},{"html_filename":"fn.is_reference_type.html","module_info":["std","intrinsics"],"name":"is_reference_type","preview":"Returns whether a generic type T is a reference type or not.\n","type_name":"function"},{"html_filename":"fn.size_of.html","module_info":["std","intrinsics"],"name":"size_of","preview":"Returns the size of a generic type T in bytes.\n","type_name":"function"},{"html_filename":"fn.size_of_val.html","module_info":["std","intrinsics"],"name":"size_of_val","preview":"Returns the size of the type of a value in bytes.\n","type_name":"function"},{"html_filename":"fn.alloc.html","module_info":["std","alloc"],"name":"alloc","preview":"Allocates zeroed memory on the heap.\n","type_name":"function"},{"html_filename":"fn.realloc.html","module_info":["std","alloc"],"name":"realloc","preview":"Reallocates the given area of memory.\n","type_name":"function"},{"html_filename":"fn.alloc_bytes.html","module_info":["std","alloc"],"name":"alloc_bytes","preview":"Allocates zeroed memory on the heap in individual bytes.\n","type_name":"function"},{"html_filename":"fn.realloc_bytes.html","module_info":["std","alloc"],"name":"realloc_bytes","preview":"Reallocates the given area of memory in individual bytes.\n","type_name":"function"},{"html_filename":"fn.overflow.html","module_info":["std","registers"],"name":"overflow","preview":"Contains overflow & underflow of addition, subtraction, and multiplication.\n","type_name":"function"},{"html_filename":"fn.program_counter.html","module_info":["std","registers"],"name":"program_counter","preview":"The program counter. Memory address of the current instruction.\n","type_name":"function"},{"html_filename":"fn.stack_start_ptr.html","module_info":["std","registers"],"name":"stack_start_ptr","preview":"Memory address of bottom of current writable stack area.\n","type_name":"function"},{"html_filename":"fn.stack_ptr.html","module_info":["std","registers"],"name":"stack_ptr","preview":"Memory address on top of current writable stack area (points to free memory).\n","type_name":"function"},{"html_filename":"fn.frame_ptr.html","module_info":["std","registers"],"name":"frame_ptr","preview":"Memory address of beginning of current call frame.\n","type_name":"function"},{"html_filename":"fn.heap_ptr.html","module_info":["std","registers"],"name":"heap_ptr","preview":"Memory address below the current bottom of the heap (points to free memory).\n","type_name":"function"},{"html_filename":"fn.error.html","module_info":["std","registers"],"name":"error","preview":"Error codes for particular operations.\n","type_name":"function"},{"html_filename":"fn.global_gas.html","module_info":["std","registers"],"name":"global_gas","preview":"Remaining gas globally.\n","type_name":"function"},{"html_filename":"fn.context_gas.html","module_info":["std","registers"],"name":"context_gas","preview":"Remaining gas in the context.\n","type_name":"function"},{"html_filename":"fn.balance.html","module_info":["std","registers"],"name":"balance","preview":"Get the amount of units of call_frames::msg_asset_id() being sent.\n","type_name":"function"},{"html_filename":"fn.instrs_start.html","module_info":["std","registers"],"name":"instrs_start","preview":"Pointer to the start of the currently-executing code.\n","type_name":"function"},{"html_filename":"fn.return_value.html","module_info":["std","registers"],"name":"return_value","preview":"Return value or pointer.\n","type_name":"function"},{"html_filename":"fn.return_length.html","module_info":["std","registers"],"name":"return_length","preview":"Return value length in bytes.\n","type_name":"function"},{"html_filename":"fn.flags.html","module_info":["std","registers"],"name":"flags","preview":"Flags register.\n","type_name":"function"},{"html_filename":"trait.Iterator.html","module_info":["std","iterator"],"name":"Iterator","preview":"","type_name":"trait"},{"html_filename":"struct.Vec.html","module_info":["std","vec"],"name":"Vec","preview":"A contiguous growable array type, written as Vec<T>, short for ‘vector’.\n","type_name":"struct"},{"html_filename":"struct.VecIter.html","module_info":["std","vec"],"name":"VecIter","preview":"","type_name":"struct"},{"html_filename":"trait.Clone.html","module_info":["std","clone"],"name":"Clone","preview":"A common trait for the ability to explicitly duplicate an object.\n","type_name":"trait"},{"html_filename":"struct.Bytes.html","module_info":["std","bytes"],"name":"Bytes","preview":"A type used to represent raw bytes.\n","type_name":"struct"},{"html_filename":"constant.F_WRAPPING_DISABLE_MASK.html","module_info":["std","flags"],"name":"F_WRAPPING_DISABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"constant.F_WRAPPING_ENABLE_MASK.html","module_info":["std","flags"],"name":"F_WRAPPING_ENABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"constant.F_UNSAFEMATH_DISABLE_MASK.html","module_info":["std","flags"],"name":"F_UNSAFEMATH_DISABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"constant.F_UNSAFEMATH_ENABLE_MASK.html","module_info":["std","flags"],"name":"F_UNSAFEMATH_ENABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"fn.set_flags.html","module_info":["std","flags"],"name":"set_flags","preview":"Sets the flag register to the given value.\n","type_name":"function"},{"html_filename":"fn.disable_panic_on_overflow.html","module_info":["std","flags"],"name":"disable_panic_on_overflow","preview":"Allows overflowing operations to occur without a FuelVM panic.\n","type_name":"function"},{"html_filename":"fn.enable_panic_on_overflow.html","module_info":["std","flags"],"name":"enable_panic_on_overflow","preview":"Enables the default panic-on-overflow behavior in the FuelVM.\n","type_name":"function"},{"html_filename":"fn.disable_panic_on_unsafe_math.html","module_info":["std","flags"],"name":"disable_panic_on_unsafe_math","preview":"Allows unsafe math operations to occur without a FuelVM panic.
","type_name":"function"},{"html_filename":"fn.enable_panic_on_unsafe_math.html","module_info":["std","flags"],"name":"enable_panic_on_unsafe_math","preview":"Enables the default panic-on-unsafe-math behavior in the FuelVM.\n","type_name":"function"},{"html_filename":"trait.Root.html","module_info":["std","math"],"name":"Root","preview":"Calculates the square root.\n","type_name":"trait"},{"html_filename":"trait.Power.html","module_info":["std","math"],"name":"Power","preview":"Calculates a number to a given power.\n","type_name":"trait"},{"html_filename":"trait.Exponent.html","module_info":["std","math"],"name":"Exponent","preview":"Trait for exponential functions.
","type_name":"trait"},{"html_filename":"trait.Logarithm.html","module_info":["std","math"],"name":"Logarithm","preview":"Calculates the log with a given base.\n","type_name":"trait"},{"html_filename":"trait.BinaryLogarithm.html","module_info":["std","math"],"name":"BinaryLogarithm","preview":"Calculates the binary log.\n","type_name":"trait"},{"html_filename":"struct.U128.html","module_info":["std","u128"],"name":"U128","preview":"The 128-bit unsigned integer type.\n","type_name":"struct"},{"html_filename":"enum.U128Error.html","module_info":["std","u128"],"name":"U128Error","preview":"The error type used for U128 type errors.\n","type_name":"enum"},{"html_filename":"struct.B512.html","module_info":["std","b512"],"name":"B512","preview":"Stores two b256s in contiguous memory.
","type_name":"struct"},{"html_filename":"struct.Hasher.html","module_info":["std","hash"],"name":"Hasher","preview":"","type_name":"struct"},{"html_filename":"trait.Hash.html","module_info":["std","hash"],"name":"Hash","preview":"","type_name":"trait"},{"html_filename":"fn.sha256.html","module_info":["std","hash"],"name":"sha256","preview":"Returns the SHA-2-256 hash of param.\n","type_name":"function"},{"html_filename":"fn.sha256_str_array.html","module_info":["std","hash"],"name":"sha256_str_array","preview":"Returns the SHA-2-256 hash of param.
","type_name":"function"},{"html_filename":"fn.keccak256.html","module_info":["std","hash"],"name":"keccak256","preview":"Returns the KECCAK-256 hash of param.\n","type_name":"function"},{"html_filename":"struct.ContractId.html","module_info":["std","contract_id"],"name":"ContractId","preview":"The ContractId type, a struct wrapper around the inner b256 value.\n","type_name":"struct"},{"html_filename":"struct.AssetId.html","module_info":["std","asset_id"],"name":"AssetId","preview":"An AssetId is used for interacting with an asset on the network.\n","type_name":"struct"},{"html_filename":"fn.run_external.html","module_info":["std","execution"],"name":"run_external","preview":"Load and run the contract with the provided ContractId.\n","type_name":"function"},{"html_filename":"fn.msg_asset_id.html","module_info":["std","call_frames"],"name":"msg_asset_id","preview":"Get the asset_id of coins being sent from the current call frame.\n","type_name":"function"},{"html_filename":"fn.code_size.html","module_info":["std","call_frames"],"name":"code_size","preview":"Get the code size in bytes (padded to word alignment) from the current call frame.\n","type_name":"function"},{"html_filename":"fn.first_param.html","module_info":["std","call_frames"],"name":"first_param","preview":"Get the first parameter from the current call frame.\n","type_name":"function"},{"html_filename":"fn.second_param.html","module_info":["std","call_frames"],"name":"second_param","preview":"Get the second parameter from the current call frame.\n","type_name":"function"},{"html_filename":"fn.called_method.html","module_info":["std","call_frames"],"name":"called_method","preview":"Get the called method name from the current call frame.\n","type_name":"function"},{"html_filename":"fn.called_args.html","module_info":["std","call_frames"],"name":"called_args","preview":"Get the called arguments from the current call frame.\n","type_name":"function"},{"html_filename":"fn.get_previous_frame_pointer.html","module_info":["std","call_frames"],"name":"get_previous_frame_pointer","preview":"Get a pointer to the previous (relative to the frame_pointer parameter) call frame using offsets from a pointer.","type_name":"function"},{"html_filename":"fn.get_contract_id_from_call_frame.html","module_info":["std","call_frames"],"name":"get_contract_id_from_call_frame","preview":"Get the value of ContractId from any call frame on the stack.\n","type_name":"function"},{"html_filename":"fn.balance_of.html","module_info":["std","context"],"name":"balance_of","preview":"Get the balance of coin asset_id for the contract at ‘target’.\n","type_name":"function"},{"html_filename":"fn.this_balance.html","module_info":["std","context"],"name":"this_balance","preview":"Get the balance of coin asset_id for the current contract.\n","type_name":"function"},{"html_filename":"fn.msg_amount.html","module_info":["std","context"],"name":"msg_amount","preview":"Get the amount of units of call_frames::msg_asset_id() being sent.\n","type_name":"function"},{"html_filename":"fn.bytecode_root.html","module_info":["std","external"],"name":"bytecode_root","preview":"Get the root of the bytecode of the contract at ‘contract_id’.\n","type_name":"function"},{"html_filename":"constant.GTF_TYPE.html","module_info":["std","tx"],"name":"GTF_TYPE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_GAS_LIMIT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_GAS_LIMIT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT_LENGTH.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT_DATA_LENGTH.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_INPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_INPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_OUTPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_OUTPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_WITNESSES_COUNT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_WITNESSES_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT_DATA.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_INPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_SCRIPT_INPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_OUTPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_SCRIPT_OUTPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_WITNESS_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_SCRIPT_WITNESS_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_TX_LENGTH.html","module_info":["std","tx"],"name":"GTF_TX_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_INPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_CREATE_INPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_OUTPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_CREATE_OUTPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_WITNESSES_COUNT.html","module_info":["std","tx"],"name":"GTF_CREATE_WITNESSES_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_INPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_CREATE_INPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_OUTPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_CREATE_OUTPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_WITNESS_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_CREATE_WITNESS_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_WITNESS_DATA_LENGTH.html","module_info":["std","tx"],"name":"GTF_WITNESS_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_WITNESS_DATA.html","module_info":["std","tx"],"name":"GTF_WITNESS_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_TYPES.html","module_info":["std","tx"],"name":"GTF_POLICY_TYPES","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_TIP.html","module_info":["std","tx"],"name":"GTF_POLICY_TIP","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_WITNESS_LIMIT.html","module_info":["std","tx"],"name":"GTF_POLICY_WITNESS_LIMIT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_MATURITY.html","module_info":["std","tx"],"name":"GTF_POLICY_MATURITY","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_MAX_FEE.html","module_info":["std","tx"],"name":"GTF_POLICY_MAX_FEE","preview":"","type_name":"constant"},{"html_filename":"enum.Transaction.html","module_info":["std","tx"],"name":"Transaction","preview":"A transaction type.\n","type_name":"enum"},{"html_filename":"fn.tx_type.html","module_info":["std","tx"],"name":"tx_type","preview":"Get the type of the current transaction.
","type_name":"function"},{"html_filename":"fn.tx_tip.html","module_info":["std","tx"],"name":"tx_tip","preview":"Get the tip for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.script_gas_limit.html","module_info":["std","tx"],"name":"script_gas_limit","preview":"Get the script gas limit for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_maturity.html","module_info":["std","tx"],"name":"tx_maturity","preview":"Get the maturity for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.tx_witness_limit.html","module_info":["std","tx"],"name":"tx_witness_limit","preview":"Get the witness limit for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.tx_max_fee.html","module_info":["std","tx"],"name":"tx_max_fee","preview":"Get the max fee for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.tx_script_length.html","module_info":["std","tx"],"name":"tx_script_length","preview":"Get the length of the script for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_script_data_length.html","module_info":["std","tx"],"name":"tx_script_data_length","preview":"Get the script data length for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_witnesses_count.html","module_info":["std","tx"],"name":"tx_witnesses_count","preview":"Get the transaction witnesses count for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_witness_pointer.html","module_info":["std","tx"],"name":"tx_witness_pointer","preview":"Get a pointer to the witness at index index for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_witness_data_length.html","module_info":["std","tx"],"name":"tx_witness_data_length","preview":"Get the length of the witness data at index.\n","type_name":"function"},{"html_filename":"fn.tx_witness_data.html","module_info":["std","tx"],"name":"tx_witness_data","preview":"Get the witness data at index.\n","type_name":"function"},{"html_filename":"fn.tx_script_start_pointer.html","module_info":["std","tx"],"name":"tx_script_start_pointer","preview":"Get the transaction script start pointer.\n","type_name":"function"},{"html_filename":"fn.tx_script_data_start_pointer.html","module_info":["std","tx"],"name":"tx_script_data_start_pointer","preview":"Get the transaction script data start pointer.\n","type_name":"function"},{"html_filename":"fn.tx_script_data.html","module_info":["std","tx"],"name":"tx_script_data","preview":"Get the script data, typed.\n","type_name":"function"},{"html_filename":"fn.tx_script_bytecode.html","module_info":["std","tx"],"name":"tx_script_bytecode","preview":"Get the script bytecode.\n","type_name":"function"},{"html_filename":"fn.tx_script_bytecode_hash.html","module_info":["std","tx"],"name":"tx_script_bytecode_hash","preview":"Get the hash of the script bytecode.
\nReverts if not a transaction-script.\n","type_name":"function"},{"html_filename":"fn.tx_id.html","module_info":["std","tx"],"name":"tx_id","preview":"Get the Transaction ID of the current transaction.\n","type_name":"function"},{"html_filename":"struct.Address.html","module_info":["std","address"],"name":"Address","preview":"The Address type, a struct wrapper around the inner b256 value.\n","type_name":"struct"},{"html_filename":"constant.GTF_OUTPUT_TYPE.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_TYPE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_OUTPUT_COIN_TO.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_COIN_TO","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_OUTPUT_COIN_AMOUNT.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_COIN_AMOUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_OUTPUT_COIN_ASSET_ID.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_COIN_ASSET_ID","preview":"","type_name":"constant"},{"html_filename":"enum.Output.html","module_info":["std","outputs"],"name":"Output","preview":"The output type for a transaction.\n","type_name":"enum"},{"html_filename":"fn.output_type.html","module_info":["std","outputs"],"name":"output_type","preview":"Get the type of an output at index.\n","type_name":"function"},{"html_filename":"fn.output_pointer.html","module_info":["std","outputs"],"name":"output_pointer","preview":"Get a pointer to the output at index
","type_name":"function"},{"html_filename":"fn.output_count.html","module_info":["std","outputs"],"name":"output_count","preview":"Get the transaction outputs count for either tx_type
","type_name":"function"},{"html_filename":"fn.output_amount.html","module_info":["std","outputs"],"name":"output_amount","preview":"The amount of coins to send to the output at index.\n","type_name":"function"},{"html_filename":"fn.output_asset_id.html","module_info":["std","outputs"],"name":"output_asset_id","preview":"Gets the AssetId of the output if it is a Output::Coin.\n","type_name":"function"},{"html_filename":"fn.output_asset_to.html","module_info":["std","outputs"],"name":"output_asset_to","preview":"Returns the receiver of the output if it is a Output::Coin.\n","type_name":"function"},{"html_filename":"enum.Identity.html","module_info":["std","identity"],"name":"Identity","preview":"The Identity type: either an Address or a ContractId.\n","type_name":"enum"},{"html_filename":"enum.EcRecoverError.html","module_info":["std","ecr"],"name":"EcRecoverError","preview":"The error type used when the ec_recover function fails.\n","type_name":"enum"},{"html_filename":"fn.ec_recover.html","module_info":["std","ecr"],"name":"ec_recover","preview":"Recover the public key derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"fn.ec_recover_r1.html","module_info":["std","ecr"],"name":"ec_recover_r1","preview":"Recover the public key derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"fn.ed_verify.html","module_info":["std","ecr"],"name":"ed_verify","preview":"Verifies that a public key derived from the private key was used to sign a message.
","type_name":"function"},{"html_filename":"fn.ec_recover_address.html","module_info":["std","ecr"],"name":"ec_recover_address","preview":"Recover the address derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"fn.ec_recover_address_r1.html","module_info":["std","ecr"],"name":"ec_recover_address_r1","preview":"Recover the address derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"struct.EvmAddress.html","module_info":["std","vm","evm","evm_address"],"name":"EvmAddress","preview":"The EvmAddress type, a struct wrapper around the inner b256 value.\n","type_name":"struct"},{"html_filename":"fn.ec_recover_evm_address.html","module_info":["std","vm","evm","ecr"],"name":"ec_recover_evm_address","preview":"Recover the EVM address derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"struct.String.html","module_info":["std","string"],"name":"String","preview":"A UTF-8 encoded growable string.\n","type_name":"struct"},{"html_filename":"fn.write.html","module_info":["std","storage","storage_api"],"name":"write","preview":"Stores a stack value in storage. Will not work for heap values.\n","type_name":"function"},{"html_filename":"fn.read.html","module_info":["std","storage","storage_api"],"name":"read","preview":"Reads a value of type T starting at the location specified by slot and offset. If the
","type_name":"function"},{"html_filename":"fn.clear.html","module_info":["std","storage","storage_api"],"name":"clear","preview":"Clear a value starting at some slot with an offset.\n","type_name":"function"},{"html_filename":"fn.write_slice.html","module_info":["std","storage","storable_slice"],"name":"write_slice","preview":"Store a raw_slice from the heap into storage.\n","type_name":"function"},{"html_filename":"fn.read_slice.html","module_info":["std","storage","storable_slice"],"name":"read_slice","preview":"Load a raw_slice from storage.\n","type_name":"function"},{"html_filename":"fn.clear_slice.html","module_info":["std","storage","storable_slice"],"name":"clear_slice","preview":"Clear a sequence of storage slots starting at a some key.\n","type_name":"function"},{"html_filename":"trait.StorableSlice.html","module_info":["std","storage","storable_slice"],"name":"StorableSlice","preview":"A general way to persistently store heap types.\n","type_name":"trait"},{"html_filename":"enum.StorageMapError.html","module_info":["std","storage","storage_map"],"name":"StorageMapError","preview":"Errors pertaining to the StorageMap struct.\n","type_name":"enum"},{"html_filename":"struct.StorageMap.html","module_info":["std","storage","storage_map"],"name":"StorageMap","preview":"A persistent key-value pair mapping struct.\n","type_name":"struct"},{"html_filename":"struct.StorageVec.html","module_info":["std","storage","storage_vec"],"name":"StorageVec","preview":"A persistent vector struct.\n","type_name":"struct"},{"html_filename":"struct.StorageBytes.html","module_info":["std","storage","storage_bytes"],"name":"StorageBytes","preview":"A persistent storage type to store a collection of tightly packed bytes.\n","type_name":"struct"},{"html_filename":"struct.StorageString.html","module_info":["std","storage","storage_string"],"name":"StorageString","preview":"","type_name":"struct"},{"html_filename":"enum.BlockHashError.html","module_info":["std","block"],"name":"BlockHashError","preview":"Error type for when the block hash cannot be found.\n","type_name":"enum"},{"html_filename":"fn.height.html","module_info":["std","block"],"name":"height","preview":"Get the current block height.\n","type_name":"function"},{"html_filename":"fn.timestamp_of_block.html","module_info":["std","block"],"name":"timestamp_of_block","preview":"Get the TAI64 timestamp of a block at a given block_height.\n","type_name":"function"},{"html_filename":"fn.timestamp.html","module_info":["std","block"],"name":"timestamp","preview":"Get the TAI64 timestamp of the current block.\n","type_name":"function"},{"html_filename":"fn.block_header_hash.html","module_info":["std","block"],"name":"block_header_hash","preview":"Get the header hash of the block at height block_height\n","type_name":"function"},{"html_filename":"constant.GTF_INPUT_COIN_OWNER.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_OWNER","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_AMOUNT.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_AMOUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_ASSET_ID.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_ASSET_ID","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_WITNESS_INDEX.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_WITNESS_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE_DATA_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE_DATA.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_SENDER.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_SENDER","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_RECIPIENT.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_RECIPIENT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_AMOUNT.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_AMOUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_NONCE.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_NONCE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_WITNESS_INDEX.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_WITNESS_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_DATA_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_DATA.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE_DATA.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE_DATA","preview":"","type_name":"constant"},{"html_filename":"enum.Input.html","module_info":["std","inputs"],"name":"Input","preview":"The input type for a transaction.\n","type_name":"enum"},{"html_filename":"fn.input_type.html","module_info":["std","inputs"],"name":"input_type","preview":"Gets the type of the input at index.\n","type_name":"function"},{"html_filename":"fn.input_count.html","module_info":["std","inputs"],"name":"input_count","preview":"Gets the transaction inputs count.\n","type_name":"function"},{"html_filename":"fn.input_pointer.html","module_info":["std","inputs"],"name":"input_pointer","preview":"Gets the pointer of the input at index.\n","type_name":"function"},{"html_filename":"fn.input_amount.html","module_info":["std","inputs"],"name":"input_amount","preview":"Gets amount field from input at index.\n","type_name":"function"},{"html_filename":"fn.input_coin_owner.html","module_info":["std","inputs"],"name":"input_coin_owner","preview":"Gets owner field from input at index if it’s a coin.\n","type_name":"function"},{"html_filename":"fn.input_predicate_data_pointer.html","module_info":["std","inputs"],"name":"input_predicate_data_pointer","preview":"Gets the predicate data pointer from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate_data.html","module_info":["std","inputs"],"name":"input_predicate_data","preview":"Gets the predicate data from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_asset_id.html","module_info":["std","inputs"],"name":"input_asset_id","preview":"Gets the AssetId of the input at index.\n","type_name":"function"},{"html_filename":"fn.input_witness_index.html","module_info":["std","inputs"],"name":"input_witness_index","preview":"Gets the witness index from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate_length.html","module_info":["std","inputs"],"name":"input_predicate_length","preview":"Gets the predicate length from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate_pointer.html","module_info":["std","inputs"],"name":"input_predicate_pointer","preview":"Gets the predicate pointer from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate.html","module_info":["std","inputs"],"name":"input_predicate","preview":"Gets the predicate from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate_data_length.html","module_info":["std","inputs"],"name":"input_predicate_data_length","preview":"Gets the predicate data length from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_message_sender.html","module_info":["std","inputs"],"name":"input_message_sender","preview":"Gets the sender of the input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_recipient.html","module_info":["std","inputs"],"name":"input_message_recipient","preview":"Gets the recipient of the input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_nonce.html","module_info":["std","inputs"],"name":"input_message_nonce","preview":"Gets the nonce of input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_data_length.html","module_info":["std","inputs"],"name":"input_message_data_length","preview":"Gets the length of the input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_data.html","module_info":["std","inputs"],"name":"input_message_data","preview":"Gets the data of the input message at index.\n","type_name":"function"},{"html_filename":"enum.AuthError.html","module_info":["std","auth"],"name":"AuthError","preview":"The error type used when an Identity cannot be determined.\n","type_name":"enum"},{"html_filename":"fn.caller_is_external.html","module_info":["std","auth"],"name":"caller_is_external","preview":"Returns true if the caller is external (i.e. a script).
","type_name":"function"},{"html_filename":"fn.caller_contract_id.html","module_info":["std","auth"],"name":"caller_contract_id","preview":"If the caller is internal, returns the contract ID of the caller.\n","type_name":"function"},{"html_filename":"fn.caller_address.html","module_info":["std","auth"],"name":"caller_address","preview":"Get the owner of the inputs (of type Input::Coin or Input::Message) to a
","type_name":"function"},{"html_filename":"fn.msg_sender.html","module_info":["std","auth"],"name":"msg_sender","preview":"Get the Identity (i.e. Address or ContractId) from which a call was made.
","type_name":"function"},{"html_filename":"fn.predicate_address.html","module_info":["std","auth"],"name":"predicate_address","preview":"Get the current predicate’s address when called in an internal context.\n","type_name":"function"},{"html_filename":"fn.mint.html","module_info":["std","asset"],"name":"mint","preview":"Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.","type_name":"function"},{"html_filename":"fn.transfer.html","module_info":["std","asset"],"name":"transfer","preview":"Transfer amount coins of the type asset_id and send them to to.","type_name":"function"},{"html_filename":"fn.mint_to.html","module_info":["std","asset"],"name":"mint_to","preview":"Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().","type_name":"function"},{"html_filename":"fn.burn.html","module_info":["std","asset"],"name":"burn","preview":"Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.","type_name":"function"},{"html_filename":"fn.send_message.html","module_info":["std","message"],"name":"send_message","preview":"Sends a message msg_data to recipient with a coins amount of the base asset.","type_name":"function"},{"html_filename":"fn.send_typed_message.html","module_info":["std","message"],"name":"send_typed_message","preview":"Sends a message msg_data of type T to recipient with a coins amount of the base asset.","type_name":"function"},{"html_filename":"struct.CallParams.html","module_info":["std","low_level_call"],"name":"CallParams","preview":"A struct representing the call parameters of a function call.\n","type_name":"struct"},{"html_filename":"fn.call_with_function_selector.html","module_info":["std","low_level_call"],"name":"call_with_function_selector","preview":"Call a target contract with a function selector and calldata, provided as Bytes.","type_name":"function"},{"html_filename":"primitive.b256.html","module_info":["std"],"name":"b256","preview":"256 bits (32 bytes), i.e. a hash","type_name":"primitive"},{"html_filename":"primitive.u256.html","module_info":["std"],"name":"u256","preview":"256-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u64.html","module_info":["std"],"name":"u64","preview":"64-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u32.html","module_info":["std"],"name":"u32","preview":"32-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u16.html","module_info":["std"],"name":"u16","preview":"16-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u8.html","module_info":["std"],"name":"u8","preview":"8-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.str.html","module_info":["std"],"name":"str","preview":"string slice","type_name":"primitive"},{"html_filename":"primitive.bool.html","module_info":["std"],"name":"bool","preview":"Boolean true or false","type_name":"primitive"}]}; +var SEARCH_INDEX={"core":[{"html_filename":"trait.AsRawSlice.html","module_info":["core","raw_slice"],"name":"AsRawSlice","preview":"Trait to return a type as a raw_slice.\n","type_name":"trait"},{"html_filename":"fn.from_str_array.html","module_info":["core","str"],"name":"from_str_array","preview":"","type_name":"function"},{"html_filename":"trait.Add.html","module_info":["core","ops"],"name":"Add","preview":"Trait for the addition of two values.\n","type_name":"trait"},{"html_filename":"trait.Subtract.html","module_info":["core","ops"],"name":"Subtract","preview":"Trait for the subtraction of two values.\n","type_name":"trait"},{"html_filename":"trait.Multiply.html","module_info":["core","ops"],"name":"Multiply","preview":"Trait for the multiplication of two values.\n","type_name":"trait"},{"html_filename":"trait.Divide.html","module_info":["core","ops"],"name":"Divide","preview":"Trait for the division of two values.\n","type_name":"trait"},{"html_filename":"trait.Mod.html","module_info":["core","ops"],"name":"Mod","preview":"Trait for the modulo of two values.\n","type_name":"trait"},{"html_filename":"trait.Not.html","module_info":["core","ops"],"name":"Not","preview":"Trait to invert a type.\n","type_name":"trait"},{"html_filename":"trait.Eq.html","module_info":["core","ops"],"name":"Eq","preview":"Trait to evaluate if two types are equal.\n","type_name":"trait"},{"html_filename":"trait.Ord.html","module_info":["core","ops"],"name":"Ord","preview":"Trait to evaluate if one value is greater or less than another of the same type.\n","type_name":"trait"},{"html_filename":"trait.BitwiseAnd.html","module_info":["core","ops"],"name":"BitwiseAnd","preview":"Trait to bitwise AND two values of the same type.\n","type_name":"trait"},{"html_filename":"trait.BitwiseOr.html","module_info":["core","ops"],"name":"BitwiseOr","preview":"Trait to bitwise OR two values of the same type.\n","type_name":"trait"},{"html_filename":"trait.BitwiseXor.html","module_info":["core","ops"],"name":"BitwiseXor","preview":"Trait to bitwise XOR two values of the same type.\n","type_name":"trait"},{"html_filename":"trait.Shift.html","module_info":["core","ops"],"name":"Shift","preview":"Trait to bit shift a value.\n","type_name":"trait"},{"html_filename":"fn.ok_str_eq.html","module_info":["core","ops"],"name":"ok_str_eq","preview":"","type_name":"function"},{"html_filename":"struct.StorageKey.html","module_info":["core","storage"],"name":"StorageKey","preview":"Describes a location in storage.\n","type_name":"struct"},{"html_filename":"struct.Buffer.html","module_info":["core","codec"],"name":"Buffer","preview":"","type_name":"struct"},{"html_filename":"struct.BufferReader.html","module_info":["core","codec"],"name":"BufferReader","preview":"","type_name":"struct"},{"html_filename":"trait.AbiDecode.html","module_info":["core","codec"],"name":"AbiDecode","preview":"","type_name":"trait"},{"html_filename":"trait.AbiEncode.html","module_info":["core","codec"],"name":"AbiEncode","preview":"","type_name":"trait"},{"html_filename":"fn.encode.html","module_info":["core","codec"],"name":"encode","preview":"","type_name":"function"},{"html_filename":"fn.abi_decode.html","module_info":["core","codec"],"name":"abi_decode","preview":"","type_name":"function"},{"html_filename":"fn.abi_decode_in_place.html","module_info":["core","codec"],"name":"abi_decode_in_place","preview":"","type_name":"function"},{"html_filename":"fn.contract_call.html","module_info":["core","codec"],"name":"contract_call","preview":"","type_name":"function"},{"html_filename":"fn.decode_script_data.html","module_info":["core","codec"],"name":"decode_script_data","preview":"","type_name":"function"},{"html_filename":"fn.decode_predicate_data.html","module_info":["core","codec"],"name":"decode_predicate_data","preview":"","type_name":"function"},{"html_filename":"fn.decode_predicate_data_by_index.html","module_info":["core","codec"],"name":"decode_predicate_data_by_index","preview":"","type_name":"function"},{"html_filename":"fn.decode_first_param.html","module_info":["core","codec"],"name":"decode_first_param","preview":"","type_name":"function"},{"html_filename":"fn.decode_second_param.html","module_info":["core","codec"],"name":"decode_second_param","preview":"","type_name":"function"},{"html_filename":"primitive.u256.html","module_info":["core"],"name":"u256","preview":"256-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u64.html","module_info":["core"],"name":"u64","preview":"64-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u32.html","module_info":["core"],"name":"u32","preview":"32-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u16.html","module_info":["core"],"name":"u16","preview":"16-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u8.html","module_info":["core"],"name":"u8","preview":"8-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.b256.html","module_info":["core"],"name":"b256","preview":"256 bits (32 bytes), i.e. a hash","type_name":"primitive"},{"html_filename":"primitive.str.html","module_info":["core"],"name":"str","preview":"string slice","type_name":"primitive"},{"html_filename":"primitive.bool.html","module_info":["core"],"name":"bool","preview":"Boolean true or false","type_name":"primitive"},{"html_filename":"primitive.str[0].html","module_info":["core"],"name":"str[0]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[1].html","module_info":["core"],"name":"str[1]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[2].html","module_info":["core"],"name":"str[2]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[3].html","module_info":["core"],"name":"str[3]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[4].html","module_info":["core"],"name":"str[4]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[5].html","module_info":["core"],"name":"str[5]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[6].html","module_info":["core"],"name":"str[6]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[7].html","module_info":["core"],"name":"str[7]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[8].html","module_info":["core"],"name":"str[8]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[9].html","module_info":["core"],"name":"str[9]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[10].html","module_info":["core"],"name":"str[10]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[11].html","module_info":["core"],"name":"str[11]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[12].html","module_info":["core"],"name":"str[12]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[13].html","module_info":["core"],"name":"str[13]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[14].html","module_info":["core"],"name":"str[14]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[15].html","module_info":["core"],"name":"str[15]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[16].html","module_info":["core"],"name":"str[16]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[17].html","module_info":["core"],"name":"str[17]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[18].html","module_info":["core"],"name":"str[18]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[19].html","module_info":["core"],"name":"str[19]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[20].html","module_info":["core"],"name":"str[20]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[21].html","module_info":["core"],"name":"str[21]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[22].html","module_info":["core"],"name":"str[22]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[23].html","module_info":["core"],"name":"str[23]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[24].html","module_info":["core"],"name":"str[24]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[25].html","module_info":["core"],"name":"str[25]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[26].html","module_info":["core"],"name":"str[26]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[27].html","module_info":["core"],"name":"str[27]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[28].html","module_info":["core"],"name":"str[28]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[29].html","module_info":["core"],"name":"str[29]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[30].html","module_info":["core"],"name":"str[30]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[31].html","module_info":["core"],"name":"str[31]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[32].html","module_info":["core"],"name":"str[32]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[33].html","module_info":["core"],"name":"str[33]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[34].html","module_info":["core"],"name":"str[34]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[35].html","module_info":["core"],"name":"str[35]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[36].html","module_info":["core"],"name":"str[36]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[37].html","module_info":["core"],"name":"str[37]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[38].html","module_info":["core"],"name":"str[38]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[39].html","module_info":["core"],"name":"str[39]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[40].html","module_info":["core"],"name":"str[40]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[41].html","module_info":["core"],"name":"str[41]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[42].html","module_info":["core"],"name":"str[42]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[43].html","module_info":["core"],"name":"str[43]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[44].html","module_info":["core"],"name":"str[44]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[45].html","module_info":["core"],"name":"str[45]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[46].html","module_info":["core"],"name":"str[46]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[47].html","module_info":["core"],"name":"str[47]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[48].html","module_info":["core"],"name":"str[48]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[49].html","module_info":["core"],"name":"str[49]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[50].html","module_info":["core"],"name":"str[50]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[51].html","module_info":["core"],"name":"str[51]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[52].html","module_info":["core"],"name":"str[52]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[53].html","module_info":["core"],"name":"str[53]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[54].html","module_info":["core"],"name":"str[54]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[55].html","module_info":["core"],"name":"str[55]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[56].html","module_info":["core"],"name":"str[56]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[57].html","module_info":["core"],"name":"str[57]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[58].html","module_info":["core"],"name":"str[58]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[59].html","module_info":["core"],"name":"str[59]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[60].html","module_info":["core"],"name":"str[60]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[61].html","module_info":["core"],"name":"str[61]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[62].html","module_info":["core"],"name":"str[62]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[63].html","module_info":["core"],"name":"str[63]","preview":"fixed-length string","type_name":"primitive"},{"html_filename":"primitive.str[64].html","module_info":["core"],"name":"str[64]","preview":"fixed-length string","type_name":"primitive"}],"redstone":[{"html_filename":"trait.FromBytesConvertible.html","module_info":["redstone","utils","from_bytes_convertible"],"name":"FromBytesConvertible","preview":"","type_name":"trait"},{"html_filename":"trait.FromBytes.html","module_info":["redstone","utils","from_bytes"],"name":"FromBytes","preview":"obtains a value from bytes with the suitable byte size”\n","type_name":"trait"},{"html_filename":"trait.With.html","module_info":["redstone","utils","test_helpers"],"name":"With","preview":"","type_name":"trait"},{"html_filename":"constant.SAMPLE_SIGNER_ADDRESS_0.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_SIGNER_ADDRESS_0","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_SIGNER_ADDRESS_1.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_SIGNER_ADDRESS_1","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_ETH_PRICE_0.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ETH_PRICE_0","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_ETH_PRICE_1.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ETH_PRICE_1","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_BTC_PRICE_0.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_BTC_PRICE_0","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_BTC_PRICE_1.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_BTC_PRICE_1","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_TIMESTAMP.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_TIMESTAMP","preview":"","type_name":"constant"},{"html_filename":"constant.DIFFERENT_TIMESTAMP.html","module_info":["redstone","utils","sample"],"name":"DIFFERENT_TIMESTAMP","preview":"","type_name":"constant"},{"html_filename":"constant.AVAX.html","module_info":["redstone","utils","sample"],"name":"AVAX","preview":"","type_name":"constant"},{"html_filename":"constant.BTC.html","module_info":["redstone","utils","sample"],"name":"BTC","preview":"","type_name":"constant"},{"html_filename":"constant.ETH.html","module_info":["redstone","utils","sample"],"name":"ETH","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_ID_V27.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ID_V27","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_ID_V28.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ID_V28","preview":"","type_name":"constant"},{"html_filename":"constant.SAMPLE_ID_MALLEABILITY.html","module_info":["redstone","utils","sample"],"name":"SAMPLE_ID_MALLEABILITY","preview":"","type_name":"constant"},{"html_filename":"struct.SampleDataPackage.html","module_info":["redstone","utils","sample"],"name":"SampleDataPackage","preview":"","type_name":"struct"},{"html_filename":"struct.SamplePayload.html","module_info":["redstone","utils","sample"],"name":"SamplePayload","preview":"","type_name":"struct"},{"html_filename":"fn.recover_signer_address.html","module_info":["redstone","crypto","recover"],"name":"recover_signer_address","preview":"","type_name":"function"},{"html_filename":"constant.REDSTONE_MARKER.html","module_info":["redstone","protocol","constants"],"name":"REDSTONE_MARKER","preview":"","type_name":"constant"},{"html_filename":"constant.REDSTONE_MARKER_BS.html","module_info":["redstone","protocol","constants"],"name":"REDSTONE_MARKER_BS","preview":"","type_name":"constant"},{"html_filename":"constant.UNSIGNED_METADATA_BYTE_SIZE_BS.html","module_info":["redstone","protocol","constants"],"name":"UNSIGNED_METADATA_BYTE_SIZE_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_PACKAGES_COUNT_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_PACKAGES_COUNT_BS","preview":"","type_name":"constant"},{"html_filename":"constant.SIGNATURE_BS.html","module_info":["redstone","protocol","constants"],"name":"SIGNATURE_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_POINTS_COUNT_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_POINTS_COUNT_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_POINT_VALUE_BYTE_SIZE_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_POINT_VALUE_BYTE_SIZE_BS","preview":"","type_name":"constant"},{"html_filename":"constant.TIMESTAMP_BS.html","module_info":["redstone","protocol","constants"],"name":"TIMESTAMP_BS","preview":"","type_name":"constant"},{"html_filename":"constant.DATA_FEED_ID_BS.html","module_info":["redstone","protocol","constants"],"name":"DATA_FEED_ID_BS","preview":"","type_name":"constant"},{"html_filename":"constant.WRONG_REDSTONE_MARKER.html","module_info":["redstone","protocol","constants"],"name":"WRONG_REDSTONE_MARKER","preview":"","type_name":"constant"},{"html_filename":"constant.WRONG_PAYLOAD.html","module_info":["redstone","protocol","constants"],"name":"WRONG_PAYLOAD","preview":"","type_name":"constant"},{"html_filename":"struct.DataPoint.html","module_info":["redstone","protocol","data_point"],"name":"DataPoint","preview":"","type_name":"struct"},{"html_filename":"struct.DataPackage.html","module_info":["redstone","protocol","data_package"],"name":"DataPackage","preview":"","type_name":"struct"},{"html_filename":"fn.make_data_package.html","module_info":["redstone","protocol","data_package"],"name":"make_data_package","preview":"","type_name":"function"},{"html_filename":"struct.Payload.html","module_info":["redstone","protocol","payload"],"name":"Payload","preview":"","type_name":"struct"},{"html_filename":"enum.RedStoneError.html","module_info":["redstone","core","errors"],"name":"RedStoneError","preview":"","type_name":"enum"},{"html_filename":"fn.validate_timestamp.html","module_info":["redstone","core","validation"],"name":"validate_timestamp","preview":"","type_name":"function"},{"html_filename":"struct.Config.html","module_info":["redstone","core","config"],"name":"Config","preview":"Configuration for a RedStone payload processor.\n","type_name":"struct"},{"html_filename":"fn.process_input.html","module_info":["redstone","core","processor"],"name":"process_input","preview":"The main processor of the RedStone payload.
","type_name":"function"},{"html_filename":"primitive.u256.html","module_info":["redstone"],"name":"u256","preview":"256-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u64.html","module_info":["redstone"],"name":"u64","preview":"64-bit unsigned integer","type_name":"primitive"}],"std":[{"html_filename":"constant.ZERO_B256.html","module_info":["std","constants"],"name":"ZERO_B256","preview":"A b256 of zero value.\n","type_name":"constant"},{"html_filename":"constant.ZERO_U256.html","module_info":["std","constants"],"name":"ZERO_U256","preview":"A u256 of zero value.\n","type_name":"constant"},{"html_filename":"constant.DEFAULT_SUB_ID.html","module_info":["std","constants"],"name":"DEFAULT_SUB_ID","preview":"The default Sub Id for assets.\n","type_name":"constant"},{"html_filename":"constant.FAILED_REQUIRE_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_REQUIRE_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::revert::require.","type_name":"constant"},{"html_filename":"constant.FAILED_TRANSFER_TO_ADDRESS_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_TRANSFER_TO_ADDRESS_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.","type_name":"constant"},{"html_filename":"constant.FAILED_ASSERT_EQ_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_ASSERT_EQ_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.","type_name":"constant"},{"html_filename":"constant.FAILED_ASSERT_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_ASSERT_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::assert::assert.","type_name":"constant"},{"html_filename":"constant.FAILED_ASSERT_NE_SIGNAL.html","module_info":["std","error_signals"],"name":"FAILED_ASSERT_NE_SIGNAL","preview":"A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.","type_name":"constant"},{"html_filename":"fn.log.html","module_info":["std","logging"],"name":"log","preview":"Log any stack type.\n","type_name":"function"},{"html_filename":"fn.revert.html","module_info":["std","revert"],"name":"revert","preview":"Will either panic or revert with a given number depending on the context.\n","type_name":"function"},{"html_filename":"fn.require.html","module_info":["std","revert"],"name":"require","preview":"Checks if the given condition is true and if not, logs value and reverts.","type_name":"function"},{"html_filename":"enum.Result.html","module_info":["std","result"],"name":"Result","preview":"Result is a type that represents either success (Ok) or failure (Err).","type_name":"enum"},{"html_filename":"enum.Option.html","module_info":["std","option"],"name":"Option","preview":"A type that represents an optional value, either Some(val) or None.","type_name":"enum"},{"html_filename":"fn.assert.html","module_info":["std","assert"],"name":"assert","preview":"Asserts that the given condition will always be true during runtime.","type_name":"function"},{"html_filename":"fn.assert_eq.html","module_info":["std","assert"],"name":"assert_eq","preview":"Asserts that the given values v1 & v2 will always be equal during runtime.","type_name":"function"},{"html_filename":"fn.assert_ne.html","module_info":["std","assert"],"name":"assert_ne","preview":"Asserts that the given values v1 & v2 will never be equal during runtime.","type_name":"function"},{"html_filename":"trait.From.html","module_info":["std","convert"],"name":"From","preview":"Used to do value-to-value conversions.\n","type_name":"trait"},{"html_filename":"trait.Into.html","module_info":["std","convert"],"name":"Into","preview":"Used to do value-to-value conversions.\n","type_name":"trait"},{"html_filename":"trait.TryFrom.html","module_info":["std","convert"],"name":"TryFrom","preview":"Used to attempt to do value-to-value conversions.
","type_name":"trait"},{"html_filename":"trait.TryInto.html","module_info":["std","convert"],"name":"TryInto","preview":"","type_name":"trait"},{"html_filename":"fn.is_reference_type.html","module_info":["std","intrinsics"],"name":"is_reference_type","preview":"Returns whether a generic type T is a reference type or not.\n","type_name":"function"},{"html_filename":"fn.size_of.html","module_info":["std","intrinsics"],"name":"size_of","preview":"Returns the size of a generic type T in bytes.\n","type_name":"function"},{"html_filename":"fn.size_of_val.html","module_info":["std","intrinsics"],"name":"size_of_val","preview":"Returns the size of the type of a value in bytes.\n","type_name":"function"},{"html_filename":"fn.alloc.html","module_info":["std","alloc"],"name":"alloc","preview":"Allocates zeroed memory on the heap.\n","type_name":"function"},{"html_filename":"fn.realloc.html","module_info":["std","alloc"],"name":"realloc","preview":"Reallocates the given area of memory.\n","type_name":"function"},{"html_filename":"fn.alloc_bytes.html","module_info":["std","alloc"],"name":"alloc_bytes","preview":"Allocates zeroed memory on the heap in individual bytes.\n","type_name":"function"},{"html_filename":"fn.realloc_bytes.html","module_info":["std","alloc"],"name":"realloc_bytes","preview":"Reallocates the given area of memory in individual bytes.\n","type_name":"function"},{"html_filename":"fn.overflow.html","module_info":["std","registers"],"name":"overflow","preview":"Contains overflow & underflow of addition, subtraction, and multiplication.\n","type_name":"function"},{"html_filename":"fn.program_counter.html","module_info":["std","registers"],"name":"program_counter","preview":"The program counter. Memory address of the current instruction.\n","type_name":"function"},{"html_filename":"fn.stack_start_ptr.html","module_info":["std","registers"],"name":"stack_start_ptr","preview":"Memory address of bottom of current writable stack area.\n","type_name":"function"},{"html_filename":"fn.stack_ptr.html","module_info":["std","registers"],"name":"stack_ptr","preview":"Memory address on top of current writable stack area (points to free memory).\n","type_name":"function"},{"html_filename":"fn.frame_ptr.html","module_info":["std","registers"],"name":"frame_ptr","preview":"Memory address of beginning of current call frame.\n","type_name":"function"},{"html_filename":"fn.heap_ptr.html","module_info":["std","registers"],"name":"heap_ptr","preview":"Memory address below the current bottom of the heap (points to free memory).\n","type_name":"function"},{"html_filename":"fn.error.html","module_info":["std","registers"],"name":"error","preview":"Error codes for particular operations.\n","type_name":"function"},{"html_filename":"fn.global_gas.html","module_info":["std","registers"],"name":"global_gas","preview":"Remaining gas globally.\n","type_name":"function"},{"html_filename":"fn.context_gas.html","module_info":["std","registers"],"name":"context_gas","preview":"Remaining gas in the context.\n","type_name":"function"},{"html_filename":"fn.balance.html","module_info":["std","registers"],"name":"balance","preview":"Get the amount of units of call_frames::msg_asset_id() being sent.\n","type_name":"function"},{"html_filename":"fn.instrs_start.html","module_info":["std","registers"],"name":"instrs_start","preview":"Pointer to the start of the currently-executing code.\n","type_name":"function"},{"html_filename":"fn.return_value.html","module_info":["std","registers"],"name":"return_value","preview":"Return value or pointer.\n","type_name":"function"},{"html_filename":"fn.return_length.html","module_info":["std","registers"],"name":"return_length","preview":"Return value length in bytes.\n","type_name":"function"},{"html_filename":"fn.flags.html","module_info":["std","registers"],"name":"flags","preview":"Flags register.\n","type_name":"function"},{"html_filename":"trait.Iterator.html","module_info":["std","iterator"],"name":"Iterator","preview":"","type_name":"trait"},{"html_filename":"struct.Vec.html","module_info":["std","vec"],"name":"Vec","preview":"A contiguous growable array type, written as Vec<T>, short for ‘vector’. It has ownership over its buffer.","type_name":"struct"},{"html_filename":"struct.VecIter.html","module_info":["std","vec"],"name":"VecIter","preview":"","type_name":"struct"},{"html_filename":"trait.Clone.html","module_info":["std","clone"],"name":"Clone","preview":"A common trait for the ability to explicitly duplicate an object.\n","type_name":"trait"},{"html_filename":"struct.Bytes.html","module_info":["std","bytes"],"name":"Bytes","preview":"A type used to represent raw bytes. It has ownership over its buffer.\n","type_name":"struct"},{"html_filename":"constant.F_WRAPPING_DISABLE_MASK.html","module_info":["std","flags"],"name":"F_WRAPPING_DISABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"constant.F_WRAPPING_ENABLE_MASK.html","module_info":["std","flags"],"name":"F_WRAPPING_ENABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"constant.F_UNSAFEMATH_DISABLE_MASK.html","module_info":["std","flags"],"name":"F_UNSAFEMATH_DISABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"constant.F_UNSAFEMATH_ENABLE_MASK.html","module_info":["std","flags"],"name":"F_UNSAFEMATH_ENABLE_MASK","preview":"","type_name":"constant"},{"html_filename":"fn.set_flags.html","module_info":["std","flags"],"name":"set_flags","preview":"Sets the flag register to the given value.\n","type_name":"function"},{"html_filename":"fn.disable_panic_on_overflow.html","module_info":["std","flags"],"name":"disable_panic_on_overflow","preview":"Allows overflowing operations to occur without a FuelVM panic.\n","type_name":"function"},{"html_filename":"fn.enable_panic_on_overflow.html","module_info":["std","flags"],"name":"enable_panic_on_overflow","preview":"Enables the default panic-on-overflow behavior in the FuelVM.\n","type_name":"function"},{"html_filename":"fn.disable_panic_on_unsafe_math.html","module_info":["std","flags"],"name":"disable_panic_on_unsafe_math","preview":"Allows unsafe math operations to occur without a FuelVM panic.
","type_name":"function"},{"html_filename":"fn.enable_panic_on_unsafe_math.html","module_info":["std","flags"],"name":"enable_panic_on_unsafe_math","preview":"Enables the default panic-on-unsafe-math behavior in the FuelVM.\n","type_name":"function"},{"html_filename":"fn.panic_on_overflow_enabled.html","module_info":["std","flags"],"name":"panic_on_overflow_enabled","preview":"Checks if the panic-on-overflow flag is set in the FuelVM.\n","type_name":"function"},{"html_filename":"fn.panic_on_unsafe_math_enabled.html","module_info":["std","flags"],"name":"panic_on_unsafe_math_enabled","preview":"Checks if the panic-on-unsafe-math flag is set in the FuelVM.\n","type_name":"function"},{"html_filename":"trait.Root.html","module_info":["std","math"],"name":"Root","preview":"Calculates the square root.\n","type_name":"trait"},{"html_filename":"trait.Power.html","module_info":["std","math"],"name":"Power","preview":"Calculates a number to a given power.\n","type_name":"trait"},{"html_filename":"trait.Exponent.html","module_info":["std","math"],"name":"Exponent","preview":"Trait for exponential functions.
","type_name":"trait"},{"html_filename":"trait.Logarithm.html","module_info":["std","math"],"name":"Logarithm","preview":"Calculates the log with a given base.\n","type_name":"trait"},{"html_filename":"trait.BinaryLogarithm.html","module_info":["std","math"],"name":"BinaryLogarithm","preview":"Calculates the binary log.\n","type_name":"trait"},{"html_filename":"struct.U128.html","module_info":["std","u128"],"name":"U128","preview":"The 128-bit unsigned integer type.\n","type_name":"struct"},{"html_filename":"enum.U128Error.html","module_info":["std","u128"],"name":"U128Error","preview":"The error type used for U128 type errors.\n","type_name":"enum"},{"html_filename":"struct.B512.html","module_info":["std","b512"],"name":"B512","preview":"Stores two b256s in contiguous memory.
","type_name":"struct"},{"html_filename":"struct.Hasher.html","module_info":["std","hash"],"name":"Hasher","preview":"","type_name":"struct"},{"html_filename":"trait.Hash.html","module_info":["std","hash"],"name":"Hash","preview":"","type_name":"trait"},{"html_filename":"fn.sha256.html","module_info":["std","hash"],"name":"sha256","preview":"Returns the SHA-2-256 hash of param.\n","type_name":"function"},{"html_filename":"fn.sha256_str_array.html","module_info":["std","hash"],"name":"sha256_str_array","preview":"Returns the SHA-2-256 hash of param.
","type_name":"function"},{"html_filename":"fn.keccak256.html","module_info":["std","hash"],"name":"keccak256","preview":"Returns the KECCAK-256 hash of param.\n","type_name":"function"},{"html_filename":"struct.ContractId.html","module_info":["std","contract_id"],"name":"ContractId","preview":"The ContractId type, a struct wrapper around the inner b256 value.\n","type_name":"struct"},{"html_filename":"struct.AssetId.html","module_info":["std","asset_id"],"name":"AssetId","preview":"An AssetId is used for interacting with an asset on the network.\n","type_name":"struct"},{"html_filename":"fn.run_external.html","module_info":["std","execution"],"name":"run_external","preview":"Load and run the contract with the provided ContractId.\n","type_name":"function"},{"html_filename":"fn.msg_asset_id.html","module_info":["std","call_frames"],"name":"msg_asset_id","preview":"Get the asset_id of coins being sent from the current call frame.\n","type_name":"function"},{"html_filename":"fn.code_size.html","module_info":["std","call_frames"],"name":"code_size","preview":"Get the code size in bytes (padded to word alignment) from the current call frame.\n","type_name":"function"},{"html_filename":"fn.first_param.html","module_info":["std","call_frames"],"name":"first_param","preview":"Get the first parameter from the current call frame.\n","type_name":"function"},{"html_filename":"fn.second_param.html","module_info":["std","call_frames"],"name":"second_param","preview":"Get the second parameter from the current call frame.\n","type_name":"function"},{"html_filename":"fn.called_method.html","module_info":["std","call_frames"],"name":"called_method","preview":"Get the called method name from the current call frame.\n","type_name":"function"},{"html_filename":"fn.called_args.html","module_info":["std","call_frames"],"name":"called_args","preview":"Get the called arguments from the current call frame.\n","type_name":"function"},{"html_filename":"fn.get_previous_frame_pointer.html","module_info":["std","call_frames"],"name":"get_previous_frame_pointer","preview":"Get a pointer to the previous (relative to the frame_pointer parameter) call frame using offsets from a pointer.","type_name":"function"},{"html_filename":"fn.get_contract_id_from_call_frame.html","module_info":["std","call_frames"],"name":"get_contract_id_from_call_frame","preview":"Get the value of ContractId from any call frame on the stack.\n","type_name":"function"},{"html_filename":"fn.balance_of.html","module_info":["std","context"],"name":"balance_of","preview":"Get the balance of coin asset_id for the contract at ‘target’.\n","type_name":"function"},{"html_filename":"fn.this_balance.html","module_info":["std","context"],"name":"this_balance","preview":"Get the balance of coin asset_id for the current contract.\n","type_name":"function"},{"html_filename":"fn.msg_amount.html","module_info":["std","context"],"name":"msg_amount","preview":"Get the amount of units of call_frames::msg_asset_id() being sent.\n","type_name":"function"},{"html_filename":"fn.bytecode_root.html","module_info":["std","external"],"name":"bytecode_root","preview":"Get the root of the bytecode of the contract at ‘contract_id’.\n","type_name":"function"},{"html_filename":"constant.GTF_TYPE.html","module_info":["std","tx"],"name":"GTF_TYPE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_GAS_LIMIT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_GAS_LIMIT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT_LENGTH.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT_DATA_LENGTH.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_INPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_INPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_OUTPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_OUTPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_WITNESSES_COUNT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_WITNESSES_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_SCRIPT_DATA.html","module_info":["std","tx"],"name":"GTF_SCRIPT_SCRIPT_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_INPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_SCRIPT_INPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_OUTPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_SCRIPT_OUTPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_SCRIPT_WITNESS_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_SCRIPT_WITNESS_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_TX_LENGTH.html","module_info":["std","tx"],"name":"GTF_TX_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_INPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_CREATE_INPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_OUTPUTS_COUNT.html","module_info":["std","tx"],"name":"GTF_CREATE_OUTPUTS_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_WITNESSES_COUNT.html","module_info":["std","tx"],"name":"GTF_CREATE_WITNESSES_COUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_INPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_CREATE_INPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_OUTPUT_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_CREATE_OUTPUT_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_CREATE_WITNESS_AT_INDEX.html","module_info":["std","tx"],"name":"GTF_CREATE_WITNESS_AT_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_WITNESS_DATA_LENGTH.html","module_info":["std","tx"],"name":"GTF_WITNESS_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_WITNESS_DATA.html","module_info":["std","tx"],"name":"GTF_WITNESS_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_TYPES.html","module_info":["std","tx"],"name":"GTF_POLICY_TYPES","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_TIP.html","module_info":["std","tx"],"name":"GTF_POLICY_TIP","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_WITNESS_LIMIT.html","module_info":["std","tx"],"name":"GTF_POLICY_WITNESS_LIMIT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_MATURITY.html","module_info":["std","tx"],"name":"GTF_POLICY_MATURITY","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_POLICY_MAX_FEE.html","module_info":["std","tx"],"name":"GTF_POLICY_MAX_FEE","preview":"","type_name":"constant"},{"html_filename":"enum.Transaction.html","module_info":["std","tx"],"name":"Transaction","preview":"A transaction type.\n","type_name":"enum"},{"html_filename":"fn.tx_type.html","module_info":["std","tx"],"name":"tx_type","preview":"Get the type of the current transaction.\n","type_name":"function"},{"html_filename":"fn.tx_tip.html","module_info":["std","tx"],"name":"tx_tip","preview":"Get the tip for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.script_gas_limit.html","module_info":["std","tx"],"name":"script_gas_limit","preview":"Get the script gas limit for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_maturity.html","module_info":["std","tx"],"name":"tx_maturity","preview":"Get the maturity for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.tx_witness_limit.html","module_info":["std","tx"],"name":"tx_witness_limit","preview":"Get the witness limit for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.tx_max_fee.html","module_info":["std","tx"],"name":"tx_max_fee","preview":"Get the max fee for the transaction, if it is set.\n","type_name":"function"},{"html_filename":"fn.tx_script_length.html","module_info":["std","tx"],"name":"tx_script_length","preview":"Get the length of the script for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_script_data_length.html","module_info":["std","tx"],"name":"tx_script_data_length","preview":"Get the script data length for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_witnesses_count.html","module_info":["std","tx"],"name":"tx_witnesses_count","preview":"Get the transaction witnesses count for the transaction.\n","type_name":"function"},{"html_filename":"fn.tx_witness_data_length.html","module_info":["std","tx"],"name":"tx_witness_data_length","preview":"Get the length of the witness data at index.\n","type_name":"function"},{"html_filename":"fn.tx_witness_data.html","module_info":["std","tx"],"name":"tx_witness_data","preview":"Get the witness data at index.\n","type_name":"function"},{"html_filename":"fn.tx_script_data.html","module_info":["std","tx"],"name":"tx_script_data","preview":"Get the script data, typed.\n","type_name":"function"},{"html_filename":"fn.tx_script_bytecode.html","module_info":["std","tx"],"name":"tx_script_bytecode","preview":"Get the script bytecode.\n","type_name":"function"},{"html_filename":"fn.tx_script_bytecode_hash.html","module_info":["std","tx"],"name":"tx_script_bytecode_hash","preview":"Get the hash of the script bytecode.\n","type_name":"function"},{"html_filename":"fn.tx_id.html","module_info":["std","tx"],"name":"tx_id","preview":"Get the Transaction ID of the current transaction.\n","type_name":"function"},{"html_filename":"struct.Address.html","module_info":["std","address"],"name":"Address","preview":"The Address type, a struct wrapper around the inner b256 value.\n","type_name":"struct"},{"html_filename":"constant.GTF_OUTPUT_TYPE.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_TYPE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_OUTPUT_COIN_TO.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_COIN_TO","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_OUTPUT_COIN_AMOUNT.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_COIN_AMOUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_OUTPUT_COIN_ASSET_ID.html","module_info":["std","outputs"],"name":"GTF_OUTPUT_COIN_ASSET_ID","preview":"","type_name":"constant"},{"html_filename":"enum.Output.html","module_info":["std","outputs"],"name":"Output","preview":"The output type for a transaction.\n","type_name":"enum"},{"html_filename":"fn.output_count.html","module_info":["std","outputs"],"name":"output_count","preview":"Get the transaction outputs count for either tx_type
","type_name":"function"},{"html_filename":"fn.output_type.html","module_info":["std","outputs"],"name":"output_type","preview":"Get the type of an output at index.\n","type_name":"function"},{"html_filename":"fn.output_amount.html","module_info":["std","outputs"],"name":"output_amount","preview":"The amount of coins to send to the output at index.\n","type_name":"function"},{"html_filename":"fn.output_asset_id.html","module_info":["std","outputs"],"name":"output_asset_id","preview":"Gets the AssetId of the output.\n","type_name":"function"},{"html_filename":"fn.output_asset_to.html","module_info":["std","outputs"],"name":"output_asset_to","preview":"Returns the receiver of the output.\n","type_name":"function"},{"html_filename":"enum.Identity.html","module_info":["std","identity"],"name":"Identity","preview":"The Identity type: either an Address or a ContractId.\n","type_name":"enum"},{"html_filename":"enum.EcRecoverError.html","module_info":["std","ecr"],"name":"EcRecoverError","preview":"The error type used when the ec_recover function fails.\n","type_name":"enum"},{"html_filename":"fn.ec_recover.html","module_info":["std","ecr"],"name":"ec_recover","preview":"Recover the public key derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"fn.ec_recover_r1.html","module_info":["std","ecr"],"name":"ec_recover_r1","preview":"Recover the public key derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"fn.ed_verify.html","module_info":["std","ecr"],"name":"ed_verify","preview":"Verifies that a public key derived from the private key was used to sign a message.
","type_name":"function"},{"html_filename":"fn.ec_recover_address.html","module_info":["std","ecr"],"name":"ec_recover_address","preview":"Recover the address derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"fn.ec_recover_address_r1.html","module_info":["std","ecr"],"name":"ec_recover_address_r1","preview":"Recover the address derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"struct.EvmAddress.html","module_info":["std","vm","evm","evm_address"],"name":"EvmAddress","preview":"The EvmAddress type, a struct wrapper around the inner b256 value.\n","type_name":"struct"},{"html_filename":"fn.ec_recover_evm_address.html","module_info":["std","vm","evm","ecr"],"name":"ec_recover_evm_address","preview":"Recover the EVM address derived from the private key used to sign a message.
","type_name":"function"},{"html_filename":"struct.String.html","module_info":["std","string"],"name":"String","preview":"A UTF-8 encoded growable string. It has ownership over its buffer.\n","type_name":"struct"},{"html_filename":"fn.write.html","module_info":["std","storage","storage_api"],"name":"write","preview":"Stores a stack value in storage. Will not work for heap values.\n","type_name":"function"},{"html_filename":"fn.read.html","module_info":["std","storage","storage_api"],"name":"read","preview":"Reads a value of type T starting at the location specified by slot and offset. If the
","type_name":"function"},{"html_filename":"fn.clear.html","module_info":["std","storage","storage_api"],"name":"clear","preview":"Clear a value starting at some slot with an offset.\n","type_name":"function"},{"html_filename":"fn.write_slice.html","module_info":["std","storage","storable_slice"],"name":"write_slice","preview":"Store a raw_slice from the heap into storage.\n","type_name":"function"},{"html_filename":"fn.read_slice.html","module_info":["std","storage","storable_slice"],"name":"read_slice","preview":"Load a raw_slice from storage.\n","type_name":"function"},{"html_filename":"fn.clear_slice.html","module_info":["std","storage","storable_slice"],"name":"clear_slice","preview":"Clear a sequence of storage slots starting at a some key.\n","type_name":"function"},{"html_filename":"trait.StorableSlice.html","module_info":["std","storage","storable_slice"],"name":"StorableSlice","preview":"A general way to persistently store heap types.\n","type_name":"trait"},{"html_filename":"enum.StorageMapError.html","module_info":["std","storage","storage_map"],"name":"StorageMapError","preview":"Errors pertaining to the StorageMap struct.\n","type_name":"enum"},{"html_filename":"struct.StorageMap.html","module_info":["std","storage","storage_map"],"name":"StorageMap","preview":"A persistent key-value pair mapping struct.\n","type_name":"struct"},{"html_filename":"struct.StorageVec.html","module_info":["std","storage","storage_vec"],"name":"StorageVec","preview":"A persistent vector struct.\n","type_name":"struct"},{"html_filename":"struct.StorageBytes.html","module_info":["std","storage","storage_bytes"],"name":"StorageBytes","preview":"A persistent storage type to store a collection of tightly packed bytes.\n","type_name":"struct"},{"html_filename":"struct.StorageString.html","module_info":["std","storage","storage_string"],"name":"StorageString","preview":"","type_name":"struct"},{"html_filename":"enum.BlockHashError.html","module_info":["std","block"],"name":"BlockHashError","preview":"Error type for when the block hash cannot be found.\n","type_name":"enum"},{"html_filename":"fn.height.html","module_info":["std","block"],"name":"height","preview":"Get the current block height.\n","type_name":"function"},{"html_filename":"fn.timestamp_of_block.html","module_info":["std","block"],"name":"timestamp_of_block","preview":"Get the TAI64 timestamp of a block at a given block_height.\n","type_name":"function"},{"html_filename":"fn.timestamp.html","module_info":["std","block"],"name":"timestamp","preview":"Get the TAI64 timestamp of the current block.\n","type_name":"function"},{"html_filename":"fn.block_header_hash.html","module_info":["std","block"],"name":"block_header_hash","preview":"Get the header hash of the block at height block_height\n","type_name":"function"},{"html_filename":"constant.GTF_INPUT_TYPE.html","module_info":["std","inputs"],"name":"GTF_INPUT_TYPE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_OWNER.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_OWNER","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_AMOUNT.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_AMOUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_ASSET_ID.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_ASSET_ID","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_WITNESS_INDEX.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_WITNESS_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE_DATA_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_COIN_PREDICATE_DATA.html","module_info":["std","inputs"],"name":"GTF_INPUT_COIN_PREDICATE_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_SENDER.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_SENDER","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_RECIPIENT.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_RECIPIENT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_AMOUNT.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_AMOUNT","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_NONCE.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_NONCE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_WITNESS_INDEX.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_WITNESS_INDEX","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_DATA_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_DATA.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_DATA","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE","preview":"","type_name":"constant"},{"html_filename":"constant.GTF_INPUT_MESSAGE_PREDICATE_DATA.html","module_info":["std","inputs"],"name":"GTF_INPUT_MESSAGE_PREDICATE_DATA","preview":"","type_name":"constant"},{"html_filename":"enum.Input.html","module_info":["std","inputs"],"name":"Input","preview":"The input type for a transaction.\n","type_name":"enum"},{"html_filename":"fn.input_count.html","module_info":["std","inputs"],"name":"input_count","preview":"Gets the transaction inputs count.\n","type_name":"function"},{"html_filename":"fn.input_type.html","module_info":["std","inputs"],"name":"input_type","preview":"Gets the type of the input at index.\n","type_name":"function"},{"html_filename":"fn.input_amount.html","module_info":["std","inputs"],"name":"input_amount","preview":"Gets amount field from input at index.\n","type_name":"function"},{"html_filename":"fn.input_coin_owner.html","module_info":["std","inputs"],"name":"input_coin_owner","preview":"Gets owner field from input at index if it’s a coin.\n","type_name":"function"},{"html_filename":"fn.input_predicate_data.html","module_info":["std","inputs"],"name":"input_predicate_data","preview":"Gets the predicate data from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_asset_id.html","module_info":["std","inputs"],"name":"input_asset_id","preview":"Gets the AssetId of the input at index.\n","type_name":"function"},{"html_filename":"fn.input_witness_index.html","module_info":["std","inputs"],"name":"input_witness_index","preview":"Gets the witness index from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate_length.html","module_info":["std","inputs"],"name":"input_predicate_length","preview":"Gets the predicate length from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate.html","module_info":["std","inputs"],"name":"input_predicate","preview":"Gets the predicate from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_predicate_data_length.html","module_info":["std","inputs"],"name":"input_predicate_data_length","preview":"Gets the predicate data length from the input at index.\n","type_name":"function"},{"html_filename":"fn.input_message_sender.html","module_info":["std","inputs"],"name":"input_message_sender","preview":"Gets the sender of the input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_recipient.html","module_info":["std","inputs"],"name":"input_message_recipient","preview":"Gets the recipient of the input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_nonce.html","module_info":["std","inputs"],"name":"input_message_nonce","preview":"Gets the nonce of input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_data_length.html","module_info":["std","inputs"],"name":"input_message_data_length","preview":"Gets the length of the input message at index.\n","type_name":"function"},{"html_filename":"fn.input_message_data.html","module_info":["std","inputs"],"name":"input_message_data","preview":"Gets the data of the input message at index.\n","type_name":"function"},{"html_filename":"enum.AuthError.html","module_info":["std","auth"],"name":"AuthError","preview":"The error type used when an Identity cannot be determined.\n","type_name":"enum"},{"html_filename":"fn.caller_is_external.html","module_info":["std","auth"],"name":"caller_is_external","preview":"Returns true if the caller is external (i.e. a script).
","type_name":"function"},{"html_filename":"fn.caller_contract_id.html","module_info":["std","auth"],"name":"caller_contract_id","preview":"If the caller is internal, returns the contract ID of the caller.\n","type_name":"function"},{"html_filename":"fn.caller_address.html","module_info":["std","auth"],"name":"caller_address","preview":"Get the owner of the inputs (of type Input::Coin or Input::Message) to a
","type_name":"function"},{"html_filename":"fn.msg_sender.html","module_info":["std","auth"],"name":"msg_sender","preview":"Get the Identity (i.e. Address or ContractId) from which a call was made.
","type_name":"function"},{"html_filename":"fn.caller_addresses.html","module_info":["std","auth"],"name":"caller_addresses","preview":"Get the owners of the inputs (of type Input::Coin or Input::Message) to a
","type_name":"function"},{"html_filename":"fn.predicate_address.html","module_info":["std","auth"],"name":"predicate_address","preview":"Get the current predicate’s address when called in an internal context.\n","type_name":"function"},{"html_filename":"fn.mint.html","module_info":["std","asset"],"name":"mint","preview":"Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.","type_name":"function"},{"html_filename":"fn.transfer.html","module_info":["std","asset"],"name":"transfer","preview":"Transfer amount coins of the type asset_id and send them to to.","type_name":"function"},{"html_filename":"fn.mint_to.html","module_info":["std","asset"],"name":"mint_to","preview":"Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().","type_name":"function"},{"html_filename":"fn.burn.html","module_info":["std","asset"],"name":"burn","preview":"Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.","type_name":"function"},{"html_filename":"fn.send_message.html","module_info":["std","message"],"name":"send_message","preview":"Sends a message msg_data to recipient with a coins amount of the base asset.","type_name":"function"},{"html_filename":"fn.send_typed_message.html","module_info":["std","message"],"name":"send_typed_message","preview":"Sends a message msg_data of type T to recipient with a coins amount of the base asset.","type_name":"function"},{"html_filename":"struct.CallParams.html","module_info":["std","low_level_call"],"name":"CallParams","preview":"A struct representing the call parameters of a function call.\n","type_name":"struct"},{"html_filename":"fn.call_with_function_selector.html","module_info":["std","low_level_call"],"name":"call_with_function_selector","preview":"Call a target contract with a function selector and calldata, provided as Bytes.","type_name":"function"},{"html_filename":"primitive.b256.html","module_info":["std"],"name":"b256","preview":"256 bits (32 bytes), i.e. a hash","type_name":"primitive"},{"html_filename":"primitive.u256.html","module_info":["std"],"name":"u256","preview":"256-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u64.html","module_info":["std"],"name":"u64","preview":"64-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u32.html","module_info":["std"],"name":"u32","preview":"32-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u16.html","module_info":["std"],"name":"u16","preview":"16-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.u8.html","module_info":["std"],"name":"u8","preview":"8-bit unsigned integer","type_name":"primitive"},{"html_filename":"primitive.str.html","module_info":["std"],"name":"str","preview":"string slice","type_name":"primitive"},{"html_filename":"primitive.bool.html","module_info":["std"],"name":"bool","preview":"Boolean true or false","type_name":"primitive"}]}; "object"==typeof exports&&"undefined"!=typeof module&&(module.exports=SEARCH_INDEX); \ No newline at end of file diff --git a/static/sway/std/address/index.html b/static/sway/std/address/index.html index cdbe418e..6ba5e6f0 100644 --- a/static/sway/std/address/index.html +++ b/static/sway/std/address/index.html @@ -1,3 +1,3 @@ -address in std - Sway

Module std::address

Expand description

The Address type used for interacting with addresses on the fuel network.

+address in std - Sway

Module std::address

Expand description

The Address type used for interacting with addresses on the fuel network.

Structs

The Address type, a struct wrapper around the inner b256 value.

\ No newline at end of file diff --git a/static/sway/std/address/struct.Address.html b/static/sway/std/address/struct.Address.html index 7404846f..d39f0f4a 100644 --- a/static/sway/std/address/struct.Address.html +++ b/static/sway/std/address/struct.Address.html @@ -1,4 +1,4 @@ -Address in address - Sway
pub struct Address {
+Address in address - Sway
pub struct Address {
     /// The underlying raw `b256` data of the address.
     bits: b256,
 }
Expand description

The Address type, a struct wrapper around the inner b256 value.

diff --git a/static/sway/std/all.html b/static/sway/std/all.html index ac27945e..ea9e3573 100644 --- a/static/sway/std/all.html +++ b/static/sway/std/all.html @@ -1,15 +1,14 @@ -List of all items in this project

List of all items

Structs

The Address type, a struct wrapper around the inner b256 value.

+List of all items in this project

List of all items

Structs

The Address type, a struct wrapper around the inner b256 value.

An AssetId is used for interacting with an asset on the network.

-

Stores two b256s in contiguous memory.

A type used to represent raw bytes.

+

Stores two b256s in contiguous memory.

A type used to represent raw bytes. It has ownership over its buffer.

The ContractId type, a struct wrapper around the inner b256 value.

A struct representing the call parameters of a function call.

A persistent storage type to store a collection of tightly packed bytes.

A persistent key-value pair mapping struct.

A persistent vector struct.

-

A UTF-8 encoded growable string.

+

A UTF-8 encoded growable string. It has ownership over its buffer.

The 128-bit unsigned integer type.

-

A contiguous growable array type, written as Vec<T>, short for ‘vector’.

-

The EvmAddress type, a struct wrapper around the inner b256 value.

+

A contiguous growable array type, written as Vec<T>, short for ‘vector’. It has ownership over its buffer.

The EvmAddress type, a struct wrapper around the inner b256 value.

Enums

The error type used when an Identity cannot be determined.

Error type for when the block hash cannot be found.

The error type used when the ec_recover function fails.

@@ -30,11 +29,11 @@

Constants

The default Sub Id for assets.

A b256 of zero value.

A u256 of zero value.

-

A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.

A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.

A revert with this value signals that it was caused by a failing call to std::assert::assert.

A revert with this value signals that it was caused by a failing call to std::revert::require.

A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.

Functions

Allocates zeroed memory on the heap.

+

A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.

A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.

A revert with this value signals that it was caused by a failing call to std::assert::assert.

A revert with this value signals that it was caused by a failing call to std::revert::require.

A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.

Functions

Allocates zeroed memory on the heap.

Allocates zeroed memory on the heap in individual bytes.

Reallocates the given area of memory.

Reallocates the given area of memory in individual bytes.

-

Asserts that the given condition will always be true during runtime.

Asserts that the given values v1 & v2 will always be equal during runtime.

Asserts that the given values v1 & v2 will never be equal during runtime.

Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.

Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.

Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().

Transfer amount coins of the type asset_id and send them to to.

Get the owner of the inputs (of type Input::Coin or Input::Message) to a

If the caller is internal, returns the contract ID of the caller.

+

Asserts that the given condition will always be true during runtime.

Asserts that the given values v1 & v2 will always be equal during runtime.

Asserts that the given values v1 & v2 will never be equal during runtime.

Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.

Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.

Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().

Transfer amount coins of the type asset_id and send them to to.

Get the owner of the inputs (of type Input::Coin or Input::Message) to a

Get the owners of the inputs (of type Input::Coin or Input::Message) to a

If the caller is internal, returns the contract ID of the caller.

Returns true if the caller is external (i.e. a script).

Get the Identity (i.e. Address or ContractId) from which a call was made.

Get the current predicate’s address when called in an internal context.

Get the header hash of the block at height block_height

Get the current block height.

@@ -55,6 +54,8 @@

Allows overflowing operations to occur without a FuelVM panic.

Allows unsafe math operations to occur without a FuelVM panic.

Enables the default panic-on-overflow behavior in the FuelVM.

Enables the default panic-on-unsafe-math behavior in the FuelVM.

+

Checks if the panic-on-overflow flag is set in the FuelVM.

+

Checks if the panic-on-unsafe-math flag is set in the FuelVM.

Sets the flag register to the given value.

Returns the KECCAK-256 hash of param.

Returns the SHA-2-256 hash of param.

@@ -67,13 +68,10 @@

Gets the nonce of input message at index.

Gets the recipient of the input message at index.

Gets the sender of the input message at index.

-

Gets the pointer of the input at index.

Gets the predicate from the input at index.

Gets the predicate data from the input at index.

Gets the predicate data length from the input at index.

-

Gets the predicate data pointer from the input at index.

Gets the predicate length from the input at index.

-

Gets the predicate pointer from the input at index.

Gets the type of the input at index.

Gets the witness index from the input at index.

Returns whether a generic type T is a reference type or not.

@@ -81,9 +79,9 @@

Returns the size of the type of a value in bytes.

Log any stack type.

Call a target contract with a function selector and calldata, provided as Bytes.

Sends a message msg_data to recipient with a coins amount of the base asset.

Sends a message msg_data of type T to recipient with a coins amount of the base asset.

The amount of coins to send to the output at index.

-

Gets the AssetId of the output if it is a Output::Coin.

-

Returns the receiver of the output if it is a Output::Coin.

-

Get the transaction outputs count for either tx_type

Get a pointer to the output at index

Get the type of an output at index.

+

Gets the AssetId of the output.

+

Returns the receiver of the output.

+

Get the transaction outputs count for either tx_type

Get the type of an output at index.

Get the amount of units of call_frames::msg_asset_id() being sent.

Remaining gas in the context.

Error codes for particular operations.

@@ -109,17 +107,14 @@

Get the maturity for the transaction, if it is set.

Get the max fee for the transaction, if it is set.

Get the script bytecode.

-

Get the hash of the script bytecode.
-Reverts if not a transaction-script.

+

Get the hash of the script bytecode.

Get the script data, typed.

Get the script data length for the transaction.

-

Get the transaction script data start pointer.

Get the length of the script for the transaction.

-

Get the transaction script start pointer.

Get the tip for the transaction, if it is set.

-

Get the type of the current transaction.

Get the witness data at index.

+

Get the type of the current transaction.

+

Get the witness data at index.

Get the length of the witness data at index.

Get the witness limit for the transaction, if it is set.

-

Get a pointer to the witness at index index for the transaction.

Get the transaction witnesses count for the transaction.

Recover the EVM address derived from the private key used to sign a message.

Primitives

256 bits (32 bytes), i.e. a hash
Boolean true or false
string slice
16-bit unsigned integer
256-bit unsigned integer
32-bit unsigned integer
64-bit unsigned integer
8-bit unsigned integer
\ No newline at end of file diff --git a/static/sway/std/alloc/fn.alloc.html b/static/sway/std/alloc/fn.alloc.html index d02bed06..67145501 100644 --- a/static/sway/std/alloc/fn.alloc.html +++ b/static/sway/std/alloc/fn.alloc.html @@ -1,4 +1,4 @@ -alloc in alloc - Sway

Function std::alloc::alloc

pub fn alloc<T>(count: u64) -> raw_ptr 
Expand description

Allocates zeroed memory on the heap.

+alloc in alloc - Sway

Function std::alloc::alloc

pub fn alloc<T>(count: u64) -> raw_ptr 
Expand description

Allocates zeroed memory on the heap.

Additional Information

In the FuelVM, the heap begins at VM_MAX_RAM and grows downward.
The heap pointer($hp) always points to the first allocated byte.

diff --git a/static/sway/std/alloc/fn.alloc_bytes.html b/static/sway/std/alloc/fn.alloc_bytes.html index a47657ee..23ec3a1d 100644 --- a/static/sway/std/alloc/fn.alloc_bytes.html +++ b/static/sway/std/alloc/fn.alloc_bytes.html @@ -1,4 +1,4 @@ -alloc_bytes in alloc - Sway

Function std::alloc::alloc_bytes

pub fn alloc_bytes(count: u64) -> raw_ptr 
Expand description

Allocates zeroed memory on the heap in individual bytes.

+alloc_bytes in alloc - Sway

Function std::alloc::alloc_bytes

pub fn alloc_bytes(count: u64) -> raw_ptr 
Expand description

Allocates zeroed memory on the heap in individual bytes.

Arguments

  • count: [u64] - The number of bytes to allocate onto the heap.
  • diff --git a/static/sway/std/alloc/fn.realloc.html b/static/sway/std/alloc/fn.realloc.html index 1e3e178f..73545434 100644 --- a/static/sway/std/alloc/fn.realloc.html +++ b/static/sway/std/alloc/fn.realloc.html @@ -1,4 +1,4 @@ -realloc in alloc - Sway

    Function std::alloc::realloc

    pub fn realloc<T>(ptr: raw_ptr, count: u64, new_count: u64) -> raw_ptr 
    Expand description

    Reallocates the given area of memory.

    +realloc in alloc - Sway

    Function std::alloc::realloc

    pub fn realloc<T>(ptr: raw_ptr, count: u64, new_count: u64) -> raw_ptr 
    Expand description

    Reallocates the given area of memory.

    Arguments

    • ptr: [raw_ptr] - The pointer to the area of memory to reallocate.
    • diff --git a/static/sway/std/alloc/fn.realloc_bytes.html b/static/sway/std/alloc/fn.realloc_bytes.html index 80fd1b48..49886895 100644 --- a/static/sway/std/alloc/fn.realloc_bytes.html +++ b/static/sway/std/alloc/fn.realloc_bytes.html @@ -1,4 +1,4 @@ -realloc_bytes in alloc - Sway
      pub fn realloc_bytes(ptr: raw_ptr, count: u64, new_count: u64) -> raw_ptr 
      Expand description

      Reallocates the given area of memory in individual bytes.

      +realloc_bytes in alloc - Sway
      pub fn realloc_bytes(ptr: raw_ptr, count: u64, new_count: u64) -> raw_ptr 
      Expand description

      Reallocates the given area of memory in individual bytes.

      Arguments

      • ptr: [raw_ptr] - The pointer to the area of memory to reallocate.
      • diff --git a/static/sway/std/alloc/index.html b/static/sway/std/alloc/index.html index fbda82ce..c4e973c7 100644 --- a/static/sway/std/alloc/index.html +++ b/static/sway/std/alloc/index.html @@ -1,4 +1,4 @@ -alloc in std - Sway

        Module std::alloc

        Expand description

        A library for allocating memory inspired by Rust’s std::alloc.

        +alloc in std - Sway

        Module std::alloc

        Expand description

        A library for allocating memory inspired by Rust’s std::alloc.

        Functions

        Allocates zeroed memory on the heap.

        Allocates zeroed memory on the heap in individual bytes.

        Reallocates the given area of memory.

        diff --git a/static/sway/std/assert/fn.assert.html b/static/sway/std/assert/fn.assert.html index 409e3166..a8b3fa1e 100644 --- a/static/sway/std/assert/fn.assert.html +++ b/static/sway/std/assert/fn.assert.html @@ -1,4 +1,4 @@ -assert in assert - Sway

        Function std::assert::assert

        pub fn assert(condition: bool) 
        Expand description

        Asserts that the given condition will always be true during runtime.

        +assert in assert - Sway

        Function std::assert::assert

        pub fn assert(condition: bool) 
        Expand description

        Asserts that the given condition will always be true during runtime.

        Additional Information

        To check for conditions that may not be true, use std::revert::require instead.
        For more information, see the Wiki article on Assertion.

        diff --git a/static/sway/std/assert/fn.assert_eq.html b/static/sway/std/assert/fn.assert_eq.html index 70721414..6c7ffe0c 100644 --- a/static/sway/std/assert/fn.assert_eq.html +++ b/static/sway/std/assert/fn.assert_eq.html @@ -1,4 +1,4 @@ -assert_eq in assert - Sway

        Function std::assert::assert_eq

        pub fn assert_eq<T>(v1: T, v2: T)
        +assert_eq in assert - Sway

        Function std::assert::assert_eq

        pub fn assert_eq<T>(v1: T, v2: T)
         where
             T: Eq,
         
        Expand description

        Asserts that the given values v1 & v2 will always be equal during runtime.

        diff --git a/static/sway/std/assert/fn.assert_ne.html b/static/sway/std/assert/fn.assert_ne.html index fc7abe0d..101e7231 100644 --- a/static/sway/std/assert/fn.assert_ne.html +++ b/static/sway/std/assert/fn.assert_ne.html @@ -1,4 +1,4 @@ -assert_ne in assert - Sway

        Function std::assert::assert_ne

        pub fn assert_ne<T>(v1: T, v2: T)
        +assert_ne in assert - Sway

        Function std::assert::assert_ne

        pub fn assert_ne<T>(v1: T, v2: T)
         where
             T: Eq,
         
        Expand description

        Asserts that the given values v1 & v2 will never be equal during runtime.

        diff --git a/static/sway/std/assert/index.html b/static/sway/std/assert/index.html index 2cd620d2..2895542f 100644 --- a/static/sway/std/assert/index.html +++ b/static/sway/std/assert/index.html @@ -1,2 +1,2 @@ -assert in std - Sway

        Module std::assert

        Expand description

        Functions to assert a given condition.

        +assert in std - Sway

        Module std::assert

        Expand description

        Functions to assert a given condition.

        Functions

        Asserts that the given condition will always be true during runtime.

        Asserts that the given values v1 & v2 will always be equal during runtime.

        Asserts that the given values v1 & v2 will never be equal during runtime.

        \ No newline at end of file diff --git a/static/sway/std/asset/fn.burn.html b/static/sway/std/asset/fn.burn.html index c3b8abc8..f3b20761 100644 --- a/static/sway/std/asset/fn.burn.html +++ b/static/sway/std/asset/fn.burn.html @@ -1,4 +1,4 @@ -burn in asset - Sway

        Function std::asset::burn

        pub fn burn(sub_id: SubId, amount: u64) 
        Expand description

        Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.

        +burn in asset - Sway

        Function std::asset::burn

        pub fn burn(sub_id: SubId, amount: u64) 
        Expand description

        Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.

        Additional Information

        To burn coins, they must be sent or owned by the contract in the transaction this function is called.

        Arguments

        diff --git a/static/sway/std/asset/fn.mint.html b/static/sway/std/asset/fn.mint.html index faa0e6dc..0082441d 100644 --- a/static/sway/std/asset/fn.mint.html +++ b/static/sway/std/asset/fn.mint.html @@ -1,4 +1,4 @@ -mint in asset - Sway

        Function std::asset::mint

        pub fn mint(sub_id: SubId, amount: u64) 
        Expand description

        Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.

        +mint in asset - Sway

        Function std::asset::mint

        pub fn mint(sub_id: SubId, amount: u64) 
        Expand description

        Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.

        Arguments

        • sub_id: [SubId] - The sub identifier of the asset which to mint.
        • diff --git a/static/sway/std/asset/fn.mint_to.html b/static/sway/std/asset/fn.mint_to.html index 8dc5f57d..c393204a 100644 --- a/static/sway/std/asset/fn.mint_to.html +++ b/static/sway/std/asset/fn.mint_to.html @@ -1,4 +1,4 @@ -mint_to in asset - Sway

          Function std::asset::mint_to

          pub fn mint_to(to: Identity, sub_id: SubId, amount: u64) 
          Expand description

          Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().

          +mint_to in asset - Sway

          Function std::asset::mint_to

          pub fn mint_to(to: Identity, sub_id: SubId, amount: u64) 
          Expand description

          Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().

          Additional Information

          If the to Identity is a contract, this will transfer coins to the contract even with no way to retrieve them (i.e: no withdrawal functionality on the receiving contract), possibly leading to the PERMANENT LOSS OF COINS if not used with care.

          Arguments

          diff --git a/static/sway/std/asset/fn.transfer.html b/static/sway/std/asset/fn.transfer.html index 3174de82..f1639ce9 100644 --- a/static/sway/std/asset/fn.transfer.html +++ b/static/sway/std/asset/fn.transfer.html @@ -1,4 +1,4 @@ -transfer in asset - Sway

          Function std::asset::transfer

          pub fn transfer(to: Identity, asset_id: AssetId, amount: u64) 
          Expand description

          Transfer amount coins of the type asset_id and send them to to.

          +transfer in asset - Sway

          Function std::asset::transfer

          pub fn transfer(to: Identity, asset_id: AssetId, amount: u64) 
          Expand description

          Transfer amount coins of the type asset_id and send them to to.

          Additional Information

          If the to Identity is a contract this may transfer coins to the contract even with no way to retrieve them (i.e. no withdrawal functionality on receiving contract), possibly leading to the PERMANENT LOSS OF COINS if not used with care.

          Arguments

          diff --git a/static/sway/std/asset/index.html b/static/sway/std/asset/index.html index e5aae3b6..cf711ecd 100644 --- a/static/sway/std/asset/index.html +++ b/static/sway/std/asset/index.html @@ -1,2 +1,2 @@ -asset in std - Sway

          Module std::asset

          Expand description

          Functionality for performing common operations with assets.

          +asset in std - Sway

          Module std::asset

          Expand description

          Functionality for performing common operations with assets.

          Functions

          Burn amount coins of the current contract’s sub_id. This function burns them from the balance of the current contract.

          Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.

          Mint amount coins of the current contract’s asset_id and transfer them to to by calling transfer().

          Transfer amount coins of the type asset_id and send them to to.

          \ No newline at end of file diff --git a/static/sway/std/asset_id/index.html b/static/sway/std/asset_id/index.html index e3d22c2e..cf0e8ba1 100644 --- a/static/sway/std/asset_id/index.html +++ b/static/sway/std/asset_id/index.html @@ -1,3 +1,3 @@ -asset_id in std - Sway

          Module std::asset_id

          Expand description

          The AssetId type used for interacting with an asset on the fuel network.

          +asset_id in std - Sway

          Module std::asset_id

          Expand description

          The AssetId type used for interacting with an asset on the fuel network.

          Structs

          An AssetId is used for interacting with an asset on the network.

          \ No newline at end of file diff --git a/static/sway/std/asset_id/struct.AssetId.html b/static/sway/std/asset_id/struct.AssetId.html index 83d4be64..6f0f279a 100644 --- a/static/sway/std/asset_id/struct.AssetId.html +++ b/static/sway/std/asset_id/struct.AssetId.html @@ -1,4 +1,4 @@ -AssetId in asset_id - Sway
          pub struct AssetId {
          +AssetId in asset_id - Sway
          pub struct AssetId {
               bits: b256,
           }
          Expand description

          An AssetId is used for interacting with an asset on the network.

          Additional Information

          diff --git a/static/sway/std/auth/enum.AuthError.html b/static/sway/std/auth/enum.AuthError.html index bafe6cad..05490ae7 100644 --- a/static/sway/std/auth/enum.AuthError.html +++ b/static/sway/std/auth/enum.AuthError.html @@ -1,4 +1,4 @@ -AuthError in auth - Sway
          pub enum AuthError {
          +AuthError in auth - Sway
          pub enum AuthError {
               /// The caller is external, but the inputs to the transaction are not all owned by the same address.
               InputsNotAllOwnedBySameAddress: (),
               /// The caller is internal, but the `caller_address` function was called.
          diff --git a/static/sway/std/auth/fn.caller_address.html b/static/sway/std/auth/fn.caller_address.html
          index ec07dbdd..035e36b1 100644
          --- a/static/sway/std/auth/fn.caller_address.html
          +++ b/static/sway/std/auth/fn.caller_address.html
          @@ -1,4 +1,4 @@
          -caller_address in auth - Sway
          pub fn caller_address() -> Result<Address, AuthError> 
          Expand description

          Get the owner of the inputs (of type Input::Coin or Input::Message) to a
          +caller_address in auth - Sway

          pub fn caller_address() -> Result<Address, AuthError> 
          Expand description

          Get the owner of the inputs (of type Input::Coin or Input::Message) to a
          TransactionScript if they all share the same owner.

          Returns

            diff --git a/static/sway/std/auth/fn.caller_addresses.html b/static/sway/std/auth/fn.caller_addresses.html new file mode 100644 index 00000000..b38b1407 --- /dev/null +++ b/static/sway/std/auth/fn.caller_addresses.html @@ -0,0 +1,18 @@ +caller_addresses in auth - Sway
            pub fn caller_addresses() -> Vec<Address> 
            Expand description

            Get the owners of the inputs (of type Input::Coin or Input::Message) to a
            +TransactionScript.

            +

            Additional Information

            +

            The list is not deduplicated, so there may be repeated addresses in the returned vector.

            +

            Returns

            +
              +
            • [Vec] - The addresses of the owners of the inputs.
            • +
            +

            Examples

            +
            use std::auth::caller_addresses;
            +
            +fn foo(some_address: Address) {
            +    let addresses = caller_addresses();
            +
            +    assert(addresses.get(0).unwrap() == some_address);
            +}
            +
            +
            \ No newline at end of file diff --git a/static/sway/std/auth/fn.caller_contract_id.html b/static/sway/std/auth/fn.caller_contract_id.html index 3ebcdb3b..01beee77 100644 --- a/static/sway/std/auth/fn.caller_contract_id.html +++ b/static/sway/std/auth/fn.caller_contract_id.html @@ -1,4 +1,4 @@ -caller_contract_id in auth - Sway
            pub fn caller_contract_id() -> ContractId 
            Expand description

            If the caller is internal, returns the contract ID of the caller.

            +caller_contract_id in auth - Sway
            pub fn caller_contract_id() -> ContractId 
            Expand description

            If the caller is internal, returns the contract ID of the caller.

            Additional Information

            External calls result in undefined behaviour.

            Returns

            diff --git a/static/sway/std/auth/fn.caller_is_external.html b/static/sway/std/auth/fn.caller_is_external.html index 7354b276..8dd4a664 100644 --- a/static/sway/std/auth/fn.caller_is_external.html +++ b/static/sway/std/auth/fn.caller_is_external.html @@ -1,4 +1,4 @@ -caller_is_external in auth - Sway
            pub fn caller_is_external() -> bool 
            Expand description

            Returns true if the caller is external (i.e. a script).
            +caller_is_external in auth - Sway

            pub fn caller_is_external() -> bool 
            Expand description

            Returns true if the caller is external (i.e. a script).
            Otherwise, if the caller is a contract, returns false.

            Additional Information

            For more information refer to the VM Instruction Set.

            diff --git a/static/sway/std/auth/fn.msg_sender.html b/static/sway/std/auth/fn.msg_sender.html index caf5ca51..dc7c6ee9 100644 --- a/static/sway/std/auth/fn.msg_sender.html +++ b/static/sway/std/auth/fn.msg_sender.html @@ -1,4 +1,4 @@ -msg_sender in auth - Sway

            Function std::auth::msg_sender

            pub fn msg_sender() -> Result<Identity, AuthError> 
            Expand description

            Get the Identity (i.e. Address or ContractId) from which a call was made.
            +msg_sender in auth - Sway

            Function std::auth::msg_sender

            pub fn msg_sender() -> Result<Identity, AuthError> 
            Expand description

            Get the Identity (i.e. Address or ContractId) from which a call was made.
            Returns a Ok(Identity), or Err(AuthError) if an identity cannot be determined.

            Additional Information

            Returns an AuthError::InputsNotAllOwnedBySameAddress if the caller is external and the inputs to the transaction are not all owned by the same address.
            diff --git a/static/sway/std/auth/fn.predicate_address.html b/static/sway/std/auth/fn.predicate_address.html index 964b88d5..b74fac8a 100644 --- a/static/sway/std/auth/fn.predicate_address.html +++ b/static/sway/std/auth/fn.predicate_address.html @@ -1,17 +1,13 @@ -predicate_address in auth - Sway

            pub fn predicate_address() -> Address 
            Expand description

            Get the current predicate’s address when called in an internal context.

            +predicate_address in auth - Sway
            pub fn predicate_address() -> Option<Address> 
            Expand description

            Get the current predicate’s address when called in an internal context.

            Returns

              -
            • [Address] - The address of this predicate.
            • -
            -

            Reverts

            -
              -
            • When called outside of a predicate program.
            • +
            • [Option] - The address of this predicate.

            Examples

            use std::auth::predicate_address;
             
             fn main() {
            -    let this_predicate = predicate_address();
            +    let this_predicate = predicate_address().unwrap();
                 log(this_predicate);
             }
             
            diff --git a/static/sway/std/auth/index.html b/static/sway/std/auth/index.html index db2ab974..89c767fd 100644 --- a/static/sway/std/auth/index.html +++ b/static/sway/std/auth/index.html @@ -1,5 +1,5 @@ -auth in std - Sway

            Module std::auth

            Expand description

            Functionality for determining who is calling a contract.

            +auth in std - Sway

            Module std::auth

            Expand description

            Functionality for determining who is calling a contract.

            Enums

            The error type used when an Identity cannot be determined.

            -

            Functions

            Get the owner of the inputs (of type Input::Coin or Input::Message) to a

            If the caller is internal, returns the contract ID of the caller.

            +

            Functions

            Get the owner of the inputs (of type Input::Coin or Input::Message) to a

            Get the owners of the inputs (of type Input::Coin or Input::Message) to a

            If the caller is internal, returns the contract ID of the caller.

            Returns true if the caller is external (i.e. a script).

            Get the Identity (i.e. Address or ContractId) from which a call was made.

            Get the current predicate’s address when called in an internal context.

            \ No newline at end of file diff --git a/static/sway/std/b512/index.html b/static/sway/std/b512/index.html index 7379be5d..05ef034b 100644 --- a/static/sway/std/b512/index.html +++ b/static/sway/std/b512/index.html @@ -1,2 +1,2 @@ -b512 in std - Sway

            Module std::b512

            Expand description

            The B512 type supports the usage of 64-byte values in Sway which are needed when working with public keys and signatures.

            +b512 in std - Sway

            Module std::b512

            Expand description

            The B512 type supports the usage of 64-byte values in Sway which are needed when working with public keys and signatures.

            Structs

            Stores two b256s in contiguous memory.

            \ No newline at end of file diff --git a/static/sway/std/b512/struct.B512.html b/static/sway/std/b512/struct.B512.html index 19695763..72a079dd 100644 --- a/static/sway/std/b512/struct.B512.html +++ b/static/sway/std/b512/struct.B512.html @@ -1,4 +1,4 @@ -B512 in b512 - Sway

            Struct std::b512::B512

            pub struct B512 {
            +B512 in b512 - Sway

            Struct std::b512::B512

            pub struct B512 {
                 /// The two `b256`s that make up the `B512`.
                 bits: [b256; 2],
             }
            Expand description

            Stores two b256s in contiguous memory.
            diff --git a/static/sway/std/block/enum.BlockHashError.html b/static/sway/std/block/enum.BlockHashError.html index e0cab495..a035a496 100644 --- a/static/sway/std/block/enum.BlockHashError.html +++ b/static/sway/std/block/enum.BlockHashError.html @@ -1,4 +1,4 @@ -BlockHashError in block - Sway

            pub enum BlockHashError {
            +BlockHashError in block - Sway
            pub enum BlockHashError {
                 /// Error returned when the block hash cannot be found.
                 BlockHeightTooHigh: (),
             }
            Expand description

            Error type for when the block hash cannot be found.

            diff --git a/static/sway/std/block/fn.block_header_hash.html b/static/sway/std/block/fn.block_header_hash.html index ca08480b..c9e67ac6 100644 --- a/static/sway/std/block/fn.block_header_hash.html +++ b/static/sway/std/block/fn.block_header_hash.html @@ -1,4 +1,4 @@ -block_header_hash in block - Sway
            pub fn block_header_hash(block_height: u32) -> Result<b256, BlockHashError> 
            Expand description

            Get the header hash of the block at height block_height

            +block_header_hash in block - Sway
            pub fn block_header_hash(block_height: u32) -> Result<b256, BlockHashError> 
            Expand description

            Get the header hash of the block at height block_height

            Returns

            • [Result<b256, BlockHashError>] - The header hash of the block at block_height, or a [BlockHashError] if the block is not found.
            • diff --git a/static/sway/std/block/fn.height.html b/static/sway/std/block/fn.height.html index 7a3c27be..bfea058d 100644 --- a/static/sway/std/block/fn.height.html +++ b/static/sway/std/block/fn.height.html @@ -1,4 +1,4 @@ -height in block - Sway

              Function std::block::height

              pub fn height() -> u32 
              Expand description

              Get the current block height.

              +height in block - Sway

              Function std::block::height

              pub fn height() -> u32 
              Expand description

              Get the current block height.

              Returns

              • [u32] - The current block height.
              • diff --git a/static/sway/std/block/fn.timestamp.html b/static/sway/std/block/fn.timestamp.html index 0aaeb20e..8b53f300 100644 --- a/static/sway/std/block/fn.timestamp.html +++ b/static/sway/std/block/fn.timestamp.html @@ -1,4 +1,4 @@ -timestamp in block - Sway

                Function std::block::timestamp

                pub fn timestamp() -> u64 
                Expand description

                Get the TAI64 timestamp of the current block.

                +timestamp in block - Sway

                Function std::block::timestamp

                pub fn timestamp() -> u64 
                Expand description

                Get the TAI64 timestamp of the current block.

                Additional Information

                The TAI64 timestamp begins at 262 seconds before 1970, and ends at 262 seconds after 1970,
                with a TAI second defined as the duration of 9192631770 periods of the radiation corresponding
                diff --git a/static/sway/std/block/fn.timestamp_of_block.html b/static/sway/std/block/fn.timestamp_of_block.html index 190950d0..6b3ca298 100644 --- a/static/sway/std/block/fn.timestamp_of_block.html +++ b/static/sway/std/block/fn.timestamp_of_block.html @@ -1,4 +1,4 @@ -timestamp_of_block in block - Sway

                pub fn timestamp_of_block(block_height: u32) -> u64 
                Expand description

                Get the TAI64 timestamp of a block at a given block_height.

                +timestamp_of_block in block - Sway
                pub fn timestamp_of_block(block_height: u32) -> u64 
                Expand description

                Get the TAI64 timestamp of a block at a given block_height.

                Additional Information

                The TAI64 timestamp begins at 262 seconds before 1970, and ends at 262 seconds after 1970,
                with a TAI second defined as the duration of 9192631770 periods of the radiation corresponding
                diff --git a/static/sway/std/block/index.html b/static/sway/std/block/index.html index eb08d689..a1640e2a 100644 --- a/static/sway/std/block/index.html +++ b/static/sway/std/block/index.html @@ -1,4 +1,4 @@ -block in std - Sway

                Module std::block

                Expand description

                Functionality for accessing block-related data.

                +block in std - Sway

                Module std::block

                Expand description

                Functionality for accessing block-related data.

                Enums

                Error type for when the block hash cannot be found.

                Functions

                Get the header hash of the block at height block_height

                Get the current block height.

                diff --git a/static/sway/std/bytes/index.html b/static/sway/std/bytes/index.html index 28870467..85173970 100644 --- a/static/sway/std/bytes/index.html +++ b/static/sway/std/bytes/index.html @@ -1,3 +1,3 @@ -bytes in std - Sway

                Module std::bytes

                Expand description

                The Bytes type is used when a collection of tightly-packed arbitrary bytes is needed.

                -

                Structs

                A type used to represent raw bytes.

                +bytes in std - Sway

                Module std::bytes

                Expand description

                The Bytes type is used when a collection of tightly-packed arbitrary bytes is needed.

                +

                Structs

                A type used to represent raw bytes. It has ownership over its buffer.

                \ No newline at end of file diff --git a/static/sway/std/bytes/struct.Bytes.html b/static/sway/std/bytes/struct.Bytes.html index 62779334..ef1e5ecf 100644 --- a/static/sway/std/bytes/struct.Bytes.html +++ b/static/sway/std/bytes/struct.Bytes.html @@ -1,9 +1,9 @@ -Bytes in bytes - Sway

                Struct std::bytes::Bytes

                pub struct Bytes {
                +Bytes in bytes - Sway

                Struct std::bytes::Bytes

                pub struct Bytes {
                     /// A barebones struct for the bytes.
                     buf: RawBytes,
                     /// The number of bytes being stored.
                     len: u64,
                -}
                Expand description

                A type used to represent raw bytes.

                +}
                Expand description

                A type used to represent raw bytes. It has ownership over its buffer.

                Fields

                buf: RawBytes

                A barebones struct for the bytes.

                len: u64

                The number of bytes being stored.

                Implementations

                fn new() -> Self

                Constructs a new, empty Bytes.

                @@ -328,7 +328,10 @@

                Examples

                assert(right.len() == 2); }
            -

            fn append(
            refmut self,
            refmut other: self,
            )

            Moves all elements of other into self, leaving other empty.

            +

            fn append(
            refmut self,
            refmut other: self,
            )

            Copies all elements of other into self

            +

            Additional Information

            +

            NOTE: Appending self to itself will duplicate the Bytes. i.e. [0, 1, 2] => [0, 1, 2, 0, 1, 2]
            +This function differs from the rust append function in that it does not clear the other Bytes

            Arguments

            • other: [Bytes] - The Bytes to append to self.
            • diff --git a/static/sway/std/call_frames/fn.called_args.html b/static/sway/std/call_frames/fn.called_args.html index ef4aeb47..8826b62a 100644 --- a/static/sway/std/call_frames/fn.called_args.html +++ b/static/sway/std/call_frames/fn.called_args.html @@ -1,4 +1,4 @@ -called_args in call_frames - Sway
              pub fn called_args<T>() -> T
              +called_args in call_frames - Sway
              pub fn called_args<T>() -> T
               where
                   T: AbiDecode,
               
              Expand description

              Get the called arguments from the current call frame.

              diff --git a/static/sway/std/call_frames/fn.called_method.html b/static/sway/std/call_frames/fn.called_method.html index d92e4d51..8991dfa4 100644 --- a/static/sway/std/call_frames/fn.called_method.html +++ b/static/sway/std/call_frames/fn.called_method.html @@ -1,2 +1,2 @@ -called_method in call_frames - Sway
              pub fn called_method() -> str 
              Expand description

              Get the called method name from the current call frame.

              +called_method in call_frames - Sway
              pub fn called_method() -> str 
              Expand description

              Get the called method name from the current call frame.

              \ No newline at end of file diff --git a/static/sway/std/call_frames/fn.code_size.html b/static/sway/std/call_frames/fn.code_size.html index 6ffe11f2..7e612554 100644 --- a/static/sway/std/call_frames/fn.code_size.html +++ b/static/sway/std/call_frames/fn.code_size.html @@ -1,4 +1,4 @@ -code_size in call_frames - Sway
              pub fn code_size() -> u64 
              Expand description

              Get the code size in bytes (padded to word alignment) from the current call frame.

              +code_size in call_frames - Sway
              pub fn code_size() -> u64 
              Expand description

              Get the code size in bytes (padded to word alignment) from the current call frame.

              Additional Information

              More information on data from call frames can be found in the Fuel Specs.
              https://docs.fuel.network/docs/specs/fuel-vm/#call-frames

              diff --git a/static/sway/std/call_frames/fn.first_param.html b/static/sway/std/call_frames/fn.first_param.html index 2b769744..e29174b9 100644 --- a/static/sway/std/call_frames/fn.first_param.html +++ b/static/sway/std/call_frames/fn.first_param.html @@ -1,4 +1,4 @@ -first_param in call_frames - Sway
              pub fn first_param() -> u64 
              Expand description

              Get the first parameter from the current call frame.

              +first_param in call_frames - Sway
              pub fn first_param() -> u64 
              Expand description

              Get the first parameter from the current call frame.

              Additional Information

              More information on data from call frames can be found in the Fuel Specs.
              https://docs.fuel.network/docs/specs/fuel-vm/#call-frames

              diff --git a/static/sway/std/call_frames/fn.get_contract_id_from_call_frame.html b/static/sway/std/call_frames/fn.get_contract_id_from_call_frame.html index 06d6c7d3..f3210b60 100644 --- a/static/sway/std/call_frames/fn.get_contract_id_from_call_frame.html +++ b/static/sway/std/call_frames/fn.get_contract_id_from_call_frame.html @@ -1,4 +1,4 @@ -get_contract_id_from_call_frame in call_frames - Sway
              pub fn get_contract_id_from_call_frame(frame_pointer: raw_ptr) -> ContractId 
              Expand description

              Get the value of ContractId from any call frame on the stack.

              +get_contract_id_from_call_frame in call_frames - Sway
              pub fn get_contract_id_from_call_frame(frame_pointer: raw_ptr) -> ContractId 
              Expand description

              Get the value of ContractId from any call frame on the stack.

              Arguments

              • frame_pointer: [raw_ptr] - The call frame for which the Contract Id is to be returned.
              • diff --git a/static/sway/std/call_frames/fn.get_previous_frame_pointer.html b/static/sway/std/call_frames/fn.get_previous_frame_pointer.html index 096aaca7..567428af 100644 --- a/static/sway/std/call_frames/fn.get_previous_frame_pointer.html +++ b/static/sway/std/call_frames/fn.get_previous_frame_pointer.html @@ -1,4 +1,4 @@ -get_previous_frame_pointer in call_frames - Sway
                pub fn get_previous_frame_pointer(frame_pointer: raw_ptr) -> raw_ptr 
                Expand description

                Get a pointer to the previous (relative to the frame_pointer parameter) call frame using offsets from a pointer.

                +get_previous_frame_pointer in call_frames - Sway
                pub fn get_previous_frame_pointer(frame_pointer: raw_ptr) -> raw_ptr 
                Expand description

                Get a pointer to the previous (relative to the frame_pointer parameter) call frame using offsets from a pointer.

                Additional Information

                More information on data from call frames can be found in the Fuel Specs.
                https://docs.fuel.network/docs/specs/fuel-vm/#call-frames

                diff --git a/static/sway/std/call_frames/fn.msg_asset_id.html b/static/sway/std/call_frames/fn.msg_asset_id.html index 08e02219..92df5f63 100644 --- a/static/sway/std/call_frames/fn.msg_asset_id.html +++ b/static/sway/std/call_frames/fn.msg_asset_id.html @@ -1,4 +1,4 @@ -msg_asset_id in call_frames - Sway
                pub fn msg_asset_id() -> AssetId 
                Expand description

                Get the asset_id of coins being sent from the current call frame.

                +msg_asset_id in call_frames - Sway
                pub fn msg_asset_id() -> AssetId 
                Expand description

                Get the asset_id of coins being sent from the current call frame.

                Returns

                • [AssetId] - The asset included in the current call frame.
                • diff --git a/static/sway/std/call_frames/fn.second_param.html b/static/sway/std/call_frames/fn.second_param.html index 1c65981c..7814dd60 100644 --- a/static/sway/std/call_frames/fn.second_param.html +++ b/static/sway/std/call_frames/fn.second_param.html @@ -1,4 +1,4 @@ -second_param in call_frames - Sway
                  pub fn second_param() -> u64 
                  Expand description

                  Get the second parameter from the current call frame.

                  +second_param in call_frames - Sway
                  pub fn second_param() -> u64 
                  Expand description

                  Get the second parameter from the current call frame.

                  Additional Information

                  More information on data from call frames can be found in the Fuel Specs.
                  https://docs.fuel.network/docs/specs/fuel-vm/#call-frames

                  diff --git a/static/sway/std/call_frames/index.html b/static/sway/std/call_frames/index.html index d48d8e43..f0bdd87b 100644 --- a/static/sway/std/call_frames/index.html +++ b/static/sway/std/call_frames/index.html @@ -1,4 +1,4 @@ -call_frames in std - Sway
                  Expand description

                  Helper functions for accessing data from call frames.
                  +call_frames in std - Sway

                  Expand description

                  Helper functions for accessing data from call frames.
                  Call frames store metadata across untrusted inter-contract calls.

                  Functions

                  Get the called arguments from the current call frame.

                  Get the called method name from the current call frame.

                  diff --git a/static/sway/std/clone/index.html b/static/sway/std/clone/index.html index a037a2cb..097bd0b7 100644 --- a/static/sway/std/clone/index.html +++ b/static/sway/std/clone/index.html @@ -1,3 +1,3 @@ -clone in std - Sway

                  Module std::clone

                  Expand description

                  The clone trait, for explicit duplication.

                  +clone in std - Sway

                  Module std::clone

                  Expand description

                  The clone trait, for explicit duplication.

                  Traits

                  A common trait for the ability to explicitly duplicate an object.

                  \ No newline at end of file diff --git a/static/sway/std/clone/trait.Clone.html b/static/sway/std/clone/trait.Clone.html index 37e934a5..0cfa6039 100644 --- a/static/sway/std/clone/trait.Clone.html +++ b/static/sway/std/clone/trait.Clone.html @@ -1,4 +1,4 @@ -Clone in clone - Sway

                  Trait std::clone::Clone

                  pub trait Clone {
                  +Clone in clone - Sway

                  Trait std::clone::Clone

                  pub trait Clone {
                       /// Clone self into a new value of the same type.
                       fn clone(self) -> Self;
                   }
                  Expand description

                  A common trait for the ability to explicitly duplicate an object.

                  diff --git a/static/sway/std/constants/constant.DEFAULT_SUB_ID.html b/static/sway/std/constants/constant.DEFAULT_SUB_ID.html index a551565a..1cad70a1 100644 --- a/static/sway/std/constants/constant.DEFAULT_SUB_ID.html +++ b/static/sway/std/constants/constant.DEFAULT_SUB_ID.html @@ -1,4 +1,4 @@ -DEFAULT_SUB_ID in constants - Sway
                  pub const DEFAULT_SUB_ID = b256::zero()
                  Expand description

                  The default Sub Id for assets.

                  +DEFAULT_SUB_ID in constants - Sway
                  pub const DEFAULT_SUB_ID = b256::zero()
                  Expand description

                  The default Sub Id for assets.

                  Examples

                  use std::{call_frames::contract_id, constants::DEFAULT_SUB_ID};
                   
                  diff --git a/static/sway/std/constants/constant.ZERO_B256.html b/static/sway/std/constants/constant.ZERO_B256.html
                  index f3546fc6..bfea72ad 100644
                  --- a/static/sway/std/constants/constant.ZERO_B256.html
                  +++ b/static/sway/std/constants/constant.ZERO_B256.html
                  @@ -1,4 +1,4 @@
                  -ZERO_B256 in constants - Sway
                  pub const ZERO_B256 = 0x0000000000000000000000000000000000000000000000000000000000000000
                  Expand description

                  A b256 of zero value.

                  +ZERO_B256 in constants - Sway
                  pub const ZERO_B256 = 0x0000000000000000000000000000000000000000000000000000000000000000
                  Expand description

                  A b256 of zero value.

                  Additional Information

                  WARNING This constant has been deprecated. b256::zero() should be used instead.

                  Examples

                  diff --git a/static/sway/std/constants/constant.ZERO_U256.html b/static/sway/std/constants/constant.ZERO_U256.html index 91ec190c..0040b06f 100644 --- a/static/sway/std/constants/constant.ZERO_U256.html +++ b/static/sway/std/constants/constant.ZERO_U256.html @@ -1,4 +1,4 @@ -ZERO_U256 in constants - Sway
                  pub const ZERO_U256 = 0x00u256
                  Expand description

                  A u256 of zero value.

                  +ZERO_U256 in constants - Sway
                  pub const ZERO_U256 = 0x00u256
                  Expand description

                  A u256 of zero value.

                  Additional Information

                  WARNING This constant has been deprecated. u256::zero() should be used instead.

                  Examples

                  diff --git a/static/sway/std/constants/index.html b/static/sway/std/constants/index.html index d61bbdbe..c0ef1ee9 100644 --- a/static/sway/std/constants/index.html +++ b/static/sway/std/constants/index.html @@ -1,4 +1,4 @@ -constants in std - Sway

                  Module std::constants

                  Expand description

                  Definitions for constant values in Sway.

                  +constants in std - Sway

                  Module std::constants

                  Expand description

                  Definitions for constant values in Sway.

                  Constants

                  The default Sub Id for assets.

                  A b256 of zero value.

                  A u256 of zero value.

                  diff --git a/static/sway/std/context/fn.balance_of.html b/static/sway/std/context/fn.balance_of.html index d71b4422..2fe541c3 100644 --- a/static/sway/std/context/fn.balance_of.html +++ b/static/sway/std/context/fn.balance_of.html @@ -1,4 +1,4 @@ -balance_of in context - Sway
                  pub fn balance_of(target: ContractId, asset_id: AssetId) -> u64 
                  Expand description

                  Get the balance of coin asset_id for the contract at ‘target’.

                  +balance_of in context - Sway
                  pub fn balance_of(target: ContractId, asset_id: AssetId) -> u64 
                  Expand description

                  Get the balance of coin asset_id for the contract at ‘target’.

                  Arguments

                  • target: [ContractId] - The contract that contains the asset_id.
                  • diff --git a/static/sway/std/context/fn.msg_amount.html b/static/sway/std/context/fn.msg_amount.html index 7e705c86..f893e8e5 100644 --- a/static/sway/std/context/fn.msg_amount.html +++ b/static/sway/std/context/fn.msg_amount.html @@ -1,4 +1,4 @@ -msg_amount in context - Sway
                    pub fn msg_amount() -> u64 
                    Expand description

                    Get the amount of units of call_frames::msg_asset_id() being sent.

                    +msg_amount in context - Sway
                    pub fn msg_amount() -> u64 
                    Expand description

                    Get the amount of units of call_frames::msg_asset_id() being sent.

                    Returns

                    • [u64] - The amount of coins being sent.
                    • diff --git a/static/sway/std/context/fn.this_balance.html b/static/sway/std/context/fn.this_balance.html index 39172d18..d37cc6e9 100644 --- a/static/sway/std/context/fn.this_balance.html +++ b/static/sway/std/context/fn.this_balance.html @@ -1,4 +1,4 @@ -this_balance in context - Sway
                      pub fn this_balance(asset_id: AssetId) -> u64 
                      Expand description

                      Get the balance of coin asset_id for the current contract.

                      +this_balance in context - Sway
                      pub fn this_balance(asset_id: AssetId) -> u64 
                      Expand description

                      Get the balance of coin asset_id for the current contract.

                      Arguments

                      • asset_id: [AssetId] - The asset of which the balance should be returned.
                      • diff --git a/static/sway/std/context/index.html b/static/sway/std/context/index.html index 217974ea..a6cdfab1 100644 --- a/static/sway/std/context/index.html +++ b/static/sway/std/context/index.html @@ -1,4 +1,4 @@ -context in std - Sway

                        Module std::context

                        Expand description

                        Functionality for accessing context-specific information about the current contract or message.

                        +context in std - Sway

                        Module std::context

                        Expand description

                        Functionality for accessing context-specific information about the current contract or message.

                        Functions

                        Get the balance of coin asset_id for the contract at ‘target’.

                        Get the amount of units of call_frames::msg_asset_id() being sent.

                        Get the balance of coin asset_id for the current contract.

                        diff --git a/static/sway/std/contract_id/index.html b/static/sway/std/contract_id/index.html index 44a8b2e0..a5ba7a7e 100644 --- a/static/sway/std/contract_id/index.html +++ b/static/sway/std/contract_id/index.html @@ -1,3 +1,3 @@ -contract_id in std - Sway
                        Expand description

                        The ContractId type used for interacting with contracts on the fuel network.

                        +contract_id in std - Sway
                        Expand description

                        The ContractId type used for interacting with contracts on the fuel network.

                        Structs

                        The ContractId type, a struct wrapper around the inner b256 value.

                        \ No newline at end of file diff --git a/static/sway/std/contract_id/struct.ContractId.html b/static/sway/std/contract_id/struct.ContractId.html index b97758ac..b5c66632 100644 --- a/static/sway/std/contract_id/struct.ContractId.html +++ b/static/sway/std/contract_id/struct.ContractId.html @@ -1,4 +1,4 @@ -ContractId in contract_id - Sway
                        pub struct ContractId {
                        +ContractId in contract_id - Sway
                        pub struct ContractId {
                             /// The underlying raw `b256` data of the contract id.
                             bits: b256,
                         }
                        Expand description

                        The ContractId type, a struct wrapper around the inner b256 value.

                        diff --git a/static/sway/std/convert/index.html b/static/sway/std/convert/index.html index 61b4c4f3..99c7ef92 100644 --- a/static/sway/std/convert/index.html +++ b/static/sway/std/convert/index.html @@ -1,4 +1,4 @@ -convert in std - Sway

                        Module std::convert

                        Expand description

                        Traits for conversions between types.

                        +convert in std - Sway

                        Module std::convert

                        Expand description

                        Traits for conversions between types.

                        Traits

                        Used to do value-to-value conversions.

                        Used to do value-to-value conversions.

                        Used to attempt to do value-to-value conversions.

                        \ No newline at end of file diff --git a/static/sway/std/convert/trait.From.html b/static/sway/std/convert/trait.From.html index 976dce54..1110f278 100644 --- a/static/sway/std/convert/trait.From.html +++ b/static/sway/std/convert/trait.From.html @@ -1,4 +1,4 @@ -From in convert - Sway

                        Trait std::convert::From

                        pub trait From<T> {
                        +From in convert - Sway

                        Trait std::convert::From

                        pub trait From<T> {
                             /// Converts to this type from the input type.
                             fn from(b: T) -> Self;
                         }
                        Expand description

                        Used to do value-to-value conversions.

                        diff --git a/static/sway/std/convert/trait.Into.html b/static/sway/std/convert/trait.Into.html index 520f8b14..8b8c3943 100644 --- a/static/sway/std/convert/trait.Into.html +++ b/static/sway/std/convert/trait.Into.html @@ -1,4 +1,4 @@ -Into in convert - Sway

                        Trait std::convert::Into

                        pub trait Into<T> {
                        +Into in convert - Sway

                        Trait std::convert::Into

                        pub trait Into<T> {
                             /// Converts this type into the (usually inferred) input type.
                             fn into(self) -> T;
                         }
                        Expand description

                        Used to do value-to-value conversions.

                        diff --git a/static/sway/std/convert/trait.TryFrom.html b/static/sway/std/convert/trait.TryFrom.html index 77a5e6ef..7af6792f 100644 --- a/static/sway/std/convert/trait.TryFrom.html +++ b/static/sway/std/convert/trait.TryFrom.html @@ -1,4 +1,4 @@ -TryFrom in convert - Sway
                        pub trait TryFrom<T> {
                        +TryFrom in convert - Sway
                        pub trait TryFrom<T> {
                             /// Performs the conversion. Returns None if the conversion can't be performed in a lossless manner.
                             fn try_from(b: T) -> Option<Self>;
                         }
                        Expand description

                        Used to attempt to do value-to-value conversions.
                        diff --git a/static/sway/std/convert/trait.TryInto.html b/static/sway/std/convert/trait.TryInto.html index 371efb11..d2b4e014 100644 --- a/static/sway/std/convert/trait.TryInto.html +++ b/static/sway/std/convert/trait.TryInto.html @@ -1,3 +1,3 @@ -TryInto in convert - Sway

                        pub trait TryInto<T> {
                        +TryInto in convert - Sway
                        pub trait TryInto<T> {
                             fn try_into(self) -> Option<T>;
                         }

                        Required Methods

                        \ No newline at end of file diff --git a/static/sway/std/ecr/enum.EcRecoverError.html b/static/sway/std/ecr/enum.EcRecoverError.html index 7e554b90..0be5bbc3 100644 --- a/static/sway/std/ecr/enum.EcRecoverError.html +++ b/static/sway/std/ecr/enum.EcRecoverError.html @@ -1,6 +1,9 @@ -EcRecoverError in ecr - Sway
                        pub enum EcRecoverError {
                        +EcRecoverError in ecr - Sway
                        pub enum EcRecoverError {
                             /// The error variant used when the recover fails.
                             UnrecoverablePublicKey: (),
                        +    /// The length of the message is zero.
                        +    ZeroLengthMessage: (),
                         }
                        Expand description

                        The error type used when the ec_recover function fails.

                        Variants

                        UnrecoverablePublicKey: ()

                        The error variant used when the recover fails.

                        +

                        ZeroLengthMessage: ()

                        The length of the message is zero.

                        \ No newline at end of file diff --git a/static/sway/std/ecr/fn.ec_recover.html b/static/sway/std/ecr/fn.ec_recover.html index 39dc6b1c..5626399a 100644 --- a/static/sway/std/ecr/fn.ec_recover.html +++ b/static/sway/std/ecr/fn.ec_recover.html @@ -1,4 +1,4 @@ -ec_recover in ecr - Sway

                        Function std::ecr::ec_recover

                        pub fn ec_recover(signature: B512, msg_hash: b256) -> Result<B512, EcRecoverError> 
                        Expand description

                        Recover the public key derived from the private key used to sign a message.
                        +ec_recover in ecr - Sway

                        Function std::ecr::ec_recover

                        pub fn ec_recover(signature: B512, msg_hash: b256) -> Result<B512, EcRecoverError> 
                        Expand description

                        Recover the public key derived from the private key used to sign a message.
                        Returns a Result to let the caller choose an error handling strategy.

                        Additional Information

                        Follows the Secp256k1 elliptical curve.

                        diff --git a/static/sway/std/ecr/fn.ec_recover_address.html b/static/sway/std/ecr/fn.ec_recover_address.html index 1b1eb34c..29410f87 100644 --- a/static/sway/std/ecr/fn.ec_recover_address.html +++ b/static/sway/std/ecr/fn.ec_recover_address.html @@ -1,4 +1,4 @@ -ec_recover_address in ecr - Sway
                        pub fn ec_recover_address(signature: B512, msg_hash: b256) -> Result<Address, EcRecoverError> 
                        Expand description

                        Recover the address derived from the private key used to sign a message.
                        +ec_recover_address in ecr - Sway

                        pub fn ec_recover_address(signature: B512, msg_hash: b256) -> Result<Address, EcRecoverError> 
                        Expand description

                        Recover the address derived from the private key used to sign a message.
                        Returns a Result to let the caller choose an error handling strategy.

                        Additional Information

                        Follows the Secp256k1 elliptical curve.

                        diff --git a/static/sway/std/ecr/fn.ec_recover_address_r1.html b/static/sway/std/ecr/fn.ec_recover_address_r1.html index 19e4c103..98346aa6 100644 --- a/static/sway/std/ecr/fn.ec_recover_address_r1.html +++ b/static/sway/std/ecr/fn.ec_recover_address_r1.html @@ -1,4 +1,4 @@ -ec_recover_address_r1 in ecr - Sway
                        pub fn ec_recover_address_r1(signature: B512, msg_hash: b256) -> Result<Address, EcRecoverError> 
                        Expand description

                        Recover the address derived from the private key used to sign a message.
                        +ec_recover_address_r1 in ecr - Sway

                        pub fn ec_recover_address_r1(signature: B512, msg_hash: b256) -> Result<Address, EcRecoverError> 
                        Expand description

                        Recover the address derived from the private key used to sign a message.
                        Returns a Result to let the caller choose an error handling strategy.

                        Additional Information

                        Follows the Secp256r1 elliptical curve.

                        diff --git a/static/sway/std/ecr/fn.ec_recover_r1.html b/static/sway/std/ecr/fn.ec_recover_r1.html index b92abd83..af7d2a8c 100644 --- a/static/sway/std/ecr/fn.ec_recover_r1.html +++ b/static/sway/std/ecr/fn.ec_recover_r1.html @@ -1,4 +1,4 @@ -ec_recover_r1 in ecr - Sway

                        Function std::ecr::ec_recover_r1

                        pub fn ec_recover_r1(signature: B512, msg_hash: b256) -> Result<B512, EcRecoverError> 
                        Expand description

                        Recover the public key derived from the private key used to sign a message.
                        +ec_recover_r1 in ecr - Sway

                        Function std::ecr::ec_recover_r1

                        pub fn ec_recover_r1(signature: B512, msg_hash: b256) -> Result<B512, EcRecoverError> 
                        Expand description

                        Recover the public key derived from the private key used to sign a message.
                        Returns a Result to let the caller choose an error handling strategy.

                        Additional Information

                        Follows the Secp256r1 elliptical curve.

                        diff --git a/static/sway/std/ecr/fn.ed_verify.html b/static/sway/std/ecr/fn.ed_verify.html index 1bdf9124..29c31a48 100644 --- a/static/sway/std/ecr/fn.ed_verify.html +++ b/static/sway/std/ecr/fn.ed_verify.html @@ -1,23 +1,19 @@ -ed_verify in ecr - Sway

                        Function std::ecr::ed_verify

                        pub fn ed_verify(
                        -    public_key: b256,
                        -    signature: B512,
                        -    msg_hash: b256,
                        -) -> Result<bool, EcRecoverError> 
                        Expand description

                        Verifies that a public key derived from the private key was used to sign a message.
                        +ed_verify in ecr - Sway

                        Function std::ecr::ed_verify

                        pub fn ed_verify(public_key: b256, signature: B512, msg: Bytes) -> Result<bool, EcRecoverError> 
                        Expand description

                        Verifies that a public key derived from the private key was used to sign a message.
                        Returns a Result to let the caller choose an error handling strategy.

                        Additional Information

                        Follows the edDSA curve25519 verification.

                        Arguments

                        • public_key: [b256] - The public key that signed the message.
                        • -
                        • signature: [B512] - The signature generated by signing a message hash.
                        • -
                        • msg_hash: [b256] - The hashed signed data.
                        • +
                        • signature: [B512] - The signature generated by signing a message.
                        • +
                        • msg: [Bytes] - The signed data.

                        Returns

                        • [Result<bool, EcRecoverError>] - A verified result or an error.

                        Examples

                        -
                        use std::{ecr::ed_verify, b512::B512};
                        +
                        use std::{ecr::ed_verify, b512::B512, bytes::Bytes};
                         
                         fn foo() {
                             let pub_key = 0x314fa58689bbe1da2430517de2d772b384a1c1d2e9cb87e73c6afcf246045b10;
                        @@ -27,7 +23,7 @@ 

                        Examples

                        let lo = 0xf5084560039486d3462dd65a40c80a74709b2f06d450ffc5dc00345c6b2cdd00; let signature: B512 = B512::from((hi, lo)); // A verified public key with signature - let verified = ed_verify(pub_key, signature, msg_hash).unwrap(); + let verified = ed_verify(pub_key, signature, Bytes::from(msg_hash)).unwrap(); assert(verified); }
                        diff --git a/static/sway/std/ecr/index.html b/static/sway/std/ecr/index.html index 12ab7d4f..4c60bc02 100644 --- a/static/sway/std/ecr/index.html +++ b/static/sway/std/ecr/index.html @@ -1,3 +1,3 @@ -ecr in std - Sway

                        Module std::ecr

                        Expand description

                        Helper functions to verify signatures.

                        +ecr in std - Sway

                        Module std::ecr

                        Expand description

                        Helper functions to verify signatures.

                        Enums

                        The error type used when the ec_recover function fails.

                        Functions

                        Recover the public key derived from the private key used to sign a message.

                        Recover the address derived from the private key used to sign a message.

                        Recover the address derived from the private key used to sign a message.

                        Recover the public key derived from the private key used to sign a message.

                        Verifies that a public key derived from the private key was used to sign a message.

                        \ No newline at end of file diff --git a/static/sway/std/error_signals/constant.FAILED_ASSERT_EQ_SIGNAL.html b/static/sway/std/error_signals/constant.FAILED_ASSERT_EQ_SIGNAL.html index 2621478f..80a8a0b0 100644 --- a/static/sway/std/error_signals/constant.FAILED_ASSERT_EQ_SIGNAL.html +++ b/static/sway/std/error_signals/constant.FAILED_ASSERT_EQ_SIGNAL.html @@ -1,4 +1,4 @@ -FAILED_ASSERT_EQ_SIGNAL in error_signals - Sway
                        pub const FAILED_ASSERT_EQ_SIGNAL = 0xffff_ffff_ffff_0003
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.

                        +FAILED_ASSERT_EQ_SIGNAL in error_signals - Sway
                        pub const FAILED_ASSERT_EQ_SIGNAL = 0xffff_ffff_ffff_0003
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.

                        Additional Information

                        The value is: 18446744073709486083

                        \ No newline at end of file diff --git a/static/sway/std/error_signals/constant.FAILED_ASSERT_NE_SIGNAL.html b/static/sway/std/error_signals/constant.FAILED_ASSERT_NE_SIGNAL.html index c52f2fb5..e801835a 100644 --- a/static/sway/std/error_signals/constant.FAILED_ASSERT_NE_SIGNAL.html +++ b/static/sway/std/error_signals/constant.FAILED_ASSERT_NE_SIGNAL.html @@ -1,4 +1,4 @@ -FAILED_ASSERT_NE_SIGNAL in error_signals - Sway
                        pub const FAILED_ASSERT_NE_SIGNAL = 0xffff_ffff_ffff_0005
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.

                        +FAILED_ASSERT_NE_SIGNAL in error_signals - Sway
                        pub const FAILED_ASSERT_NE_SIGNAL = 0xffff_ffff_ffff_0005
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.

                        Additional Information

                        The value is: 18446744073709486085

                        \ No newline at end of file diff --git a/static/sway/std/error_signals/constant.FAILED_ASSERT_SIGNAL.html b/static/sway/std/error_signals/constant.FAILED_ASSERT_SIGNAL.html index 60e97956..75e600b8 100644 --- a/static/sway/std/error_signals/constant.FAILED_ASSERT_SIGNAL.html +++ b/static/sway/std/error_signals/constant.FAILED_ASSERT_SIGNAL.html @@ -1,4 +1,4 @@ -FAILED_ASSERT_SIGNAL in error_signals - Sway
                        pub const FAILED_ASSERT_SIGNAL = 0xffff_ffff_ffff_0004
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::assert::assert.

                        +FAILED_ASSERT_SIGNAL in error_signals - Sway
                        pub const FAILED_ASSERT_SIGNAL = 0xffff_ffff_ffff_0004
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::assert::assert.

                        Additional Information

                        The value is: 18446744073709486084

                        \ No newline at end of file diff --git a/static/sway/std/error_signals/constant.FAILED_REQUIRE_SIGNAL.html b/static/sway/std/error_signals/constant.FAILED_REQUIRE_SIGNAL.html index b521ed17..cafea71b 100644 --- a/static/sway/std/error_signals/constant.FAILED_REQUIRE_SIGNAL.html +++ b/static/sway/std/error_signals/constant.FAILED_REQUIRE_SIGNAL.html @@ -1,4 +1,4 @@ -FAILED_REQUIRE_SIGNAL in error_signals - Sway
                        pub const FAILED_REQUIRE_SIGNAL = 0xffff_ffff_ffff_0000
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::revert::require.

                        +FAILED_REQUIRE_SIGNAL in error_signals - Sway
                        pub const FAILED_REQUIRE_SIGNAL = 0xffff_ffff_ffff_0000
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::revert::require.

                        Additional Information

                        The value is: 18446744073709486080

                        \ No newline at end of file diff --git a/static/sway/std/error_signals/constant.FAILED_TRANSFER_TO_ADDRESS_SIGNAL.html b/static/sway/std/error_signals/constant.FAILED_TRANSFER_TO_ADDRESS_SIGNAL.html index 8f085330..6bc761e5 100644 --- a/static/sway/std/error_signals/constant.FAILED_TRANSFER_TO_ADDRESS_SIGNAL.html +++ b/static/sway/std/error_signals/constant.FAILED_TRANSFER_TO_ADDRESS_SIGNAL.html @@ -1,4 +1,4 @@ -FAILED_TRANSFER_TO_ADDRESS_SIGNAL in error_signals - Sway
                        pub const FAILED_TRANSFER_TO_ADDRESS_SIGNAL = 0xffff_ffff_ffff_0001
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.

                        +FAILED_TRANSFER_TO_ADDRESS_SIGNAL in error_signals - Sway
                        pub const FAILED_TRANSFER_TO_ADDRESS_SIGNAL = 0xffff_ffff_ffff_0001
                        Expand description

                        A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.

                        Additional Information

                        The value is: 18446744073709486081

                        \ No newline at end of file diff --git a/static/sway/std/error_signals/index.html b/static/sway/std/error_signals/index.html index 45562d13..005a7d68 100644 --- a/static/sway/std/error_signals/index.html +++ b/static/sway/std/error_signals/index.html @@ -1,2 +1,2 @@ -error_signals in std - Sway
                        Expand description

                        Values which signify special types of errors when passed to std::revert::revert.

                        +error_signals in std - Sway
                        Expand description

                        Values which signify special types of errors when passed to std::revert::revert.

                        Constants

                        A revert with this value signals that it was caused by a failing call to std::assert::assert_eq.

                        A revert with this value signals that it was caused by a failing call to std::assert::assert_ne.

                        A revert with this value signals that it was caused by a failing call to std::assert::assert.

                        A revert with this value signals that it was caused by a failing call to std::revert::require.

                        A revert with this value signals that it was caused by a failing call to std::asset::transfer_to_address.

                        \ No newline at end of file diff --git a/static/sway/std/execution/fn.run_external.html b/static/sway/std/execution/fn.run_external.html index 351ef00f..66b01fdb 100644 --- a/static/sway/std/execution/fn.run_external.html +++ b/static/sway/std/execution/fn.run_external.html @@ -1,4 +1,4 @@ -run_external in execution - Sway
                        pub fn run_external(load_target: ContractId) -> ! 
                        Expand description

                        Load and run the contract with the provided ContractId.

                        +run_external in execution - Sway
                        pub fn run_external(load_target: ContractId) -> ! 
                        Expand description

                        Load and run the contract with the provided ContractId.

                        Contract code will be loaded using LDC and jumped into.
                        Unlike a normal contract call, the context of the contract running
                        run_external is retained for the loaded code.

                        diff --git a/static/sway/std/execution/index.html b/static/sway/std/execution/index.html index 70c04cbe..284a8364 100644 --- a/static/sway/std/execution/index.html +++ b/static/sway/std/execution/index.html @@ -1,3 +1,3 @@ -execution in std - Sway

                        Module std::execution

                        Expand description

                        Helper functions to load and run external contract code.

                        +execution in std - Sway

                        Module std::execution

                        Expand description

                        Helper functions to load and run external contract code.

                        Functions

                        Load and run the contract with the provided ContractId.

                        \ No newline at end of file diff --git a/static/sway/std/external/fn.bytecode_root.html b/static/sway/std/external/fn.bytecode_root.html index d9c257cf..e470a54a 100644 --- a/static/sway/std/external/fn.bytecode_root.html +++ b/static/sway/std/external/fn.bytecode_root.html @@ -1,4 +1,4 @@ -bytecode_root in external - Sway
                        pub fn bytecode_root(contract_id: ContractId) -> b256 
                        Expand description

                        Get the root of the bytecode of the contract at ‘contract_id’.

                        +bytecode_root in external - Sway
                        pub fn bytecode_root(contract_id: ContractId) -> b256 
                        Expand description

                        Get the root of the bytecode of the contract at ‘contract_id’.

                        Arguments

                        • contract_id: [ContractId] - The contract of which the bytecode should be returned.
                        • diff --git a/static/sway/std/external/index.html b/static/sway/std/external/index.html index 4db5aff5..ca5027af 100644 --- a/static/sway/std/external/index.html +++ b/static/sway/std/external/index.html @@ -1,3 +1,3 @@ -external in std - Sway

                          Module std::external

                          Expand description

                          Functions to work with external contracts.

                          +external in std - Sway

                          Module std::external

                          Expand description

                          Functions to work with external contracts.

                          Functions

                          Get the root of the bytecode of the contract at ‘contract_id’.

                          \ No newline at end of file diff --git a/static/sway/std/flags/constant.F_UNSAFEMATH_DISABLE_MASK.html b/static/sway/std/flags/constant.F_UNSAFEMATH_DISABLE_MASK.html index 42f04963..68afab38 100644 --- a/static/sway/std/flags/constant.F_UNSAFEMATH_DISABLE_MASK.html +++ b/static/sway/std/flags/constant.F_UNSAFEMATH_DISABLE_MASK.html @@ -1 +1 @@ -F_UNSAFEMATH_DISABLE_MASK in flags - Sway
                          pub const F_UNSAFEMATH_DISABLE_MASK: u64 = 0b00000000_00000000_00000000_00000000_00000000_00000000_00000000_00000001
                          \ No newline at end of file +F_UNSAFEMATH_DISABLE_MASK in flags - Sway
                          pub const F_UNSAFEMATH_DISABLE_MASK: u64 = 0b00000000_00000000_00000000_00000000_00000000_00000000_00000000_00000001
                          \ No newline at end of file diff --git a/static/sway/std/flags/constant.F_UNSAFEMATH_ENABLE_MASK.html b/static/sway/std/flags/constant.F_UNSAFEMATH_ENABLE_MASK.html index 040b96f9..340d5086 100644 --- a/static/sway/std/flags/constant.F_UNSAFEMATH_ENABLE_MASK.html +++ b/static/sway/std/flags/constant.F_UNSAFEMATH_ENABLE_MASK.html @@ -1 +1 @@ -F_UNSAFEMATH_ENABLE_MASK in flags - Sway
                          pub const F_UNSAFEMATH_ENABLE_MASK: u64 = 0b11111111_11111111_11111111_11111111_11111111_11111111_11111111_11111110
                          \ No newline at end of file +F_UNSAFEMATH_ENABLE_MASK in flags - Sway
                          pub const F_UNSAFEMATH_ENABLE_MASK: u64 = 0b11111111_11111111_11111111_11111111_11111111_11111111_11111111_11111110
                          \ No newline at end of file diff --git a/static/sway/std/flags/constant.F_WRAPPING_DISABLE_MASK.html b/static/sway/std/flags/constant.F_WRAPPING_DISABLE_MASK.html index 5c2e7819..395bcd29 100644 --- a/static/sway/std/flags/constant.F_WRAPPING_DISABLE_MASK.html +++ b/static/sway/std/flags/constant.F_WRAPPING_DISABLE_MASK.html @@ -1 +1 @@ -F_WRAPPING_DISABLE_MASK in flags - Sway
                          pub const F_WRAPPING_DISABLE_MASK: u64 = 0b00000000_00000000_00000000_00000000_00000000_00000000_00000000_00000010
                          \ No newline at end of file +F_WRAPPING_DISABLE_MASK in flags - Sway
                          pub const F_WRAPPING_DISABLE_MASK: u64 = 0b00000000_00000000_00000000_00000000_00000000_00000000_00000000_00000010
                          \ No newline at end of file diff --git a/static/sway/std/flags/constant.F_WRAPPING_ENABLE_MASK.html b/static/sway/std/flags/constant.F_WRAPPING_ENABLE_MASK.html index ea859006..8cc5c773 100644 --- a/static/sway/std/flags/constant.F_WRAPPING_ENABLE_MASK.html +++ b/static/sway/std/flags/constant.F_WRAPPING_ENABLE_MASK.html @@ -1 +1 @@ -F_WRAPPING_ENABLE_MASK in flags - Sway
                          pub const F_WRAPPING_ENABLE_MASK: u64 = 0b11111111_11111111_11111111_11111111_11111111_11111111_11111111_11111101
                          \ No newline at end of file +F_WRAPPING_ENABLE_MASK in flags - Sway
                          pub const F_WRAPPING_ENABLE_MASK: u64 = 0b11111111_11111111_11111111_11111111_11111111_11111111_11111111_11111101
                          \ No newline at end of file diff --git a/static/sway/std/flags/fn.disable_panic_on_overflow.html b/static/sway/std/flags/fn.disable_panic_on_overflow.html index 41d5b447..f06669b9 100644 --- a/static/sway/std/flags/fn.disable_panic_on_overflow.html +++ b/static/sway/std/flags/fn.disable_panic_on_overflow.html @@ -1,4 +1,4 @@ -disable_panic_on_overflow in flags - Sway
                          pub fn disable_panic_on_overflow() -> u64 
                          Expand description

                          Allows overflowing operations to occur without a FuelVM panic.

                          +disable_panic_on_overflow in flags - Sway
                          pub fn disable_panic_on_overflow() -> u64 
                          Expand description

                          Allows overflowing operations to occur without a FuelVM panic.

                          Additional Information

                          WARNING:

                          diff --git a/static/sway/std/flags/fn.disable_panic_on_unsafe_math.html b/static/sway/std/flags/fn.disable_panic_on_unsafe_math.html index 6bac74e2..e7121b81 100644 --- a/static/sway/std/flags/fn.disable_panic_on_unsafe_math.html +++ b/static/sway/std/flags/fn.disable_panic_on_unsafe_math.html @@ -1,4 +1,4 @@ -disable_panic_on_unsafe_math in flags - Sway
                          pub fn disable_panic_on_unsafe_math() -> u64 
                          Expand description

                          Allows unsafe math operations to occur without a FuelVM panic.
                          +disable_panic_on_unsafe_math in flags - Sway

                          pub fn disable_panic_on_unsafe_math() -> u64 
                          Expand description

                          Allows unsafe math operations to occur without a FuelVM panic.
                          Sets the $err register to true whenever unsafe math occurs.

                          Additional Information

                          diff --git a/static/sway/std/flags/fn.enable_panic_on_overflow.html b/static/sway/std/flags/fn.enable_panic_on_overflow.html index f44512f9..908bf86b 100644 --- a/static/sway/std/flags/fn.enable_panic_on_overflow.html +++ b/static/sway/std/flags/fn.enable_panic_on_overflow.html @@ -1,4 +1,4 @@ -enable_panic_on_overflow in flags - Sway
                          pub fn enable_panic_on_overflow() 
                          Expand description

                          Enables the default panic-on-overflow behavior in the FuelVM.

                          +enable_panic_on_overflow in flags - Sway
                          pub fn enable_panic_on_overflow() 
                          Expand description

                          Enables the default panic-on-overflow behavior in the FuelVM.

                          Additional Information

                          Note:

                          diff --git a/static/sway/std/flags/fn.enable_panic_on_unsafe_math.html b/static/sway/std/flags/fn.enable_panic_on_unsafe_math.html index a535a4a4..566ab422 100644 --- a/static/sway/std/flags/fn.enable_panic_on_unsafe_math.html +++ b/static/sway/std/flags/fn.enable_panic_on_unsafe_math.html @@ -1,4 +1,4 @@ -enable_panic_on_unsafe_math in flags - Sway
                          pub fn enable_panic_on_unsafe_math() 
                          Expand description

                          Enables the default panic-on-unsafe-math behavior in the FuelVM.

                          +enable_panic_on_unsafe_math in flags - Sway
                          pub fn enable_panic_on_unsafe_math() 
                          Expand description

                          Enables the default panic-on-unsafe-math behavior in the FuelVM.

                          Additional Information

                          Note:

                          diff --git a/static/sway/std/flags/fn.panic_on_overflow_enabled.html b/static/sway/std/flags/fn.panic_on_overflow_enabled.html new file mode 100644 index 00000000..79a9cd92 --- /dev/null +++ b/static/sway/std/flags/fn.panic_on_overflow_enabled.html @@ -0,0 +1,15 @@ +panic_on_overflow_enabled in flags - Sway
                          pub fn panic_on_overflow_enabled() -> bool 
                          Expand description

                          Checks if the panic-on-overflow flag is set in the FuelVM.

                          +

                          Returns

                          +
                            +
                          • [bool] - true if panic-on-overflow is enabled. false otherwise.
                          • +
                          +

                          Examples

                          +
                          use std::flags::panic_on_overflow_enabled;
                          +
                          +fn main() {
                          +    let is_enabled = panic_on_overflow_enabled();
                          +    // Panic on overflow is enabled by default.
                          +    assert(is_enabled);
                          +}
                          +
                          +
                          \ No newline at end of file diff --git a/static/sway/std/flags/fn.panic_on_unsafe_math_enabled.html b/static/sway/std/flags/fn.panic_on_unsafe_math_enabled.html new file mode 100644 index 00000000..f9eb63cb --- /dev/null +++ b/static/sway/std/flags/fn.panic_on_unsafe_math_enabled.html @@ -0,0 +1,15 @@ +panic_on_unsafe_math_enabled in flags - Sway
                          pub fn panic_on_unsafe_math_enabled() -> bool 
                          Expand description

                          Checks if the panic-on-unsafe-math flag is set in the FuelVM.

                          +

                          Returns

                          +
                            +
                          • [bool] - true if panic-on-unsafe-math is enabled. false otherwise.
                          • +
                          +

                          Examples

                          +
                          use std::flags::panic_on_unsafe_math_enabled;
                          +
                          +fn main() {
                          +    let is_enabled = panic_on_unsafe_math_enabled();
                          +    // Panic on unsafe math is enabled by default.
                          +    assert(is_enabled);
                          +}
                          +
                          +
                          \ No newline at end of file diff --git a/static/sway/std/flags/fn.set_flags.html b/static/sway/std/flags/fn.set_flags.html index 560d5efc..e4866edc 100644 --- a/static/sway/std/flags/fn.set_flags.html +++ b/static/sway/std/flags/fn.set_flags.html @@ -1,4 +1,4 @@ -set_flags in flags - Sway

                          Function std::flags::set_flags

                          pub fn set_flags(new_flags: u64) 
                          Expand description

                          Sets the flag register to the given value.

                          +set_flags in flags - Sway

                          Function std::flags::set_flags

                          pub fn set_flags(new_flags: u64) 
                          Expand description

                          Sets the flag register to the given value.

                          Arguments

                          • new_flags: [u64] - Binary encoded 64 bit value representing the flags to set.
                          • diff --git a/static/sway/std/flags/index.html b/static/sway/std/flags/index.html index 91d8d09d..2be962db 100644 --- a/static/sway/std/flags/index.html +++ b/static/sway/std/flags/index.html @@ -1,6 +1,8 @@ -flags in std - Sway

                            Module std::flags

                            Expand description

                            Functionality for setting and unsetting FuelVM flags to modify behavior related to the $err and $of registers.

                            +flags in std - Sway

                            Module std::flags

                            Expand description

                            Functionality for setting and unsetting FuelVM flags to modify behavior related to the $err and $of registers.

                            Constants

                            Functions

                            Allows overflowing operations to occur without a FuelVM panic.

                            Allows unsafe math operations to occur without a FuelVM panic.

                            Enables the default panic-on-overflow behavior in the FuelVM.

                            Enables the default panic-on-unsafe-math behavior in the FuelVM.

                            +

                            Checks if the panic-on-overflow flag is set in the FuelVM.

                            +

                            Checks if the panic-on-unsafe-math flag is set in the FuelVM.

                            Sets the flag register to the given value.

                            \ No newline at end of file diff --git a/static/sway/std/hash/fn.keccak256.html b/static/sway/std/hash/fn.keccak256.html index ba25f085..5df97152 100644 --- a/static/sway/std/hash/fn.keccak256.html +++ b/static/sway/std/hash/fn.keccak256.html @@ -1,4 +1,4 @@ -keccak256 in hash - Sway

                            Function std::hash::keccak256

                            pub fn keccak256<T>(s: T) -> b256
                            +keccak256 in hash - Sway

                            Function std::hash::keccak256

                            pub fn keccak256<T>(s: T) -> b256
                             where
                                 T: Hash,
                             
                            Expand description

                            Returns the KECCAK-256 hash of param.

                            diff --git a/static/sway/std/hash/fn.sha256.html b/static/sway/std/hash/fn.sha256.html index ce4434f6..a423d360 100644 --- a/static/sway/std/hash/fn.sha256.html +++ b/static/sway/std/hash/fn.sha256.html @@ -1,4 +1,4 @@ -sha256 in hash - Sway

                            Function std::hash::sha256

                            pub fn sha256<T>(s: T) -> b256
                            +sha256 in hash - Sway

                            Function std::hash::sha256

                            pub fn sha256<T>(s: T) -> b256
                             where
                                 T: Hash,
                             
                            Expand description

                            Returns the SHA-2-256 hash of param.

                            diff --git a/static/sway/std/hash/fn.sha256_str_array.html b/static/sway/std/hash/fn.sha256_str_array.html index 0a612efe..c753c150 100644 --- a/static/sway/std/hash/fn.sha256_str_array.html +++ b/static/sway/std/hash/fn.sha256_str_array.html @@ -1,4 +1,4 @@ -sha256_str_array in hash - Sway
                            pub fn sha256_str_array<S>(param: S) -> b256 
                            Expand description

                            Returns the SHA-2-256 hash of param.
                            +sha256_str_array in hash - Sway

                            pub fn sha256_str_array<S>(param: S) -> b256 
                            Expand description

                            Returns the SHA-2-256 hash of param.
                            This function is specific for string arrays

                            Examples

                            use std::hash::*;
                            diff --git a/static/sway/std/hash/index.html b/static/sway/std/hash/index.html
                            index f39a84d7..60ae997e 100644
                            --- a/static/sway/std/hash/index.html
                            +++ b/static/sway/std/hash/index.html
                            @@ -1,4 +1,4 @@
                            -hash in std - Sway

                            Module std::hash

                            Expand description

                            Utility functions for cryptographic hashing.

                            +hash in std - Sway

                            Module std::hash

                            Expand description

                            Utility functions for cryptographic hashing.

                            Structs

                            Traits

                            Functions

                            Returns the KECCAK-256 hash of param.

                            Returns the SHA-2-256 hash of param.

                            Returns the SHA-2-256 hash of param.

                            \ No newline at end of file diff --git a/static/sway/std/hash/struct.Hasher.html b/static/sway/std/hash/struct.Hasher.html index 161924ee..b4abdc47 100644 --- a/static/sway/std/hash/struct.Hasher.html +++ b/static/sway/std/hash/struct.Hasher.html @@ -1,4 +1,4 @@ -Hasher in hash - Sway

                            Struct std::hash::Hasher

                            pub struct Hasher {
                            +Hasher in hash - Sway

                            Struct std::hash::Hasher

                            pub struct Hasher {
                                 bytes: Bytes,
                             }

                            Fields

                            bytes: Bytes

                            Implementations

                            fn new() -> Self

                            fn write(
                            refmut self,
                            bytes: Bytes,
                            )

                            Writes some data into this Hasher.

                            fn sha256(self) -> b256

                            fn keccak256(self) -> b256

                            fn write_str(
                            refmut self,
                            s: str,
                            )

                            Writes a single str into this hasher.

                            diff --git a/static/sway/std/hash/trait.Hash.html b/static/sway/std/hash/trait.Hash.html index e1681d91..2161bed5 100644 --- a/static/sway/std/hash/trait.Hash.html +++ b/static/sway/std/hash/trait.Hash.html @@ -1,3 +1,3 @@ -Hash in hash - Sway

                            Trait std::hash::Hash

                            pub trait Hash {
                            +Hash in hash - Sway

                            Trait std::hash::Hash

                            pub trait Hash {
                                 fn hash(self, ref mut state: Hasher);
                             }

                            Required Methods

                            \ No newline at end of file diff --git a/static/sway/std/identity/enum.Identity.html b/static/sway/std/identity/enum.Identity.html index e352a94c..5e216b33 100644 --- a/static/sway/std/identity/enum.Identity.html +++ b/static/sway/std/identity/enum.Identity.html @@ -1,4 +1,4 @@ -Identity in identity - Sway
                            pub enum Identity {
                            +Identity in identity - Sway
                            pub enum Identity {
                                 Address: Address,
                                 ContractId: ContractId,
                             }
                            Expand description

                            The Identity type: either an Address or a ContractId.

                            diff --git a/static/sway/std/identity/index.html b/static/sway/std/identity/index.html index 40cb601d..8c88cd1b 100644 --- a/static/sway/std/identity/index.html +++ b/static/sway/std/identity/index.html @@ -1,4 +1,4 @@ -identity in std - Sway

                            Module std::identity

                            Expand description

                            A wrapper type with two variants, Address and ContractId.
                            +identity in std - Sway

                            Module std::identity

                            Expand description

                            A wrapper type with two variants, Address and ContractId.
                            The use of this type allows for handling interactions with contracts and addresses in a unified manner.

                            Enums

                            The Identity type: either an Address or a ContractId.

                            \ No newline at end of file diff --git a/static/sway/std/index.html b/static/sway/std/index.html index ee23fac5..adb80f3d 100644 --- a/static/sway/std/index.html +++ b/static/sway/std/index.html @@ -1,4 +1,4 @@ -std in std - Sway

                            Library std

                            Modules

                            The Address type used for interacting with addresses on the fuel network.

                            +std in std - Sway

                            Library std

                            Modules

                            The Address type used for interacting with addresses on the fuel network.

                            A library for allocating memory inspired by Rust’s std::alloc.

                            Functions to assert a given condition.

                            Functionality for performing common operations with assets.

                            The AssetId type used for interacting with an asset on the fuel network.

                            diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_AMOUNT.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_AMOUNT.html index e12ad5ef..e2bae5f4 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_AMOUNT.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_AMOUNT.html @@ -1 +1 @@ -GTF_INPUT_COIN_AMOUNT in inputs - Sway
                            pub const GTF_INPUT_COIN_AMOUNT = 0x204
                            \ No newline at end of file +GTF_INPUT_COIN_AMOUNT in inputs - Sway
                            pub const GTF_INPUT_COIN_AMOUNT = 0x204
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_ASSET_ID.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_ASSET_ID.html index eee24536..44850e11 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_ASSET_ID.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_ASSET_ID.html @@ -1 +1 @@ -GTF_INPUT_COIN_ASSET_ID in inputs - Sway
                            pub const GTF_INPUT_COIN_ASSET_ID = 0x205
                            \ No newline at end of file +GTF_INPUT_COIN_ASSET_ID in inputs - Sway
                            pub const GTF_INPUT_COIN_ASSET_ID = 0x205
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_OWNER.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_OWNER.html index 6b5d5340..33585fce 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_OWNER.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_OWNER.html @@ -1 +1 @@ -GTF_INPUT_COIN_OWNER in inputs - Sway
                            pub const GTF_INPUT_COIN_OWNER = 0x203
                            \ No newline at end of file +GTF_INPUT_COIN_OWNER in inputs - Sway
                            pub const GTF_INPUT_COIN_OWNER = 0x203
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE.html index e8e7ebb4..9a58a023 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE.html @@ -1 +1 @@ -GTF_INPUT_COIN_PREDICATE in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE = 0x20B
                            \ No newline at end of file +GTF_INPUT_COIN_PREDICATE in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE = 0x20B
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA.html index 7f3ea16c..54b44619 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA.html @@ -1 +1 @@ -GTF_INPUT_COIN_PREDICATE_DATA in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE_DATA = 0x20C
                            \ No newline at end of file +GTF_INPUT_COIN_PREDICATE_DATA in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE_DATA = 0x20C
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA_LENGTH.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA_LENGTH.html index 5bd84105..9538eb3e 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA_LENGTH.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_DATA_LENGTH.html @@ -1 +1 @@ -GTF_INPUT_COIN_PREDICATE_DATA_LENGTH in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE_DATA_LENGTH = 0x20A
                            \ No newline at end of file +GTF_INPUT_COIN_PREDICATE_DATA_LENGTH in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE_DATA_LENGTH = 0x20A
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_LENGTH.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_LENGTH.html index aa8b8e96..ba511b77 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_LENGTH.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_PREDICATE_LENGTH.html @@ -1 +1 @@ -GTF_INPUT_COIN_PREDICATE_LENGTH in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE_LENGTH = 0x209
                            \ No newline at end of file +GTF_INPUT_COIN_PREDICATE_LENGTH in inputs - Sway
                            pub const GTF_INPUT_COIN_PREDICATE_LENGTH = 0x209
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_COIN_WITNESS_INDEX.html b/static/sway/std/inputs/constant.GTF_INPUT_COIN_WITNESS_INDEX.html index 1777a7a9..f655a544 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_COIN_WITNESS_INDEX.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_COIN_WITNESS_INDEX.html @@ -1 +1 @@ -GTF_INPUT_COIN_WITNESS_INDEX in inputs - Sway
                            pub const GTF_INPUT_COIN_WITNESS_INDEX = 0x207
                            \ No newline at end of file +GTF_INPUT_COIN_WITNESS_INDEX in inputs - Sway
                            pub const GTF_INPUT_COIN_WITNESS_INDEX = 0x207
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_AMOUNT.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_AMOUNT.html index 55aa180f..fd16f53a 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_AMOUNT.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_AMOUNT.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_AMOUNT in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_AMOUNT = 0x242
                            \ No newline at end of file +GTF_INPUT_MESSAGE_AMOUNT in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_AMOUNT = 0x242
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA.html index 270e29e2..e1281d4b 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_DATA in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_DATA = 0x248
                            \ No newline at end of file +GTF_INPUT_MESSAGE_DATA in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_DATA = 0x248
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA_LENGTH.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA_LENGTH.html index c153b70c..4e0311e1 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA_LENGTH.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_DATA_LENGTH.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_DATA_LENGTH in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_DATA_LENGTH = 0x245
                            \ No newline at end of file +GTF_INPUT_MESSAGE_DATA_LENGTH in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_DATA_LENGTH = 0x245
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_NONCE.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_NONCE.html index 5443ff1d..52b0362a 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_NONCE.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_NONCE.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_NONCE in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_NONCE = 0x243
                            \ No newline at end of file +GTF_INPUT_MESSAGE_NONCE in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_NONCE = 0x243
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE.html index be5c65ae..5134a629 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_PREDICATE in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE = 0x249
                            \ No newline at end of file +GTF_INPUT_MESSAGE_PREDICATE in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE = 0x249
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA.html index b86ebf62..4138d410 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_PREDICATE_DATA in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE_DATA = 0x24A
                            \ No newline at end of file +GTF_INPUT_MESSAGE_PREDICATE_DATA in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE_DATA = 0x24A
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH.html index 4a0da39a..425a5c89 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH = 0x247
                            \ No newline at end of file +GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE_DATA_LENGTH = 0x247
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_LENGTH.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_LENGTH.html index 408479aa..09d60b3f 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_LENGTH.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_PREDICATE_LENGTH.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_PREDICATE_LENGTH in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE_LENGTH = 0x246
                            \ No newline at end of file +GTF_INPUT_MESSAGE_PREDICATE_LENGTH in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_PREDICATE_LENGTH = 0x246
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_RECIPIENT.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_RECIPIENT.html index 12ab64c7..47a86843 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_RECIPIENT.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_RECIPIENT.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_RECIPIENT in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_RECIPIENT = 0x241
                            \ No newline at end of file +GTF_INPUT_MESSAGE_RECIPIENT in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_RECIPIENT = 0x241
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_SENDER.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_SENDER.html index b88de8a2..dfcb6943 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_SENDER.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_SENDER.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_SENDER in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_SENDER = 0x240
                            \ No newline at end of file +GTF_INPUT_MESSAGE_SENDER in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_SENDER = 0x240
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_WITNESS_INDEX.html b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_WITNESS_INDEX.html index c17c7a93..22088faa 100644 --- a/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_WITNESS_INDEX.html +++ b/static/sway/std/inputs/constant.GTF_INPUT_MESSAGE_WITNESS_INDEX.html @@ -1 +1 @@ -GTF_INPUT_MESSAGE_WITNESS_INDEX in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_WITNESS_INDEX = 0x244
                            \ No newline at end of file +GTF_INPUT_MESSAGE_WITNESS_INDEX in inputs - Sway
                            pub const GTF_INPUT_MESSAGE_WITNESS_INDEX = 0x244
                            \ No newline at end of file diff --git a/static/sway/std/inputs/constant.GTF_INPUT_TYPE.html b/static/sway/std/inputs/constant.GTF_INPUT_TYPE.html new file mode 100644 index 00000000..e6a66d0d --- /dev/null +++ b/static/sway/std/inputs/constant.GTF_INPUT_TYPE.html @@ -0,0 +1 @@ +GTF_INPUT_TYPE in inputs - Sway
                            pub const GTF_INPUT_TYPE = 0x200
                            \ No newline at end of file diff --git a/static/sway/std/inputs/enum.Input.html b/static/sway/std/inputs/enum.Input.html index d6571b1d..4231801e 100644 --- a/static/sway/std/inputs/enum.Input.html +++ b/static/sway/std/inputs/enum.Input.html @@ -1,4 +1,4 @@ -Input in inputs - Sway
                            pub enum Input {
                            +Input in inputs - Sway
                            pub enum Input {
                                 /// A coin input.
                                 Coin: (),
                                 /// A contract input.
                            diff --git a/static/sway/std/inputs/fn.input_amount.html b/static/sway/std/inputs/fn.input_amount.html
                            index 966a7acb..2bf84752 100644
                            --- a/static/sway/std/inputs/fn.input_amount.html
                            +++ b/static/sway/std/inputs/fn.input_amount.html
                            @@ -1,4 +1,4 @@
                            -input_amount in inputs - Sway
                            pub fn input_amount(index: u64) -> Option<u64> 
                            Expand description

                            Gets amount field from input at index.

                            +input_amount in inputs - Sway
                            pub fn input_amount(index: u64) -> Option<u64> 
                            Expand description

                            Gets amount field from input at index.

                            Arguments

                            • index: [u64] - The index of the input to check.
                            • diff --git a/static/sway/std/inputs/fn.input_asset_id.html b/static/sway/std/inputs/fn.input_asset_id.html index 0d3897bc..d8fd0fe2 100644 --- a/static/sway/std/inputs/fn.input_asset_id.html +++ b/static/sway/std/inputs/fn.input_asset_id.html @@ -1,4 +1,4 @@ -input_asset_id in inputs - Sway
                              pub fn input_asset_id(index: u64) -> Option<AssetId> 
                              Expand description

                              Gets the AssetId of the input at index.

                              +input_asset_id in inputs - Sway
                              pub fn input_asset_id(index: u64) -> Option<AssetId> 
                              Expand description

                              Gets the AssetId of the input at index.

                              Arguments

                              • index: [u64] - The index of the input to check.
                              • diff --git a/static/sway/std/inputs/fn.input_coin_owner.html b/static/sway/std/inputs/fn.input_coin_owner.html index 3c49be5f..e96126fc 100644 --- a/static/sway/std/inputs/fn.input_coin_owner.html +++ b/static/sway/std/inputs/fn.input_coin_owner.html @@ -1,4 +1,4 @@ -input_coin_owner in inputs - Sway
                                pub fn input_coin_owner(index: u64) -> Option<Address> 
                                Expand description

                                Gets owner field from input at index if it’s a coin.

                                +input_coin_owner in inputs - Sway
                                pub fn input_coin_owner(index: u64) -> Option<Address> 
                                Expand description

                                Gets owner field from input at index if it’s a coin.

                                Arguments

                                • index: [u64] - The index of the input to check.
                                • diff --git a/static/sway/std/inputs/fn.input_count.html b/static/sway/std/inputs/fn.input_count.html index f314a687..640fe2c6 100644 --- a/static/sway/std/inputs/fn.input_count.html +++ b/static/sway/std/inputs/fn.input_count.html @@ -1,8 +1,12 @@ -input_count in inputs - Sway
                                  pub fn input_count() -> u16 
                                  Expand description

                                  Gets the transaction inputs count.

                                  +input_count in inputs - Sway
                                  pub fn input_count() -> u16 
                                  Expand description

                                  Gets the transaction inputs count.

                                  Returns

                                  • [u16] - The number of inputs in the transaction.
                                  +

                                  Reverts

                                  +
                                    +
                                  • When the input type is unrecognized. This should never happen.
                                  • +

                                  Examples

                                  use std::inputs::input_count;
                                   
                                  diff --git a/static/sway/std/inputs/fn.input_message_data.html b/static/sway/std/inputs/fn.input_message_data.html
                                  index ae3d515a..398821a4 100644
                                  --- a/static/sway/std/inputs/fn.input_message_data.html
                                  +++ b/static/sway/std/inputs/fn.input_message_data.html
                                  @@ -1,4 +1,4 @@
                                  -input_message_data in inputs - Sway
                                  pub fn input_message_data(index: u64, offset: u64) -> Bytes 
                                  Expand description

                                  Gets the data of the input message at index.

                                  +input_message_data in inputs - Sway
                                  pub fn input_message_data(index: u64, offset: u64) -> Option<Bytes> 
                                  Expand description

                                  Gets the data of the input message at index.

                                  Arguments

                                  • index: [u64] - The index of the input to check.
                                  • @@ -6,17 +6,13 @@

                                    Arguments

                                  Returns

                                    -
                                  • [Bytes] - The data of the input message at index, if the input’s type is Input::Message.
                                  • -
                                  -

                                  Reverts

                                  -
                                    -
                                  • When the input’s type is not Input::Message.
                                  • +
                                  • [Option] - The data of the input message at index, if the input’s type is Input::Message.

                                  Examples

                                  use std::inputs::input_message_data;
                                   
                                   fn foo() {
                                  -    let input_message_data = input_message_data(0, 0);
                                  +    let input_message_data = input_message_data(0, 0).unwrap();
                                       assert(input_message_data.len() != 0);
                                   }
                                   
                                  diff --git a/static/sway/std/inputs/fn.input_message_data_length.html b/static/sway/std/inputs/fn.input_message_data_length.html index 6a882a21..c4d6b304 100644 --- a/static/sway/std/inputs/fn.input_message_data_length.html +++ b/static/sway/std/inputs/fn.input_message_data_length.html @@ -1,17 +1,17 @@ -input_message_data_length in inputs - Sway
                                  pub fn input_message_data_length(index: u64) -> u64 
                                  Expand description

                                  Gets the length of the input message at index.

                                  +input_message_data_length in inputs - Sway
                                  pub fn input_message_data_length(index: u64) -> Option<u64> 
                                  Expand description

                                  Gets the length of the input message at index.

                                  Arguments

                                  • index: [u64] - The index of the input to check.

                                  Returns

                                    -
                                  • [u64] - The length of the input message at index, if the input’s type is Input::Message.
                                  • +
                                  • [Option] - The length of the input message at index, if the input’s type is Input::Message.

                                  Examples

                                  use std::inputs::input_message_length;
                                   
                                   fn foo() {
                                  -    let input_message_length = input_message_length(0);
                                  +    let input_message_length = input_message_length(0).unwrap();
                                       assert(input_message_length != 0_u64);
                                   }
                                   
                                  diff --git a/static/sway/std/inputs/fn.input_message_nonce.html b/static/sway/std/inputs/fn.input_message_nonce.html index 3e067521..cbf5ec54 100644 --- a/static/sway/std/inputs/fn.input_message_nonce.html +++ b/static/sway/std/inputs/fn.input_message_nonce.html @@ -1,4 +1,4 @@ -input_message_nonce in inputs - Sway
                                  pub fn input_message_nonce(index: u64) -> b256 
                                  Expand description

                                  Gets the nonce of input message at index.

                                  +input_message_nonce in inputs - Sway
                                  pub fn input_message_nonce(index: u64) -> Option<b256> 
                                  Expand description

                                  Gets the nonce of input message at index.

                                  Arguments

                                  • index: [u64] - The index of the input to check.
                                  • diff --git a/static/sway/std/inputs/fn.input_message_recipient.html b/static/sway/std/inputs/fn.input_message_recipient.html index e4a631b6..baa03604 100644 --- a/static/sway/std/inputs/fn.input_message_recipient.html +++ b/static/sway/std/inputs/fn.input_message_recipient.html @@ -1,17 +1,17 @@ -input_message_recipient in inputs - Sway
                                    pub fn input_message_recipient(index: u64) -> Address 
                                    Expand description

                                    Gets the recipient of the input message at index.

                                    +input_message_recipient in inputs - Sway
                                    pub fn input_message_recipient(index: u64) -> Option<Address> 
                                    Expand description

                                    Gets the recipient of the input message at index.

                                    Arguments

                                    • index: [u64] - The index of the input to check.

                                    Returns

                                      -
                                    • [Address] - The recipient of the input message at index, if the input’s type is Input::Message.
                                    • +
                                    • [Option] - The recipient of the input message at index, if the input’s type is Input::Message.

                                    Examples

                                    use std::inputs::input_message_recipient;
                                     
                                     fn foo() {
                                    -    let input_message_recipient = input_message_recipient(0);
                                    +    let input_message_recipient = input_message_recipient(0).unwrap();
                                         assert(input_message_recipient != Address::zero());
                                     }
                                     
                                    diff --git a/static/sway/std/inputs/fn.input_message_sender.html b/static/sway/std/inputs/fn.input_message_sender.html index 03911dca..fe7c1980 100644 --- a/static/sway/std/inputs/fn.input_message_sender.html +++ b/static/sway/std/inputs/fn.input_message_sender.html @@ -1,17 +1,17 @@ -input_message_sender in inputs - Sway
                                    pub fn input_message_sender(index: u64) -> Address 
                                    Expand description

                                    Gets the sender of the input message at index.

                                    +input_message_sender in inputs - Sway
                                    pub fn input_message_sender(index: u64) -> Option<Address> 
                                    Expand description

                                    Gets the sender of the input message at index.

                                    Arguments

                                    • index: [u64] - The index of the input to check.

                                    Returns

                                      -
                                    • [Address] - The sender of the input message at index, if the input’s type is Input::Message.
                                    • +
                                    • [Option] - The sender of the input message at index, if the input’s type is Input::Message.

                                    Examples

                                    use std::inputs::input_message_sender;
                                     
                                     fn foo() {
                                    -    let input_message_sender = input_message_sender(0);
                                    +    let input_message_sender = input_message_sender(0).unwrap();
                                         assert(input_message_sender != Address::zero());
                                     }
                                     
                                    diff --git a/static/sway/std/inputs/fn.input_pointer.html b/static/sway/std/inputs/fn.input_pointer.html deleted file mode 100644 index dddda077..00000000 --- a/static/sway/std/inputs/fn.input_pointer.html +++ /dev/null @@ -1,17 +0,0 @@ -input_pointer in inputs - Sway
                                    pub fn input_pointer(index: u64) -> u64 
                                    Expand description

                                    Gets the pointer of the input at index.

                                    -

                                    Arguments

                                    -
                                      -
                                    • index: [u64] - The index of the input to check.
                                    • -
                                    -

                                    Returns

                                    -
                                      -
                                    • [u64] - The pointer of the input at index.
                                    • -
                                    -

                                    Examples

                                    -
                                    use std::inputs::input_pointer;
                                    -
                                    -fn foo() {
                                    -    let input_pointer = input_pointer(0);
                                    -}
                                    -
                                    -
                                    \ No newline at end of file diff --git a/static/sway/std/inputs/fn.input_predicate.html b/static/sway/std/inputs/fn.input_predicate.html index cf33dd45..44fc0069 100644 --- a/static/sway/std/inputs/fn.input_predicate.html +++ b/static/sway/std/inputs/fn.input_predicate.html @@ -1,21 +1,17 @@ -input_predicate in inputs - Sway
                                    pub fn input_predicate(index: u64) -> Bytes 
                                    Expand description

                                    Gets the predicate from the input at index.

                                    +input_predicate in inputs - Sway
                                    pub fn input_predicate(index: u64) -> Option<Bytes> 
                                    Expand description

                                    Gets the predicate from the input at index.

                                    Arguments

                                    • index: [u64] - The index of the input to check.

                                    Returns

                                      -
                                    • [Bytes] - The predicate bytecode of the input at index, if the input’s type is Input::Coin or Input::Message.
                                    • -
                                    -

                                    Reverts

                                    -
                                      -
                                    • When the input’s type is not Input::Coin or Input::Message.
                                    • +
                                    • [Option] - The predicate bytecode of the input at index, if the input’s type is Input::Coin or Input::Message.

                                    Examples

                                    use std::inputs::input_predicate;
                                     
                                     fn foo() {
                                    -    let input_predicate = input_predicate(0);
                                    +    let input_predicate = input_predicate(0).unwrap();
                                         assert(input_predicate.len() != 0);
                                     }
                                     
                                    diff --git a/static/sway/std/inputs/fn.input_predicate_data.html b/static/sway/std/inputs/fn.input_predicate_data.html index 8873d1e6..b08c9e12 100644 --- a/static/sway/std/inputs/fn.input_predicate_data.html +++ b/static/sway/std/inputs/fn.input_predicate_data.html @@ -1,4 +1,4 @@ -input_predicate_data in inputs - Sway
                                    pub fn input_predicate_data<T>(index: u64) -> T
                                    +input_predicate_data in inputs - Sway
                                    pub fn input_predicate_data<T>(index: u64) -> Option<T>
                                     where
                                         T: AbiDecode,
                                     
                                    Expand description

                                    Gets the predicate data from the input at index.

                                    @@ -8,13 +8,13 @@

                                    Arguments

                                  Returns

                                    -
                                  • [T] - The predicate data of the input at index.
                                  • +
                                  • [Option] - The predicate data of the input at index.

                                  Examples

                                  use std::inputs::input_predicate_data;
                                   
                                   fn foo() {
                                  -    let input_predicate_data: u64 = input_predicate_data(0);
                                  +    let input_predicate_data: u64 = input_predicate_data::<u64>(0).unwrap();
                                       assert(input_predicate_data == 100);
                                   }
                                   
                                  diff --git a/static/sway/std/inputs/fn.input_predicate_data_length.html b/static/sway/std/inputs/fn.input_predicate_data_length.html index 1d794b31..22bf28b9 100644 --- a/static/sway/std/inputs/fn.input_predicate_data_length.html +++ b/static/sway/std/inputs/fn.input_predicate_data_length.html @@ -1,4 +1,4 @@ -input_predicate_data_length in inputs - Sway
                                  pub fn input_predicate_data_length(index: u64) -> Option<u64> 
                                  Expand description

                                  Gets the predicate data length from the input at index.

                                  +input_predicate_data_length in inputs - Sway
                                  pub fn input_predicate_data_length(index: u64) -> Option<u64> 
                                  Expand description

                                  Gets the predicate data length from the input at index.

                                  Arguments

                                  • index: [u64] - The index of the input to check.
                                  • diff --git a/static/sway/std/inputs/fn.input_predicate_data_pointer.html b/static/sway/std/inputs/fn.input_predicate_data_pointer.html deleted file mode 100644 index 03c68b9c..00000000 --- a/static/sway/std/inputs/fn.input_predicate_data_pointer.html +++ /dev/null @@ -1,18 +0,0 @@ -input_predicate_data_pointer in inputs - Sway
                                    pub fn input_predicate_data_pointer(index: u64) -> Option<raw_ptr> 
                                    Expand description

                                    Gets the predicate data pointer from the input at index.

                                    -

                                    Arguments

                                    -
                                      -
                                    • index: [u64] - The index of the input to check.
                                    • -
                                    -

                                    Returns

                                    -
                                      -
                                    • [Option<raw_ptr>] - The predicate data pointer of the input at index, if the input’s type is Input::Coin or Input::Message, else None.
                                    • -
                                    -

                                    Examples

                                    -
                                    use std::inputs::input_predicate_data_pointer;
                                    -
                                    -fn foo() {
                                    -    let input_predicate_data_pointer = input_predicate_data_pointer(0);
                                    -    assert(input_predicate_data_pointer.is_some()); // Ensure the input is a coin or message input.
                                    -}
                                    -
                                    -
                                    \ No newline at end of file diff --git a/static/sway/std/inputs/fn.input_predicate_length.html b/static/sway/std/inputs/fn.input_predicate_length.html index 61eeea50..810b783b 100644 --- a/static/sway/std/inputs/fn.input_predicate_length.html +++ b/static/sway/std/inputs/fn.input_predicate_length.html @@ -1,4 +1,4 @@ -input_predicate_length in inputs - Sway
                                    pub fn input_predicate_length(index: u64) -> Option<u64> 
                                    Expand description

                                    Gets the predicate length from the input at index.

                                    +input_predicate_length in inputs - Sway
                                    pub fn input_predicate_length(index: u64) -> Option<u64> 
                                    Expand description

                                    Gets the predicate length from the input at index.

                                    Arguments

                                    • index: [u64] - The index of the input to check.
                                    • diff --git a/static/sway/std/inputs/fn.input_predicate_pointer.html b/static/sway/std/inputs/fn.input_predicate_pointer.html deleted file mode 100644 index 217cc721..00000000 --- a/static/sway/std/inputs/fn.input_predicate_pointer.html +++ /dev/null @@ -1,18 +0,0 @@ -input_predicate_pointer in inputs - Sway
                                      pub fn input_predicate_pointer(index: u64) -> Option<raw_ptr> 
                                      Expand description

                                      Gets the predicate pointer from the input at index.

                                      -

                                      Arguments

                                      -
                                        -
                                      • index: [u64] - The index of the input to check.
                                      • -
                                      -

                                      Returns

                                      -
                                        -
                                      • [Option<raw_ptr>] - The predicate pointer of the input at index, if the input’s type is Input::Coin or Input::Message, else None.
                                      • -
                                      -

                                      Examples

                                      -
                                      use std::inputs::input_predicate_pointer;
                                      -
                                      -fn foo() {
                                      -    let input_predicate_pointer = input_predicate_pointer(0);
                                      -    assert(input_predicate_pointer.is_some());
                                      -}
                                      -
                                      -
                                      \ No newline at end of file diff --git a/static/sway/std/inputs/fn.input_type.html b/static/sway/std/inputs/fn.input_type.html index 9bfddcda..84fd8404 100644 --- a/static/sway/std/inputs/fn.input_type.html +++ b/static/sway/std/inputs/fn.input_type.html @@ -1,4 +1,4 @@ -input_type in inputs - Sway

                                      Function std::inputs::input_type

                                      pub fn input_type(index: u64) -> Input 
                                      Expand description

                                      Gets the type of the input at index.

                                      +input_type in inputs - Sway

                                      Function std::inputs::input_type

                                      pub fn input_type(index: u64) -> Option<Input> 
                                      Expand description

                                      Gets the type of the input at index.

                                      Additional Information

                                      The Input can be of 3 variants, Input::Coin, Input::Contract or Input::Message.

                                      Arguments

                                      @@ -7,13 +7,13 @@

                                      Arguments

                                    Returns

                                      -
                                    • [Input] - The type of the input at index.
                                    • +
                                    • [Option] - The type of the input at index.

                                    Examples

                                    use std::inputs::input_type;
                                     
                                     fn foo() {
                                    -    let input_type = input_type(0);
                                    +    let input_type = input_type(0).unwrap();
                                         assert(input_type == Input::Coin);
                                     }
                                     
                                    diff --git a/static/sway/std/inputs/fn.input_witness_index.html b/static/sway/std/inputs/fn.input_witness_index.html index 70c4d6d2..fb8991f8 100644 --- a/static/sway/std/inputs/fn.input_witness_index.html +++ b/static/sway/std/inputs/fn.input_witness_index.html @@ -1,4 +1,4 @@ -input_witness_index in inputs - Sway
                                    pub fn input_witness_index(index: u64) -> Option<u16> 
                                    Expand description

                                    Gets the witness index from the input at index.

                                    +input_witness_index in inputs - Sway
                                    pub fn input_witness_index(index: u64) -> Option<u16> 
                                    Expand description

                                    Gets the witness index from the input at index.

                                    Arguments

                                    • index: [u64] - The index of the input to check.
                                    • diff --git a/static/sway/std/inputs/index.html b/static/sway/std/inputs/index.html index eccb85d0..1ebb841b 100644 --- a/static/sway/std/inputs/index.html +++ b/static/sway/std/inputs/index.html @@ -1,7 +1,7 @@ -inputs in std - Sway

                                      Module std::inputs

                                      Expand description

                                      Getters for fields on transaction inputs.
                                      +inputs in std - Sway

                                      Module std::inputs

                                      Expand description

                                      Getters for fields on transaction inputs.
                                      This includes Input::Coins, Input::Messages and Input::Contracts.

                                      Enums

                                      The input type for a transaction.

                                      -

                                      Constants

                                      Functions

                                      Gets amount field from input at index.

                                      +

                                      Constants

                                      Functions

                                      Gets amount field from input at index.

                                      Gets the AssetId of the input at index.

                                      Gets owner field from input at index if it’s a coin.

                                      Gets the transaction inputs count.

                                      @@ -10,13 +10,10 @@

                                      Gets the nonce of input message at index.

                                      Gets the recipient of the input message at index.

                                      Gets the sender of the input message at index.

                                      -

                                      Gets the pointer of the input at index.

                                      Gets the predicate from the input at index.

                                      Gets the predicate data from the input at index.

                                      Gets the predicate data length from the input at index.

                                      -

                                      Gets the predicate data pointer from the input at index.

                                      Gets the predicate length from the input at index.

                                      -

                                      Gets the predicate pointer from the input at index.

                                      Gets the type of the input at index.

                                      Gets the witness index from the input at index.

                                      \ No newline at end of file diff --git a/static/sway/std/intrinsics/fn.is_reference_type.html b/static/sway/std/intrinsics/fn.is_reference_type.html index 2e420fde..a8ea94ce 100644 --- a/static/sway/std/intrinsics/fn.is_reference_type.html +++ b/static/sway/std/intrinsics/fn.is_reference_type.html @@ -1,4 +1,4 @@ -is_reference_type in intrinsics - Sway
                                      pub fn is_reference_type<T>() -> bool 
                                      Expand description

                                      Returns whether a generic type T is a reference type or not.

                                      +is_reference_type in intrinsics - Sway
                                      pub fn is_reference_type<T>() -> bool 
                                      Expand description

                                      Returns whether a generic type T is a reference type or not.

                                      Returns

                                      • [bool] - true if T is a reference type, false otherwise.
                                      • diff --git a/static/sway/std/intrinsics/fn.size_of.html b/static/sway/std/intrinsics/fn.size_of.html index 53d0a948..f7188f88 100644 --- a/static/sway/std/intrinsics/fn.size_of.html +++ b/static/sway/std/intrinsics/fn.size_of.html @@ -1,4 +1,4 @@ -size_of in intrinsics - Sway
                                        pub fn size_of<T>() -> u64 
                                        Expand description

                                        Returns the size of a generic type T in bytes.

                                        +size_of in intrinsics - Sway
                                        pub fn size_of<T>() -> u64 
                                        Expand description

                                        Returns the size of a generic type T in bytes.

                                        Returns

                                        • [u64] - The size of T in bytes.
                                        • diff --git a/static/sway/std/intrinsics/fn.size_of_val.html b/static/sway/std/intrinsics/fn.size_of_val.html index 46c7bacc..b233c221 100644 --- a/static/sway/std/intrinsics/fn.size_of_val.html +++ b/static/sway/std/intrinsics/fn.size_of_val.html @@ -1,4 +1,4 @@ -size_of_val in intrinsics - Sway
                                          pub fn size_of_val<T>(val: T) -> u64 
                                          Expand description

                                          Returns the size of the type of a value in bytes.

                                          +size_of_val in intrinsics - Sway
                                          pub fn size_of_val<T>(val: T) -> u64 
                                          Expand description

                                          Returns the size of the type of a value in bytes.

                                          Arguments

                                          • val - The value to get the size of.
                                          • diff --git a/static/sway/std/intrinsics/index.html b/static/sway/std/intrinsics/index.html index 9e1c7f33..85677bf3 100644 --- a/static/sway/std/intrinsics/index.html +++ b/static/sway/std/intrinsics/index.html @@ -1,4 +1,4 @@ -intrinsics in std - Sway

                                            Module std::intrinsics

                                            Expand description

                                            Exposes compiler intrinsics as stdlib wrapper functions.

                                            +intrinsics in std - Sway

                                            Module std::intrinsics

                                            Expand description

                                            Exposes compiler intrinsics as stdlib wrapper functions.

                                            Functions

                                            Returns whether a generic type T is a reference type or not.

                                            Returns the size of a generic type T in bytes.

                                            Returns the size of the type of a value in bytes.

                                            diff --git a/static/sway/std/iterator/index.html b/static/sway/std/iterator/index.html index 6eb271a2..7157e3b9 100644 --- a/static/sway/std/iterator/index.html +++ b/static/sway/std/iterator/index.html @@ -1,2 +1,2 @@ -iterator in std - Sway

                                            Module std::iterator

                                            Expand description

                                            The iterator trait to iterate over elements.

                                            +iterator in std - Sway

                                            Module std::iterator

                                            Expand description

                                            The iterator trait to iterate over elements.

                                            Traits

                                            \ No newline at end of file diff --git a/static/sway/std/iterator/trait.Iterator.html b/static/sway/std/iterator/trait.Iterator.html index 5482b2bc..1f01f878 100644 --- a/static/sway/std/iterator/trait.Iterator.html +++ b/static/sway/std/iterator/trait.Iterator.html @@ -1,4 +1,4 @@ -Iterator in iterator - Sway
                                            pub trait Iterator {
                                            +Iterator in iterator - Sway
                                            pub trait Iterator {
                                                 /// The type of the elements being iterated over.
                                                 type Item;
                                                 /// Advances the iterator and returns the next value.
                                            diff --git a/static/sway/std/logging/fn.log.html b/static/sway/std/logging/fn.log.html
                                            index 9555eb73..a0fa458c 100644
                                            --- a/static/sway/std/logging/fn.log.html
                                            +++ b/static/sway/std/logging/fn.log.html
                                            @@ -1,4 +1,4 @@
                                            -log in logging - Sway

                                            Function std::logging::log

                                            pub fn log<T>(value: T) 
                                            Expand description

                                            Log any stack type.

                                            +log in logging - Sway

                                            Function std::logging::log

                                            pub fn log<T>(value: T) 
                                            Expand description

                                            Log any stack type.

                                            Additional Information

                                            If the type is a reference type, log is used.
                                            Otherwise logd is used.’

                                            diff --git a/static/sway/std/logging/index.html b/static/sway/std/logging/index.html index 515176ae..847fd299 100644 --- a/static/sway/std/logging/index.html +++ b/static/sway/std/logging/index.html @@ -1,3 +1,3 @@ -logging in std - Sway

                                            Module std::logging

                                            Expand description

                                            Allows logging of arbitrary stack types, emitted as either Log or Logd receipts.

                                            +logging in std - Sway

                                            Module std::logging

                                            Expand description

                                            Allows logging of arbitrary stack types, emitted as either Log or Logd receipts.

                                            Functions

                                            Log any stack type.

                                            \ No newline at end of file diff --git a/static/sway/std/low_level_call/fn.call_with_function_selector.html b/static/sway/std/low_level_call/fn.call_with_function_selector.html index 750118b6..f0774fb5 100644 --- a/static/sway/std/low_level_call/fn.call_with_function_selector.html +++ b/static/sway/std/low_level_call/fn.call_with_function_selector.html @@ -1,4 +1,4 @@ -call_with_function_selector in low_level_call - Sway
                                            pub fn call_with_function_selector(
                                            +call_with_function_selector in low_level_call - Sway
                                            pub fn call_with_function_selector(
                                                 target: ContractId,
                                                 function_selector: Bytes,
                                                 calldata: Bytes,
                                            diff --git a/static/sway/std/low_level_call/index.html b/static/sway/std/low_level_call/index.html
                                            index a7e93f7f..b4648297 100644
                                            --- a/static/sway/std/low_level_call/index.html
                                            +++ b/static/sway/std/low_level_call/index.html
                                            @@ -1,3 +1,3 @@
                                            -low_level_call in std - Sway
                                            Expand description

                                            Utilities to help with low level calls.

                                            +low_level_call in std - Sway
                                            Expand description

                                            Utilities to help with low level calls.

                                            Structs

                                            A struct representing the call parameters of a function call.

                                            Functions

                                            Call a target contract with a function selector and calldata, provided as Bytes.

                                            \ No newline at end of file diff --git a/static/sway/std/low_level_call/struct.CallParams.html b/static/sway/std/low_level_call/struct.CallParams.html index 08ce498a..0a765dcf 100644 --- a/static/sway/std/low_level_call/struct.CallParams.html +++ b/static/sway/std/low_level_call/struct.CallParams.html @@ -1,4 +1,4 @@ -CallParams in low_level_call - Sway
                                            pub struct CallParams {
                                            +CallParams in low_level_call - Sway
                                            pub struct CallParams {
                                                 /// Amount of the asset to transfer.
                                                 pub coins: u64,
                                                 /// AssetId of the asset to transfer.
                                            diff --git a/static/sway/std/math/index.html b/static/sway/std/math/index.html
                                            index d2f343d1..c47a2bd8 100644
                                            --- a/static/sway/std/math/index.html
                                            +++ b/static/sway/std/math/index.html
                                            @@ -1,4 +1,4 @@
                                            -math in std - Sway

                                            Module std::math

                                            Expand description

                                            Utilities for common math operations.

                                            +math in std - Sway

                                            Module std::math

                                            Expand description

                                            Utilities for common math operations.

                                            Traits

                                            Calculates the binary log.

                                            Trait for exponential functions.

                                            Calculates the log with a given base.

                                            Calculates a number to a given power.

                                            diff --git a/static/sway/std/math/trait.BinaryLogarithm.html b/static/sway/std/math/trait.BinaryLogarithm.html index c854a123..a51fe078 100644 --- a/static/sway/std/math/trait.BinaryLogarithm.html +++ b/static/sway/std/math/trait.BinaryLogarithm.html @@ -1,4 +1,4 @@ -BinaryLogarithm in math - Sway
                                            pub trait BinaryLogarithm {
                                            +BinaryLogarithm in math - Sway
                                            pub trait BinaryLogarithm {
                                                 fn log2(self) -> Self;
                                             }
                                            Expand description

                                            Calculates the binary log.

                                            Required Methods

                                            \ No newline at end of file diff --git a/static/sway/std/math/trait.Exponent.html b/static/sway/std/math/trait.Exponent.html index 97bd9cdf..62a3c678 100644 --- a/static/sway/std/math/trait.Exponent.html +++ b/static/sway/std/math/trait.Exponent.html @@ -1,4 +1,4 @@ -Exponent in math - Sway

                                            Trait std::math::Exponent

                                            pub trait Exponent {
                                            +Exponent in math - Sway

                                            Trait std::math::Exponent

                                            pub trait Exponent {
                                                 // exponential function: e ^ exponent
                                                 fn exp(exponent: Self) -> Self;
                                             }
                                            Expand description

                                            Trait for exponential functions.
                                            diff --git a/static/sway/std/math/trait.Logarithm.html b/static/sway/std/math/trait.Logarithm.html index 62f45f6f..ba5471d6 100644 --- a/static/sway/std/math/trait.Logarithm.html +++ b/static/sway/std/math/trait.Logarithm.html @@ -1,4 +1,4 @@ -Logarithm in math - Sway

                                            pub trait Logarithm {
                                            +Logarithm in math - Sway
                                            pub trait Logarithm {
                                                 fn log(self, base: Self) -> Self;
                                             }
                                            Expand description

                                            Calculates the log with a given base.

                                            Required Methods

                                            \ No newline at end of file diff --git a/static/sway/std/math/trait.Power.html b/static/sway/std/math/trait.Power.html index 93712e6e..d59fd486 100644 --- a/static/sway/std/math/trait.Power.html +++ b/static/sway/std/math/trait.Power.html @@ -1,4 +1,4 @@ -Power in math - Sway

                                            Trait std::math::Power

                                            pub trait Power {
                                            +Power in math - Sway

                                            Trait std::math::Power

                                            pub trait Power {
                                                 fn pow(self, exponent: u32) -> Self;
                                             }
                                            Expand description

                                            Calculates a number to a given power.

                                            Required Methods

                                            \ No newline at end of file diff --git a/static/sway/std/math/trait.Root.html b/static/sway/std/math/trait.Root.html index 97775756..f630c34c 100644 --- a/static/sway/std/math/trait.Root.html +++ b/static/sway/std/math/trait.Root.html @@ -1,4 +1,4 @@ -Root in math - Sway

                                            Trait std::math::Root

                                            pub trait Root {
                                            +Root in math - Sway

                                            Trait std::math::Root

                                            pub trait Root {
                                                 fn sqrt(self) -> Self;
                                             }
                                            Expand description

                                            Calculates the square root.

                                            Required Methods

                                            \ No newline at end of file diff --git a/static/sway/std/message/fn.send_message.html b/static/sway/std/message/fn.send_message.html index b1f59279..6aa424a2 100644 --- a/static/sway/std/message/fn.send_message.html +++ b/static/sway/std/message/fn.send_message.html @@ -1,4 +1,4 @@ -send_message in message - Sway
                                            pub fn send_message(recipient: b256, msg_data: Bytes, coins: u64) 
                                            Expand description

                                            Sends a message msg_data to recipient with a coins amount of the base asset.

                                            +send_message in message - Sway
                                            pub fn send_message(recipient: b256, msg_data: Bytes, coins: u64) 
                                            Expand description

                                            Sends a message msg_data to recipient with a coins amount of the base asset.

                                            Additional Information

                                            Use send_typed_message instead of send_message if the message needs to be indexed.

                                            Arguments

                                            diff --git a/static/sway/std/message/fn.send_typed_message.html b/static/sway/std/message/fn.send_typed_message.html index 1381a830..e154075f 100644 --- a/static/sway/std/message/fn.send_typed_message.html +++ b/static/sway/std/message/fn.send_typed_message.html @@ -1,4 +1,4 @@ -send_typed_message in message - Sway
                                            pub fn send_typed_message<T>(recipient: b256, msg_data: T, coins: u64) 
                                            Expand description

                                            Sends a message msg_data of type T to recipient with a coins amount of the base asset.

                                            +send_typed_message in message - Sway
                                            pub fn send_typed_message<T>(recipient: b256, msg_data: T, coins: u64) 
                                            Expand description

                                            Sends a message msg_data of type T to recipient with a coins amount of the base asset.

                                            Additional Information

                                            Use send_typed_message instead of send_message if the message needs to be indexed.

                                            Arguments

                                            diff --git a/static/sway/std/message/index.html b/static/sway/std/message/index.html index e28569cb..573e5b20 100644 --- a/static/sway/std/message/index.html +++ b/static/sway/std/message/index.html @@ -1,2 +1,2 @@ -message in std - Sway

                                            Module std::message

                                            Expand description

                                            Helper functions to sign and send messages.

                                            +message in std - Sway

                                            Module std::message

                                            Expand description

                                            Helper functions to sign and send messages.

                                            Functions

                                            Sends a message msg_data to recipient with a coins amount of the base asset.

                                            Sends a message msg_data of type T to recipient with a coins amount of the base asset.

                                            \ No newline at end of file diff --git a/static/sway/std/option/enum.Option.html b/static/sway/std/option/enum.Option.html index 8abc1f15..c769f7d4 100644 --- a/static/sway/std/option/enum.Option.html +++ b/static/sway/std/option/enum.Option.html @@ -1,4 +1,4 @@ -Option in option - Sway
                                            pub enum Option<T> {
                                            +Option in option - Sway
                                            pub enum Option<T> {
                                                 /// No value.
                                                 None: (),
                                                 /// Some value of type `T`.
                                            diff --git a/static/sway/std/option/index.html b/static/sway/std/option/index.html
                                            index 720709b4..8db49675 100644
                                            --- a/static/sway/std/option/index.html
                                            +++ b/static/sway/std/option/index.html
                                            @@ -1,4 +1,4 @@
                                            -option in std - Sway

                                            Module std::option

                                            Expand description

                                            A type for optional values.

                                            +option in std - Sway

                                            Module std::option

                                            Expand description

                                            A type for optional values.

                                            Type Option represents an optional value: every Option
                                            is either Some and contains a value, or None, and
                                            does not. Option types are very common in Sway code, as
                                            diff --git a/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_AMOUNT.html b/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_AMOUNT.html index 5a469aed..f3d798e5 100644 --- a/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_AMOUNT.html +++ b/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_AMOUNT.html @@ -1 +1 @@ -GTF_OUTPUT_COIN_AMOUNT in outputs - Sway

                                            pub const GTF_OUTPUT_COIN_AMOUNT = 0x302
                                            \ No newline at end of file +GTF_OUTPUT_COIN_AMOUNT in outputs - Sway
                                            pub const GTF_OUTPUT_COIN_AMOUNT = 0x302
                                            \ No newline at end of file diff --git a/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_ASSET_ID.html b/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_ASSET_ID.html index 370835b9..2d058490 100644 --- a/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_ASSET_ID.html +++ b/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_ASSET_ID.html @@ -1 +1 @@ -GTF_OUTPUT_COIN_ASSET_ID in outputs - Sway
                                            pub const GTF_OUTPUT_COIN_ASSET_ID = 0x303
                                            \ No newline at end of file +GTF_OUTPUT_COIN_ASSET_ID in outputs - Sway
                                            pub const GTF_OUTPUT_COIN_ASSET_ID = 0x303
                                            \ No newline at end of file diff --git a/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_TO.html b/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_TO.html index f5fd2272..ee38e849 100644 --- a/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_TO.html +++ b/static/sway/std/outputs/constant.GTF_OUTPUT_COIN_TO.html @@ -1 +1 @@ -GTF_OUTPUT_COIN_TO in outputs - Sway
                                            pub const GTF_OUTPUT_COIN_TO = 0x301
                                            \ No newline at end of file +GTF_OUTPUT_COIN_TO in outputs - Sway
                                            pub const GTF_OUTPUT_COIN_TO = 0x301
                                            \ No newline at end of file diff --git a/static/sway/std/outputs/constant.GTF_OUTPUT_TYPE.html b/static/sway/std/outputs/constant.GTF_OUTPUT_TYPE.html index e2b48684..e47ce4a6 100644 --- a/static/sway/std/outputs/constant.GTF_OUTPUT_TYPE.html +++ b/static/sway/std/outputs/constant.GTF_OUTPUT_TYPE.html @@ -1 +1 @@ -GTF_OUTPUT_TYPE in outputs - Sway
                                            pub const GTF_OUTPUT_TYPE = 0x300
                                            \ No newline at end of file +GTF_OUTPUT_TYPE in outputs - Sway
                                            pub const GTF_OUTPUT_TYPE = 0x300
                                            \ No newline at end of file diff --git a/static/sway/std/outputs/enum.Output.html b/static/sway/std/outputs/enum.Output.html index 6ddb9040..b0a3fb05 100644 --- a/static/sway/std/outputs/enum.Output.html +++ b/static/sway/std/outputs/enum.Output.html @@ -1,4 +1,4 @@ -Output in outputs - Sway
                                            pub enum Output {
                                            +Output in outputs - Sway
                                            pub enum Output {
                                                 /// A coin output.
                                                 Coin: (),
                                                 /// A contract output.
                                            @@ -7,9 +7,41 @@
                                                 Change: (),
                                                 /// A variable output.
                                                 Variable: (),
                                            +    /// A contract deployment.
                                            +    ContractCreated: (),
                                             }
                                            Expand description

                                            The output type for a transaction.

                                            Variants

                                            Coin: ()

                                            A coin output.

                                            Contract: ()

                                            A contract output.

                                            Change: ()

                                            Remaining “change” from spending of a coin.

                                            Variable: ()

                                            A variable output.

                                            -
                                            \ No newline at end of file +

                                            ContractCreated: ()

                                            A contract deployment.

                                            +

                                            Trait Implementations

                                            fn eq(self, other: Self) -> bool

                                            fn neq(self, other: Self) -> bool

                                            Evaluates if two values of the same type are not equal.

                                            +

                                            Additional Information

                                            +

                                            This function is inherited when eq() is implemented.

                                            +

                                            Arguments

                                            +
                                              +
                                            • other: [Self] - The value of the same type.
                                            • +
                                            +

                                            Returns

                                            +
                                              +
                                            • [bool] - true if the two values are not equal, otherwise false.
                                            • +
                                            +

                                            Examples

                                            +
                                            struct MyStruct {
                                            +    val: u64,
                                            +}
                                            +
                                            +impl Eq for MyStruct {
                                            +    fn eq(self, other: Self) -> bool {
                                            +         self.val == other.val
                                            +    }
                                            +}
                                            +
                                            +fn foo() {
                                            +    let struct1 = MyStruct { val: 10 };
                                            +    let struct2 = MyStruct { val: 2 };
                                            +    let result = struct1 != struct2;
                                            +    assert(result);
                                            +}
                                            +
                                            +
                                            \ No newline at end of file diff --git a/static/sway/std/outputs/fn.output_amount.html b/static/sway/std/outputs/fn.output_amount.html index 61998f21..9d35c2af 100644 --- a/static/sway/std/outputs/fn.output_amount.html +++ b/static/sway/std/outputs/fn.output_amount.html @@ -1,4 +1,4 @@ -output_amount in outputs - Sway
                                            pub fn output_amount(index: u64) -> u64 
                                            Expand description

                                            The amount of coins to send to the output at index.

                                            +output_amount in outputs - Sway
                                            pub fn output_amount(index: u64) -> Option<u64> 
                                            Expand description

                                            The amount of coins to send to the output at index.

                                            Additional Information

                                            This method is only meaningful if the Output type has the amount field,
                                            specifically: Output::Coin, Output::Change & Output::Variable.

                                            @@ -10,12 +10,7 @@

                                            Arguments

                                          Returns

                                            -
                                          • [u64] - The amount of coins to send to the output at index.
                                          • -
                                          -

                                          Reverts

                                          -
                                            -
                                          • When the output type is Output::Contract.
                                          • -
                                          • When the output type is unrecognized. This should never happen.
                                          • +
                                          • [Option] - The amount of coins to send to the output at index.

                                          Examples

                                          use std::outputs::output_amount;
                                          diff --git a/static/sway/std/outputs/fn.output_asset_id.html b/static/sway/std/outputs/fn.output_asset_id.html
                                          index 492caa66..0d7aa3e2 100644
                                          --- a/static/sway/std/outputs/fn.output_asset_id.html
                                          +++ b/static/sway/std/outputs/fn.output_asset_id.html
                                          @@ -1,11 +1,11 @@
                                          -output_asset_id in outputs - Sway
                                          pub fn output_asset_id(index: u64) -> Option<AssetId> 
                                          Expand description

                                          Gets the AssetId of the output if it is a Output::Coin.

                                          +output_asset_id in outputs - Sway
                                          pub fn output_asset_id(index: u64) -> Option<AssetId> 
                                          Expand description

                                          Gets the AssetId of the output.

                                          Arguments

                                          • index: [u64] - The index of the output to get the AssetId of.

                                          Returns

                                            -
                                          • [Option] - The AssetId of the output if it is a Output::Coin. None otherwise.
                                          • +
                                          • [Option] - The AssetId of the output. None otherwise.

                                          Reverts

                                            diff --git a/static/sway/std/outputs/fn.output_asset_to.html b/static/sway/std/outputs/fn.output_asset_to.html index 3b7c8f75..6f873912 100644 --- a/static/sway/std/outputs/fn.output_asset_to.html +++ b/static/sway/std/outputs/fn.output_asset_to.html @@ -1,11 +1,11 @@ -output_asset_to in outputs - Sway
                                            pub fn output_asset_to(index: u64) -> Option<Address> 
                                            Expand description

                                            Returns the receiver of the output if it is a Output::Coin.

                                            +output_asset_to in outputs - Sway
                                            pub fn output_asset_to(index: u64) -> Option<Address> 
                                            Expand description

                                            Returns the receiver of the output.

                                            Arguments

                                            • index: [u64] - The index of the output to get the receiver of.

                                            Returns

                                              -
                                            • [Option] - The receiver of the output if it is a Output::Coin. None otherwise.
                                            • +
                                            • [Option] - The receiver of the output. None otherwise.

                                            Reverts

                                              diff --git a/static/sway/std/outputs/fn.output_count.html b/static/sway/std/outputs/fn.output_count.html index 10ecdb46..350aef12 100644 --- a/static/sway/std/outputs/fn.output_count.html +++ b/static/sway/std/outputs/fn.output_count.html @@ -1,8 +1,8 @@ -output_count in outputs - Sway
                                              pub fn output_count() -> u64 
                                              Expand description

                                              Get the transaction outputs count for either tx_type
                                              +output_count in outputs - Sway

                                              pub fn output_count() -> u16 
                                              Expand description

                                              Get the transaction outputs count for either tx_type
                                              (transaction-script or transaction-create).

                                              Returns

                                                -
                                              • [u64] - The transaction outputs count.
                                              • +
                                              • [u16] - The transaction outputs count.

                                              Reverts

                                                diff --git a/static/sway/std/outputs/fn.output_pointer.html b/static/sway/std/outputs/fn.output_pointer.html deleted file mode 100644 index 97e3570a..00000000 --- a/static/sway/std/outputs/fn.output_pointer.html +++ /dev/null @@ -1,23 +0,0 @@ -output_pointer in outputs - Sway
                                                pub fn output_pointer(index: u64) -> u64 
                                                Expand description

                                                Get a pointer to the output at index
                                                -for either tx_type (transaction-script or transaction-create).

                                                -

                                                Arguments

                                                -
                                                  -
                                                • index: [u64] - The index of the output to get the pointer to.
                                                • -
                                                -

                                                Returns

                                                -
                                                  -
                                                • [u64] - A pointer to the output at index.
                                                • -
                                                -

                                                Reverts

                                                -
                                                  -
                                                • When the output type is unrecognized. This should never happen.
                                                • -
                                                -

                                                Examples

                                                -
                                                use std::outputs::output_pointer;
                                                -
                                                -fn foo() {
                                                -    let output_pointer = output_pointer(0);
                                                -    log(output_pointer);
                                                -}
                                                -
                                                -
                                                \ No newline at end of file diff --git a/static/sway/std/outputs/fn.output_type.html b/static/sway/std/outputs/fn.output_type.html index 577b55d2..b31273b0 100644 --- a/static/sway/std/outputs/fn.output_type.html +++ b/static/sway/std/outputs/fn.output_type.html @@ -1,26 +1,23 @@ -output_type in outputs - Sway
                                                pub fn output_type(index: u64) -> Output 
                                                Expand description

                                                Get the type of an output at index.

                                                +output_type in outputs - Sway
                                                pub fn output_type(index: u64) -> Option<Output> 
                                                Expand description

                                                Get the type of an output at index.

                                                Arguments

                                                • index: [u64] - The index of the output to get the type of.

                                                Returns

                                                  -
                                                • [Output] - The type of the output at index.
                                                • -
                                                -

                                                Reverts

                                                -
                                                  -
                                                • When the output type is unrecognized. This should never happen.
                                                • +
                                                • [Option] - The type of the output at index.

                                                Examples

                                                use std::outputs::output_type;
                                                 
                                                 fn foo() {
                                                -    let output_type = output_type(0);
                                                +    let output_type = output_type(0).unwrap();
                                                     match output_type {
                                                         Output::Coin => { log("The output is a coin") },
                                                         Output::Contract => { log("The output is a contract") },
                                                         Output::Change => { log("The output is change") },
                                                         Output::Variable => { log("The output is a variable") },
                                                +        Output::ContractCreated => { log("The output is a contract creation") },
                                                     };
                                                 }
                                                 
                                                diff --git a/static/sway/std/outputs/index.html b/static/sway/std/outputs/index.html index 03703d2a..2dc29b28 100644 --- a/static/sway/std/outputs/index.html +++ b/static/sway/std/outputs/index.html @@ -1,8 +1,8 @@ -outputs in std - Sway

                                                Module std::outputs

                                                Expand description

                                                Getters for fields on transaction outputs.
                                                +outputs in std - Sway

                                                Module std::outputs

                                                Expand description

                                                Getters for fields on transaction outputs.
                                                This includes Output::Coins, Input::Messages and Input::Contracts.

                                                Enums

                                                The output type for a transaction.

                                                Constants

                                                Functions

                                                The amount of coins to send to the output at index.

                                                -

                                                Gets the AssetId of the output if it is a Output::Coin.

                                                -

                                                Returns the receiver of the output if it is a Output::Coin.

                                                -

                                                Get the transaction outputs count for either tx_type

                                                Get a pointer to the output at index

                                                Get the type of an output at index.

                                                +

                                                Gets the AssetId of the output.

                                                +

                                                Returns the receiver of the output.

                                                +

                                                Get the transaction outputs count for either tx_type

                                                Get the type of an output at index.

                                                \ No newline at end of file diff --git a/static/sway/std/primitive.b256.html b/static/sway/std/primitive.b256.html index 2b76c88c..841674a8 100644 --- a/static/sway/std/primitive.b256.html +++ b/static/sway/std/primitive.b256.html @@ -1,4 +1,4 @@ -b256 in std - Sway

                                                Primitive std::b256

                                                b256
                                                Expand description
                                                256 bits (32 bytes), i.e. a hash

                                                Implementations

                                                fn is_zero(self) -> bool

                                                Returns whether a b256 is set to zero.

                                                +b256 in std - Sway

                                                Primitive std::b256

                                                b256
                                                Expand description
                                                256 bits (32 bytes), i.e. a hash

                                                Implementations

                                                fn is_zero(self) -> bool

                                                Returns whether a b256 is set to zero.

                                                Returns

                                                • [bool] -> True if the b256 is zero, otherwise false.
                                                • diff --git a/static/sway/std/primitive.bool.html b/static/sway/std/primitive.bool.html index 52b2c99a..3e92e070 100644 --- a/static/sway/std/primitive.bool.html +++ b/static/sway/std/primitive.bool.html @@ -1 +1 @@ -bool in std - Sway

                                                  Primitive std::bool

                                                  bool
                                                  Expand description
                                                  Boolean true or false

                                                  Trait Implementations

                                                  fn hash(
                                                  self,
                                                  refmut state: Hasher,
                                                  )

                                                  \ No newline at end of file +bool in std - Sway

                                                  Primitive std::bool

                                                  bool
                                                  Expand description
                                                  Boolean true or false

                                                  Trait Implementations

                                                  fn hash(
                                                  self,
                                                  refmut state: Hasher,
                                                  )

                                                  \ No newline at end of file diff --git a/static/sway/std/primitive.str.html b/static/sway/std/primitive.str.html index 6eabef54..fa3633d1 100644 --- a/static/sway/std/primitive.str.html +++ b/static/sway/std/primitive.str.html @@ -1 +1,12 @@ -str in std - Sway

                                                  Primitive std::str

                                                  str
                                                  Expand description
                                                  string slice

                                                  Implementations

                                                  fn try_as_str_array(self) -> Option<S>

                                                  Trait Implementations

                                                  fn hash(
                                                  self,
                                                  refmut state: Hasher,
                                                  )

                                                  \ No newline at end of file +str in std - Sway

                                                  Primitive std::str

                                                  str
                                                  Expand description
                                                  string slice

                                                  Implementations

                                                  fn try_as_str_array(self) -> Option<S>

                                                  Attempts to convert the string slice into a string array.

                                                  +

                                                  Returns

                                                  +
                                                    +
                                                  • [Option] - Some(str_array) if the lengths of the S str_array type and the string slice’s lengths match. Else None.
                                                  • +
                                                  +

                                                  Examples

                                                  +
                                                  fn foo() {
                                                  +    let string_slice = "abcd";
                                                  +    let string_array: str[4] = a.try_as_str_array().unwrap();
                                                  +}
                                                  +
                                                  +

                                                  Trait Implementations

                                                  fn hash(
                                                  self,
                                                  refmut state: Hasher,
                                                  )

                                                  \ No newline at end of file diff --git a/static/sway/std/primitive.u16.html b/static/sway/std/primitive.u16.html index d7749742..3b1976e5 100644 --- a/static/sway/std/primitive.u16.html +++ b/static/sway/std/primitive.u16.html @@ -1,4 +1,4 @@ -u16 in std - Sway

                                                  Primitive std::u16

                                                  u16
                                                  Expand description
                                                  16-bit unsigned integer

                                                  Implementations

                                                  fn is_zero(self) -> bool

                                                  Returns whether a u16 is set to zero.

                                                  +u16 in std - Sway

                                                  Primitive std::u16

                                                  u16
                                                  Expand description
                                                  16-bit unsigned integer

                                                  Implementations

                                                  fn is_zero(self) -> bool

                                                  Returns whether a u16 is set to zero.

                                                  Returns

                                                  • [bool] -> True if the u16 is zero, otherwise false.
                                                  • @@ -9,7 +9,22 @@

                                                    Examples

                                                    assert(zero_u16.is_zero()); }
                                          -

                                          fn try_as_u8(self) -> Option<u8>

                                          fn to_le_bytes(self) -> [u8; 2]

                                          Converts the u16 to a sequence of little-endian bytes.

                                          +

                                          fn try_as_u8(self) -> Option<u8>

                                          Attempts to convert the u16 value into a u8 value.

                                          +

                                          Additional Information

                                          +

                                          The max value a u8 can represent is 255.

                                          +

                                          Returns

                                          +

                                          [Option] - Some(u8) if the u16 is less than or equal to the max u8 value. Else None.

                                          +

                                          Examples

                                          +
                                          fn foo() {
                                          +    let val = 255_u16.try_as_u8();
                                          +    assert(val == Some(255_u8));
                                          +
                                          +    // Conversion fails as value is above the max a u8 can represent.
                                          +    let val2 = 256_u16.try_as_u8();
                                          +    assert(val == None);
                                          +}
                                          +
                                          +

                                          fn to_le_bytes(self) -> [u8; 2]

                                          Converts the u16 to a sequence of little-endian bytes.

                                          Returns

                                          • [[u8; 2]] - An array of 2 u8 bytes that compose the u16.
                                          • diff --git a/static/sway/std/primitive.u256.html b/static/sway/std/primitive.u256.html index 1ad98735..3ee60f16 100644 --- a/static/sway/std/primitive.u256.html +++ b/static/sway/std/primitive.u256.html @@ -1,4 +1,4 @@ -u256 in std - Sway

                                            Primitive std::u256

                                            u256
                                            Expand description
                                            256-bit unsigned integer

                                            Implementations

                                            fn is_zero(self) -> bool

                                            Returns whether a u256 is set to zero.

                                            +u256 in std - Sway

                                            Primitive std::u256

                                            u256
                                            Expand description
                                            256-bit unsigned integer

                                            Implementations

                                            fn is_zero(self) -> bool

                                            Returns whether a u256 is set to zero.

                                            Returns

                                            • [bool] -> True if the u256 is zero, otherwise false.
                                            • @@ -164,8 +164,14 @@

                                              Examples

                                              }

                                  Trait Implementations

                                  fn sqrt(self) -> Self

                                  fn pow(self, exponent: u32) -> Self

                                  Raises self to the power of exponent, using exponentiation by squaring.

                                  -

                                  Panics

                                  -

                                  Panics if the result overflows the type.

                                  +

                                  Additional Information

                                  +
                                    +
                                  • If panic on overflow is disabled, and the result overflows, the return value will be 0.
                                  • +
                                  +

                                  Reverts

                                  +
                                    +
                                  • Reverts if the result overflows the type, if panic on overflow is enabled.
                                  • +

                                  fn log2(self) -> Self

                                  fn log(self, base: Self) -> Self

                                  fn try_from(val: B512) -> Option<Self>

                                  Attempts conversion from a B512 to a u256.

                                  Additional Information

                                  If the high bits of the B512 are not zero, the conversion will fail.

                                  diff --git a/static/sway/std/primitive.u32.html b/static/sway/std/primitive.u32.html index fbac7b1e..5fe1dc35 100644 --- a/static/sway/std/primitive.u32.html +++ b/static/sway/std/primitive.u32.html @@ -1,4 +1,4 @@ -u32 in std - Sway

                                  Primitive std::u32

                                  u32
                                  Expand description
                                  32-bit unsigned integer

                                  Implementations

                                  fn is_zero(self) -> bool

                                  Returns whether a u32 is set to zero.

                                  +u32 in std - Sway

                                  Primitive std::u32

                                  u32
                                  Expand description
                                  32-bit unsigned integer

                                  Implementations

                                  fn is_zero(self) -> bool

                                  Returns whether a u32 is set to zero.

                                  Returns

                                  • [bool] -> True if the u32 is zero, otherwise false.
                                  • @@ -9,7 +9,37 @@

                                    Examples

                                    assert(zero_u32.is_zero()); }
                            -

                            fn try_as_u8(self) -> Option<u8>

                            fn try_as_u16(self) -> Option<u16>

                            fn to_le_bytes(self) -> [u8; 4]

                            Converts the u32 to a sequence of little-endian bytes.

                            +

                            fn try_as_u8(self) -> Option<u8>

                            Attempts to convert the u32 value into a u8 value.

                            +

                            Additional Information

                            +

                            The max value a u8 can represent is 255.

                            +

                            Returns

                            +

                            [Option] - Some(u8) if the u32 is less than or equal to the max u8 value. Else None.

                            +

                            Examples

                            +
                            fn foo() {
                            +    let val = 255_u32.try_as_u8();
                            +    assert(val == Some(255_u8));
                            +
                            +    // Conversion fails as value is above the max a u8 can represent.
                            +    let val2 = 256_u32.try_as_u8();
                            +    assert(val == None);
                            +}
                            +
                            +

                            fn try_as_u16(self) -> Option<u16>

                            Attempts to convert the u32 value into a u16 value.

                            +

                            Additional Information

                            +

                            The max value a u16 can represent is 65_535.

                            +

                            Returns

                            +

                            [Option] - Some(u16) if the u32 is less than or equal to the max u16 value. Else None.

                            +

                            Examples

                            +
                            fn foo() {
                            +    let val = 65_535_u32.try_as_u16();
                            +    assert(val == Some(65_535_u16));
                            +
                            +    // Conversion fails as value is above the max a u16 can represent.
                            +    let val2 = 65_536_u32.try_as_u16();
                            +    assert(val == None);
                            +}
                            +
                            +

                            fn to_le_bytes(self) -> [u8; 4]

                            Converts the u32 to a sequence of little-endian bytes.

                            Returns

                            • [[u8; 4]] - An array of 4 u8 bytes that compose the u32.
                            • diff --git a/static/sway/std/primitive.u64.html b/static/sway/std/primitive.u64.html index a728c3db..67cd754c 100644 --- a/static/sway/std/primitive.u64.html +++ b/static/sway/std/primitive.u64.html @@ -1,4 +1,4 @@ -u64 in std - Sway

                              Primitive std::u64

                              u64
                              Expand description
                              64-bit unsigned integer

                              Implementations

                              fn is_zero(self) -> bool

                              Returns whether a u64 is set to zero.

                              +u64 in std - Sway

                              Primitive std::u64

                              u64
                              Expand description
                              64-bit unsigned integer

                              Implementations

                              fn is_zero(self) -> bool

                              Returns whether a u64 is set to zero.

                              Returns

                              • [bool] -> True if the u64 is zero, otherwise false.
                              • @@ -53,7 +53,52 @@

                                Examples

                                assert(z == U128::from(18446744073709551615, 1)); }
                            -

                            fn try_as_u8(self) -> Option<u8>

                            fn try_as_u16(self) -> Option<u16>

                            fn try_as_u32(self) -> Option<u32>

                            fn to_le_bytes(self) -> [u8; 8]

                            Converts the u64 to a sequence of little-endian bytes.

                            +

                            fn try_as_u8(self) -> Option<u8>

                            Attempts to convert the u64 value into a u8 value.

                            +

                            Additional Information

                            +

                            The max value a u8 can represent is 255.

                            +

                            Returns

                            +

                            [Option] - Some(u8) if the u64 is less than or equal to the max u8 value. Else None.

                            +

                            Examples

                            +
                            fn foo() {
                            +    let val = 255_u64.try_as_u8();
                            +    assert(val == Some(255_u8));
                            +
                            +    // Conversion fails as value is above the max a u8 can represent.
                            +    let val2 = 256_u64.try_as_u8();
                            +    assert(val == None);
                            +}
                            +
                            +

                            fn try_as_u16(self) -> Option<u16>

                            Attempts to convert the u64 value into a u16 value.

                            +

                            Additional Information

                            +

                            The max value a u16 can represent is 65_535.

                            +

                            Returns

                            +

                            [Option] - Some(u16) if the u64 is less than or equal to the max u16 value. Else None.

                            +

                            Examples

                            +
                            fn foo() {
                            +    let val = 65_535_u64.try_as_u16();
                            +    assert(val == Some(65_535_u16));
                            +
                            +    // Conversion fails as value is above the max a u16 can represent.
                            +    let val2 = 65_536_u64.try_as_u16();
                            +    assert(val == None);
                            +}
                            +
                            +

                            fn try_as_u32(self) -> Option<u32>

                            Attempts to convert the u64 value into a u32 value.

                            +

                            Additional Information

                            +

                            The max value a u32 can represent is 4_294_967_295.

                            +

                            Returns

                            +

                            [Option] - Some(u32) if the u64 is less than or equal to the max u32 value. Else None.

                            +

                            Examples

                            +
                            fn foo() {
                            +    let val = 4_294_967_295_u64.try_as_u32();
                            +    assert(val == Some(4_294_967_295_u32));
                            +
                            +    // Conversion fails as value is above the max a u32 can represent.
                            +    let val2 = 4_294_967_296_u64.try_as_u32();
                            +    assert(val == None);
                            +}
                            +
                            +

                            fn to_le_bytes(self) -> [u8; 8]

                            Converts the u64 to a sequence of little-endian bytes.

                            Returns

                            • [[u8; 8]] - An array of 8 u8 bytes that compose the u64.
                            • diff --git a/static/sway/std/primitive.u8.html b/static/sway/std/primitive.u8.html index 56e6f7a2..158bf7fc 100644 --- a/static/sway/std/primitive.u8.html +++ b/static/sway/std/primitive.u8.html @@ -1,4 +1,4 @@ -u8 in std - Sway

                              Primitive std::u8

                              u8
                              Expand description
                              8-bit unsigned integer

                              Implementations

                              fn is_zero(self) -> bool

                              Returns whether a u8 is set to zero.

                              +u8 in std - Sway

                              Primitive std::u8

                              u8
                              Expand description
                              8-bit unsigned integer

                              Implementations

                              fn is_zero(self) -> bool

                              Returns whether a u8 is set to zero.

                              Returns

                              • [bool] -> True if the u8 is zero, otherwise false.
                              • diff --git a/static/sway/std/registers/fn.balance.html b/static/sway/std/registers/fn.balance.html index 7e073eca..40e9cb5c 100644 --- a/static/sway/std/registers/fn.balance.html +++ b/static/sway/std/registers/fn.balance.html @@ -1,4 +1,4 @@ -balance in registers - Sway

                                Function std::registers::balance

                                pub fn balance() -> u64 
                                Expand description

                                Get the amount of units of call_frames::msg_asset_id() being sent.

                                +balance in registers - Sway

                                Function std::registers::balance

                                pub fn balance() -> u64 
                                Expand description

                                Get the amount of units of call_frames::msg_asset_id() being sent.

                                Returns

                                • [u64] - The forwarded coins in the context.
                                • diff --git a/static/sway/std/registers/fn.context_gas.html b/static/sway/std/registers/fn.context_gas.html index 31e5244f..78aa42af 100644 --- a/static/sway/std/registers/fn.context_gas.html +++ b/static/sway/std/registers/fn.context_gas.html @@ -1,4 +1,4 @@ -context_gas in registers - Sway
                                  pub fn context_gas() -> u64 
                                  Expand description

                                  Remaining gas in the context.

                                  +context_gas in registers - Sway
                                  pub fn context_gas() -> u64 
                                  Expand description

                                  Remaining gas in the context.

                                  Returns

                                  • [u64] - The remaining gas for the current context.
                                  • diff --git a/static/sway/std/registers/fn.error.html b/static/sway/std/registers/fn.error.html index a878ecbd..1eaa0a86 100644 --- a/static/sway/std/registers/fn.error.html +++ b/static/sway/std/registers/fn.error.html @@ -1,4 +1,4 @@ -error in registers - Sway

                                    Function std::registers::error

                                    pub fn error() -> u64 
                                    Expand description

                                    Error codes for particular operations.

                                    +error in registers - Sway

                                    Function std::registers::error

                                    pub fn error() -> u64 
                                    Expand description

                                    Error codes for particular operations.

                                    Additional Information

                                    Normally, if the result of an ALU operation is mathematically undefined (e.g. dividing by zero), the VM Reverts.
                                    However, if the F_UNSAFEMATH flag is set, $err is set to true and execution continues.

                                    diff --git a/static/sway/std/registers/fn.flags.html b/static/sway/std/registers/fn.flags.html index 464feeae..8fa19ba1 100644 --- a/static/sway/std/registers/fn.flags.html +++ b/static/sway/std/registers/fn.flags.html @@ -1,4 +1,4 @@ -flags in registers - Sway

                                    Function std::registers::flags

                                    pub fn flags() -> u64 
                                    Expand description

                                    Flags register.

                                    +flags in registers - Sway

                                    Function std::registers::flags

                                    pub fn flags() -> u64 
                                    Expand description

                                    Flags register.

                                    Returns

                                    • [u64] - The current flags set within the VM.
                                    • diff --git a/static/sway/std/registers/fn.frame_ptr.html b/static/sway/std/registers/fn.frame_ptr.html index 68af70a5..53c7e45d 100644 --- a/static/sway/std/registers/fn.frame_ptr.html +++ b/static/sway/std/registers/fn.frame_ptr.html @@ -1,4 +1,4 @@ -frame_ptr in registers - Sway
                                      pub fn frame_ptr() -> raw_ptr 
                                      Expand description

                                      Memory address of beginning of current call frame.

                                      +frame_ptr in registers - Sway
                                      pub fn frame_ptr() -> raw_ptr 
                                      Expand description

                                      Memory address of beginning of current call frame.

                                      Returns

                                      • [raw_ptr] - The location in memory of the start of the call frame.
                                      • diff --git a/static/sway/std/registers/fn.global_gas.html b/static/sway/std/registers/fn.global_gas.html index e245c87e..cd1c1bad 100644 --- a/static/sway/std/registers/fn.global_gas.html +++ b/static/sway/std/registers/fn.global_gas.html @@ -1,4 +1,4 @@ -global_gas in registers - Sway
                                        pub fn global_gas() -> u64 
                                        Expand description

                                        Remaining gas globally.

                                        +global_gas in registers - Sway
                                        pub fn global_gas() -> u64 
                                        Expand description

                                        Remaining gas globally.

                                        Returns

                                        • [u64] - The remaining gas.
                                        • diff --git a/static/sway/std/registers/fn.heap_ptr.html b/static/sway/std/registers/fn.heap_ptr.html index e4515415..619f864d 100644 --- a/static/sway/std/registers/fn.heap_ptr.html +++ b/static/sway/std/registers/fn.heap_ptr.html @@ -1,4 +1,4 @@ -heap_ptr in registers - Sway
                                          pub fn heap_ptr() -> raw_ptr 
                                          Expand description

                                          Memory address below the current bottom of the heap (points to free memory).

                                          +heap_ptr in registers - Sway
                                          pub fn heap_ptr() -> raw_ptr 
                                          Expand description

                                          Memory address below the current bottom of the heap (points to free memory).

                                          Returns

                                          • [raw_ptr] - The location in memory of the bottom of the heap.
                                          • diff --git a/static/sway/std/registers/fn.instrs_start.html b/static/sway/std/registers/fn.instrs_start.html index 1246ab5a..451376bb 100644 --- a/static/sway/std/registers/fn.instrs_start.html +++ b/static/sway/std/registers/fn.instrs_start.html @@ -1,4 +1,4 @@ -instrs_start in registers - Sway
                                            pub fn instrs_start() -> raw_ptr 
                                            Expand description

                                            Pointer to the start of the currently-executing code.

                                            +instrs_start in registers - Sway
                                            pub fn instrs_start() -> raw_ptr 
                                            Expand description

                                            Pointer to the start of the currently-executing code.

                                            Returns

                                            • [raw_ptr] - The memory location of the start of the currently-executing code.
                                            • diff --git a/static/sway/std/registers/fn.overflow.html b/static/sway/std/registers/fn.overflow.html index 2b4649ce..5497bb0c 100644 --- a/static/sway/std/registers/fn.overflow.html +++ b/static/sway/std/registers/fn.overflow.html @@ -1,4 +1,4 @@ -overflow in registers - Sway
                                              pub fn overflow() -> u64 
                                              Expand description

                                              Contains overflow & underflow of addition, subtraction, and multiplication.

                                              +overflow in registers - Sway
                                              pub fn overflow() -> u64 
                                              Expand description

                                              Contains overflow & underflow of addition, subtraction, and multiplication.

                                              Additional Information

                                              In order to use this function, panic on overflow must be disabled.

                                              Returns

                                              diff --git a/static/sway/std/registers/fn.program_counter.html b/static/sway/std/registers/fn.program_counter.html index 7aaff82b..f1adf304 100644 --- a/static/sway/std/registers/fn.program_counter.html +++ b/static/sway/std/registers/fn.program_counter.html @@ -1,4 +1,4 @@ -program_counter in registers - Sway
                                              pub fn program_counter() -> raw_ptr 
                                              Expand description

                                              The program counter. Memory address of the current instruction.

                                              +program_counter in registers - Sway
                                              pub fn program_counter() -> raw_ptr 
                                              Expand description

                                              The program counter. Memory address of the current instruction.

                                              Returns

                                              • [raw_ptr] - The location in memory of the current instruction.
                                              • diff --git a/static/sway/std/registers/fn.return_length.html b/static/sway/std/registers/fn.return_length.html index e6a20f20..21352a33 100644 --- a/static/sway/std/registers/fn.return_length.html +++ b/static/sway/std/registers/fn.return_length.html @@ -1,4 +1,4 @@ -return_length in registers - Sway
                                                pub fn return_length() -> u64 
                                                Expand description

                                                Return value length in bytes.

                                                +return_length in registers - Sway
                                                pub fn return_length() -> u64 
                                                Expand description

                                                Return value length in bytes.

                                                Returns

                                                • [u64] - The length in bytes of the value stored in the return register of the VM for the current context.
                                                • diff --git a/static/sway/std/registers/fn.return_value.html b/static/sway/std/registers/fn.return_value.html index cd17acc4..319c8fe5 100644 --- a/static/sway/std/registers/fn.return_value.html +++ b/static/sway/std/registers/fn.return_value.html @@ -1,4 +1,4 @@ -return_value in registers - Sway
                                                  pub fn return_value() -> u64 
                                                  Expand description

                                                  Return value or pointer.

                                                  +return_value in registers - Sway
                                                  pub fn return_value() -> u64 
                                                  Expand description

                                                  Return value or pointer.

                                                  Returns

                                                  • [u64] - The value or pointer stored in the return register of the VM for the current context.
                                                  • diff --git a/static/sway/std/registers/fn.stack_ptr.html b/static/sway/std/registers/fn.stack_ptr.html index 669cc3fe..c285f55e 100644 --- a/static/sway/std/registers/fn.stack_ptr.html +++ b/static/sway/std/registers/fn.stack_ptr.html @@ -1,4 +1,4 @@ -stack_ptr in registers - Sway
                                                    pub fn stack_ptr() -> raw_ptr 
                                                    Expand description

                                                    Memory address on top of current writable stack area (points to free memory).

                                                    +stack_ptr in registers - Sway
                                                    pub fn stack_ptr() -> raw_ptr 
                                                    Expand description

                                                    Memory address on top of current writable stack area (points to free memory).

                                                    Returns

                                                    • [raw_ptr] - The location in memory of the top of the stack.
                                                    • diff --git a/static/sway/std/registers/fn.stack_start_ptr.html b/static/sway/std/registers/fn.stack_start_ptr.html index eb4011dd..6a03f293 100644 --- a/static/sway/std/registers/fn.stack_start_ptr.html +++ b/static/sway/std/registers/fn.stack_start_ptr.html @@ -1,4 +1,4 @@ -stack_start_ptr in registers - Sway
                                                      pub fn stack_start_ptr() -> raw_ptr 
                                                      Expand description

                                                      Memory address of bottom of current writable stack area.

                                                      +stack_start_ptr in registers - Sway
                                                      pub fn stack_start_ptr() -> raw_ptr 
                                                      Expand description

                                                      Memory address of bottom of current writable stack area.

                                                      Returns

                                                      • [raw_ptr] - The location in memory of the bottom of the stack.
                                                      • diff --git a/static/sway/std/registers/index.html b/static/sway/std/registers/index.html index e8edc7bc..ff142612 100644 --- a/static/sway/std/registers/index.html +++ b/static/sway/std/registers/index.html @@ -1,4 +1,4 @@ -registers in std - Sway

                                                        Module std::registers

                                                        Expand description

                                                        Functions to expose 14 of the reserved FuelVM registers for ease of use.
                                                        +registers in std - Sway

                                                        Module std::registers

                                                        Expand description

                                                        Functions to expose 14 of the reserved FuelVM registers for ease of use.
                                                        Ref: https://fuellabs.github.io/fuel-specs/master/vm#semantics

                                                        Functions

                                                        Get the amount of units of call_frames::msg_asset_id() being sent.

                                                        Remaining gas in the context.

                                                        diff --git a/static/sway/std/result/enum.Result.html b/static/sway/std/result/enum.Result.html index 6c0d9a41..07867da6 100644 --- a/static/sway/std/result/enum.Result.html +++ b/static/sway/std/result/enum.Result.html @@ -1,4 +1,4 @@ -Result in result - Sway
                                                        pub enum Result<T, E> {
                                                        +Result in result - Sway
                                                        pub enum Result<T, E> {
                                                             /// Contains the success value.
                                                             Ok: T,
                                                             /// Contains the error value.
                                                        diff --git a/static/sway/std/result/index.html b/static/sway/std/result/index.html
                                                        index 97d4404a..a3a52ef3 100644
                                                        --- a/static/sway/std/result/index.html
                                                        +++ b/static/sway/std/result/index.html
                                                        @@ -1,4 +1,4 @@
                                                        -result in std - Sway

                                                        Module std::result

                                                        Expand description

                                                        Error handling with the Result type.

                                                        +result in std - Sway

                                                        Module std::result

                                                        Expand description

                                                        Error handling with the Result type.

                                                        Result<T, E> Result is the type used for returning and propagating
                                                        errors. It is an enum with the variants, Ok(T), representing
                                                        success and containing a value, and Err(E), representing error
                                                        diff --git a/static/sway/std/revert/fn.require.html b/static/sway/std/revert/fn.require.html index 8c2d7d79..8c03f7dd 100644 --- a/static/sway/std/revert/fn.require.html +++ b/static/sway/std/revert/fn.require.html @@ -1,4 +1,4 @@ -require in revert - Sway

                                                        Function std::revert::require

                                                        pub fn require<T>(condition: bool, value: T) 
                                                        Expand description

                                                        Checks if the given condition is true and if not, logs value and reverts.

                                                        +require in revert - Sway

                                                        Function std::revert::require

                                                        pub fn require<T>(condition: bool, value: T) 
                                                        Expand description

                                                        Checks if the given condition is true and if not, logs value and reverts.

                                                        Arguments

                                                        • condition: [bool] - The condition upon which to decide whether to revert or not.
                                                        • diff --git a/static/sway/std/revert/fn.revert.html b/static/sway/std/revert/fn.revert.html index c689111f..acb81990 100644 --- a/static/sway/std/revert/fn.revert.html +++ b/static/sway/std/revert/fn.revert.html @@ -1,4 +1,4 @@ -revert in revert - Sway

                                                          Function std::revert::revert

                                                          pub fn revert(code: u64) -> ! 
                                                          Expand description

                                                          Will either panic or revert with a given number depending on the context.

                                                          +revert in revert - Sway

                                                          Function std::revert::revert

                                                          pub fn revert(code: u64) -> ! 
                                                          Expand description

                                                          Will either panic or revert with a given number depending on the context.

                                                          Additional Information

                                                          If used in a predicate, it will panic.
                                                          If used in a contract, it will revert.

                                                          diff --git a/static/sway/std/revert/index.html b/static/sway/std/revert/index.html index 8a8ad40b..30f54642 100644 --- a/static/sway/std/revert/index.html +++ b/static/sway/std/revert/index.html @@ -1,3 +1,3 @@ -revert in std - Sway

                                                          Module std::revert

                                                          Expand description

                                                          Functions to panic or revert with a given error code.

                                                          +revert in std - Sway

                                                          Module std::revert

                                                          Expand description

                                                          Functions to panic or revert with a given error code.

                                                          Functions

                                                          Checks if the given condition is true and if not, logs value and reverts.

                                                          Will either panic or revert with a given number depending on the context.

                                                          \ No newline at end of file diff --git a/static/sway/std/storage/index.html b/static/sway/std/storage/index.html index 323ca435..9b3e9a33 100644 --- a/static/sway/std/storage/index.html +++ b/static/sway/std/storage/index.html @@ -1,4 +1,4 @@ -storage in std - Sway

                                                          Module std::storage

                                                          Modules

                                                          Contract storage utilities.

                                                          +storage in std - Sway

                                                          Module std::storage

                                                          Modules

                                                          Contract storage utilities.

                                                          Contract storage utilities.

                                                          Contract storage utilities.

                                                          Contract storage utilities.

                                                          diff --git a/static/sway/std/storage/storable_slice/fn.clear_slice.html b/static/sway/std/storage/storable_slice/fn.clear_slice.html index 4822dcf2..4d4f8c15 100644 --- a/static/sway/std/storage/storable_slice/fn.clear_slice.html +++ b/static/sway/std/storage/storable_slice/fn.clear_slice.html @@ -1,4 +1,4 @@ -clear_slice in storable_slice - Sway
                                                          pub fn clear_slice(key: b256) -> bool 
                                                          Expand description

                                                          Clear a sequence of storage slots starting at a some key.

                                                          +clear_slice in storable_slice - Sway
                                                          pub fn clear_slice(key: b256) -> bool 
                                                          Expand description

                                                          Clear a sequence of storage slots starting at a some key.

                                                          Arguments

                                                          • key: [b256] - The key of the first storage slot that will be cleared
                                                          • diff --git a/static/sway/std/storage/storable_slice/fn.read_slice.html b/static/sway/std/storage/storable_slice/fn.read_slice.html index 9a43cc66..cddc13f1 100644 --- a/static/sway/std/storage/storable_slice/fn.read_slice.html +++ b/static/sway/std/storage/storable_slice/fn.read_slice.html @@ -1,4 +1,4 @@ -read_slice in storable_slice - Sway
                                                            pub fn read_slice(key: b256) -> Option<raw_slice> 
                                                            Expand description

                                                            Load a raw_slice from storage.

                                                            +read_slice in storable_slice - Sway
                                                            pub fn read_slice(key: b256) -> Option<raw_slice> 
                                                            Expand description

                                                            Load a raw_slice from storage.

                                                            Arguments

                                                            • key: [b256] - The storage slot to load the value from.
                                                            • diff --git a/static/sway/std/storage/storable_slice/fn.write_slice.html b/static/sway/std/storage/storable_slice/fn.write_slice.html index 57c6e382..30819d5a 100644 --- a/static/sway/std/storage/storable_slice/fn.write_slice.html +++ b/static/sway/std/storage/storable_slice/fn.write_slice.html @@ -1,4 +1,4 @@ -write_slice in storable_slice - Sway
                                                              pub fn write_slice(key: b256, slice: raw_slice) 
                                                              Expand description

                                                              Store a raw_slice from the heap into storage.

                                                              +write_slice in storable_slice - Sway
                                                              pub fn write_slice(key: b256, slice: raw_slice) 
                                                              Expand description

                                                              Store a raw_slice from the heap into storage.

                                                              Arguments

                                                              • key: [b256] - The storage slot at which the variable will be stored.
                                                              • diff --git a/static/sway/std/storage/storable_slice/index.html b/static/sway/std/storage/storable_slice/index.html index 5d496a1b..ba0c9faf 100644 --- a/static/sway/std/storage/storable_slice/index.html +++ b/static/sway/std/storage/storable_slice/index.html @@ -1,4 +1,4 @@ -storable_slice in std - Sway
                                                                Expand description

                                                                Contract storage utilities.

                                                                +storable_slice in std - Sway
                                                                Expand description

                                                                Contract storage utilities.

                                                                Traits

                                                                A general way to persistently store heap types.

                                                                Functions

                                                                Clear a sequence of storage slots starting at a some key.

                                                                Load a raw_slice from storage.

                                                                diff --git a/static/sway/std/storage/storable_slice/trait.StorableSlice.html b/static/sway/std/storage/storable_slice/trait.StorableSlice.html index 5f9679ee..ec10bb7f 100644 --- a/static/sway/std/storage/storable_slice/trait.StorableSlice.html +++ b/static/sway/std/storage/storable_slice/trait.StorableSlice.html @@ -1,4 +1,4 @@ -StorableSlice in storable_slice - Sway
                                                                pub trait StorableSlice<T> {
                                                                +StorableSlice in storable_slice - Sway
                                                                pub trait StorableSlice<T> {
                                                                     #[storage(read, write)]
                                                                     fn write_slice(self, argument: T);
                                                                     #[storage(read)]
                                                                diff --git a/static/sway/std/storage/storage_api/fn.clear.html b/static/sway/std/storage/storage_api/fn.clear.html
                                                                index 097dcb1a..3c693eb3 100644
                                                                --- a/static/sway/std/storage/storage_api/fn.clear.html
                                                                +++ b/static/sway/std/storage/storage_api/fn.clear.html
                                                                @@ -1,4 +1,4 @@
                                                                -clear in storage_api - Sway
                                                                pub fn clear<T>(slot: b256, offset: u64) -> bool 
                                                                Expand description

                                                                Clear a value starting at some slot with an offset.

                                                                +clear in storage_api - Sway
                                                                pub fn clear<T>(slot: b256, offset: u64) -> bool 
                                                                Expand description

                                                                Clear a value starting at some slot with an offset.

                                                                Arguments

                                                                • slot - The key of the stored value that will be cleared
                                                                • diff --git a/static/sway/std/storage/storage_api/fn.read.html b/static/sway/std/storage/storage_api/fn.read.html index 65f4c97e..63294ae3 100644 --- a/static/sway/std/storage/storage_api/fn.read.html +++ b/static/sway/std/storage/storage_api/fn.read.html @@ -1,4 +1,4 @@ -read in storage_api - Sway
                                                                  pub fn read<T>(slot: b256, offset: u64) -> Option<T> 
                                                                  Expand description

                                                                  Reads a value of type T starting at the location specified by slot and offset. If the
                                                                  +read in storage_api - Sway

                                                                  pub fn read<T>(slot: b256, offset: u64) -> Option<T> 
                                                                  Expand description

                                                                  Reads a value of type T starting at the location specified by slot and offset. If the
                                                                  value crosses the boundary of a storage slot, reading continues at the following slot.

                                                                  Arguments

                                                                    diff --git a/static/sway/std/storage/storage_api/fn.write.html b/static/sway/std/storage/storage_api/fn.write.html index f326cbec..42d209e8 100644 --- a/static/sway/std/storage/storage_api/fn.write.html +++ b/static/sway/std/storage/storage_api/fn.write.html @@ -1,4 +1,4 @@ -write in storage_api - Sway
                                                                    pub fn write<T>(slot: b256, offset: u64, value: T) 
                                                                    Expand description

                                                                    Stores a stack value in storage. Will not work for heap values.

                                                                    +write in storage_api - Sway
                                                                    pub fn write<T>(slot: b256, offset: u64, value: T) 
                                                                    Expand description

                                                                    Stores a stack value in storage. Will not work for heap values.

                                                                    Additional Information

                                                                    If the value crosses the boundary of a storage slot, writing continues at the following slot.

                                                                    Arguments

                                                                    diff --git a/static/sway/std/storage/storage_api/index.html b/static/sway/std/storage/storage_api/index.html index 9f5b77a8..91f4fb04 100644 --- a/static/sway/std/storage/storage_api/index.html +++ b/static/sway/std/storage/storage_api/index.html @@ -1,4 +1,4 @@ -storage_api in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    +storage_api in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    Functions

                                                                    Clear a value starting at some slot with an offset.

                                                                    Reads a value of type T starting at the location specified by slot and offset. If the

                                                                    Stores a stack value in storage. Will not work for heap values.

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_bytes/index.html b/static/sway/std/storage/storage_bytes/index.html index 5bfcb4bb..c8da1aef 100644 --- a/static/sway/std/storage/storage_bytes/index.html +++ b/static/sway/std/storage/storage_bytes/index.html @@ -1,3 +1,3 @@ -storage_bytes in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    +storage_bytes in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    Structs

                                                                    A persistent storage type to store a collection of tightly packed bytes.

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_bytes/struct.StorageBytes.html b/static/sway/std/storage/storage_bytes/struct.StorageBytes.html index 87dc021b..083cd352 100644 --- a/static/sway/std/storage/storage_bytes/struct.StorageBytes.html +++ b/static/sway/std/storage/storage_bytes/struct.StorageBytes.html @@ -1,2 +1,2 @@ -StorageBytes in storage_bytes - Sway
                                                                    pub struct StorageBytes {}
                                                                    Expand description

                                                                    A persistent storage type to store a collection of tightly packed bytes.

                                                                    +StorageBytes in storage_bytes - Sway
                                                                    pub struct StorageBytes {}
                                                                    Expand description

                                                                    A persistent storage type to store a collection of tightly packed bytes.

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_map/enum.StorageMapError.html b/static/sway/std/storage/storage_map/enum.StorageMapError.html index 3ecc5200..d3f6ce8a 100644 --- a/static/sway/std/storage/storage_map/enum.StorageMapError.html +++ b/static/sway/std/storage/storage_map/enum.StorageMapError.html @@ -1,4 +1,4 @@ -StorageMapError in storage_map - Sway
                                                                    pub enum StorageMapError<V> {
                                                                    +StorageMapError in storage_map - Sway
                                                                    pub enum StorageMapError<V> {
                                                                         /// Indicates that a value already exists for the key.
                                                                         OccupiedError: V,
                                                                     }
                                                                    Expand description

                                                                    Errors pertaining to the StorageMap struct.

                                                                    diff --git a/static/sway/std/storage/storage_map/index.html b/static/sway/std/storage/storage_map/index.html index 2ed70482..08d3092f 100644 --- a/static/sway/std/storage/storage_map/index.html +++ b/static/sway/std/storage/storage_map/index.html @@ -1,4 +1,4 @@ -storage_map in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    +storage_map in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    Structs

                                                                    A persistent key-value pair mapping struct.

                                                                    Enums

                                                                    Errors pertaining to the StorageMap struct.

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_map/struct.StorageMap.html b/static/sway/std/storage/storage_map/struct.StorageMap.html index 124f9be5..9a7151c1 100644 --- a/static/sway/std/storage/storage_map/struct.StorageMap.html +++ b/static/sway/std/storage/storage_map/struct.StorageMap.html @@ -1,2 +1,2 @@ -StorageMap in storage_map - Sway
                                                                    pub struct StorageMap<K, V> {}
                                                                    Expand description

                                                                    A persistent key-value pair mapping struct.

                                                                    +StorageMap in storage_map - Sway
                                                                    pub struct StorageMap<K, V> {}
                                                                    Expand description

                                                                    A persistent key-value pair mapping struct.

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_string/index.html b/static/sway/std/storage/storage_string/index.html index 0e7cf0fd..1635b71d 100644 --- a/static/sway/std/storage/storage_string/index.html +++ b/static/sway/std/storage/storage_string/index.html @@ -1,2 +1,2 @@ -storage_string in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    +storage_string in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    Structs

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_string/struct.StorageString.html b/static/sway/std/storage/storage_string/struct.StorageString.html index f35b6d92..e4f644c1 100644 --- a/static/sway/std/storage/storage_string/struct.StorageString.html +++ b/static/sway/std/storage/storage_string/struct.StorageString.html @@ -1 +1 @@ -StorageString in storage_string - Sway
                                                                    pub struct StorageString {}
                                                                    \ No newline at end of file +StorageString in storage_string - Sway
                                                                    pub struct StorageString {}
                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_vec/index.html b/static/sway/std/storage/storage_vec/index.html index 77bb33d1..5a4c3edc 100644 --- a/static/sway/std/storage/storage_vec/index.html +++ b/static/sway/std/storage/storage_vec/index.html @@ -1,3 +1,3 @@ -storage_vec in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    +storage_vec in std - Sway
                                                                    Expand description

                                                                    Contract storage utilities.

                                                                    Structs

                                                                    A persistent vector struct.

                                                                    \ No newline at end of file diff --git a/static/sway/std/storage/storage_vec/struct.StorageVec.html b/static/sway/std/storage/storage_vec/struct.StorageVec.html index d68f4ba1..c9bf51a0 100644 --- a/static/sway/std/storage/storage_vec/struct.StorageVec.html +++ b/static/sway/std/storage/storage_vec/struct.StorageVec.html @@ -1,2 +1,2 @@ -StorageVec in storage_vec - Sway
                                                                    pub struct StorageVec<V> {}
                                                                    Expand description

                                                                    A persistent vector struct.

                                                                    +StorageVec in storage_vec - Sway
                                                                    pub struct StorageVec<V> {}
                                                                    Expand description

                                                                    A persistent vector struct.

                                                                    \ No newline at end of file diff --git a/static/sway/std/string/index.html b/static/sway/std/string/index.html index 3e483853..922b12b3 100644 --- a/static/sway/std/string/index.html +++ b/static/sway/std/string/index.html @@ -1,3 +1,3 @@ -string in std - Sway

                                                                    Module std::string

                                                                    Expand description

                                                                    A UTF-8 encoded growable string.

                                                                    -

                                                                    Structs

                                                                    A UTF-8 encoded growable string.

                                                                    +string in std - Sway

                                                                    Module std::string

                                                                    Expand description

                                                                    A UTF-8 encoded growable string.

                                                                    +

                                                                    Structs

                                                                    A UTF-8 encoded growable string. It has ownership over its buffer.

                                                                    \ No newline at end of file diff --git a/static/sway/std/string/struct.String.html b/static/sway/std/string/struct.String.html index 972375ff..b7d51e4c 100644 --- a/static/sway/std/string/struct.String.html +++ b/static/sway/std/string/struct.String.html @@ -1,7 +1,7 @@ -String in string - Sway

                                                                    Struct std::string::String

                                                                    pub struct String {
                                                                    +String in string - Sway

                                                                    Struct std::string::String

                                                                    pub struct String {
                                                                         /// The bytes representing the characters of the string.
                                                                         bytes: Bytes,
                                                                    -}
                                                                    Expand description

                                                                    A UTF-8 encoded growable string.

                                                                    +}
                                                                    Expand description

                                                                    A UTF-8 encoded growable string. It has ownership over its buffer.

                                                                    Additional Information

                                                                    WARNING: As this type is meant to be forward compatible with UTF-8, do not
                                                                    add any mutation functionality or unicode input of any kind until char is
                                                                    diff --git a/static/sway/std/tx/constant.GTF_CREATE_INPUTS_COUNT.html b/static/sway/std/tx/constant.GTF_CREATE_INPUTS_COUNT.html index 4b5ecc8a..20558d2e 100644 --- a/static/sway/std/tx/constant.GTF_CREATE_INPUTS_COUNT.html +++ b/static/sway/std/tx/constant.GTF_CREATE_INPUTS_COUNT.html @@ -1 +1 @@ -GTF_CREATE_INPUTS_COUNT in tx - Sway

                                                                    pub const GTF_CREATE_INPUTS_COUNT = 0x103
                                                                    \ No newline at end of file +GTF_CREATE_INPUTS_COUNT in tx - Sway
                                                                    pub const GTF_CREATE_INPUTS_COUNT = 0x103
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_CREATE_INPUT_AT_INDEX.html b/static/sway/std/tx/constant.GTF_CREATE_INPUT_AT_INDEX.html index 3512375d..8bf4a9b4 100644 --- a/static/sway/std/tx/constant.GTF_CREATE_INPUT_AT_INDEX.html +++ b/static/sway/std/tx/constant.GTF_CREATE_INPUT_AT_INDEX.html @@ -1 +1 @@ -GTF_CREATE_INPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_CREATE_INPUT_AT_INDEX = 0x108
                                                                    \ No newline at end of file +GTF_CREATE_INPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_CREATE_INPUT_AT_INDEX = 0x108
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_CREATE_OUTPUTS_COUNT.html b/static/sway/std/tx/constant.GTF_CREATE_OUTPUTS_COUNT.html index a1e533aa..c038f9af 100644 --- a/static/sway/std/tx/constant.GTF_CREATE_OUTPUTS_COUNT.html +++ b/static/sway/std/tx/constant.GTF_CREATE_OUTPUTS_COUNT.html @@ -1 +1 @@ -GTF_CREATE_OUTPUTS_COUNT in tx - Sway
                                                                    pub const GTF_CREATE_OUTPUTS_COUNT = 0x104
                                                                    \ No newline at end of file +GTF_CREATE_OUTPUTS_COUNT in tx - Sway
                                                                    pub const GTF_CREATE_OUTPUTS_COUNT = 0x104
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_CREATE_OUTPUT_AT_INDEX.html b/static/sway/std/tx/constant.GTF_CREATE_OUTPUT_AT_INDEX.html index 90a0b9a0..396bbf25 100644 --- a/static/sway/std/tx/constant.GTF_CREATE_OUTPUT_AT_INDEX.html +++ b/static/sway/std/tx/constant.GTF_CREATE_OUTPUT_AT_INDEX.html @@ -1 +1 @@ -GTF_CREATE_OUTPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_CREATE_OUTPUT_AT_INDEX = 0x109
                                                                    \ No newline at end of file +GTF_CREATE_OUTPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_CREATE_OUTPUT_AT_INDEX = 0x109
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_CREATE_WITNESSES_COUNT.html b/static/sway/std/tx/constant.GTF_CREATE_WITNESSES_COUNT.html index c3ef8793..3fbb5a0a 100644 --- a/static/sway/std/tx/constant.GTF_CREATE_WITNESSES_COUNT.html +++ b/static/sway/std/tx/constant.GTF_CREATE_WITNESSES_COUNT.html @@ -1 +1 @@ -GTF_CREATE_WITNESSES_COUNT in tx - Sway
                                                                    pub const GTF_CREATE_WITNESSES_COUNT = 0x105
                                                                    \ No newline at end of file +GTF_CREATE_WITNESSES_COUNT in tx - Sway
                                                                    pub const GTF_CREATE_WITNESSES_COUNT = 0x105
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_CREATE_WITNESS_AT_INDEX.html b/static/sway/std/tx/constant.GTF_CREATE_WITNESS_AT_INDEX.html index 8bf66289..851e9ec8 100644 --- a/static/sway/std/tx/constant.GTF_CREATE_WITNESS_AT_INDEX.html +++ b/static/sway/std/tx/constant.GTF_CREATE_WITNESS_AT_INDEX.html @@ -1 +1 @@ -GTF_CREATE_WITNESS_AT_INDEX in tx - Sway
                                                                    pub const GTF_CREATE_WITNESS_AT_INDEX = 0x10A
                                                                    \ No newline at end of file +GTF_CREATE_WITNESS_AT_INDEX in tx - Sway
                                                                    pub const GTF_CREATE_WITNESS_AT_INDEX = 0x10A
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_POLICY_MATURITY.html b/static/sway/std/tx/constant.GTF_POLICY_MATURITY.html index 81670f6a..697a49fe 100644 --- a/static/sway/std/tx/constant.GTF_POLICY_MATURITY.html +++ b/static/sway/std/tx/constant.GTF_POLICY_MATURITY.html @@ -1 +1 @@ -GTF_POLICY_MATURITY in tx - Sway
                                                                    pub const GTF_POLICY_MATURITY = 0x503
                                                                    \ No newline at end of file +GTF_POLICY_MATURITY in tx - Sway
                                                                    pub const GTF_POLICY_MATURITY = 0x503
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_POLICY_MAX_FEE.html b/static/sway/std/tx/constant.GTF_POLICY_MAX_FEE.html index 80196869..4d899af7 100644 --- a/static/sway/std/tx/constant.GTF_POLICY_MAX_FEE.html +++ b/static/sway/std/tx/constant.GTF_POLICY_MAX_FEE.html @@ -1 +1 @@ -GTF_POLICY_MAX_FEE in tx - Sway
                                                                    pub const GTF_POLICY_MAX_FEE = 0x504
                                                                    \ No newline at end of file +GTF_POLICY_MAX_FEE in tx - Sway
                                                                    pub const GTF_POLICY_MAX_FEE = 0x504
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_POLICY_TIP.html b/static/sway/std/tx/constant.GTF_POLICY_TIP.html index edaff47c..b4df5230 100644 --- a/static/sway/std/tx/constant.GTF_POLICY_TIP.html +++ b/static/sway/std/tx/constant.GTF_POLICY_TIP.html @@ -1 +1 @@ -GTF_POLICY_TIP in tx - Sway

                                                                    Constant std::tx::GTF_POLICY_TIP

                                                                    pub const GTF_POLICY_TIP = 0x501
                                                                    \ No newline at end of file +GTF_POLICY_TIP in tx - Sway

                                                                    Constant std::tx::GTF_POLICY_TIP

                                                                    pub const GTF_POLICY_TIP = 0x501
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_POLICY_TYPES.html b/static/sway/std/tx/constant.GTF_POLICY_TYPES.html index a635fba2..329e1ae6 100644 --- a/static/sway/std/tx/constant.GTF_POLICY_TYPES.html +++ b/static/sway/std/tx/constant.GTF_POLICY_TYPES.html @@ -1 +1 @@ -GTF_POLICY_TYPES in tx - Sway
                                                                    pub const GTF_POLICY_TYPES = 0x500
                                                                    \ No newline at end of file +GTF_POLICY_TYPES in tx - Sway
                                                                    pub const GTF_POLICY_TYPES = 0x500
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_POLICY_WITNESS_LIMIT.html b/static/sway/std/tx/constant.GTF_POLICY_WITNESS_LIMIT.html index 4b93b9d4..b905e71b 100644 --- a/static/sway/std/tx/constant.GTF_POLICY_WITNESS_LIMIT.html +++ b/static/sway/std/tx/constant.GTF_POLICY_WITNESS_LIMIT.html @@ -1 +1 @@ -GTF_POLICY_WITNESS_LIMIT in tx - Sway
                                                                    pub const GTF_POLICY_WITNESS_LIMIT = 0x502
                                                                    \ No newline at end of file +GTF_POLICY_WITNESS_LIMIT in tx - Sway
                                                                    pub const GTF_POLICY_WITNESS_LIMIT = 0x502
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_GAS_LIMIT.html b/static/sway/std/tx/constant.GTF_SCRIPT_GAS_LIMIT.html index 7a373a71..f541faf1 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_GAS_LIMIT.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_GAS_LIMIT.html @@ -1 +1 @@ -GTF_SCRIPT_GAS_LIMIT in tx - Sway
                                                                    pub const GTF_SCRIPT_GAS_LIMIT = 0x002
                                                                    \ No newline at end of file +GTF_SCRIPT_GAS_LIMIT in tx - Sway
                                                                    pub const GTF_SCRIPT_GAS_LIMIT = 0x002
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_INPUTS_COUNT.html b/static/sway/std/tx/constant.GTF_SCRIPT_INPUTS_COUNT.html index 84ad4199..e92ffc26 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_INPUTS_COUNT.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_INPUTS_COUNT.html @@ -1 +1 @@ -GTF_SCRIPT_INPUTS_COUNT in tx - Sway
                                                                    pub const GTF_SCRIPT_INPUTS_COUNT = 0x005
                                                                    \ No newline at end of file +GTF_SCRIPT_INPUTS_COUNT in tx - Sway
                                                                    pub const GTF_SCRIPT_INPUTS_COUNT = 0x005
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_INPUT_AT_INDEX.html b/static/sway/std/tx/constant.GTF_SCRIPT_INPUT_AT_INDEX.html index 3fc590df..8bcfe785 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_INPUT_AT_INDEX.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_INPUT_AT_INDEX.html @@ -1 +1 @@ -GTF_SCRIPT_INPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_SCRIPT_INPUT_AT_INDEX = 0x00B
                                                                    \ No newline at end of file +GTF_SCRIPT_INPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_SCRIPT_INPUT_AT_INDEX = 0x00B
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUTS_COUNT.html b/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUTS_COUNT.html index 012bc10c..ba23a318 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUTS_COUNT.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUTS_COUNT.html @@ -1 +1 @@ -GTF_SCRIPT_OUTPUTS_COUNT in tx - Sway
                                                                    pub const GTF_SCRIPT_OUTPUTS_COUNT = 0x006
                                                                    \ No newline at end of file +GTF_SCRIPT_OUTPUTS_COUNT in tx - Sway
                                                                    pub const GTF_SCRIPT_OUTPUTS_COUNT = 0x006
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUT_AT_INDEX.html b/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUT_AT_INDEX.html index 7dbed289..0e5a22b5 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUT_AT_INDEX.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_OUTPUT_AT_INDEX.html @@ -1 +1 @@ -GTF_SCRIPT_OUTPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_SCRIPT_OUTPUT_AT_INDEX = 0x00C
                                                                    \ No newline at end of file +GTF_SCRIPT_OUTPUT_AT_INDEX in tx - Sway
                                                                    pub const GTF_SCRIPT_OUTPUT_AT_INDEX = 0x00C
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT.html b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT.html index b21a7f61..365c0822 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT.html @@ -1 +1 @@ -GTF_SCRIPT_SCRIPT in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT = 0x009
                                                                    \ No newline at end of file +GTF_SCRIPT_SCRIPT in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT = 0x009
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA.html b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA.html index 3d4a3ae3..848198f2 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA.html @@ -1 +1 @@ -GTF_SCRIPT_SCRIPT_DATA in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT_DATA = 0x00A
                                                                    \ No newline at end of file +GTF_SCRIPT_SCRIPT_DATA in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT_DATA = 0x00A
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA_LENGTH.html b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA_LENGTH.html index b7d57163..0e99f8b4 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA_LENGTH.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_DATA_LENGTH.html @@ -1 +1 @@ -GTF_SCRIPT_SCRIPT_DATA_LENGTH in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT_DATA_LENGTH = 0x004
                                                                    \ No newline at end of file +GTF_SCRIPT_SCRIPT_DATA_LENGTH in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT_DATA_LENGTH = 0x004
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_LENGTH.html b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_LENGTH.html index a30b00ae..228d45ce 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_LENGTH.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_SCRIPT_LENGTH.html @@ -1 +1 @@ -GTF_SCRIPT_SCRIPT_LENGTH in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT_LENGTH = 0x003
                                                                    \ No newline at end of file +GTF_SCRIPT_SCRIPT_LENGTH in tx - Sway
                                                                    pub const GTF_SCRIPT_SCRIPT_LENGTH = 0x003
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_WITNESSES_COUNT.html b/static/sway/std/tx/constant.GTF_SCRIPT_WITNESSES_COUNT.html index 34c4244c..9a8cb292 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_WITNESSES_COUNT.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_WITNESSES_COUNT.html @@ -1 +1 @@ -GTF_SCRIPT_WITNESSES_COUNT in tx - Sway
                                                                    pub const GTF_SCRIPT_WITNESSES_COUNT = 0x007
                                                                    \ No newline at end of file +GTF_SCRIPT_WITNESSES_COUNT in tx - Sway
                                                                    pub const GTF_SCRIPT_WITNESSES_COUNT = 0x007
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_SCRIPT_WITNESS_AT_INDEX.html b/static/sway/std/tx/constant.GTF_SCRIPT_WITNESS_AT_INDEX.html index fe326844..055db974 100644 --- a/static/sway/std/tx/constant.GTF_SCRIPT_WITNESS_AT_INDEX.html +++ b/static/sway/std/tx/constant.GTF_SCRIPT_WITNESS_AT_INDEX.html @@ -1 +1 @@ -GTF_SCRIPT_WITNESS_AT_INDEX in tx - Sway
                                                                    pub const GTF_SCRIPT_WITNESS_AT_INDEX = 0x00D
                                                                    \ No newline at end of file +GTF_SCRIPT_WITNESS_AT_INDEX in tx - Sway
                                                                    pub const GTF_SCRIPT_WITNESS_AT_INDEX = 0x00D
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_TX_LENGTH.html b/static/sway/std/tx/constant.GTF_TX_LENGTH.html index c8b72017..f0cf94ee 100644 --- a/static/sway/std/tx/constant.GTF_TX_LENGTH.html +++ b/static/sway/std/tx/constant.GTF_TX_LENGTH.html @@ -1 +1 @@ -GTF_TX_LENGTH in tx - Sway

                                                                    Constant std::tx::GTF_TX_LENGTH

                                                                    pub const GTF_TX_LENGTH = 0x00E
                                                                    \ No newline at end of file +GTF_TX_LENGTH in tx - Sway

                                                                    Constant std::tx::GTF_TX_LENGTH

                                                                    pub const GTF_TX_LENGTH = 0x00E
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_TYPE.html b/static/sway/std/tx/constant.GTF_TYPE.html index 4a719e1c..5a1ad5b6 100644 --- a/static/sway/std/tx/constant.GTF_TYPE.html +++ b/static/sway/std/tx/constant.GTF_TYPE.html @@ -1 +1 @@ -GTF_TYPE in tx - Sway

                                                                    Constant std::tx::GTF_TYPE

                                                                    pub const GTF_TYPE = 0x001
                                                                    \ No newline at end of file +GTF_TYPE in tx - Sway

                                                                    Constant std::tx::GTF_TYPE

                                                                    pub const GTF_TYPE = 0x001
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_WITNESS_DATA.html b/static/sway/std/tx/constant.GTF_WITNESS_DATA.html index e4831853..b4cf501e 100644 --- a/static/sway/std/tx/constant.GTF_WITNESS_DATA.html +++ b/static/sway/std/tx/constant.GTF_WITNESS_DATA.html @@ -1 +1 @@ -GTF_WITNESS_DATA in tx - Sway
                                                                    pub const GTF_WITNESS_DATA = 0x401
                                                                    \ No newline at end of file +GTF_WITNESS_DATA in tx - Sway
                                                                    pub const GTF_WITNESS_DATA = 0x401
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/constant.GTF_WITNESS_DATA_LENGTH.html b/static/sway/std/tx/constant.GTF_WITNESS_DATA_LENGTH.html index ce853ebf..933325ae 100644 --- a/static/sway/std/tx/constant.GTF_WITNESS_DATA_LENGTH.html +++ b/static/sway/std/tx/constant.GTF_WITNESS_DATA_LENGTH.html @@ -1 +1 @@ -GTF_WITNESS_DATA_LENGTH in tx - Sway
                                                                    pub const GTF_WITNESS_DATA_LENGTH = 0x400
                                                                    \ No newline at end of file +GTF_WITNESS_DATA_LENGTH in tx - Sway
                                                                    pub const GTF_WITNESS_DATA_LENGTH = 0x400
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/enum.Transaction.html b/static/sway/std/tx/enum.Transaction.html index 25df41e1..d5b7fd55 100644 --- a/static/sway/std/tx/enum.Transaction.html +++ b/static/sway/std/tx/enum.Transaction.html @@ -1,9 +1,56 @@ -Transaction in tx - Sway
                                                                    pub enum Transaction {
                                                                    +Transaction in tx - Sway
                                                                    pub enum Transaction {
                                                                         /// A standard transaction, where execution is defined by a script.
                                                                         Script: (),
                                                                         /// A contract deployment transaction.
                                                                         Create: (),
                                                                    +    /// The transaction is created by the block producer and is not signed.
                                                                    +    ///
                                                                    +    /// # Additional Information
                                                                    +    ///
                                                                    +    /// NOTE: This should never be valid in execution but it provided for congruency to the FuelVM specs.
                                                                    +    Mint: (),
                                                                    +    /// The Upgrade transaction allows upgrading either consensus parameters or state transition function used by the network to produce future blocks.
                                                                    +    Upgrade: (),
                                                                    +    ///The Upload transaction allows the huge bytecode to be divided into subsections and uploaded slowly to the chain.
                                                                    +    Upload: (),
                                                                    +    /// The Blob inserts a simple binary blob in the chain. It's raw immutable data that can be cheaply loaded by the VM and used as instructions or just data.
                                                                    +    Blob: (),
                                                                     }
                                                                    Expand description

                                                                    A transaction type.

                                                                    Variants

                                                                    Script: ()

                                                                    A standard transaction, where execution is defined by a script.

                                                                    Create: ()

                                                                    A contract deployment transaction.

                                                                    -
                                                                    \ No newline at end of file +

                                                                    Mint: ()

                                                                    The transaction is created by the block producer and is not signed.

                                                                    +

                                                                    Additional Information

                                                                    +

                                                                    NOTE: This should never be valid in execution but it provided for congruency to the FuelVM specs.

                                                                    +

                                                                    Upgrade: ()

                                                                    The Upgrade transaction allows upgrading either consensus parameters or state transition function used by the network to produce future blocks.

                                                                    +

                                                                    Upload: ()

                                                                    The Upload transaction allows the huge bytecode to be divided into subsections and uploaded slowly to the chain.

                                                                    +

                                                                    Blob: ()

                                                                    The Blob inserts a simple binary blob in the chain. It’s raw immutable data that can be cheaply loaded by the VM and used as instructions or just data.

                                                                    +

                                                                    Trait Implementations

                                                                    fn eq(self, other: Self) -> bool

                                                                    fn neq(self, other: Self) -> bool

                                                                    Evaluates if two values of the same type are not equal.

                                                                    +

                                                                    Additional Information

                                                                    +

                                                                    This function is inherited when eq() is implemented.

                                                                    +

                                                                    Arguments

                                                                    +
                                                                      +
                                                                    • other: [Self] - The value of the same type.
                                                                    • +
                                                                    +

                                                                    Returns

                                                                    +
                                                                      +
                                                                    • [bool] - true if the two values are not equal, otherwise false.
                                                                    • +
                                                                    +

                                                                    Examples

                                                                    +
                                                                    struct MyStruct {
                                                                    +    val: u64,
                                                                    +}
                                                                    +
                                                                    +impl Eq for MyStruct {
                                                                    +    fn eq(self, other: Self) -> bool {
                                                                    +         self.val == other.val
                                                                    +    }
                                                                    +}
                                                                    +
                                                                    +fn foo() {
                                                                    +    let struct1 = MyStruct { val: 10 };
                                                                    +    let struct2 = MyStruct { val: 2 };
                                                                    +    let result = struct1 != struct2;
                                                                    +    assert(result);
                                                                    +}
                                                                    +
                                                                    +
                                                                    \ No newline at end of file diff --git a/static/sway/std/tx/fn.script_gas_limit.html b/static/sway/std/tx/fn.script_gas_limit.html index 98a51f64..c49e396d 100644 --- a/static/sway/std/tx/fn.script_gas_limit.html +++ b/static/sway/std/tx/fn.script_gas_limit.html @@ -1,4 +1,4 @@ -script_gas_limit in tx - Sway
                                                                    pub fn script_gas_limit() -> u64 
                                                                    Expand description

                                                                    Get the script gas limit for the transaction.

                                                                    +script_gas_limit in tx - Sway
                                                                    pub fn script_gas_limit() -> u64 
                                                                    Expand description

                                                                    Get the script gas limit for the transaction.

                                                                    Returns

                                                                    • [u64] - The script gas limit for the transaction.
                                                                    • diff --git a/static/sway/std/tx/fn.tx_id.html b/static/sway/std/tx/fn.tx_id.html index bf7eaaaf..2d671826 100644 --- a/static/sway/std/tx/fn.tx_id.html +++ b/static/sway/std/tx/fn.tx_id.html @@ -1,4 +1,4 @@ -tx_id in tx - Sway

                                                                      Function std::tx::tx_id

                                                                      pub fn tx_id() -> b256 
                                                                      Expand description

                                                                      Get the Transaction ID of the current transaction.

                                                                      +tx_id in tx - Sway

                                                                      Function std::tx::tx_id

                                                                      pub fn tx_id() -> b256 
                                                                      Expand description

                                                                      Get the Transaction ID of the current transaction.

                                                                      Returns

                                                                      • [b256] - The Transaction ID of the current transaction.
                                                                      • diff --git a/static/sway/std/tx/fn.tx_maturity.html b/static/sway/std/tx/fn.tx_maturity.html index 1a92ac55..47bd726c 100644 --- a/static/sway/std/tx/fn.tx_maturity.html +++ b/static/sway/std/tx/fn.tx_maturity.html @@ -1,4 +1,4 @@ -tx_maturity in tx - Sway

                                                                        Function std::tx::tx_maturity

                                                                        pub fn tx_maturity() -> Option<u64> 
                                                                        Expand description

                                                                        Get the maturity for the transaction, if it is set.

                                                                        +tx_maturity in tx - Sway

                                                                        Function std::tx::tx_maturity

                                                                        pub fn tx_maturity() -> Option<u32> 
                                                                        Expand description

                                                                        Get the maturity for the transaction, if it is set.

                                                                        Returns

                                                                        • [Option] - The maturity for the transaction.
                                                                        • @@ -7,7 +7,7 @@

                                                                          Examples

                                                                          use std::tx::tx_maturity;
                                                                           
                                                                           fn foo() {
                                                                          -    let maturity = tx_maturity();
                                                                          +    let maturity = tx_maturity().unwrap();
                                                                               log(maturity);
                                                                           }
                                                                           
                                                                          diff --git a/static/sway/std/tx/fn.tx_max_fee.html b/static/sway/std/tx/fn.tx_max_fee.html index b97a37eb..22ba0748 100644 --- a/static/sway/std/tx/fn.tx_max_fee.html +++ b/static/sway/std/tx/fn.tx_max_fee.html @@ -1,4 +1,4 @@ -tx_max_fee in tx - Sway

                                                                          Function std::tx::tx_max_fee

                                                                          pub fn tx_max_fee() -> Option<u64> 
                                                                          Expand description

                                                                          Get the max fee for the transaction, if it is set.

                                                                          +tx_max_fee in tx - Sway

                                                                          Function std::tx::tx_max_fee

                                                                          pub fn tx_max_fee() -> Option<u64> 
                                                                          Expand description

                                                                          Get the max fee for the transaction, if it is set.

                                                                          Returns

                                                                          • [Option] - The max fee for the transaction.
                                                                          • diff --git a/static/sway/std/tx/fn.tx_script_bytecode.html b/static/sway/std/tx/fn.tx_script_bytecode.html index 4d304031..a3a40be5 100644 --- a/static/sway/std/tx/fn.tx_script_bytecode.html +++ b/static/sway/std/tx/fn.tx_script_bytecode.html @@ -1,20 +1,16 @@ -tx_script_bytecode in tx - Sway
                                                                            pub fn tx_script_bytecode<T>() -> T 
                                                                            Expand description

                                                                            Get the script bytecode.

                                                                            +tx_script_bytecode in tx - Sway
                                                                            pub fn tx_script_bytecode<T>() -> Option<T> 
                                                                            Expand description

                                                                            Get the script bytecode.

                                                                            Additional Information

                                                                            Must be cast to a u64 array, with sufficient length to contain the bytecode.
                                                                            Bytecode will be padded to next whole word.

                                                                            Returns

                                                                              -
                                                                            • [T] - The script bytecode.
                                                                            • -
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • +
                                                                            • [Option] - The script bytecode.

                                                                            Examples

                                                                            use std::tx::tx_script_bytecode;
                                                                             
                                                                             fn foo() {
                                                                            -    let script_bytecode: [u64; 64] = tx_script_bytecode();
                                                                            +    let script_bytecode: [u64; 64] = tx_script_bytecode().unwrap();
                                                                                 log(script_bytecode);
                                                                             }
                                                                             
                                                                            diff --git a/static/sway/std/tx/fn.tx_script_bytecode_hash.html b/static/sway/std/tx/fn.tx_script_bytecode_hash.html index 40d69caf..d630d976 100644 --- a/static/sway/std/tx/fn.tx_script_bytecode_hash.html +++ b/static/sway/std/tx/fn.tx_script_bytecode_hash.html @@ -1,18 +1,13 @@ -tx_script_bytecode_hash in tx - Sway
                                                                            pub fn tx_script_bytecode_hash() -> b256 
                                                                            Expand description

                                                                            Get the hash of the script bytecode.
                                                                            -Reverts if not a transaction-script.

                                                                            +tx_script_bytecode_hash in tx - Sway
                                                                            pub fn tx_script_bytecode_hash() -> Option<b256> 
                                                                            Expand description

                                                                            Get the hash of the script bytecode.

                                                                            Returns

                                                                              -
                                                                            • [b256] - The hash of the script bytecode.
                                                                            • -
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • +
                                                                            • [Option] - The hash of the script bytecode.

                                                                            Examples

                                                                            use std::tx::tx_script_bytecode_hash;
                                                                             
                                                                             fn foo() {
                                                                            -    let script_bytecode_hash: b256 = tx_script_bytecode_hash();
                                                                            +    let script_bytecode_hash: b256 = tx_script_bytecode_hash().unwrap();
                                                                                 assert(script_bytecode_hash == 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef);
                                                                             }
                                                                             
                                                                            diff --git a/static/sway/std/tx/fn.tx_script_data.html b/static/sway/std/tx/fn.tx_script_data.html index 3378b3e5..95cd7494 100644 --- a/static/sway/std/tx/fn.tx_script_data.html +++ b/static/sway/std/tx/fn.tx_script_data.html @@ -1,14 +1,10 @@ -tx_script_data in tx - Sway

                                                                            Function std::tx::tx_script_data

                                                                            pub fn tx_script_data<T>() -> T 
                                                                            Expand description

                                                                            Get the script data, typed.

                                                                            +tx_script_data in tx - Sway

                                                                            Function std::tx::tx_script_data

                                                                            pub fn tx_script_data<T>() -> Option<T> 
                                                                            Expand description

                                                                            Get the script data, typed.

                                                                            Additional Information

                                                                            -

                                                                            Unsafe.
                                                                            -Assumes the type is correct.

                                                                            +

                                                                            Unsafe. Assumes the type is correct.
                                                                            +This function does not support ownership types(Vec, Bytes, String, etc).

                                                                            Returns

                                                                              -
                                                                            • [T] - The script data, typed.
                                                                            • -
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • +
                                                                            • [Option] - The script data, typed.

                                                                            Examples

                                                                            use std::tx::tx_script_data;
                                                                            diff --git a/static/sway/std/tx/fn.tx_script_data_length.html b/static/sway/std/tx/fn.tx_script_data_length.html
                                                                            index 76356a99..e2e850c7 100644
                                                                            --- a/static/sway/std/tx/fn.tx_script_data_length.html
                                                                            +++ b/static/sway/std/tx/fn.tx_script_data_length.html
                                                                            @@ -1,17 +1,13 @@
                                                                            -tx_script_data_length in tx - Sway
                                                                            pub fn tx_script_data_length() -> u64 
                                                                            Expand description

                                                                            Get the script data length for the transaction.

                                                                            +tx_script_data_length in tx - Sway
                                                                            pub fn tx_script_data_length() -> Option<u64> 
                                                                            Expand description

                                                                            Get the script data length for the transaction.

                                                                            Returns

                                                                            • [u64] - The script data length for the transaction.
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • -

                                                                            Examples

                                                                            use std::tx::tx_script_data_length;
                                                                             
                                                                             fn foo() {
                                                                            -    let script_data_length = tx_script_data_length();
                                                                            +    let script_data_length = tx_script_data_length().unwrap();
                                                                                 assert(script_data_length > 0);
                                                                             }
                                                                             
                                                                            diff --git a/static/sway/std/tx/fn.tx_script_data_start_pointer.html b/static/sway/std/tx/fn.tx_script_data_start_pointer.html deleted file mode 100644 index d6444b7c..00000000 --- a/static/sway/std/tx/fn.tx_script_data_start_pointer.html +++ /dev/null @@ -1,18 +0,0 @@ -tx_script_data_start_pointer in tx - Sway
                                                                            pub fn tx_script_data_start_pointer() -> raw_ptr 
                                                                            Expand description

                                                                            Get the transaction script data start pointer.

                                                                            -

                                                                            Returns

                                                                            -
                                                                              -
                                                                            • [raw_ptr] - The transaction script data start pointer.
                                                                            • -
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • -
                                                                            -

                                                                            Examples

                                                                            -
                                                                            use std::tx::tx_script_data_start_pointer;
                                                                            -
                                                                            -fn foo() {
                                                                            -    let script_data_start_pointer = tx_script_data_start_pointer();
                                                                            -    log(script_data_start_pointer);
                                                                            -}
                                                                            -
                                                                            -
                                                                            \ No newline at end of file diff --git a/static/sway/std/tx/fn.tx_script_length.html b/static/sway/std/tx/fn.tx_script_length.html index 788a97ca..19fd4696 100644 --- a/static/sway/std/tx/fn.tx_script_length.html +++ b/static/sway/std/tx/fn.tx_script_length.html @@ -1,17 +1,13 @@ -tx_script_length in tx - Sway
                                                                            pub fn tx_script_length() -> u64 
                                                                            Expand description

                                                                            Get the length of the script for the transaction.

                                                                            +tx_script_length in tx - Sway
                                                                            pub fn tx_script_length() -> Option<u64> 
                                                                            Expand description

                                                                            Get the length of the script for the transaction.

                                                                            Returns

                                                                              -
                                                                            • [u64] - The script length for the transaction.
                                                                            • -
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • +
                                                                            • [Option] - The script length for the transaction.

                                                                            Examples

                                                                            use std::tx::tx_script_length;
                                                                             
                                                                             fn foo() {
                                                                            -    let script_length = tx_script_length();
                                                                            +    let script_length = tx_script_length().unwrap();
                                                                                 assert(script_length > 0);
                                                                             }
                                                                             
                                                                            diff --git a/static/sway/std/tx/fn.tx_script_start_pointer.html b/static/sway/std/tx/fn.tx_script_start_pointer.html deleted file mode 100644 index 0acc300e..00000000 --- a/static/sway/std/tx/fn.tx_script_start_pointer.html +++ /dev/null @@ -1,18 +0,0 @@ -tx_script_start_pointer in tx - Sway
                                                                            pub fn tx_script_start_pointer() -> raw_ptr 
                                                                            Expand description

                                                                            Get the transaction script start pointer.

                                                                            -

                                                                            Returns

                                                                            -
                                                                              -
                                                                            • [raw_ptr] - The transaction script start pointer.
                                                                            • -
                                                                            -

                                                                            Reverts

                                                                            -
                                                                              -
                                                                            • When the transaction type is of type Transaction::Create.
                                                                            • -
                                                                            -

                                                                            Examples

                                                                            -
                                                                            use std::tx::tx_script_start_pointer;
                                                                            -
                                                                            -fn foo() {
                                                                            -    let script_start_pointer = tx_script_start_pointer();
                                                                            -    log(script_start_pointer);
                                                                            -}
                                                                            -
                                                                            -
                                                                            \ No newline at end of file diff --git a/static/sway/std/tx/fn.tx_tip.html b/static/sway/std/tx/fn.tx_tip.html index 69894d5c..11d51bbe 100644 --- a/static/sway/std/tx/fn.tx_tip.html +++ b/static/sway/std/tx/fn.tx_tip.html @@ -1,4 +1,4 @@ -tx_tip in tx - Sway

                                                                            Function std::tx::tx_tip

                                                                            pub fn tx_tip() -> Option<u64> 
                                                                            Expand description

                                                                            Get the tip for the transaction, if it is set.

                                                                            +tx_tip in tx - Sway

                                                                            Function std::tx::tx_tip

                                                                            pub fn tx_tip() -> Option<u64> 
                                                                            Expand description

                                                                            Get the tip for the transaction, if it is set.

                                                                            Returns

                                                                            • [Option] - The tip for the transaction.
                                                                            • diff --git a/static/sway/std/tx/fn.tx_type.html b/static/sway/std/tx/fn.tx_type.html index 793c3fc8..4bde0435 100644 --- a/static/sway/std/tx/fn.tx_type.html +++ b/static/sway/std/tx/fn.tx_type.html @@ -1,5 +1,4 @@ -tx_type in tx - Sway

                                                                              Function std::tx::tx_type

                                                                              pub fn tx_type() -> Transaction 
                                                                              Expand description

                                                                              Get the type of the current transaction.
                                                                              -Either Transaction::Script or Transaction::Create.

                                                                              +tx_type in tx - Sway

                                                                              Function std::tx::tx_type

                                                                              pub fn tx_type() -> Transaction 
                                                                              Expand description

                                                                              Get the type of the current transaction.

                                                                              Returns

                                                                              • [Transaction] - The type of the current transaction.
                                                                              • @@ -20,6 +19,18 @@

                                                                                Example

                                                                                Transaction::Create => { log("Contract deployment transaction"); }, + Transaction::Mint => { + log("This should never happen"); + }, + Transaction::Upgrade => { + log("Upgrade transaction"); + }, + Transaction::Upload => { + log("Upload transaction"); + }, + Transaction::Blob => { + log("Blob transaction"); + }, } }
                                                                            diff --git a/static/sway/std/tx/fn.tx_witness_data.html b/static/sway/std/tx/fn.tx_witness_data.html index a4cb55ef..8730cf03 100644 --- a/static/sway/std/tx/fn.tx_witness_data.html +++ b/static/sway/std/tx/fn.tx_witness_data.html @@ -1,17 +1,20 @@ -tx_witness_data in tx - Sway
                                                                            pub fn tx_witness_data<T>(index: u64) -> T 
                                                                            Expand description

                                                                            Get the witness data at index.

                                                                            +tx_witness_data in tx - Sway
                                                                            pub fn tx_witness_data<T>(index: u64) -> Option<T> 
                                                                            Expand description

                                                                            Get the witness data at index.

                                                                            +

                                                                            Additional Information

                                                                            +

                                                                            Unsafe. Assumes the type is correct.
                                                                            +This function does not support ownership types(Vec, Bytes, String, etc).

                                                                            Arguments

                                                                            • index - The index of the witness to get the data for.

                                                                            Returns

                                                                              -
                                                                            • [T] - The witness data at index.
                                                                            • +
                                                                            • [Option] - The witness data at index.

                                                                            Examples

                                                                            use std::tx::tx_witness_data;
                                                                             
                                                                             fn foo() {
                                                                            -    let witness_data: u64 = tx_witness_data(0);
                                                                            +    let witness_data: u64 = tx_witness_data(0).unwrap();
                                                                                 log(witness_data);
                                                                             }
                                                                             
                                                                            diff --git a/static/sway/std/tx/fn.tx_witness_data_length.html b/static/sway/std/tx/fn.tx_witness_data_length.html index a4281765..9335f4b8 100644 --- a/static/sway/std/tx/fn.tx_witness_data_length.html +++ b/static/sway/std/tx/fn.tx_witness_data_length.html @@ -1,17 +1,17 @@ -tx_witness_data_length in tx - Sway
                                                                            pub fn tx_witness_data_length(index: u64) -> u64 
                                                                            Expand description

                                                                            Get the length of the witness data at index.

                                                                            +tx_witness_data_length in tx - Sway
                                                                            pub fn tx_witness_data_length(index: u64) -> Option<u64> 
                                                                            Expand description

                                                                            Get the length of the witness data at index.

                                                                            Arguments

                                                                            • index - The index of the witness to get the data length for.

                                                                            Returns

                                                                              -
                                                                            • [u64] - The length of the witness data at index.
                                                                            • +
                                                                            • [Option<64>] - The length of the witness data at index.

                                                                            Examples

                                                                            use std::tx::tx_witness_data_length;
                                                                             
                                                                             fn foo() {
                                                                            -    let witness_data_length = tx_witness_data_length(0);
                                                                            +    let witness_data_length = tx_witness_data_length(0).unwrap();
                                                                                 log(witness_data_length);
                                                                             }
                                                                             
                                                                            diff --git a/static/sway/std/tx/fn.tx_witness_limit.html b/static/sway/std/tx/fn.tx_witness_limit.html index 827723f7..909d7bd2 100644 --- a/static/sway/std/tx/fn.tx_witness_limit.html +++ b/static/sway/std/tx/fn.tx_witness_limit.html @@ -1,4 +1,4 @@ -tx_witness_limit in tx - Sway
                                                                            pub fn tx_witness_limit() -> Option<u64> 
                                                                            Expand description

                                                                            Get the witness limit for the transaction, if it is set.

                                                                            +tx_witness_limit in tx - Sway
                                                                            pub fn tx_witness_limit() -> Option<u64> 
                                                                            Expand description

                                                                            Get the witness limit for the transaction, if it is set.

                                                                            Returns

                                                                            • [Option] - The witness limit for the transaction.
                                                                            • diff --git a/static/sway/std/tx/fn.tx_witness_pointer.html b/static/sway/std/tx/fn.tx_witness_pointer.html deleted file mode 100644 index 8cbb6dad..00000000 --- a/static/sway/std/tx/fn.tx_witness_pointer.html +++ /dev/null @@ -1,18 +0,0 @@ -tx_witness_pointer in tx - Sway
                                                                              pub fn tx_witness_pointer(index: u64) -> u64 
                                                                              Expand description

                                                                              Get a pointer to the witness at index index for the transaction.

                                                                              -

                                                                              Arguments

                                                                              -
                                                                                -
                                                                              • index - The index of the witness to get the pointer for.
                                                                              • -
                                                                              -

                                                                              Returns

                                                                              -
                                                                                -
                                                                              • [u64] - The pointer to the witness at index index.
                                                                              • -
                                                                              -

                                                                              Examples

                                                                              -
                                                                              use std::tx::tx_witness_pointer;
                                                                              -
                                                                              -fn foo() {
                                                                              -    let witness_pointer = tx_witness_pointer(0);
                                                                              -    log(witness_pointer);
                                                                              -}
                                                                              -
                                                                              -
                                                                              \ No newline at end of file diff --git a/static/sway/std/tx/fn.tx_witnesses_count.html b/static/sway/std/tx/fn.tx_witnesses_count.html index d5ba97a7..500ef7a7 100644 --- a/static/sway/std/tx/fn.tx_witnesses_count.html +++ b/static/sway/std/tx/fn.tx_witnesses_count.html @@ -1,8 +1,12 @@ -tx_witnesses_count in tx - Sway
                                                                              pub fn tx_witnesses_count() -> u64 
                                                                              Expand description

                                                                              Get the transaction witnesses count for the transaction.

                                                                              +tx_witnesses_count in tx - Sway
                                                                              pub fn tx_witnesses_count() -> u64 
                                                                              Expand description

                                                                              Get the transaction witnesses count for the transaction.

                                                                              Returns

                                                                              • [u64] - The witnesses count for the transaction.
                                                                              +

                                                                              Reverts

                                                                              +
                                                                                +
                                                                              • When the transaction type is unrecognized. This should never happen.
                                                                              • +

                                                                              Examples

                                                                              use std::tx::tx_witnesses_count;
                                                                               
                                                                              diff --git a/static/sway/std/tx/index.html b/static/sway/std/tx/index.html
                                                                              index 9a4ad873..8268607c 100644
                                                                              --- a/static/sway/std/tx/index.html
                                                                              +++ b/static/sway/std/tx/index.html
                                                                              @@ -1,21 +1,18 @@
                                                                              -tx in std - Sway

                                                                              Module std::tx

                                                                              Expand description

                                                                              Transaction field getters.

                                                                              +tx in std - Sway

                                                                              Module std::tx

                                                                              Expand description

                                                                              Transaction field getters.

                                                                              Enums

                                                                              A transaction type.

                                                                              Constants

                                                                              Functions

                                                                              Get the script gas limit for the transaction.

                                                                              Get the Transaction ID of the current transaction.

                                                                              Get the maturity for the transaction, if it is set.

                                                                              Get the max fee for the transaction, if it is set.

                                                                              Get the script bytecode.

                                                                              -

                                                                              Get the hash of the script bytecode.
                                                                              -Reverts if not a transaction-script.

                                                                              +

                                                                              Get the hash of the script bytecode.

                                                                              Get the script data, typed.

                                                                              Get the script data length for the transaction.

                                                                              -

                                                                              Get the transaction script data start pointer.

                                                                              Get the length of the script for the transaction.

                                                                              -

                                                                              Get the transaction script start pointer.

                                                                              Get the tip for the transaction, if it is set.

                                                                              -

                                                                              Get the type of the current transaction.

                                                                              Get the witness data at index.

                                                                              +

                                                                              Get the type of the current transaction.

                                                                              +

                                                                              Get the witness data at index.

                                                                              Get the length of the witness data at index.

                                                                              Get the witness limit for the transaction, if it is set.

                                                                              -

                                                                              Get a pointer to the witness at index index for the transaction.

                                                                              Get the transaction witnesses count for the transaction.

                                                                              \ No newline at end of file diff --git a/static/sway/std/u128/enum.U128Error.html b/static/sway/std/u128/enum.U128Error.html index bf8f738a..8aba6eb5 100644 --- a/static/sway/std/u128/enum.U128Error.html +++ b/static/sway/std/u128/enum.U128Error.html @@ -1,4 +1,4 @@ -U128Error in u128 - Sway
                                                                              pub enum U128Error {
                                                                              +U128Error in u128 - Sway
                                                                              pub enum U128Error {
                                                                                   /// This error occurs when a `U128` is attempted to be downcast to a `u64` and the conversion would result in a loss of precision.
                                                                                   LossOfPrecision: (),
                                                                               }
                                                                              Expand description

                                                                              The error type used for U128 type errors.

                                                                              diff --git a/static/sway/std/u128/index.html b/static/sway/std/u128/index.html index beca29a9..b5b094ac 100644 --- a/static/sway/std/u128/index.html +++ b/static/sway/std/u128/index.html @@ -1,4 +1,4 @@ -u128 in std - Sway

                                                                              Module std::u128

                                                                              Expand description

                                                                              A 128-bit unsigned integer type.

                                                                              +u128 in std - Sway

                                                                              Module std::u128

                                                                              Expand description

                                                                              A 128-bit unsigned integer type.

                                                                              Structs

                                                                              The 128-bit unsigned integer type.

                                                                              Enums

                                                                              The error type used for U128 type errors.

                                                                              \ No newline at end of file diff --git a/static/sway/std/u128/struct.U128.html b/static/sway/std/u128/struct.U128.html index 9b681175..7b3d254e 100644 --- a/static/sway/std/u128/struct.U128.html +++ b/static/sway/std/u128/struct.U128.html @@ -1,4 +1,4 @@ -U128 in u128 - Sway

                                                                              Struct std::u128::U128

                                                                              pub struct U128 {
                                                                              +U128 in u128 - Sway

                                                                              Struct std::u128::U128

                                                                              pub struct U128 {
                                                                                   /// The most significant 64 bits of the `U128`.
                                                                                   upper: u64,
                                                                                   /// The least significant 64 bits of the `U128`.
                                                                              diff --git a/static/sway/std/vec/index.html b/static/sway/std/vec/index.html
                                                                              index da2ff46d..cb0433cf 100644
                                                                              --- a/static/sway/std/vec/index.html
                                                                              +++ b/static/sway/std/vec/index.html
                                                                              @@ -1,3 +1,2 @@
                                                                              -vec in std - Sway

                                                                              Module std::vec

                                                                              Expand description

                                                                              A vector type for dynamically sized arrays outside of storage.

                                                                              -

                                                                              Structs

                                                                              A contiguous growable array type, written as Vec<T>, short for ‘vector’.

                                                                              -
                                                                              \ No newline at end of file +vec in std - Sway

                                                                              Module std::vec

                                                                              Expand description

                                                                              A vector type for dynamically sized arrays outside of storage.

                                                                              +

                                                                              Structs

                                                                              A contiguous growable array type, written as Vec<T>, short for ‘vector’. It has ownership over its buffer.

                                                                              \ No newline at end of file diff --git a/static/sway/std/vec/struct.Vec.html b/static/sway/std/vec/struct.Vec.html index 9b71583b..4021a62c 100644 --- a/static/sway/std/vec/struct.Vec.html +++ b/static/sway/std/vec/struct.Vec.html @@ -1,5 +1,5 @@ -Vec in vec - Sway

                                                                              Struct std::vec::Vec

                                                                              pub struct Vec<T> {
                                                                              +Vec in vec - Sway

                                                                              Struct std::vec::Vec

                                                                              pub struct Vec<T> {
                                                                                   buf: RawVec<T>,
                                                                                   len: u64,
                                                                              -}
                                                                              Expand description

                                                                              A contiguous growable array type, written as Vec<T>, short for ‘vector’.

                                                                              +}
                                                                              Expand description

                                                                              A contiguous growable array type, written as Vec<T>, short for ‘vector’. It has ownership over its buffer.

                                                                              Fields

                                                                              buf: RawVeclen: u64
                                                                              \ No newline at end of file diff --git a/static/sway/std/vec/struct.VecIter.html b/static/sway/std/vec/struct.VecIter.html index 3fd568c0..8dd913e4 100644 --- a/static/sway/std/vec/struct.VecIter.html +++ b/static/sway/std/vec/struct.VecIter.html @@ -1,4 +1,4 @@ -VecIter in vec - Sway

                                                                              Struct std::vec::VecIter

                                                                              pub struct VecIter<T> {
                                                                              +VecIter in vec - Sway

                                                                              Struct std::vec::VecIter

                                                                              pub struct VecIter<T> {
                                                                                   values: Vec<T>,
                                                                                   index: u64,
                                                                               }

                                                                              Fields

                                                                              values: Vecindex: u64
                                                                              \ No newline at end of file diff --git a/static/sway/std/vm/evm/ecr/fn.ec_recover_evm_address.html b/static/sway/std/vm/evm/ecr/fn.ec_recover_evm_address.html index 0ddf299f..ed8923c5 100644 --- a/static/sway/std/vm/evm/ecr/fn.ec_recover_evm_address.html +++ b/static/sway/std/vm/evm/ecr/fn.ec_recover_evm_address.html @@ -1,4 +1,4 @@ -ec_recover_evm_address in ecr - Sway
                                                                              pub fn ec_recover_evm_address(
                                                                              +ec_recover_evm_address in ecr - Sway
                                                                              pub fn ec_recover_evm_address(
                                                                                   signature: B512,
                                                                                   msg_hash: b256,
                                                                               ) -> Result<EvmAddress, EcRecoverError> 
                                                                              Expand description

                                                                              Recover the EVM address derived from the private key used to sign a message.
                                                                              diff --git a/static/sway/std/vm/evm/ecr/index.html b/static/sway/std/vm/evm/ecr/index.html index e026c279..fed5ae69 100644 --- a/static/sway/std/vm/evm/ecr/index.html +++ b/static/sway/std/vm/evm/ecr/index.html @@ -1,2 +1,2 @@ -ecr in std - Sway

                                                                              Module std::vm::evm::ecr

                                                                              Expand description

                                                                              VM-specific utilities.

                                                                              +ecr in std - Sway

                                                                              Module std::vm::evm::ecr

                                                                              Expand description

                                                                              VM-specific utilities.

                                                                              Functions

                                                                              Recover the EVM address derived from the private key used to sign a message.

                                                                              \ No newline at end of file diff --git a/static/sway/std/vm/evm/evm_address/index.html b/static/sway/std/vm/evm/evm_address/index.html index 5ae495bd..8f624c01 100644 --- a/static/sway/std/vm/evm/evm_address/index.html +++ b/static/sway/std/vm/evm/evm_address/index.html @@ -1,3 +1,3 @@ -evm_address in std - Sway

                                                                              Module std::vm::evm::evm_address

                                                                              Expand description

                                                                              VM-specific utilities.

                                                                              +evm_address in std - Sway

                                                                              Module std::vm::evm::evm_address

                                                                              Expand description

                                                                              VM-specific utilities.

                                                                              Structs

                                                                              The EvmAddress type, a struct wrapper around the inner b256 value.

                                                                              \ No newline at end of file diff --git a/static/sway/std/vm/evm/evm_address/struct.EvmAddress.html b/static/sway/std/vm/evm/evm_address/struct.EvmAddress.html index 81082fd6..dc8db256 100644 --- a/static/sway/std/vm/evm/evm_address/struct.EvmAddress.html +++ b/static/sway/std/vm/evm/evm_address/struct.EvmAddress.html @@ -1,4 +1,4 @@ -EvmAddress in evm_address - Sway
                                                                              pub struct EvmAddress {
                                                                              +EvmAddress in evm_address - Sway
                                                                              pub struct EvmAddress {
                                                                                   /// The underlying evm address data.
                                                                                   bits: b256,
                                                                               }
                                                                              Expand description

                                                                              The EvmAddress type, a struct wrapper around the inner b256 value.

                                                                              diff --git a/static/sway/std/vm/evm/index.html b/static/sway/std/vm/evm/index.html index 13873c4d..271daa22 100644 --- a/static/sway/std/vm/evm/index.html +++ b/static/sway/std/vm/evm/index.html @@ -1,3 +1,3 @@ -evm in std - Sway

                                                                              Module std::vm::evm

                                                                              Modules

                                                                              VM-specific utilities.

                                                                              +evm in std - Sway

                                                                              Module std::vm::evm

                                                                              Modules

                                                                              VM-specific utilities.

                                                                              VM-specific utilities.

                                                                              \ No newline at end of file diff --git a/static/sway/std/vm/index.html b/static/sway/std/vm/index.html index 66dcc731..13d3725f 100644 --- a/static/sway/std/vm/index.html +++ b/static/sway/std/vm/index.html @@ -1,2 +1,2 @@ -vm in std - Sway

                                                                              Module std::vm

                                                                              Modules

                                                                              VM-specific utilities.

                                                                              +vm in std - Sway

                                                                              Module std::vm

                                                                              Modules

                                                                              VM-specific utilities.

                                                                              \ No newline at end of file