Split class

Split allows locking algos in an account which allows transfering to two predefined addresses in a specified ratio such that for the given ratn and ratd parameters we have:

first_recipient_amount * rat_2 == second_recipient_amount * rat_1

Split also has an expiry round, after which the owner can transfer back the funds.

Constructors

Split()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create({required Address owner, required Address receiver1, required Address receiver2, required int rat1, required int rat2, required int expiryRound, required int minPay, required int maxFee}) ContractTemplate
Create a new Split Contract. Split allows locking algos in an account which allows transfering to two predefined addresses in a specified ratio such that for the given ratn and ratd parameters we have:
getTransactions({required ContractTemplate contract, required int amount, required int firstValid, required int lastValid, required String genesisHash, required int feePerByte}) Future<Uint8List>
Read and verify the contract, and return the signed transaction

Constants

referenceProgram → const String