@@ -30,24 +30,25 @@ class ContractCreateParams:
30
30
Represents contract creation parameters.
31
31
32
32
Attributes:
33
- bytecode_file_id (optional ): The FileID of the file containing the
34
- contract bytecode.
35
- proxy_account_id (optional ): The AccountID of the proxy account.
36
- admin_key (optional ): The admin key for the contract.
37
- gas (optional ): The gas limit for contract creation.
38
- initial_balance (optional ): The initial balance for the contract
33
+ bytecode_file_id (Optional[FileId] ): The FileId of the file containing
34
+ the contract bytecode.
35
+ proxy_account_id (Optional[AccountId] ): The AccountId of the proxy account.
36
+ admin_key (Optional[PublicKey] ): The admin key for the contract.
37
+ gas (Optional[int] ): The gas limit for contract creation.
38
+ initial_balance (Optional[int] ): The initial balance for the contract
39
39
in tinybars.
40
- auto_renew_period: The auto-renewal period for the contract.
41
- parameters (optional): The constructor parameters for the contract.
42
- contract_memo (optional): The memo for the contract.
43
- bytecode (optional): The bytecode for the contract.
44
- auto_renew_account_id (optional): The AccountID that will pay for
45
- auto-renewal.
46
- max_automatic_token_associations (optional): Maximum number of
40
+ auto_renew_period (Duration): The auto-renewal period for the contract.
41
+ parameters (Optional[bytes]): ABI-encoded constructor parameters to be
42
+ passed to the smart contract upon creation.
43
+ contract_memo (Optional[str]): The memo for the contract.
44
+ bytecode (Optional[bytes]): The bytecode for the contract.
45
+ auto_renew_account_id (Optional[AccountId]): The AccountId that will pay
46
+ for auto-renewal.
47
+ max_automatic_token_associations (Optional[int]): Maximum number of
47
48
automatic token associations.
48
- staked_account_id (optional ): The AccountID to stake to.
49
- staked_node_id (optional ): The node ID to stake to.
50
- decline_reward (optional ): Whether to decline staking rewards.
49
+ staked_account_id (Optional[AccountId] ): The AccountId to stake to.
50
+ staked_node_id (Optional[int] ): The node ID to stake to.
51
+ decline_reward (Optional[bool] ): Whether to decline staking rewards.
51
52
"""
52
53
53
54
bytecode_file_id : Optional [FileId ] = None
0 commit comments