Skip to content

TokenSwapInfo

bigearsenal edited this page May 17, 2022 · 1 revision

TokenSwapInfo

public struct TokenSwapInfo: BufferLayout, Equatable, Hashable, Encodable 

Inheritance

BorshCodable, BufferLayout, Encodable, Equatable, Hashable

Initializers

init(from:)

public init(from reader: inout BinaryReader) throws 

Properties

BUFFER_LENGTH

public static var BUFFER_LENGTH: UInt64 = 324

version

public let version: UInt8

isInitialized

public let isInitialized: Bool

nonce

public let nonce: UInt8

tokenProgramId

public let tokenProgramId: PublicKey

tokenAccountA

public var tokenAccountA: PublicKey

tokenAccountB

public var tokenAccountB: PublicKey

tokenPool

public let tokenPool: PublicKey

mintA

public var mintA: PublicKey

mintB

public var mintB: PublicKey

feeAccount

public let feeAccount: PublicKey

tradeFeeNumerator

public let tradeFeeNumerator: UInt64

tradeFeeDenominator

public let tradeFeeDenominator: UInt64

ownerTradeFeeNumerator

public let ownerTradeFeeNumerator: UInt64

ownerTradeFeeDenominator

public let ownerTradeFeeDenominator: UInt64

ownerWithdrawFeeNumerator

public let ownerWithdrawFeeNumerator: UInt64

ownerWithdrawFeeDenominator

public let ownerWithdrawFeeDenominator: UInt64

hostFeeNumerator

public let hostFeeNumerator: UInt64

hostFeeDenominator

public let hostFeeDenominator: UInt64

curveType

public let curveType: UInt8

payer

public let payer: PublicKey

Methods

serialize(to:)

public func serialize(to writer: inout Data) throws 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally