Documentation ¶
Index ¶
- type Api
- type BalanceResponse
- type ClaimResponse
- type ClaimableBatchResponse
- type ClaimableResponse
- type MockApi
- func (api *MockApi) Claim(address simpleCommon.PrivateAddress) (resp *ClaimResponse, err error)
- func (api *MockApi) GetBalance(address axieCommon.RoninAddress, token string) (resp *BalanceResponse, err error)
- func (api *MockApi) GetClaimableBatchSlp(addresses []axieCommon.RoninAddress) (resp *ClaimableBatchResponse, err error)
- func (api *MockApi) GetClaimableSlp(address axieCommon.RoninAddress) (resp *ClaimableResponse, err error)
- func (api *MockApi) GetQR(address simpleCommon.PrivateAddress) (resp *QrResponse, err error)
- func (api *MockApi) MakePayment(address axieCommon.RoninAddress, token string, ...) (resp *PaymentResponse, err error)
- type PaymentData
- type PaymentResponse
- type PaymentResponseResult
- type QrResponse
- type Resources
- type ScholarPaymentData
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api interface { Claim(address simpleCommon.PrivateAddress) (*ClaimResponse, error) GetClaimableSlp(address axieCommon.RoninAddress) (*ClaimableResponse, error) GetClaimableBatchSlp(addresses []axieCommon.RoninAddress) (*ClaimableBatchResponse, error) MakePayment(manager axieCommon.RoninAddress, token string, scholarPaymentData *ScholarPaymentData) (*PaymentResponse, error) GetQR(address simpleCommon.PrivateAddress) (*QrResponse, error) GetBalance(address axieCommon.RoninAddress, token string) (*BalanceResponse, error) }
func NewApiImplementation ¶
type BalanceResponse ¶
type BalanceResponse struct { Address axieCommon.RoninAddress `json:"address"` Token string `json:"token"` Balance *big.Int `json:"quantity"` }
type ClaimResponse ¶
type ClaimResponse struct{}
type ClaimableBatchResponse ¶
type ClaimableBatchResponse struct { Processed []*ClaimableResponse `json:"processed"` Errors []error `json:"errors"` Total int `json:"total"` }
type ClaimableResponse ¶
type ClaimableResponse struct { Quantity int `json:"quantity"` Address axieCommon.RoninAddress `json:"address"` }
type MockApi ¶
func (*MockApi) Claim ¶
func (api *MockApi) Claim(address simpleCommon.PrivateAddress) ( resp *ClaimResponse, err error, )
func (*MockApi) GetBalance ¶
func (api *MockApi) GetBalance(address axieCommon.RoninAddress, token string) ( resp *BalanceResponse, err error, )
func (*MockApi) GetClaimableBatchSlp ¶
func (api *MockApi) GetClaimableBatchSlp(addresses []axieCommon.RoninAddress) ( resp *ClaimableBatchResponse, err error, )
func (*MockApi) GetClaimableSlp ¶
func (api *MockApi) GetClaimableSlp(address axieCommon.RoninAddress) ( resp *ClaimableResponse, err error, )
func (*MockApi) GetQR ¶
func (api *MockApi) GetQR(address simpleCommon.PrivateAddress) ( resp *QrResponse, err error, )
func (*MockApi) MakePayment ¶
func (api *MockApi) MakePayment( address axieCommon.RoninAddress, token string, scholarPaymentData *ScholarPaymentData, ) ( resp *PaymentResponse, err error, )
type PaymentData ¶
type PaymentData struct { ManagerAddress axieCommon.RoninAddress `json:"managerAddress"` Scholars []*ScholarPaymentData `json:"scholars"` }
type PaymentResponse ¶
type PaymentResponse struct {
Results map[axieCommon.RoninAddress]*PaymentResponseResult `json:"results"`
}
type PaymentResponseResult ¶
type PaymentResponseResult struct { Error error `json:"error"` Transaction *types.Transaction `json:"transaction"` }
type QrResponse ¶
type QrResponse struct {
QrCode []byte `json:"qrCode"`
}
type ScholarPaymentData ¶
type ScholarPaymentData struct { TeamAddress simpleCommon.PrivateAddress `json:"teamAddress"` ScholarAddress axieCommon.RoninAddress `json:"scholarAddress"` ScholarPercent *big.Int `json:"scholarPercent"` ScholarPayout []int64 `json:"scholarPayout"` }
type Service ¶
type Service interface { Claim(address simpleCommon.PrivateAddress) (*ClaimResponse, error) GetClaimableSlp(address axieCommon.RoninAddress) (*ClaimableResponse, error) GetClaimableBatchSlp(addresses []axieCommon.RoninAddress) (*ClaimableBatchResponse, error) MakePayment(manager axieCommon.RoninAddress, token string, scholar *ScholarPaymentData) (*PaymentResponse, error) GetQR(address simpleCommon.PrivateAddress) (*QrResponse, error) GetBalance(address axieCommon.RoninAddress, token string) (*BalanceResponse, error) }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.