forked from ava-labs/hypersdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts.go
36 lines (32 loc) · 909 Bytes
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package actions
// Note: Registry will error during initialization if a duplicate ID is assigned. We explicitly assign IDs to avoid accidental remapping.
const (
burnAssetID uint8 = 0
closeOrderID uint8 = 1
createAssetID uint8 = 2
exportAssetID uint8 = 3
importAssetID uint8 = 4
createOrderID uint8 = 5
fillOrderID uint8 = 6
mintAssetID uint8 = 7
transferID uint8 = 8
)
const (
// TODO: tune this
BurnComputeUnits = 2
CloseOrderComputeUnits = 5
CreateAssetComputeUnits = 10
ExportAssetComputeUnits = 10
ImportAssetComputeUnits = 10
CreateOrderComputeUnits = 5
NoFillOrderComputeUnits = 5
FillOrderComputeUnits = 15
MintAssetComputeUnits = 2
TransferComputeUnits = 1
MaxSymbolSize = 8
MaxMemoSize = 256
MaxMetadataSize = 256
MaxDecimals = 9
)