-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.toml
85 lines (82 loc) · 4.27 KB
/
constants.toml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[gas.Bank]
create_token = [4, 4]
transfer = [5, 5]
burn = [2, 2]
mint = [2, 2]
freeze = [1, 1]
[constants]
# We use the ID 4321 for demo purposes. Change this value before deploying!
CHAIN_ID = 4321
# When using soft-confirmations, this parameter sets the maximum number of slots that a transaction can be deferred by the sequencer before
# being force-executed by the rollup. Decreasing the number of slots means that "forced" transactions are processed
# more quickly in the worst case, but increases the likelihood that some soft confirmations
# will be invalidated due to congestion on the DA layer. (Note that with an honest sequencer, this parameter has no effect
# on the speed of inclusion for forced transactions, since they will always be included ASAP.)
# Setting this parameter to 0 disables soft-confirmations entirely.
DEFERRED_SLOTS_COUNT = 5
# How many blobs from unregistered sequencers we will accept per slot
# We can't slash misbehaving senders because they aren't a registered sequencer with a stake so
# this serves as protection against spam.
UNREGISTERED_BLOBS_PER_SLOT = 5
# Number of gas dimensions
GAS_DIMENSIONS = { const = 2 }
# The fixed gas price of checking forced sequencer registration transactions.
# This price is added to regular transaction checks & execution costs.
# This should be set in such a way that forced sequencer registration is more expensive
# than regular registration to prevent this mechanism being gamed instead of
# used only when users feel they are being censored.
GAS_FORCED_SEQUENCER_REGISTRATION_COST = [100000, 100000]
# The ID of the "native token" of the rollup, which is used to pay gas fees.
GAS_TOKEN_ID = { bech32 = "token_1nyl0e0yweragfsatygt24zmd8jrr2vqtvdfptzjhxkguz2xxx3vs0y07u7", type = "TokenId" }
# The HRP prefix that appears in all rollup addresses.
ADDRESS_PREFIX = { const = "sov" }
# --- Gas parameters to charge for state accesses ---
# The cost of a storage access operation.
GAS_TO_CHARGE_FOR_ACCESS = [5, 5]
# Gas to refund for a read from a hot storage slot
GAS_TO_REFUND_FOR_HOT_ACCESS = [4, 4]
# Gas to charge for a write to a cold storage slot
GAS_TO_CHARGE_FOR_WRITE = [10, 10]
# Gas to refund for a write to a hot storage slot
GAS_TO_REFUND_FOR_HOT_WRITE = [8, 8]
# Gas to charge for decoding a state access
GAS_TO_CHARGE_FOR_DECODING = [2, 2]
# --- End Gas parameters to charge for state accesses ---
# --- Gas parameters to specify how to charge gas for hashing ---
# The cost of updating a hash.
GAS_TO_CHARGE_PER_BYTE_HASH_UPDATE = [10, 10]
# The cost of finalizing a hash.
GAS_TO_CHARGE_PER_BYTE_HASH_FINALIZE = [3, 3]
# --- End Gas parameters to specify how to charge gas for hashing ---
# --- Gas parameters to specify how to charge gas for signature verification ---
# The cost of verifying a signature per byte of the signature
DEFAULT_GAS_TO_CHARGE_PER_BYTE_SIGNATURE_VERIFICATION = [1, 1]
# The fixed cost of verifying a signature
DEFAULT_FIXED_GAS_TO_CHARGE_PER_SIGNATURE_VERIFICATION = [
100, 100
]
# --- End Gas parameters to specify how to charge gas for hashing ---
# Maximum amount of gas the sequencer can pay for the tx execution ---
MAX_SEQUENCER_EXEC_GAS_PER_TX = [100000, 100000]
# Gas parameters to specify batch hook costs ---
BATCH_HOOK_GAS = [0, 0]
# Gas parameters to specify tx pre execution costs ---
PROCESS_TX_PRE_EXEC_GAS = [0, 0]
# Gas parameters to specify maximum authentication costs ---
MAX_AUTHENTICATION_GAS_PER_TX = [100000, 100000]
# --- End Gas parameters to specify how to charge gas for signature verification ---
# The cost of deserializing a message using Borsh
DEFAULT_GAS_TO_CHARGE_PER_BYTE_BORSH_DESERIALIZATION = [1, 1]
# The percentage of the "base fee" that is burned when a transaction is processed.
# The portion that is not burned is awarded to provers and/or attesters on the network.
PERCENT_BASE_FEE_TO_BURN = 10
# --- Gas fee adjustment parameters: See https://eips.ethereum.org/EIPS/eip-1559 for a detailed description ---
# The initial gas limit of the rollup.
INITIAL_GAS_LIMIT = [100000000, 100000000]
# The initial "base fee" that every transaction emits when executed.
INITIAL_BASE_FEE_PER_GAS = [10, 10]
# The maximum change denominator of the base fee.
BASE_FEE_MAX_CHANGE_DENOMINATOR = 8
# The elasticity multiplier of the base fee.
ELASTICITY_MULTIPLIER = 2
# --- End Gas fee adjustment parameters ---