-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathflags.go
120 lines (113 loc) · 2.37 KB
/
flags.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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package main
import (
"github.com/urfave/cli"
)
var (
TxRPCURLFlag = cli.StringFlag{
Name: "rpc-url",
Usage: "Address of execution node JSON-RPC endpoint",
Value: "http://127.0.0.1:8545",
}
TxBlobFileFlag = cli.StringFlag{
Name: "blob-file",
Usage: "Blob file data",
Required: true,
}
TxToFlag = cli.StringFlag{
Name: "to",
Usage: "tx to address",
Required: true,
}
TxValueFlag = cli.StringFlag{
Name: "value",
Usage: "tx value (wei deonominated)",
Value: "0x0",
}
TxPrivateKeyFlag = cli.StringFlag{
Name: "private-key",
Usage: "tx private key",
Required: true,
}
TxNonceFlag = cli.Int64Flag{
Name: "nonce",
Usage: "tx nonce",
Value: -1,
}
TxGasLimitFlag = cli.Uint64Flag{
Name: "gas-limit",
Usage: "tx gas limit",
Value: 21000,
}
TxGasPriceFlag = cli.StringFlag{
Name: "gas-price",
Usage: "sets the tx max_fee_per_gas",
}
TxPriorityGasPrice = cli.StringFlag{
Name: "priority-gas-price",
Usage: "Sets the priority fee per gas",
Value: "2000000000",
}
TxMaxFeePerBlobGas = cli.StringFlag{
Name: "max-fee-per-blob-gas",
Usage: "Sets the max_fee_per_blob_gas",
Value: "3000000000",
}
TxChainID = cli.StringFlag{
Name: "chain-id",
Usage: "chain-id of the transaction",
Value: "1332",
}
TxCalldata = cli.StringFlag{
Name: "calldata",
Usage: "calldata of the transaction",
Value: "0x",
}
DownloadBeaconP2PAddr = cli.StringFlag{
Name: "beacon-p2p-addr",
Usage: "P2P multiaddr of the beacon node",
Value: "/ip4/127.0.0.1/tcp/13000",
}
DownloadSlotFlag = cli.Int64Flag{
Name: "slot",
Usage: "Slot to download blob from",
Required: true,
}
ProofBlobFileFlag = cli.StringFlag{
Name: "blob-file",
Usage: "Blob file data",
Required: true,
}
ProofBlobIndexFlag = cli.StringFlag{
Name: "blob-index",
Usage: "Blob index",
Required: true,
}
ProofInputPointFlag = cli.StringFlag{
Name: "input-point",
Usage: "Input point of the proof",
Required: true,
}
)
var TxFlags = []cli.Flag{
TxRPCURLFlag,
TxBlobFileFlag,
TxToFlag,
TxValueFlag,
TxPrivateKeyFlag,
TxNonceFlag,
TxGasLimitFlag,
TxGasPriceFlag,
TxPriorityGasPrice,
TxMaxFeePerBlobGas,
TxChainID,
TxCalldata,
}
var DownloadFlags = []cli.Flag{
DownloadBeaconP2PAddr,
DownloadSlotFlag,
}
var ProofFlags = []cli.Flag{
ProofBlobFileFlag,
ProofBlobIndexFlag,
ProofInputPointFlag,
}