Skip to content

@gala-chain/apiAPI


API > OraclePriceAssertionDto

Class: OraclePriceAssertionDto

Contents

Extends

Constructors

new OraclePriceAssertionDto()

new OraclePriceAssertionDto(): OraclePriceAssertionDto

Inherited from

ChainCallDTO.constructor

Properties

baseToken

baseToken: TokenInstanceKey

Source

chain-api/src/types/oracle.ts:144


exchangeRate

exchangeRate: BigNumber

Source

chain-api/src/types/oracle.ts:168


externalQuoteToken

externalQuoteToken?: ExternalToken

Source

chain-api/src/types/oracle.ts:162


identity

identity: string

Source

chain-api/src/types/oracle.ts:137


oracle

oracle: string

Source

chain-api/src/types/oracle.ts:131


prefix

prefix?: string

Inherited from

ChainCallDTO.prefix

Source

chain-api/src/types/dtos.ts:145


quoteToken

quoteToken?: TokenInstanceKey

Source

chain-api/src/types/oracle.ts:153


signature

signature?: string

Inherited from

ChainCallDTO.signature

Source

chain-api/src/types/dtos.ts:136


signerAddress

signerAddress?: string

Inherited from

ChainCallDTO.signerAddress

Source

chain-api/src/types/dtos.ts:152


signerPublicKey

signerPublicKey?: string

Inherited from

ChainCallDTO.signerPublicKey

Source

chain-api/src/types/dtos.ts:159


signing

signing?: SigningScheme

Inherited from

ChainCallDTO.signing

Source

chain-api/src/types/dtos.ts:169


source

source?: string

Source

chain-api/src/types/oracle.ts:175


sourceUrl

sourceUrl?: string

Source

chain-api/src/types/oracle.ts:182


timestamp

timestamp: number

Source

chain-api/src/types/oracle.ts:189


trace

trace?: TraceContext

Inherited from

ChainCallDTO.trace

Source

chain-api/src/types/dtos.ts:111


uniqueKey

uniqueKey?: string

Inherited from

ChainCallDTO.uniqueKey

Source

chain-api/src/types/dtos.ts:126


ENCODING

static readonly ENCODING: "base64" = "base64"

Inherited from

ChainCallDTO.ENCODING

Source

chain-api/src/types/dtos.ts:112

Methods

isSignatureValid()

isSignatureValid(publicKey): boolean

Parameters

publicKey: string

Inherited from

ChainCallDTO.isSignatureValid

Source

chain-api/src/types/dtos.ts:216


serialize()

serialize(): string

Inherited from

ChainCallDTO.serialize

Source

chain-api/src/types/dtos.ts:183


sign()

sign(privateKey, useDer): void

Parameters

privateKey: string

useDer: boolean= false

Inherited from

ChainCallDTO.sign

Source

chain-api/src/types/dtos.ts:194


signed()

signed(privateKey, useDer): OraclePriceAssertionDto

Creates a signed copy of current object.

Parameters

privateKey: string

useDer: boolean= false

Inherited from

ChainCallDTO.signed

Source

chain-api/src/types/dtos.ts:210


validate()

validate(): Promise\<ValidationError[]>

Inherited from

ChainCallDTO.validate

Source

chain-api/src/types/dtos.ts:171


validateOrReject()

validateOrReject(): Promise\<void>

Inherited from

ChainCallDTO.validateOrReject

Source

chain-api/src/types/dtos.ts:175


deserialize()

static deserialize\<T>(constructor, object): T

Type parameters

T

Parameters

constructor: ClassConstructor\<Inferred\<T, ChainCallDTO>>

object: string | Record\<string, unknown> | Record\<string, unknown>[]

Inherited from

ChainCallDTO.deserialize

Source

chain-api/src/types/dtos.ts:187