Skip to content

Latest commit

 

History

History
265 lines (142 loc) · 8.43 KB

CreateSafeWalletParams.md

File metadata and controls

265 lines (142 loc) · 8.43 KB

CreateSafeWalletParams

Properties

Name Type Description Notes
Name string The wallet name.
WalletType WalletType
WalletSubtype WalletSubtype
ChainId string The ID of the chain that the wallet operates on.
SmartContractWalletType SmartContractWalletType [default to SMARTCONTRACTWALLETTYPE_SAFEWALLET]
SafeAddress Pointer to string The address of the Smart Contract Wallet. If this is not provided, Cobo will create a new Safe{Wallet} and set up Cobo Safe for you. In that case, the `threshold` and `signers` properties are required. [optional]
Signers Pointer to []string The signers of the Smart Contract Wallet. This property is required when creating a new Safe{Wallet}. [optional]
Threshold Pointer to int32 The minimum number of confirmations required for the Smart Contract Wallet. This property is required when creating a new Safe{Wallet}. [optional]
CoboSafeAddress Pointer to string The address of Cobo Safe. If you are importing an existing Safe{Wallet}, Cobo Safe must have been created and enabled. [optional]
Initiator Pointer to SmartContractInitiator [optional]

Methods

NewCreateSafeWalletParams

func NewCreateSafeWalletParams(name string, walletType WalletType, walletSubtype WalletSubtype, chainId string, smartContractWalletType SmartContractWalletType, ) *CreateSafeWalletParams

NewCreateSafeWalletParams instantiates a new CreateSafeWalletParams 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

NewCreateSafeWalletParamsWithDefaults

func NewCreateSafeWalletParamsWithDefaults() *CreateSafeWalletParams

NewCreateSafeWalletParamsWithDefaults instantiates a new CreateSafeWalletParams 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

GetName

func (o *CreateSafeWalletParams) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CreateSafeWalletParams) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *CreateSafeWalletParams) SetName(v string)

SetName sets Name field to given value.

GetWalletType

func (o *CreateSafeWalletParams) GetWalletType() WalletType

GetWalletType returns the WalletType field if non-nil, zero value otherwise.

GetWalletTypeOk

func (o *CreateSafeWalletParams) GetWalletTypeOk() (*WalletType, bool)

GetWalletTypeOk returns a tuple with the WalletType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetWalletType

func (o *CreateSafeWalletParams) SetWalletType(v WalletType)

SetWalletType sets WalletType field to given value.

GetWalletSubtype

func (o *CreateSafeWalletParams) GetWalletSubtype() WalletSubtype

GetWalletSubtype returns the WalletSubtype field if non-nil, zero value otherwise.

GetWalletSubtypeOk

func (o *CreateSafeWalletParams) GetWalletSubtypeOk() (*WalletSubtype, bool)

GetWalletSubtypeOk returns a tuple with the WalletSubtype field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetWalletSubtype

func (o *CreateSafeWalletParams) SetWalletSubtype(v WalletSubtype)

SetWalletSubtype sets WalletSubtype field to given value.

GetChainId

func (o *CreateSafeWalletParams) GetChainId() string

GetChainId returns the ChainId field if non-nil, zero value otherwise.

GetChainIdOk

func (o *CreateSafeWalletParams) GetChainIdOk() (*string, bool)

GetChainIdOk returns a tuple with the ChainId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChainId

func (o *CreateSafeWalletParams) SetChainId(v string)

SetChainId sets ChainId field to given value.

GetSmartContractWalletType

func (o *CreateSafeWalletParams) GetSmartContractWalletType() SmartContractWalletType

GetSmartContractWalletType returns the SmartContractWalletType field if non-nil, zero value otherwise.

GetSmartContractWalletTypeOk

func (o *CreateSafeWalletParams) GetSmartContractWalletTypeOk() (*SmartContractWalletType, bool)

GetSmartContractWalletTypeOk returns a tuple with the SmartContractWalletType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSmartContractWalletType

func (o *CreateSafeWalletParams) SetSmartContractWalletType(v SmartContractWalletType)

SetSmartContractWalletType sets SmartContractWalletType field to given value.

GetSafeAddress

func (o *CreateSafeWalletParams) GetSafeAddress() string

GetSafeAddress returns the SafeAddress field if non-nil, zero value otherwise.

GetSafeAddressOk

func (o *CreateSafeWalletParams) GetSafeAddressOk() (*string, bool)

GetSafeAddressOk returns a tuple with the SafeAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSafeAddress

func (o *CreateSafeWalletParams) SetSafeAddress(v string)

SetSafeAddress sets SafeAddress field to given value.

HasSafeAddress

func (o *CreateSafeWalletParams) HasSafeAddress() bool

HasSafeAddress returns a boolean if a field has been set.

GetSigners

func (o *CreateSafeWalletParams) GetSigners() []string

GetSigners returns the Signers field if non-nil, zero value otherwise.

GetSignersOk

func (o *CreateSafeWalletParams) GetSignersOk() (*[]string, bool)

GetSignersOk returns a tuple with the Signers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSigners

func (o *CreateSafeWalletParams) SetSigners(v []string)

SetSigners sets Signers field to given value.

HasSigners

func (o *CreateSafeWalletParams) HasSigners() bool

HasSigners returns a boolean if a field has been set.

GetThreshold

func (o *CreateSafeWalletParams) GetThreshold() int32

GetThreshold returns the Threshold field if non-nil, zero value otherwise.

GetThresholdOk

func (o *CreateSafeWalletParams) GetThresholdOk() (*int32, bool)

GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetThreshold

func (o *CreateSafeWalletParams) SetThreshold(v int32)

SetThreshold sets Threshold field to given value.

HasThreshold

func (o *CreateSafeWalletParams) HasThreshold() bool

HasThreshold returns a boolean if a field has been set.

GetCoboSafeAddress

func (o *CreateSafeWalletParams) GetCoboSafeAddress() string

GetCoboSafeAddress returns the CoboSafeAddress field if non-nil, zero value otherwise.

GetCoboSafeAddressOk

func (o *CreateSafeWalletParams) GetCoboSafeAddressOk() (*string, bool)

GetCoboSafeAddressOk returns a tuple with the CoboSafeAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCoboSafeAddress

func (o *CreateSafeWalletParams) SetCoboSafeAddress(v string)

SetCoboSafeAddress sets CoboSafeAddress field to given value.

HasCoboSafeAddress

func (o *CreateSafeWalletParams) HasCoboSafeAddress() bool

HasCoboSafeAddress returns a boolean if a field has been set.

GetInitiator

func (o *CreateSafeWalletParams) GetInitiator() SmartContractInitiator

GetInitiator returns the Initiator field if non-nil, zero value otherwise.

GetInitiatorOk

func (o *CreateSafeWalletParams) GetInitiatorOk() (*SmartContractInitiator, bool)

GetInitiatorOk returns a tuple with the Initiator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetInitiator

func (o *CreateSafeWalletParams) SetInitiator(v SmartContractInitiator)

SetInitiator sets Initiator field to given value.

HasInitiator

func (o *CreateSafeWalletParams) HasInitiator() bool

HasInitiator returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]