Documentation ¶
Index ¶
- Constants
- type AddOwnership
- type AddRecipient
- type AddTokenTransfer
- type AddUcoTransfer
- type BackMsg
- type ContentModel
- type CreateTransactionMsg
- type CreateTransactionType
- type DeleteOwnership
- type DeleteRecipient
- type DeleteTokenTransfer
- type DeleteUcoTransfer
- type GetTransactionFee
- type MainModel
- type Model
- type OwnershipsModel
- type RecipientsModel
- type RenderFunc
- type ResetInterface
- type SendTransaction
- type SendUpdateStorageNouncePublicKey
- type SmartContractModel
- type SwitchTab
- type TokenTransferModel
- type TransactionFeeSent
- type TransactionSent
- type UcoTransferModel
- type UpdateContent
- type UpdateSmartContract
- type UpdateStorageNouncePublicKey
- type UpdateTransactionIndex
- type UpdateTransactionType
- type UpdateUrl
Constants ¶
View Source
const ( MAIN_TAB createTransactionTab = 0 UCO_TAB createTransactionTab = 1 TOKEN_TAB createTransactionTab = 2 RECIPIENTS_TAB createTransactionTab = 3 OWNERSHIPS_TAB createTransactionTab = 4 CONTENT_TAB createTransactionTab = 5 SMART_CONTRACT_TAB createTransactionTab = 6 )
View Source
const ( MAIN_ADD_BUTTON_INDEX = 17 MAIN_GET_TRANSACTION_FEE_BUTTON_INDEX = 18 MAIN_RESET_BUTTON_INDEX = 19 FIRST_TRANSACTION_TYPE_INDEX = 8 URL_INDEX = 4 SEED_INDEX = 5 CURVE_INDEX = 6 TRANSACTION_INDEX_FIELD_INDEX = 7 )
View Source
const ( FIELD_TO = 0 FIELD_ACTION = 1 FIELD_ARGS = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOwnership ¶
type AddOwnership struct { Cipher []byte AuthorizedKeys []archethic.AuthorizedKey // contains filtered or unexported fields }
type AddRecipient ¶
type AddTokenTransfer ¶
type AddUcoTransfer ¶
type ContentModel ¶
type ContentModel struct {
// contains filtered or unexported fields
}
func NewContentModel ¶
func NewContentModel() ContentModel
func (ContentModel) Init ¶
func (m ContentModel) Init() tea.Cmd
func (*ContentModel) SwitchTab ¶
func (m *ContentModel) SwitchTab() (ContentModel, []tea.Cmd)
func (ContentModel) View ¶
func (m ContentModel) View() string
type CreateTransactionMsg ¶
type CreateTransactionType ¶
type CreateTransactionType int
type DeleteOwnership ¶
type DeleteOwnership struct {
IndexToDelete int
}
type DeleteRecipient ¶
type DeleteRecipient struct {
IndexToDelete int
}
type DeleteTokenTransfer ¶
type DeleteTokenTransfer struct {
IndexToDelete int
}
type DeleteUcoTransfer ¶
type DeleteUcoTransfer struct {
IndexToDelete int
}
type GetTransactionFee ¶ added in v1.1.0
type MainModel ¶
type MainModel struct {
// contains filtered or unexported fields
}
func NewMainModel ¶
type Model ¶
type OwnershipsModel ¶
type OwnershipsModel struct { Spinner spinner.Model IsInit bool // contains filtered or unexported fields }
func NewOwnershipsModel ¶
func NewOwnershipsModel(secretKey []byte, transaction *archethic.TransactionBuilder) OwnershipsModel
func (OwnershipsModel) Init ¶
func (m OwnershipsModel) Init() tea.Cmd
func (*OwnershipsModel) SetUrl ¶
func (m *OwnershipsModel) SetUrl(url string)
func (*OwnershipsModel) SwitchTab ¶
func (m *OwnershipsModel) SwitchTab() (OwnershipsModel, []tea.Cmd)
func (OwnershipsModel) View ¶
func (m OwnershipsModel) View() string
type RecipientsModel ¶
type RecipientsModel struct {
// contains filtered or unexported fields
}
func NewRecipientsModel ¶
func NewRecipientsModel(transaction *archethic.TransactionBuilder) RecipientsModel
func (RecipientsModel) Init ¶
func (m RecipientsModel) Init() tea.Cmd
func (*RecipientsModel) SwitchTab ¶
func (m *RecipientsModel) SwitchTab() (RecipientsModel, []tea.Cmd)
func (RecipientsModel) View ¶
func (m RecipientsModel) View() string
type RenderFunc ¶
type ResetInterface ¶
type ResetInterface struct{}
type SendTransaction ¶
type SendUpdateStorageNouncePublicKey ¶
type SendUpdateStorageNouncePublicKey struct {
OwnershipsModel OwnershipsModel
}
type SmartContractModel ¶
type SmartContractModel struct {
// contains filtered or unexported fields
}
func NewSmartContractModel ¶
func NewSmartContractModel() SmartContractModel
func (SmartContractModel) Init ¶
func (m SmartContractModel) Init() tea.Cmd
func (*SmartContractModel) SwitchTab ¶
func (m *SmartContractModel) SwitchTab() (SmartContractModel, []tea.Cmd)
func (SmartContractModel) View ¶
func (m SmartContractModel) View() string
type TokenTransferModel ¶
type TokenTransferModel struct {
// contains filtered or unexported fields
}
func NewTokenTransferModel ¶
func NewTokenTransferModel(transaction *archethic.TransactionBuilder) TokenTransferModel
func (TokenTransferModel) Init ¶
func (m TokenTransferModel) Init() tea.Cmd
func (*TokenTransferModel) SwitchTab ¶
func (m *TokenTransferModel) SwitchTab() (TokenTransferModel, []tea.Cmd)
func (TokenTransferModel) View ¶
func (m TokenTransferModel) View() string
type TransactionFeeSent ¶ added in v1.1.0
type TransactionSent ¶
type UcoTransferModel ¶
type UcoTransferModel struct {
// contains filtered or unexported fields
}
func NewUcoTransferModel ¶
func NewUcoTransferModel(transaction *archethic.TransactionBuilder) UcoTransferModel
func (UcoTransferModel) Init ¶
func (m UcoTransferModel) Init() tea.Cmd
func (*UcoTransferModel) SwitchTab ¶
func (m *UcoTransferModel) SwitchTab() (UcoTransferModel, []tea.Cmd)
func (UcoTransferModel) View ¶
func (m UcoTransferModel) View() string
type UpdateContent ¶
type UpdateContent struct {
Content []byte
}
type UpdateSmartContract ¶
type UpdateSmartContract struct {
Code string
}
type UpdateStorageNouncePublicKey ¶
type UpdateStorageNouncePublicKey struct {
StorageNouncePublicKey string
}
type UpdateTransactionIndex ¶
type UpdateTransactionIndex struct { Index int // contains filtered or unexported fields }
type UpdateTransactionType ¶
type UpdateTransactionType struct { TransactionType archethic.TransactionType // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.