Skip to main content

LBPairInformation

Implements

  • Serializable

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LBPairInformation(binStep?, pair?, createdByOwner?, ignoredForRouting?): LBPairInformation

Parameters

NameTypeDefault valueDescription
binStepu320The bin step of the LBPair
pairIPairundefinedThe address of the LBPair
createdByOwnerboolfalseWhether the LBPair was created by the owner or the factory
ignoredForRoutingboolfalseWhether the LBPair is ignored for routing or not. An ignored pair will not be explored during routes finding

Returns

LBPairInformation

Defined in

assembly/structs/LBPairInformation.ts:13

Properties

binStep

binStep: u32 = 0

The bin step of the LBPair

Defined in

assembly/structs/LBPairInformation.ts:14


createdByOwner

createdByOwner: bool = false

Whether the LBPair was created by the owner or the factory

Defined in

assembly/structs/LBPairInformation.ts:16


ignoredForRouting

ignoredForRouting: bool = false

Whether the LBPair is ignored for routing or not. An ignored pair will not be explored during routes finding

Defined in

assembly/structs/LBPairInformation.ts:17


pair

pair: IPair

The address of the LBPair

Defined in

assembly/structs/LBPairInformation.ts:15

Methods

deserialize

deserialize(data, offset): Result<i32>

Parameters

NameType
dataStaticArray<u8>
offseti32

Returns

Result<i32>

Implementation of

Serializable.deserialize

Defined in

assembly/structs/LBPairInformation.ts:33


serialize

serialize(): StaticArray<u8>

Returns

StaticArray<u8>

Implementation of

Serializable.serialize

Defined in

assembly/structs/LBPairInformation.ts:24