SmartContractTransactionMetadataSmartContract
July 14, 2024 ยท View on GitHub
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| ClarityVersion | Pointer to NullableFloat32 | The Clarity version of the contract, only specified for versioned contract transactions, otherwise null | [optional] |
| ContractId | string | Contract identifier formatted as `<principaladdress>.<contract_name>` | |
| SourceCode | string | Clarity code of the smart contract being deployed |
Methods
NewSmartContractTransactionMetadataSmartContract
func NewSmartContractTransactionMetadataSmartContract(contractId string, sourceCode string, ) *SmartContractTransactionMetadataSmartContract
NewSmartContractTransactionMetadataSmartContract instantiates a new SmartContractTransactionMetadataSmartContract object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewSmartContractTransactionMetadataSmartContractWithDefaults
func NewSmartContractTransactionMetadataSmartContractWithDefaults() *SmartContractTransactionMetadataSmartContract
NewSmartContractTransactionMetadataSmartContractWithDefaults instantiates a new SmartContractTransactionMetadataSmartContract object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetClarityVersion
func (o *SmartContractTransactionMetadataSmartContract) GetClarityVersion() float32
GetClarityVersion returns the ClarityVersion field if non-nil, zero value otherwise.
GetClarityVersionOk
func (o *SmartContractTransactionMetadataSmartContract) GetClarityVersionOk() (*float32, bool)
GetClarityVersionOk returns a tuple with the ClarityVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetClarityVersion
func (o *SmartContractTransactionMetadataSmartContract) SetClarityVersion(v float32)
SetClarityVersion sets ClarityVersion field to given value.
HasClarityVersion
func (o *SmartContractTransactionMetadataSmartContract) HasClarityVersion() bool
HasClarityVersion returns a boolean if a field has been set.
SetClarityVersionNil
func (o *SmartContractTransactionMetadataSmartContract) SetClarityVersionNil(b bool)
SetClarityVersionNil sets the value for ClarityVersion to be an explicit nil
UnsetClarityVersion
func (o *SmartContractTransactionMetadataSmartContract) UnsetClarityVersion()
UnsetClarityVersion ensures that no value is present for ClarityVersion, not even an explicit nil
GetContractId
func (o *SmartContractTransactionMetadataSmartContract) GetContractId() string
GetContractId returns the ContractId field if non-nil, zero value otherwise.
GetContractIdOk
func (o *SmartContractTransactionMetadataSmartContract) GetContractIdOk() (*string, bool)
GetContractIdOk returns a tuple with the ContractId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetContractId
func (o *SmartContractTransactionMetadataSmartContract) SetContractId(v string)
SetContractId sets ContractId field to given value.
GetSourceCode
func (o *SmartContractTransactionMetadataSmartContract) GetSourceCode() string
GetSourceCode returns the SourceCode field if non-nil, zero value otherwise.
GetSourceCodeOk
func (o *SmartContractTransactionMetadataSmartContract) GetSourceCodeOk() (*string, bool)
GetSourceCodeOk returns a tuple with the SourceCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSourceCode
func (o *SmartContractTransactionMetadataSmartContract) SetSourceCode(v string)
SetSourceCode sets SourceCode field to given value.