Struct flow_sdk::multi::PartyBuilder[][src]

pub struct PartyBuilder { /* fields omitted */ }
Expand description

A builder that makes it easy to create new SigningParty instances.


let party = PartyBuilder::new()
    .script("s")
    .reference_block([0])
    .gas_limit(123)
    .proposer_address([1])
    .proposal_key_id(2)
    .proposal_key_sequence_number(3)
    .payer([4])
    .authorizer([5])
    .build();

let party2 = SigningParty::new("s".into(), [].into(), [0].into(), 123, [1].into(), 2, 3, [4].into(), [[5].into()].into());

assert_eq!(party, party2);

Implementations

Creates a new PartyBuilder with the default gas limit of 1000.

Sets the script of the transaction.

Appends a new argument.

Appends arguments.

Appends a new UTF-8 encoded argument in Cadence JSON interchange format.

Appends raw UTF-8 encoded arguments in Cadence JSON interchange format.

Sets the reference block for this transaction.

Uses the latest block as the reference block for this transaction.

Sets the gas limit of this transation.

Sets the address of the account that proposes this transaction.

Sets the key id of the proposal key of this transaction.

Sets the sequence number of the proposal key of this transaction.

Sets the address, key id and the sequence number by querying on the network about a logged-in account.

Sets the address of the account that will pay for this transaction.

Records the address of the account that will pay for this transaction.

Appends the address of an account which authorizes this transaction.

Appends the addresses of accounts that authorizes this transaction.

Appends the address of an account which authorizers this transaction.

Appends the addresses of accounts that authorizes this transaction.

Builds a SigningParty from this builder, assuming all fields have been set.

Builds a PreHashedParty from this builder, assuming all fields have been set.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more