@tech-bureau/mijin-catapult-tools
Version:
This tool is for easy operation of mijin Catapult(v.2)
124 lines (108 loc) • 4.5 kB
text/typescript
import {
TransactionType,
MosaicSupplyChangeAction,
NamespaceRegistrationType,
AliasAction,
LinkAction,
AccountType,
AccountKeyTypeFlags,
NetworkType,
OperationRestrictionFlag,
AddressRestrictionFlag,
MosaicRestrictionFlag,
LockHashAlgorithm,
MosaicRestrictionType,
} from '@tech-bureau/symbol-sdk'
interface ConstrantsType {
[]: string
}
class Constants {
static TransactionType: ConstrantsType = {
[]: 'Transfer',
[]: 'Namespace Registration',
[]: 'Address Alias',
[]: 'Mosaic Alias',
[]: 'Mosaic Definition',
[]: 'Mosaic Supply Change',
[]: 'Multisig Account Modification',
[]: 'Aggregate Complete',
[]: 'Aggregate Bonded',
[]: 'Hash Lock',
[]: 'Secret Lock',
[]: 'Secret Proof',
[]: 'Account Address Restriction',
[]: 'Account Mosaic Restriction',
[]: 'Account Operation Restriction',
[]: 'Account Key Link',
[]: 'Mosaic Address Restriction',
[]: 'Mosaic Global Restriction',
[]: 'Account Metadata',
[]: 'Mosaic Metadata',
[]: 'Namespace Metadata',
[]: 'VRF Key Link',
[]: 'Voting Key Link',
[]: 'Node Key Link',
}
static NetworkType: ConstrantsType = {
[]: 'MAINNET',
[]: 'MIJIN',
[]: 'MIJIN TESTNET',
[]: 'TESTNET',
}
static MosaicSupplyChangeAction: ConstrantsType = {
[]: 'Increase',
[]: 'Decrease',
}
static NamespaceRegistrationType: ConstrantsType = {
[]: 'rootNamespace',
[]: 'Sub Namespace',
}
static AliasAction: ConstrantsType = {
[]: 'Link',
[]: 'Unlink',
}
static LinkAction: ConstrantsType = {
[]: 'Link',
[]: 'Unlink',
}
static AccountType: ConstrantsType = {
[]: 'Unlinked',
[]: 'Main',
[]: 'Remote',
[]: 'Remote Unlinked',
}
static AccountKeyTypeFlags: ConstrantsType = {
[]: 'Unset',
[]: 'Linked',
[]: 'VRF',
[]: 'Node',
[]: 'All',
}
static OperationRestrictionFlag: ConstrantsType = {
[]: 'Allow Outgoing Transaction',
[]: 'Block Outgoing Transaction',
}
static AddressRestrictionFlag: ConstrantsType = {
[]: 'Allow Incoming Address',
[]: 'Block Incoming Address',
[]: 'Allow Outgoing Address',
[]: 'Block Outgoing Address',
}
static MosaicRestrictionFlag: ConstrantsType = {
[]: 'Allow Mosaic',
[]: 'Block Mosaic',
}
static MosaicRestrictionType: ConstrantsType = {
[]: 'Allow Equal',
[]: 'Not Equal',
[]: 'Rather Than',
[]: 'Gather Than',
[]: 'NONE',
}
static HashAlgorithmType: ConstrantsType = {
[]: 'HASH_160',
[]: 'SHA3_256',
[]: 'HASH_256',
}
}
export default Constants