Documentation ¶
Index ¶
- func MinDeposit(protocolParams iotago.ProtocolParameters, outputType iotago.OutputType, ...) (iotago.BaseToken, error)
- func WithAddress(address iotago.Address) options.Option[Options]
- func WithBlockIssuerKeys(keys int) options.Option[Options]
- func WithExpirationAddress(address iotago.Address) options.Option[Options]
- func WithGovernorAddress(address iotago.Address) options.Option[Options]
- func WithHasNativeToken() options.Option[Options]
- func WithHasTimelock() options.Option[Options]
- func WithImmutableIssuerAddress(address iotago.Address) options.Option[Options]
- func WithImmutableMetadataSerializedSize(size int) options.Option[Options]
- func WithIssuerAddress(address iotago.Address) options.Option[Options]
- func WithMetadataSerializedSize(size int) options.Option[Options]
- func WithSenderAddress(address iotago.Address) options.Option[Options]
- func WithStakedAmount(amount iotago.BaseToken) options.Option[Options]
- func WithStateControllerAddress(address iotago.Address) options.Option[Options]
- func WithStateMetadataSerializedSize(size int) options.Option[Options]
- func WithStorageDepositReturnAddress(address iotago.Address) options.Option[Options]
- func WithTagLength(length int) options.Option[Options]
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinDeposit ¶
func MinDeposit(protocolParams iotago.ProtocolParameters, outputType iotago.OutputType, opts ...options.Option[Options]) (iotago.BaseToken, error)
func WithAddress ¶
WithAddress sets the address for the address unlock condition.
func WithBlockIssuerKeys ¶
WithBlockIssuerKeys adds a block issuer feature and adds the given amount of dummy keys.
func WithExpirationAddress ¶
WithExpirationAddress adds a expiration unlock condition and sets the address.
func WithGovernorAddress ¶
WithGovernorAddress sets the address for the governor address unlock condition.
func WithHasNativeToken ¶
WithHasNativeToken adds a native token feature.
func WithHasTimelock ¶
WithHasTimelock adds a timelock unlock condition.
func WithImmutableIssuerAddress ¶
WithImmutableIssuerAddress adds an immutable issuer feature and sets the address.
func WithImmutableMetadataSerializedSize ¶
WithImmutableMetadataSerializedSize adds an immutable metadata feature and adds an entry with an empty key and a dummy value of the given length minus the length of the map length prefix, key length prefix and value length prefix.
func WithIssuerAddress ¶
WithIssuerAddress adds a issuer feature and sets the address.
func WithMetadataSerializedSize ¶
WithMetadataSerializedSize adds a metadata feature and adds an entry with an empty key and a dummy value of the given length minus the length of the map length prefix, key length prefix and value length prefix.
func WithSenderAddress ¶
WithSenderAddress adds a sender feature and sets the address.
func WithStakedAmount ¶
WithStakedAmount adds a staking feature and sets the staked amount.
func WithStateControllerAddress ¶
WithStateControllerAddress sets the address for the state controller address unlock condition.
func WithStateMetadataSerializedSize ¶
WithStateMetadataSerializedSize adds a state metadata feature and adds an entry with an empty key and a dummy value of the given length minus the length of the map length prefix, key length prefix and value length prefix.
func WithStorageDepositReturnAddress ¶
WithStorageDepositReturnAddress adds a storage deposit return unlock condition and sets the address.
Types ¶
type Options ¶
type Options struct { // UnlockConditions Address iotago.Address StorageDepositReturnAddress iotago.Address HasTimelock bool ExpirationAddress iotago.Address StateControllerAddress iotago.Address GovernorAddress iotago.Address // Features SenderAddress iotago.Address IssuerAddress iotago.Address MetadataSerializedSize int StateMetadataSerializedSize int TagLength int HasNativeToken bool BlockIssuerKeys int StakedAmount iotago.BaseToken // Immutable Features ImmutableIssuerAddress iotago.Address ImmutableMetadataSerializedSize int }