Skip to main content

MintInfo

Implements

  • Serializable

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MintInfo(amountXIn?, amountYIn?, amountXAddedToPair?, amountYAddedToPair?, activeFeeX?, activeFeeY?, totalDistributionX?, totalDistributionY?, id?, amountX?, amountY?, distributionX?, distributionY?): MintInfo

Parameters

NameTypeDefault valueDescription
amountXInu256u256.ZeroThe amount of token X sent
amountYInu256u256.ZeroThe amount of token Y sent
amountXAddedToPairu256u256.ZeroThe amount of token X that have been actually added to the pair
amountYAddedToPairu256u256.ZeroThe amount of token Y that have been actually added to the pair
activeFeeXu256u256.ZeroFees X currently generated
activeFeeYu256u256.ZeroFees Y currently generated
totalDistributionXu256u256.ZeroTotal distribution of token X. Should be 1e18 (100%) or 0 (0%)
totalDistributionYu256u256.ZeroTotal distribution of token Y. Should be 1e18 (100%) or 0 (0%)
idu640Id of the current working bin when looping on the distribution array
amountXu256u256.ZeroThe amount of token X deposited in the current bin
amountYu256u256.ZeroThe amount of token Y deposited in the current bin
distributionXu256u256.ZeroDistribution of token X for the current working bin
distributionYu256u256.ZeroDistribution of token Y for the current working bin

Returns

MintInfo

Defined in

assembly/structs/MintInfo.ts:22

Properties

activeFeeX

activeFeeX: u256 = u256.Zero

Fees X currently generated

Defined in

assembly/structs/MintInfo.ts:27


activeFeeY

activeFeeY: u256 = u256.Zero

Fees Y currently generated

Defined in

assembly/structs/MintInfo.ts:28


amountX

amountX: u256 = u256.Zero

The amount of token X deposited in the current bin

Defined in

assembly/structs/MintInfo.ts:32


amountXAddedToPair

amountXAddedToPair: u256 = u256.Zero

The amount of token X that have been actually added to the pair

Defined in

assembly/structs/MintInfo.ts:25


amountXIn

amountXIn: u256 = u256.Zero

The amount of token X sent

Defined in

assembly/structs/MintInfo.ts:23


amountY

amountY: u256 = u256.Zero

The amount of token Y deposited in the current bin

Defined in

assembly/structs/MintInfo.ts:33


amountYAddedToPair

amountYAddedToPair: u256 = u256.Zero

The amount of token Y that have been actually added to the pair

Defined in

assembly/structs/MintInfo.ts:26


amountYIn

amountYIn: u256 = u256.Zero

The amount of token Y sent

Defined in

assembly/structs/MintInfo.ts:24


distributionX

distributionX: u256 = u256.Zero

Distribution of token X for the current working bin

Defined in

assembly/structs/MintInfo.ts:34


distributionY

distributionY: u256 = u256.Zero

Distribution of token Y for the current working bin

Defined in

assembly/structs/MintInfo.ts:35


id

id: u64 = 0

Id of the current working bin when looping on the distribution array

Defined in

assembly/structs/MintInfo.ts:31


totalDistributionX

totalDistributionX: u256 = u256.Zero

Total distribution of token X. Should be 1e18 (100%) or 0 (0%)

Defined in

assembly/structs/MintInfo.ts:29


totalDistributionY

totalDistributionY: u256 = u256.Zero

Total distribution of token Y. Should be 1e18 (100%) or 0 (0%)

Defined in

assembly/structs/MintInfo.ts:30

Methods

deserialize

deserialize(data, offset): Result<i32>

Parameters

NameType
dataStaticArray<u8>
offseti32

Returns

Result<i32>

Implementation of

Serializable.deserialize

Defined in

assembly/structs/MintInfo.ts:60


serialize

serialize(): StaticArray<u8>

Returns

StaticArray<u8>

Implementation of

Serializable.serialize

Defined in

assembly/structs/MintInfo.ts:42