EntangledPair.fromBuffer constructor
EntangledPair.fromBuffer(
- List<int> data
)
Implementation
factory EntangledPair.fromBuffer(List<int> data) {
final decode = LayoutSerializable.decode(
bytes: data,
layout: _Utils.layout,
validator: {"discriminator": _Utils.discriminator});
return EntangledPair(
treasuryMint: decode["treasuryMint"],
mintA: decode["mintA"],
mintB: decode["mintB"],
tokenAEscrow: decode["tokenAEscrow"],
tokenBEscrow: decode["tokenBEscrow"],
authority: decode["authority"],
bump: decode["bump"],
tokenAEscrowBump: decode["tokenAEscrowBump"],
tokenBEscrowBump: decode["tokenBEscrowBump"],
price: decode["price"],
paid: decode["paid"],
paysEveryTime: decode["paysEveryTime"]);
}