Documentation ¶
Index ¶
- func ContractAssetboxToDTO(a *contracts.Assetbox) *dto.PublicAssetboxInfoResponse
- type ApproveTransferObj
- func ApproveFullBalanceTransferObjFromDTO(astor *dto.ApproveFullBalanceSafeTransferRequest) *ApproveTransferObj
- func ApproveFullBalanceWPCTransferObjFromDTO(astor *dto.ApproveFullBalanceWPCSafeTransferRequest) *ApproveTransferObj
- func ApproveTransferObjFromDTO(astor *dto.ApproveSafeTransferRequest) *ApproveTransferObj
- func ApproveWPCTransferObjFromDTO(astor *dto.ApproveWPCSafeTransferRequest) *ApproveTransferObj
- type Assetbox
- type CancelTransferObj
- func CancelFullBalanceTransferObjFromDTO(cstor *dto.CancelFullBalanceSafeTransferRequest) *CancelTransferObj
- func CancelFullBalanceWPCTransferObjFromDTO(cstor *dto.CancelFullBalanceWPCSafeTransferRequest) *CancelTransferObj
- func CancelTransferObjFromDTO(cstor *dto.CancelSafeTransferRequest) *CancelTransferObj
- func CancelWPCTransferObjFromDTO(cstor *dto.CancelWPCSafeTransferRequest) *CancelTransferObj
- type CreateTransferObj
- func CreateFullBalanceTransferObjFromDTO(cstor *dto.CreateFullBalanceSafeTransferRequest) *CreateTransferObj
- func CreateFullBalanceWPCTransferObjFromDTO(cstor *dto.CreateFullBalanceWPCSafeTransferRequest) *CreateTransferObj
- func CreateTransferObjFromDTO(cstor *dto.CreateSafeTransferRequest) *CreateTransferObj
- func CreateWPCTransferObjFromDTO(cstor *dto.CreateWPCSafeTransferRequest) *CreateTransferObj
- type DirectTransferObj
- type EmitObj
- type FeeDistribution
- type FeeSettingsResponseObj
- type QuickTransferObj
- type ServiceFeeTransferObj
- type ShortAssetbox
- type TransferResponseObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractAssetboxToDTO ¶
func ContractAssetboxToDTO(a *contracts.Assetbox) *dto.PublicAssetboxInfoResponse
Types ¶
type ApproveTransferObj ¶
type ApproveTransferObj struct { Address common.Address TransferID string ProtectionCode string ExtraData []byte CryptoData dto.AssetboxCryptoData }
func ApproveFullBalanceTransferObjFromDTO ¶
func ApproveFullBalanceTransferObjFromDTO(astor *dto.ApproveFullBalanceSafeTransferRequest) *ApproveTransferObj
func ApproveFullBalanceWPCTransferObjFromDTO ¶
func ApproveFullBalanceWPCTransferObjFromDTO(astor *dto.ApproveFullBalanceWPCSafeTransferRequest) *ApproveTransferObj
func ApproveTransferObjFromDTO ¶
func ApproveTransferObjFromDTO(astor *dto.ApproveSafeTransferRequest) *ApproveTransferObj
func ApproveWPCTransferObjFromDTO ¶
func ApproveWPCTransferObjFromDTO(astor *dto.ApproveWPCSafeTransferRequest) *ApproveTransferObj
type Assetbox ¶
type Assetbox struct { Address common.Address `json:"address"` Alias string `json:"alias"` ServiceID string `json:"serviceID"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` DeletedAt *time.Time `json:"deletedAt"` IsPublic bool `json:"isPublic"` IsMining bool `json:"isMining"` ExtraInfo string `json:"extraInfo"` Wallet []byte `json:"wallet" ` PassPhrase []byte `json:"passPhrase"` Pk *ecdsa.PrivateKey `json:"-"` // nolint, assetbox private key }
func (*Assetbox) PopulateContractData ¶
func (*Assetbox) ToContractsAssetbox ¶
type CancelTransferObj ¶
type CancelTransferObj struct { Address common.Address TransferID string ExtraData []byte CryptoData dto.AssetboxCryptoData }
func CancelFullBalanceTransferObjFromDTO ¶
func CancelFullBalanceTransferObjFromDTO(cstor *dto.CancelFullBalanceSafeTransferRequest) *CancelTransferObj
func CancelFullBalanceWPCTransferObjFromDTO ¶
func CancelFullBalanceWPCTransferObjFromDTO(cstor *dto.CancelFullBalanceWPCSafeTransferRequest) *CancelTransferObj
func CancelTransferObjFromDTO ¶
func CancelTransferObjFromDTO(cstor *dto.CancelSafeTransferRequest) *CancelTransferObj
func CancelWPCTransferObjFromDTO ¶
func CancelWPCTransferObjFromDTO(cstor *dto.CancelWPCSafeTransferRequest) *CancelTransferObj
type CreateTransferObj ¶
type CreateTransferObj struct { From common.Address To common.Address Value *big.Int TransferID string ProtectionCode string Retries uint64 ExpiresAt int64 Proof []byte VK []byte ExtraData []byte CryptoData dto.AssetboxCryptoData }
func CreateFullBalanceTransferObjFromDTO ¶
func CreateFullBalanceTransferObjFromDTO(cstor *dto.CreateFullBalanceSafeTransferRequest) *CreateTransferObj
func CreateFullBalanceWPCTransferObjFromDTO ¶
func CreateFullBalanceWPCTransferObjFromDTO(cstor *dto.CreateFullBalanceWPCSafeTransferRequest) *CreateTransferObj
func CreateTransferObjFromDTO ¶
func CreateTransferObjFromDTO(cstor *dto.CreateSafeTransferRequest) *CreateTransferObj
func CreateWPCTransferObjFromDTO ¶
func CreateWPCTransferObjFromDTO(cstor *dto.CreateWPCSafeTransferRequest) *CreateTransferObj
func (*CreateTransferObj) ToContractsTransfer ¶
func (t *CreateTransferObj) ToContractsTransfer() *contracts.Transfer
type DirectTransferObj ¶
type DirectTransferObj struct { From common.Address To common.Address Value *big.Int ExtraData []byte }
func DirectTransferObjFromDTO ¶
func DirectTransferObjFromDTO(dtr *dto.DirectTransferRequest) *DirectTransferObj
type FeeDistribution ¶
func (*FeeDistribution) ToDTO ¶
func (o *FeeDistribution) ToDTO() *dto.FeeDistribution
type FeeSettingsResponseObj ¶
type FeeSettingsResponseObj struct { FeeValues map[uint64]*big.Int FeeDistributions map[uint64][]*FeeDistribution }
func (*FeeSettingsResponseObj) ToDTO ¶
func (o *FeeSettingsResponseObj) ToDTO() *dto.FeeSettingsResponse
type QuickTransferObj ¶
type QuickTransferObj struct { From common.Address To common.Address Value *big.Int ExtraData []byte CryptoData dto.AssetboxCryptoData }
func FullBalanceQuickTransferObjFromDTO ¶
func FullBalanceQuickTransferObjFromDTO(cstor *dto.FullBalanceQuickTransferRequest) *QuickTransferObj
func QuickTransferObjFromDTO ¶
func QuickTransferObjFromDTO(cstor *dto.QuickTransferRequest) *QuickTransferObj
type ServiceFeeTransferObj ¶
func FeeTransferObjFromDTO ¶
func FeeTransferObjFromDTO(cstor *dto.ServiceFeeTransferRequest) *ServiceFeeTransferObj
type ShortAssetbox ¶
type TransferResponseObj ¶
type TransferResponseObj struct { BlockNumber uint64 `json:"blockNumber"` TxHash common.Hash `json:"txHash"` ExtraData []byte `json:"extraData"` }
func (*TransferResponseObj) DTO ¶
func (tr *TransferResponseObj) DTO() *dto.TransferResponse
func (*TransferResponseObj) ToDTO ¶
func (tr *TransferResponseObj) ToDTO() *dto.TransferResponse
Click to show internal directories.
Click to hide internal directories.