@gala-chain/api ∙ API
API > DexFeeConfig
Class: DexFeeConfig
Contents
- Extends
- Constructors
- new DexFeeConfig(authorities, protocolFee)
- Properties
- authorities
- protocolFee
- COMPOSITEKEY_NS
- ID_SPLIT_CHAR
- ID_SUB_SPLIT_CHAR
- INDEX_KEY
- MIN_UNICODE_RUNE_VALUE
- Methods
- addOrUpdateAuthorities()
- getCompositeKey()
- serialize()
- setProtocolFees()
- toPlainObject()
- validate()
- validateOrReject()
- deserialize()
- getCompositeKeyFromParts()
- getStringKeyFromParts()
Extends
Constructors
new DexFeeConfig(authorities, protocolFee)
new DexFeeConfig(
authorities,protocolFee):DexFeeConfig
Parameters
▪ authorities: string[]
▪ protocolFee: number= 0
Overrides
Source
chain-api/src/types/DexFeeConfig.ts:33
Properties
authorities
authorities:
string[]
Source
chain-api/src/types/DexFeeConfig.ts:26
protocolFee
protocolFee:
number
Source
chain-api/src/types/DexFeeConfig.ts:31
COMPOSITEKEY_NS
staticCOMPOSITEKEY_NS:string="\x00"
Inherited from
Source
chain-api/src/types/ChainObject.ts:45
ID_SPLIT_CHAR
staticID_SPLIT_CHAR:string="$"
Inherited from
Source
chain-api/src/types/ChainObject.ts:48
ID_SUB_SPLIT_CHAR
staticID_SUB_SPLIT_CHAR:string="|"
Inherited from
Source
chain-api/src/types/ChainObject.ts:50
INDEX_KEY
staticINDEX_KEY:string="GCDPFC"
Source
chain-api/src/types/DexFeeConfig.ts:22
MIN_UNICODE_RUNE_VALUE
staticMIN_UNICODE_RUNE_VALUE:string="\u0000"
Inherited from
ChainObject.MIN_UNICODE_RUNE_VALUE
Source
chain-api/src/types/ChainObject.ts:43
Methods
addOrUpdateAuthorities()
addOrUpdateAuthorities(
newAuthorities):void
Parameters
▪ newAuthorities: string[]
Source
chain-api/src/types/DexFeeConfig.ts:39
getCompositeKey()
getCompositeKey():
string
Inherited from
Source
chain-api/src/types/ChainObject.ts:79
serialize()
serialize():
string
Inherited from
Source
chain-api/src/types/ChainObject.ts:52
setProtocolFees()
setProtocolFees(
fee):void
Parameters
▪ fee: number
Source
chain-api/src/types/DexFeeConfig.ts:43
toPlainObject()
toPlainObject():
Record\<string,unknown>
Inherited from
Source
chain-api/src/types/ChainObject.ts:68
validate()
validate():
Promise\<ValidationError[]>
Inherited from
Source
chain-api/src/types/ChainObject.ts:56
validateOrReject()
validateOrReject():
Promise\<void>
Inherited from
Source
chain-api/src/types/ChainObject.ts:60
deserialize()
staticdeserialize\<T>(constructor,object):T
Type parameters
▪ T
Parameters
▪ constructor: ClassConstructor\<Inferred\<T, ChainObject>>
▪ object: string | Record\<string, unknown> | Record\<string, unknown>[]
Inherited from
Source
chain-api/src/types/ChainObject.ts:72
getCompositeKeyFromParts()
staticgetCompositeKeyFromParts(indexKey,parts):string
Parameters
▪ indexKey: string
▪ parts: unknown[]
Inherited from
ChainObject.getCompositeKeyFromParts
Source
chain-api/src/types/ChainObject.ts:104
getStringKeyFromParts()
staticgetStringKeyFromParts(parts):string
Parameters
▪ parts: string[]
Inherited from
ChainObject.getStringKeyFromParts