kopia lustrzana https://github.com/bugout-dev/dao
Added EIP1559 parameters to arguments for all transaction commands
rodzic
b119435b6c
commit
1c7f70f2ef
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -108,6 +108,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -135,6 +139,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -113,6 +113,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -140,6 +144,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -121,6 +121,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -148,6 +152,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -171,6 +171,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -198,6 +202,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -105,6 +105,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -132,6 +136,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -170,6 +170,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -197,6 +201,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -111,6 +111,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -138,6 +142,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -279,6 +279,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -306,6 +310,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Code generated by moonworm : https://github.com/bugout-dev/moonworm
|
||||
# Moonworm version : 0.1.13
|
||||
# Moonworm version : 0.1.14
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
@ -105,6 +105,10 @@ def get_transaction_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|||
transaction_config: Dict[str, Any] = {"from": signer}
|
||||
if args.gas_price is not None:
|
||||
transaction_config["gas_price"] = args.gas_price
|
||||
if args.max_fee_per_gas is not None:
|
||||
transaction_config["max_fee"] = args.max_fee_per_gas
|
||||
if args.max_priority_fee_per_gas is not None:
|
||||
transaction_config["priority_fee"] = args.max_priority_fee_per_gas
|
||||
if args.confirmations is not None:
|
||||
transaction_config["required_confs"] = args.confirmations
|
||||
if args.nonce is not None:
|
||||
|
@ -132,6 +136,16 @@ def add_default_arguments(parser: argparse.ArgumentParser, transact: bool) -> No
|
|||
parser.add_argument(
|
||||
"--gas-price", default=None, help="Gas price at which to submit transaction"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-fee-per-gas",
|
||||
default=None,
|
||||
help="Max fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-priority-fee-per-gas",
|
||||
default=None,
|
||||
help="Max priority fee per gas for EIP1559 transactions",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--confirmations",
|
||||
type=int,
|
||||
|
|
Ładowanie…
Reference in New Issue