@gala-chain/api ∙ API
API > RequestTokenSwapDto
Class: RequestTokenSwapDto
Contents
- Extends
- Constructors
- new RequestTokenSwapDto()
- Properties
- expires
- offered
- offeredBy
- offeredTo
- prefix
- signature
- signerAddress
- signerPublicKey
- signing
- trace
- uniqueKey
- uses
- wanted
- DEFAULT_EXPIRES
- ENCODING
- Methods
- isSignatureValid()
- serialize()
- sign()
- signed()
- validate()
- validateOrReject()
- deserialize()
Extends
Constructors
new RequestTokenSwapDto()
new RequestTokenSwapDto():
RequestTokenSwapDto
Inherited from
Properties
expires
expires?:
number
Source
chain-api/src/types/swap.ts:111
offered
offered:
TokenInstanceQuantity
[]
Source
chain-api/src/types/swap.ts:84
offeredBy
offeredBy?:
string
Source
chain-api/src/types/swap.ts:61
offeredTo
offeredTo?:
string
Source
chain-api/src/types/swap.ts:75
prefix
prefix?:
string
Inherited from
Source
chain-api/src/types/dtos.ts:145
signature
signature?:
string
Inherited from
Source
chain-api/src/types/dtos.ts:136
signerAddress
signerAddress?:
string
Inherited from
Source
chain-api/src/types/dtos.ts:152
signerPublicKey
signerPublicKey?:
string
Inherited from
Source
chain-api/src/types/dtos.ts:159
signing
signing?:
SigningScheme
Inherited from
Source
chain-api/src/types/dtos.ts:169
trace
trace?:
TraceContext
Inherited from
Source
chain-api/src/types/dtos.ts:111
uniqueKey
uniqueKey?:
string
Inherited from
Source
chain-api/src/types/dtos.ts:126
uses
uses:
BigNumber
Source
chain-api/src/types/swap.ts:101
wanted
wanted:
TokenInstanceQuantity
[]
Source
chain-api/src/types/swap.ts:93
DEFAULT_EXPIRES
static
DEFAULT_EXPIRES:number
=0
Source
chain-api/src/types/swap.ts:52
ENCODING
static
readonly
ENCODING:"base64"
="base64"
Inherited from
Source
chain-api/src/types/dtos.ts:112
Methods
isSignatureValid()
isSignatureValid(
publicKey
):boolean
Parameters
▪ publicKey: string
Inherited from
Source
chain-api/src/types/dtos.ts:216
serialize()
serialize():
string
Inherited from
Source
chain-api/src/types/dtos.ts:183
sign()
sign(
privateKey
,useDer
):void
Parameters
▪ privateKey: string
▪ useDer: boolean
= false
Inherited from
Source
chain-api/src/types/dtos.ts:194
signed()
signed(
privateKey
,useDer
):RequestTokenSwapDto
Creates a signed copy of current object.
Parameters
▪ privateKey: string
▪ useDer: boolean
= false
Inherited from
Source
chain-api/src/types/dtos.ts:210
validate()
validate():
Promise
\<ValidationError
[]>
Inherited from
Source
chain-api/src/types/dtos.ts:171
validateOrReject()
validateOrReject():
Promise
\<void
>
Inherited from
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
>[]