LBPairInformation
Implements
Serializable
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new LBPairInformation(binStep?
, pair?
, createdByOwner?
, ignoredForRouting?
): LBPairInformation
Parameters
Name | Type | Default value | Description |
---|---|---|---|
binStep | u32 | 0 | The bin step of the LBPair |
pair | IPair | undefined | The address of the LBPair |
createdByOwner | bool | false | Whether the LBPair was created by the owner or the factory |
ignoredForRouting | bool | false | Whether the LBPair is ignored for routing or not. An ignored pair will not be explored during routes finding |
Returns
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
Name | Type |
---|---|
data | StaticArray <u8 > |
offset | i32 |
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