avalancheUtils-Constants

Module: Utils-Constants

Index

Classes

Type aliases

Variables

Object literals

Type aliases

MergeRule

Ƭ MergeRule: “intersection” | “differenceSelf” | “differenceNew” | “symDifference” | “union” | “unionMinusNew” | “unionMinusSelf” | “ERROR”

Defined in src/utils/constants.ts:251

Rules used when merging sets

Variables

Const AVAXGWEI

AVAXGWEI: BN = NANOAVAX.clone()

Defined in src/utils/constants.ts:78


Const CChainAlias

CChainAlias: string = “C”

Defined in src/utils/constants.ts:56


Const CChainVMName

CChainVMName: string = “evm”

Defined in src/utils/constants.ts:59


Const CENTIAVAX

CENTIAVAX: BN = ONEAVAX.div(new BN(100))

Defined in src/utils/constants.ts:66


Const DECIAVAX

DECIAVAX: BN = ONEAVAX.div(new BN(10))

Defined in src/utils/constants.ts:64


Const DefaultNetworkID

DefaultNetworkID: number = 4

Defined in src/utils/constants.ts:51


Const FallbackHRP

FallbackHRP: string = “custom”

Defined in src/utils/constants.ts:48


Const FallbackNetworkName

FallbackNetworkName: string = “Custom Network”

Defined in src/utils/constants.ts:49


Const GWEI

GWEI: BN = WEI.mul(new BN(1000000000))

Defined in src/utils/constants.ts:76


Const MICROAVAX

MICROAVAX: BN = ONEAVAX.div(new BN(1000000))

Defined in src/utils/constants.ts:70


Const MILLIAVAX

MILLIAVAX: BN = ONEAVAX.div(new BN(1000))

Defined in src/utils/constants.ts:68


Const NANOAVAX

NANOAVAX: BN = ONEAVAX.div(new BN(1000000000))

Defined in src/utils/constants.ts:72


Const NodeIDPrefix

NodeIDPrefix: string = “NodeID-“

Defined in src/utils/constants.ts:10


Const ONEAVAX

ONEAVAX: BN = new BN(1000000000)

Defined in src/utils/constants.ts:62


Const PChainAlias

PChainAlias: string = “P”

Defined in src/utils/constants.ts:57


Const PChainVMName

PChainVMName: string = “platformvm”

Defined in src/utils/constants.ts:60


Const PlatformChainID

PlatformChainID: string = “11111111111111111111111111111111LpoYY”

Defined in src/utils/constants.ts:53


Const PrimaryAssetAlias

PrimaryAssetAlias: string = “AVAX”

Defined in src/utils/constants.ts:12


Const PrimaryNetworkID

PrimaryNetworkID: string = “11111111111111111111111111111111LpoYY”

Defined in src/utils/constants.ts:54


Const PrivateKeyPrefix

PrivateKeyPrefix: string = “PrivateKey-“

Defined in src/utils/constants.ts:8


Const WEI

WEI: BN = new BN(1)

Defined in src/utils/constants.ts:74


Const XChainAlias

XChainAlias: string = “X”

Defined in src/utils/constants.ts:55


Const XChainVMName

XChainVMName: string = “avm”

Defined in src/utils/constants.ts:58

Object literals

Const HRPToNetworkID

HRPToNetworkID: object

Defined in src/utils/constants.ts:22

avax

avax: number = 1

Defined in src/utils/constants.ts:23

cascade

cascade: number = 2

Defined in src/utils/constants.ts:24

denali

denali: number = 3

Defined in src/utils/constants.ts:25

everest

everest: number = 4

Defined in src/utils/constants.ts:26

local

local: number = 12345

Defined in src/utils/constants.ts:27


Const NetworkIDToHRP

NetworkIDToHRP: object

Defined in src/utils/constants.ts:14

1

1: string = “avax”

Defined in src/utils/constants.ts:15

12345

12345: string = “local”

Defined in src/utils/constants.ts:19

2

2: string = “cascade”

Defined in src/utils/constants.ts:16

3

3: string = “denali”

Defined in src/utils/constants.ts:17

4

4: string = “everest”

Defined in src/utils/constants.ts:18


Const NetworkIDToNetworkNames

NetworkIDToNetworkNames: object

Defined in src/utils/constants.ts:30

1

1: string[] = [“Avalanche”,”Mainnet”]

Defined in src/utils/constants.ts:31

12345

12345: string[] = [“Local Network”]

Defined in src/utils/constants.ts:35

2

2: string[] = [“Cascade”]

Defined in src/utils/constants.ts:32

3

3: string[] = [“Denali”]

Defined in src/utils/constants.ts:33

4

4: string[] = [“Everest”, “Testnet”]

Defined in src/utils/constants.ts:34


Const NetworkNameToNetworkID

NetworkNameToNetworkID: object

Defined in src/utils/constants.ts:38

Avalanche

Avalanche: number = 1

Defined in src/utils/constants.ts:39

Cascade

Cascade: number = 2

Defined in src/utils/constants.ts:41

Denali

Denali: number = 3

Defined in src/utils/constants.ts:42

Everest

Everest: number = 4

Defined in src/utils/constants.ts:43

Local Network

Local Network: number = 12345

Defined in src/utils/constants.ts:45

Mainnet

Mainnet: number = 1

Defined in src/utils/constants.ts:40

Testnet

Testnet: number = 4

Defined in src/utils/constants.ts:44


Const n12345C

n12345C: object

Defined in src/utils/constants.ts:195


Const n12345P

n12345P: object

Defined in src/utils/constants.ts:193


Const n12345X

n12345X: object

Defined in src/utils/constants.ts:191


Const n1C

n1C: object

Defined in src/utils/constants.ts:101

alias

alias: string = CChainAlias

Defined in src/utils/constants.ts:103

blockchainID

blockchainID: string = “2mUYSXfLrDtigwbzj1LxKVsHwELghc5sisoXrzJwLqAAQHF4i”

Defined in src/utils/constants.ts:102

fee

fee: BN‹› = GWEI.mul(new BN(470))

Defined in src/utils/constants.ts:105

vm

vm: string = CChainVMName

Defined in src/utils/constants.ts:104


Const n1P

n1P: object

Defined in src/utils/constants.ts:89

alias

alias: string = PChainAlias

Defined in src/utils/constants.ts:91

blockchainID

blockchainID: string = PlatformChainID

Defined in src/utils/constants.ts:90

fee

fee: number = 1000000

Defined in src/utils/constants.ts:93

maxConsumption

maxConsumption: number = 0.12

Defined in src/utils/constants.ts:95

maxStakingDuration

maxStakingDuration: BN‹› = new BN(31536000)

Defined in src/utils/constants.ts:96

maxSupply

maxSupply: BN‹› = new BN(720000000).mul(ONEAVAX)

Defined in src/utils/constants.ts:97

minConsumption

minConsumption: number = 0.1

Defined in src/utils/constants.ts:94

minStake

minStake: BN‹› = ONEAVAX.mul(new BN(2000))

Defined in src/utils/constants.ts:98

vm

vm: string = PChainVMName

Defined in src/utils/constants.ts:92


Const n1X

n1X: object

Defined in src/utils/constants.ts:82

alias

alias: string = XChainAlias

Defined in src/utils/constants.ts:84

blockchainID

blockchainID: string = “4ktRjsAKxgMr2aEzv9SWmrU7Xk5FniHUrVCX4P1TZSfTLZWFM”

Defined in src/utils/constants.ts:83

fee

fee: number = 1000000

Defined in src/utils/constants.ts:86

vm

vm: string = XChainVMName

Defined in src/utils/constants.ts:85


Const n2C

n2C: object

Defined in src/utils/constants.ts:129

alias

alias: string = CChainAlias

Defined in src/utils/constants.ts:131

blockchainID

blockchainID: string = “2mUYSXfLrDtigwbzj1LxKVsHwELghc5sisoXrzJwLqAAQHF4i”

Defined in src/utils/constants.ts:130

fee

fee: number = 0

Defined in src/utils/constants.ts:133

vm

vm: string = CChainVMName

Defined in src/utils/constants.ts:132


Const n2P

n2P: object

Defined in src/utils/constants.ts:117

alias

alias: string = PChainAlias

Defined in src/utils/constants.ts:119

blockchainID

blockchainID: string = PlatformChainID

Defined in src/utils/constants.ts:118

fee

fee: number = 0

Defined in src/utils/constants.ts:121

maxConsumption

maxConsumption: number = 0.12

Defined in src/utils/constants.ts:123

maxStakingDuration

maxStakingDuration: BN‹› = new BN(31536000)

Defined in src/utils/constants.ts:124

maxSupply

maxSupply: BN‹› = new BN(720000000).mul(ONEAVAX)

Defined in src/utils/constants.ts:125

minConsumption

minConsumption: number = 0.1

Defined in src/utils/constants.ts:122

minStake

minStake: BN‹› = ONEAVAX.mul(new BN(2000))

Defined in src/utils/constants.ts:126

vm

vm: string = PChainVMName

Defined in src/utils/constants.ts:120


Const n2X

n2X: object

Defined in src/utils/constants.ts:110

alias

alias: string = XChainAlias

Defined in src/utils/constants.ts:112

blockchainID

blockchainID: string = “4ktRjsAKxgMr2aEzv9SWmrU7Xk5FniHUrVCX4P1TZSfTLZWFM”

Defined in src/utils/constants.ts:111

fee

fee: number = 0

Defined in src/utils/constants.ts:114

vm

vm: string = XChainVMName

Defined in src/utils/constants.ts:113


Const n3C

n3C: object

Defined in src/utils/constants.ts:155

alias

alias: string = CChainAlias

Defined in src/utils/constants.ts:157

blockchainID

blockchainID: string = “zJytnh96Pc8rM337bBrtMvJDbEdDNjcXG3WkTNCiLp18ergm9”

Defined in src/utils/constants.ts:156

fee

fee: number = 0

Defined in src/utils/constants.ts:159

vm

vm: string = CChainVMName

Defined in src/utils/constants.ts:158


Const n3P

n3P: object

Defined in src/utils/constants.ts:143

alias

alias: string = PChainAlias

Defined in src/utils/constants.ts:145

blockchainID

blockchainID: string = “”

Defined in src/utils/constants.ts:144

fee

fee: number = 0

Defined in src/utils/constants.ts:147

maxConsumption

maxConsumption: number = 0.12

Defined in src/utils/constants.ts:149

maxStakingDuration

maxStakingDuration: BN‹› = new BN(31536000)

Defined in src/utils/constants.ts:150

maxSupply

maxSupply: BN‹› = new BN(720000000).mul(ONEAVAX)

Defined in src/utils/constants.ts:151

minConsumption

minConsumption: number = 0.1

Defined in src/utils/constants.ts:148

minStake

minStake: BN‹› = ONEAVAX.mul(new BN(2000))

Defined in src/utils/constants.ts:152

vm

vm: string = PChainVMName

Defined in src/utils/constants.ts:146


Const n3X

n3X: object

Defined in src/utils/constants.ts:136

alias

alias: string = XChainAlias

Defined in src/utils/constants.ts:138

blockchainID

blockchainID: string = “rrEWX7gc7D9mwcdrdBxBTdqh1a7WDVsMuadhTZgyXfFcRz45L”

Defined in src/utils/constants.ts:137

fee

fee: number = 0

Defined in src/utils/constants.ts:140

vm

vm: string = XChainVMName

Defined in src/utils/constants.ts:139


Const n4C

n4C: object

Defined in src/utils/constants.ts:182

alias

alias: string = CChainAlias

Defined in src/utils/constants.ts:184

blockchainID

blockchainID: string = “saMG5YgNsFxzjz4NMkEkt3bAH6hVxWdZkWcEnGB3Z15pcAmsK”

Defined in src/utils/constants.ts:183

fee

fee: BN‹› = GWEI.mul(new BN(470))

Defined in src/utils/constants.ts:186

vm

vm: string = CChainVMName

Defined in src/utils/constants.ts:185


Const n4P

n4P: object

Defined in src/utils/constants.ts:170

alias

alias: string = PChainAlias

Defined in src/utils/constants.ts:172

blockchainID

blockchainID: string = PlatformChainID

Defined in src/utils/constants.ts:171

fee

fee: number = 1000000

Defined in src/utils/constants.ts:174

maxConsumption

maxConsumption: number = 0.12

Defined in src/utils/constants.ts:176

maxStakingDuration

maxStakingDuration: BN‹› = new BN(31536000)

Defined in src/utils/constants.ts:177

maxSupply

maxSupply: BN‹› = new BN(720000000).mul(ONEAVAX)

Defined in src/utils/constants.ts:178

minConsumption

minConsumption: number = 0.1

Defined in src/utils/constants.ts:175

minStake

minStake: BN‹› = ONEAVAX.mul(new BN(2000))

Defined in src/utils/constants.ts:179

vm

vm: string = PChainVMName

Defined in src/utils/constants.ts:173


Const n4X

n4X: object

Defined in src/utils/constants.ts:163

alias

alias: string = XChainAlias

Defined in src/utils/constants.ts:165

blockchainID

blockchainID: string = “jnUjZSRt16TcRnZzmh5aMhavwVHz3zBrSN8GfFMTQkzUnoBxC”

Defined in src/utils/constants.ts:164

fee

fee: number = 1000000

Defined in src/utils/constants.ts:167

vm

vm: string = XChainVMName

Defined in src/utils/constants.ts:166