@gala-chain/chaincode • Readme | API
@gala-chain/chaincode / UniqueTransaction
Class: UniqueTransaction
Extends
ChainObject
Constructors
new UniqueTransaction()
new UniqueTransaction():
UniqueTransaction
Returns
Inherited from
ChainObject.constructor
Properties
created
created:
number
Source
chaincode/src/services/UniqueTransaction.ts:35
transactionId
transactionId:
string
Source
chaincode/src/services/UniqueTransaction.ts:39
uniqueKey
uniqueKey:
string
Source
chaincode/src/services/UniqueTransaction.ts:32
COMPOSITEKEY_NS
staticCOMPOSITEKEY_NS:string="\x00"
Inherited from
ChainObject.COMPOSITEKEY_NS
Source
chain-api/src/types/ChainObject.ts:43
ID_SPLIT_CHAR
staticID_SPLIT_CHAR:string="$"
Inherited from
ChainObject.ID_SPLIT_CHAR
Source
chain-api/src/types/ChainObject.ts:46
ID_SUB_SPLIT_CHAR
staticID_SUB_SPLIT_CHAR:string="|"
Inherited from
ChainObject.ID_SUB_SPLIT_CHAR
Source
chain-api/src/types/ChainObject.ts:48
INDEX_KEY
staticINDEX_KEY:string="UNTX"
Source
chaincode/src/services/UniqueTransaction.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:41
Methods
getCompositeKey()
getCompositeKey():
string
Returns
string
Inherited from
ChainObject.getCompositeKey
Source
chain-api/src/types/ChainObject.ts:77
serialize()
serialize():
string
Returns
string
Inherited from
ChainObject.serialize
Source
chain-api/src/types/ChainObject.ts:50
toPlainObject()
toPlainObject():
Record\<string,unknown>
Returns
Record\<string, unknown>
Inherited from
ChainObject.toPlainObject
Source
chain-api/src/types/ChainObject.ts:66
validate()
validate():
Promise\<ValidationError[]>
Returns
Promise\<ValidationError[]>
Inherited from
ChainObject.validate
Source
chain-api/src/types/ChainObject.ts:54
validateOrReject()
validateOrReject():
Promise\<void>
Returns
Promise\<void>
Inherited from
ChainObject.validateOrReject
Source
chain-api/src/types/ChainObject.ts:58
deserialize()
staticdeserialize\<T>(constructor,object):T
Type parameters
• T
Parameters
• constructor: ClassConstructor\<Inferred\<T, ChainObject>>
• object: string | Record\<string, unknown> | Record\<string, unknown>[]
Returns
T
Inherited from
ChainObject.deserialize
Source
chain-api/src/types/ChainObject.ts:70
getCompositeKeyFromParts()
staticgetCompositeKeyFromParts(indexKey,parts):string
Parameters
• indexKey: string
• parts: unknown[]
Returns
string
Inherited from
ChainObject.getCompositeKeyFromParts
Source
chain-api/src/types/ChainObject.ts:102
getStringKeyFromParts()
staticgetStringKeyFromParts(parts):string
Parameters
• parts: string[]
Returns
string
Inherited from
ChainObject.getStringKeyFromParts