Documentation ¶
Index ¶
- type Builder
- type LiquidationBaseData
- type LiquidationParameters
- func (l *LiquidationParameters) SetForwardAmount(forwardAmount *big.Int) *LiquidationParameters
- func (l *LiquidationParameters) SetIncludeUserCode(b bool) *LiquidationParameters
- func (l *LiquidationParameters) SetPayload(payload *cell.Cell, payloadForwardAmount *big.Int) *LiquidationParameters
- func (l *LiquidationParameters) SetQueryID(q uint64) *LiquidationParameters
- func (l *LiquidationParameters) SetResponseAddress(responseAddress *address.Address) *LiquidationParameters
- type SupplyParameters
- type Wallet
- type WithdrawParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { CreateSupplyBody(data *SupplyParameters, myAddress *address.Address) (*cell.Cell, error) CreateWithdrawBody(data *WithdrawParameters, myAddress *address.Address) (*cell.Cell, error) CreateLiquidationBody(data *LiquidationParameters, myAddress *address.Address) (*cell.Cell, error) }
func NewBuilder ¶
type LiquidationBaseData ¶
type LiquidationParameters ¶
type LiquidationParameters struct { *LiquidationBaseData PriceData *cell.Cell QueryID uint64 ResponseAddress *address.Address IncludeUserCode bool Payload *cell.Cell PayloadForwardAmount *big.Int ForwardAmount *big.Int }
func NewLiquidationParameters ¶
func NewLiquidationParameters(liquidationBaseData *LiquidationBaseData, priceData *cell.Cell) *LiquidationParameters
func (*LiquidationParameters) SetForwardAmount ¶
func (l *LiquidationParameters) SetForwardAmount(forwardAmount *big.Int) *LiquidationParameters
func (*LiquidationParameters) SetIncludeUserCode ¶
func (l *LiquidationParameters) SetIncludeUserCode(b bool) *LiquidationParameters
func (*LiquidationParameters) SetPayload ¶
func (l *LiquidationParameters) SetPayload(payload *cell.Cell, payloadForwardAmount *big.Int) *LiquidationParameters
func (*LiquidationParameters) SetQueryID ¶
func (l *LiquidationParameters) SetQueryID(q uint64) *LiquidationParameters
func (*LiquidationParameters) SetResponseAddress ¶
func (l *LiquidationParameters) SetResponseAddress(responseAddress *address.Address) *LiquidationParameters
type SupplyParameters ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) SendLiquidation ¶
func (*Wallet) SendSupply ¶
func (*Wallet) SendWithdraw ¶
Click to show internal directories.
Click to hide internal directories.