Documentation ¶
Index ¶
- Variables
- type Approval
- func (*Approval) Descriptor() ([]byte, []int)deprecated
- func (x *Approval) GetBlock() uint64
- func (x *Approval) GetIdx() uint64
- func (x *Approval) GetOwner() []byte
- func (x *Approval) GetSpender() []byte
- func (x *Approval) GetTs() *timestamppb.Timestamp
- func (x *Approval) GetTx() []byte
- func (x *Approval) GetValue() []byte
- func (*Approval) ProtoMessage()
- func (x *Approval) ProtoReflect() protoreflect.Message
- func (x *Approval) Reset()
- func (x *Approval) String() string
- type BorrowToken
- func (*BorrowToken) Descriptor() ([]byte, []int)deprecated
- func (x *BorrowToken) GetAmount() []byte
- func (x *BorrowToken) GetBlock() uint64
- func (x *BorrowToken) GetIdx() uint64
- func (x *BorrowToken) GetTs() *timestamppb.Timestamp
- func (x *BorrowToken) GetTx() []byte
- func (x *BorrowToken) GetVaultID() []byte
- func (*BorrowToken) ProtoMessage()
- func (x *BorrowToken) ProtoReflect() protoreflect.Message
- func (x *BorrowToken) Reset()
- func (x *BorrowToken) String() string
- type BuyRiskyVault
- func (*BuyRiskyVault) Descriptor() ([]byte, []int)deprecated
- func (x *BuyRiskyVault) GetAmountPaid() []byte
- func (x *BuyRiskyVault) GetBlock() uint64
- func (x *BuyRiskyVault) GetBuyer() []byte
- func (x *BuyRiskyVault) GetIdx() uint64
- func (x *BuyRiskyVault) GetOwner() []byte
- func (x *BuyRiskyVault) GetTs() *timestamppb.Timestamp
- func (x *BuyRiskyVault) GetTx() []byte
- func (x *BuyRiskyVault) GetVaultID() []byte
- func (*BuyRiskyVault) ProtoMessage()
- func (x *BuyRiskyVault) ProtoReflect() protoreflect.Message
- func (x *BuyRiskyVault) Reset()
- func (x *BuyRiskyVault) String() string
- type CreateVault
- func (*CreateVault) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVault) GetBlock() uint64
- func (x *CreateVault) GetCreator() []byte
- func (x *CreateVault) GetIdx() uint64
- func (x *CreateVault) GetTs() *timestamppb.Timestamp
- func (x *CreateVault) GetTx() []byte
- func (x *CreateVault) GetVaultID() []byte
- func (*CreateVault) ProtoMessage()
- func (x *CreateVault) ProtoReflect() protoreflect.Message
- func (x *CreateVault) Reset()
- func (x *CreateVault) String() string
- type DepositCollateral
- func (*DepositCollateral) Descriptor() ([]byte, []int)deprecated
- func (x *DepositCollateral) GetAmount() []byte
- func (x *DepositCollateral) GetBlock() uint64
- func (x *DepositCollateral) GetIdx() uint64
- func (x *DepositCollateral) GetTs() *timestamppb.Timestamp
- func (x *DepositCollateral) GetTx() []byte
- func (x *DepositCollateral) GetVaultID() []byte
- func (*DepositCollateral) ProtoMessage()
- func (x *DepositCollateral) ProtoReflect() protoreflect.Message
- func (x *DepositCollateral) Reset()
- func (x *DepositCollateral) String() string
- type DestroyVault
- func (*DestroyVault) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyVault) GetBlock() uint64
- func (x *DestroyVault) GetIdx() uint64
- func (x *DestroyVault) GetTs() *timestamppb.Timestamp
- func (x *DestroyVault) GetTx() []byte
- func (x *DestroyVault) GetVaultID() []byte
- func (*DestroyVault) ProtoMessage()
- func (x *DestroyVault) ProtoReflect() protoreflect.Message
- func (x *DestroyVault) Reset()
- func (x *DestroyVault) String() string
- type Mai
- type MaiApproval
- type MaiApprovalIterator
- type MaiBorrowToken
- type MaiBorrowTokenIterator
- type MaiBuyRiskyVault
- type MaiBuyRiskyVaultIterator
- type MaiCaller
- func (_Mai *MaiCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_Mai *MaiCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_Mai *MaiCaller) ClosingFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) DebtCeiling(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Mai *MaiCaller) Erc721(opts *bind.CallOpts) (common.Address, error)
- func (_Mai *MaiCaller) EthPriceSource(opts *bind.CallOpts) (common.Address, error)
- func (_Mai *MaiCaller) GetClosingFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) GetDebtCeiling(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) GetEthPriceSource(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) GetOpeningFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) GetTokenPriceSource(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) IsOwner(opts *bind.CallOpts) (bool, error)
- func (_Mai *MaiCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Mai *MaiCaller) OpeningFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Mai *MaiCaller) StabilityPool(opts *bind.CallOpts) (common.Address, error)
- func (_Mai *MaiCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Mai *MaiCaller) TokenPeg(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) Treasury(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) VaultCollateral(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_Mai *MaiCaller) VaultCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Mai *MaiCaller) VaultDebt(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_Mai *MaiCaller) VaultExistence(opts *bind.CallOpts, arg0 *big.Int) (bool, error)
- func (_Mai *MaiCaller) VaultOwner(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- type MaiCallerRaw
- type MaiCallerSession
- func (_Mai *MaiCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Mai *MaiCallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Mai *MaiCallerSession) ClosingFee() (*big.Int, error)
- func (_Mai *MaiCallerSession) DebtCeiling() (*big.Int, error)
- func (_Mai *MaiCallerSession) Decimals() (uint8, error)
- func (_Mai *MaiCallerSession) Erc721() (common.Address, error)
- func (_Mai *MaiCallerSession) EthPriceSource() (common.Address, error)
- func (_Mai *MaiCallerSession) GetClosingFee() (*big.Int, error)
- func (_Mai *MaiCallerSession) GetDebtCeiling() (*big.Int, error)
- func (_Mai *MaiCallerSession) GetEthPriceSource() (*big.Int, error)
- func (_Mai *MaiCallerSession) GetOpeningFee() (*big.Int, error)
- func (_Mai *MaiCallerSession) GetTokenPriceSource() (*big.Int, error)
- func (_Mai *MaiCallerSession) IsOwner() (bool, error)
- func (_Mai *MaiCallerSession) Name() (string, error)
- func (_Mai *MaiCallerSession) OpeningFee() (*big.Int, error)
- func (_Mai *MaiCallerSession) Owner() (common.Address, error)
- func (_Mai *MaiCallerSession) StabilityPool() (common.Address, error)
- func (_Mai *MaiCallerSession) Symbol() (string, error)
- func (_Mai *MaiCallerSession) TokenPeg() (*big.Int, error)
- func (_Mai *MaiCallerSession) TotalSupply() (*big.Int, error)
- func (_Mai *MaiCallerSession) Treasury() (*big.Int, error)
- func (_Mai *MaiCallerSession) VaultCollateral(arg0 *big.Int) (*big.Int, error)
- func (_Mai *MaiCallerSession) VaultCount() (*big.Int, error)
- func (_Mai *MaiCallerSession) VaultDebt(arg0 *big.Int) (*big.Int, error)
- func (_Mai *MaiCallerSession) VaultExistence(arg0 *big.Int) (bool, error)
- func (_Mai *MaiCallerSession) VaultOwner(arg0 *big.Int) (common.Address, error)
- type MaiCreateVault
- type MaiCreateVaultIterator
- type MaiDepositCollateral
- type MaiDepositCollateralIterator
- type MaiDestroyVault
- type MaiDestroyVaultIterator
- type MaiFilterer
- func (_Mai *MaiFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MaiApprovalIterator, error)
- func (_Mai *MaiFilterer) FilterBorrowToken(opts *bind.FilterOpts) (*MaiBorrowTokenIterator, error)
- func (_Mai *MaiFilterer) FilterBuyRiskyVault(opts *bind.FilterOpts) (*MaiBuyRiskyVaultIterator, error)
- func (_Mai *MaiFilterer) FilterCreateVault(opts *bind.FilterOpts) (*MaiCreateVaultIterator, error)
- func (_Mai *MaiFilterer) FilterDepositCollateral(opts *bind.FilterOpts) (*MaiDepositCollateralIterator, error)
- func (_Mai *MaiFilterer) FilterDestroyVault(opts *bind.FilterOpts) (*MaiDestroyVaultIterator, error)
- func (_Mai *MaiFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*MaiOwnershipTransferredIterator, error)
- func (_Mai *MaiFilterer) FilterPayBackToken(opts *bind.FilterOpts) (*MaiPayBackTokenIterator, error)
- func (_Mai *MaiFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MaiTransferIterator, error)
- func (_Mai *MaiFilterer) FilterTransferVault(opts *bind.FilterOpts) (*MaiTransferVaultIterator, error)
- func (_Mai *MaiFilterer) FilterWithdrawCollateral(opts *bind.FilterOpts) (*MaiWithdrawCollateralIterator, error)
- func (_Mai *MaiFilterer) ParseApproval(log types.Log) (*MaiApproval, error)
- func (_Mai *MaiFilterer) ParseBorrowToken(log types.Log) (*MaiBorrowToken, error)
- func (_Mai *MaiFilterer) ParseBuyRiskyVault(log types.Log) (*MaiBuyRiskyVault, error)
- func (_Mai *MaiFilterer) ParseCreateVault(log types.Log) (*MaiCreateVault, error)
- func (_Mai *MaiFilterer) ParseDepositCollateral(log types.Log) (*MaiDepositCollateral, error)
- func (_Mai *MaiFilterer) ParseDestroyVault(log types.Log) (*MaiDestroyVault, error)
- func (_Mai *MaiFilterer) ParseOwnershipTransferred(log types.Log) (*MaiOwnershipTransferred, error)
- func (_Mai *MaiFilterer) ParsePayBackToken(log types.Log) (*MaiPayBackToken, error)
- func (_Mai *MaiFilterer) ParseTransfer(log types.Log) (*MaiTransfer, error)
- func (_Mai *MaiFilterer) ParseTransferVault(log types.Log) (*MaiTransferVault, error)
- func (_Mai *MaiFilterer) ParseWithdrawCollateral(log types.Log) (*MaiWithdrawCollateral, error)
- func (_Mai *MaiFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MaiApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchBorrowToken(opts *bind.WatchOpts, sink chan<- *MaiBorrowToken) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchBuyRiskyVault(opts *bind.WatchOpts, sink chan<- *MaiBuyRiskyVault) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchCreateVault(opts *bind.WatchOpts, sink chan<- *MaiCreateVault) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchDepositCollateral(opts *bind.WatchOpts, sink chan<- *MaiDepositCollateral) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchDestroyVault(opts *bind.WatchOpts, sink chan<- *MaiDestroyVault) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MaiOwnershipTransferred, ...) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchPayBackToken(opts *bind.WatchOpts, sink chan<- *MaiPayBackToken) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MaiTransfer, from []common.Address, ...) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchTransferVault(opts *bind.WatchOpts, sink chan<- *MaiTransferVault) (event.Subscription, error)
- func (_Mai *MaiFilterer) WatchWithdrawCollateral(opts *bind.WatchOpts, sink chan<- *MaiWithdrawCollateral) (event.Subscription, error)
- type MaiOwnershipTransferred
- type MaiOwnershipTransferredIterator
- type MaiPayBackToken
- type MaiPayBackTokenIterator
- type MaiRaw
- type MaiSession
- func (_Mai *MaiSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Mai *MaiSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Mai *MaiSession) BorrowToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) Burn(account common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) BuyRiskyVault(vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) ChangeEthPriceSource(ethPriceSourceAddress common.Address) (*types.Transaction, error)
- func (_Mai *MaiSession) ClosingFee() (*big.Int, error)
- func (_Mai *MaiSession) CreateVault() (*types.Transaction, error)
- func (_Mai *MaiSession) DebtCeiling() (*big.Int, error)
- func (_Mai *MaiSession) Decimals() (uint8, error)
- func (_Mai *MaiSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) DepositCollateral(vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) DestroyVault(vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) Erc721() (common.Address, error)
- func (_Mai *MaiSession) EthPriceSource() (common.Address, error)
- func (_Mai *MaiSession) GetClosingFee() (*big.Int, error)
- func (_Mai *MaiSession) GetDebtCeiling() (*big.Int, error)
- func (_Mai *MaiSession) GetEthPriceSource() (*big.Int, error)
- func (_Mai *MaiSession) GetOpeningFee() (*big.Int, error)
- func (_Mai *MaiSession) GetTokenPriceSource() (*big.Int, error)
- func (_Mai *MaiSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) IsOwner() (bool, error)
- func (_Mai *MaiSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) Name() (string, error)
- func (_Mai *MaiSession) OpeningFee() (*big.Int, error)
- func (_Mai *MaiSession) Owner() (common.Address, error)
- func (_Mai *MaiSession) PayBackToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) RenounceOwnership() (*types.Transaction, error)
- func (_Mai *MaiSession) SetClosingFee(amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) SetDebtCeiling(amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) SetOpeningFee(amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) SetStabilityPool(_pool common.Address) (*types.Transaction, error)
- func (_Mai *MaiSession) SetTokenPeg(_tokenPeg *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) SetTreasury(_treasury *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) StabilityPool() (common.Address, error)
- func (_Mai *MaiSession) Symbol() (string, error)
- func (_Mai *MaiSession) TokenPeg() (*big.Int, error)
- func (_Mai *MaiSession) TotalSupply() (*big.Int, error)
- func (_Mai *MaiSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Mai *MaiSession) TransferVault(vaultID *big.Int, to common.Address) (*types.Transaction, error)
- func (_Mai *MaiSession) Treasury() (*big.Int, error)
- func (_Mai *MaiSession) VaultCollateral(arg0 *big.Int) (*big.Int, error)
- func (_Mai *MaiSession) VaultCount() (*big.Int, error)
- func (_Mai *MaiSession) VaultDebt(arg0 *big.Int) (*big.Int, error)
- func (_Mai *MaiSession) VaultExistence(arg0 *big.Int) (bool, error)
- func (_Mai *MaiSession) VaultOwner(arg0 *big.Int) (common.Address, error)
- func (_Mai *MaiSession) WithdrawCollateral(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- type MaiTransactor
- func (_Mai *MaiTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) BorrowToken(opts *bind.TransactOpts, vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) Burn(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) BuyRiskyVault(opts *bind.TransactOpts, vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) ChangeEthPriceSource(opts *bind.TransactOpts, ethPriceSourceAddress common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactor) CreateVault(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Mai *MaiTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) DepositCollateral(opts *bind.TransactOpts, vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) DestroyVault(opts *bind.TransactOpts, vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) Mint(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) PayBackToken(opts *bind.TransactOpts, vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Mai *MaiTransactor) SetClosingFee(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) SetDebtCeiling(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) SetOpeningFee(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) SetStabilityPool(opts *bind.TransactOpts, _pool common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactor) SetTokenPeg(opts *bind.TransactOpts, _tokenPeg *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) SetTreasury(opts *bind.TransactOpts, _treasury *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, ...) (*types.Transaction, error)
- func (_Mai *MaiTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactor) TransferVault(opts *bind.TransactOpts, vaultID *big.Int, to common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactor) WithdrawCollateral(opts *bind.TransactOpts, vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- type MaiTransactorRaw
- type MaiTransactorSession
- func (_Mai *MaiTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) BorrowToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) Burn(account common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) BuyRiskyVault(vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) ChangeEthPriceSource(ethPriceSourceAddress common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) CreateVault() (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) DepositCollateral(vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) DestroyVault(vaultID *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) PayBackToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) SetClosingFee(amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) SetDebtCeiling(amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) SetOpeningFee(amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) SetStabilityPool(_pool common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) SetTokenPeg(_tokenPeg *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) SetTreasury(_treasury *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) TransferVault(vaultID *big.Int, to common.Address) (*types.Transaction, error)
- func (_Mai *MaiTransactorSession) WithdrawCollateral(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
- type MaiTransfer
- type MaiTransferIterator
- type MaiTransferVault
- type MaiTransferVaultIterator
- type MaiWithdrawCollateral
- type MaiWithdrawCollateralIterator
- type OwnershipTransferred
- func (*OwnershipTransferred) Descriptor() ([]byte, []int)deprecated
- func (x *OwnershipTransferred) GetBlock() uint64
- func (x *OwnershipTransferred) GetIdx() uint64
- func (x *OwnershipTransferred) GetNewOwner() []byte
- func (x *OwnershipTransferred) GetPreviousOwner() []byte
- func (x *OwnershipTransferred) GetTs() *timestamppb.Timestamp
- func (x *OwnershipTransferred) GetTx() []byte
- func (*OwnershipTransferred) ProtoMessage()
- func (x *OwnershipTransferred) ProtoReflect() protoreflect.Message
- func (x *OwnershipTransferred) Reset()
- func (x *OwnershipTransferred) String() string
- type PayBackToken
- func (*PayBackToken) Descriptor() ([]byte, []int)deprecated
- func (x *PayBackToken) GetAmount() []byte
- func (x *PayBackToken) GetBlock() uint64
- func (x *PayBackToken) GetClosingFee() []byte
- func (x *PayBackToken) GetIdx() uint64
- func (x *PayBackToken) GetTs() *timestamppb.Timestamp
- func (x *PayBackToken) GetTx() []byte
- func (x *PayBackToken) GetVaultID() []byte
- func (*PayBackToken) ProtoMessage()
- func (x *PayBackToken) ProtoReflect() protoreflect.Message
- func (x *PayBackToken) Reset()
- func (x *PayBackToken) String() string
- type SmartContract
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetBlock() uint64
- func (x *Transfer) GetFrom() []byte
- func (x *Transfer) GetIdx() uint64
- func (x *Transfer) GetTo() []byte
- func (x *Transfer) GetTs() *timestamppb.Timestamp
- func (x *Transfer) GetTx() []byte
- func (x *Transfer) GetValue() []byte
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
- type TransferVault
- func (*TransferVault) Descriptor() ([]byte, []int)deprecated
- func (x *TransferVault) GetBlock() uint64
- func (x *TransferVault) GetFrom() []byte
- func (x *TransferVault) GetIdx() uint64
- func (x *TransferVault) GetTo() []byte
- func (x *TransferVault) GetTs() *timestamppb.Timestamp
- func (x *TransferVault) GetTx() []byte
- func (x *TransferVault) GetVaultID() []byte
- func (*TransferVault) ProtoMessage()
- func (x *TransferVault) ProtoReflect() protoreflect.Message
- func (x *TransferVault) Reset()
- func (x *TransferVault) String() string
- type WithdrawCollateral
- func (*WithdrawCollateral) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawCollateral) GetAmount() []byte
- func (x *WithdrawCollateral) GetBlock() uint64
- func (x *WithdrawCollateral) GetIdx() uint64
- func (x *WithdrawCollateral) GetTs() *timestamppb.Timestamp
- func (x *WithdrawCollateral) GetTx() []byte
- func (x *WithdrawCollateral) GetVaultID() []byte
- func (*WithdrawCollateral) ProtoMessage()
- func (x *WithdrawCollateral) ProtoReflect() protoreflect.Message
- func (x *WithdrawCollateral) Reset()
- func (x *WithdrawCollateral) String() string
Constants ¶
This section is empty.
Variables ¶
var File_mai_proto protoreflect.FileDescriptor
var MaiABI = MaiMetaData.ABI
MaiABI is the input ABI used to generate the binding from. Deprecated: Use MaiMetaData.ABI instead.
var MaiMetaData = &bind.MetaData{
ABI: "[{\"constant\":false,\"inputs\":[{\"name\":\"_tokenPeg\",\"type\":\"uint256\"}],\"name\":\"setTokenPeg\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"stabilityPool\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"ethPriceSourceAddress\",\"type\":\"address\"}],\"name\":\"changeEthPriceSource\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"borrowToken\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"closingFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"sender\",\"type\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"vaultOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"setClosingFee\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"},{\"name\":\"to\",\"type\":\"address\"}],\"name\":\"transferVault\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"ethPriceSource\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"createVault\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"treasury\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_treasury\",\"type\":\"uint256\"}],\"name\":\"setTreasury\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"openingFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawCollateral\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"payBackToken\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"}],\"name\":\"destroyVault\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"setOpeningFee\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getDebtCeiling\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getEthPriceSource\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"name\":\"setStabilityPool\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"vaultExistence\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getClosingFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"vaultCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getOpeningFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"setDebtCeiling\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"}],\"name\":\"depositCollateral\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"erc721\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getTokenPriceSource\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"tokenPeg\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"vaultID\",\"type\":\"uint256\"}],\"name\":\"buyRiskyVault\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"vaultDebt\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"vaultCollateral\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"debtCeiling\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"ethPriceSourceAddress\",\"type\":\"address\"},{\"name\":\"minimumCollateralPercentage\",\"type\":\"uint256\"},{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"symbol\",\"type\":\"string\"},{\"name\":\"vaultAddress\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"creator\",\"type\":\"address\"}],\"name\":\"CreateVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"}],\"name\":\"DestroyVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"to\",\"type\":\"address\"}],\"name\":\"TransferVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DepositCollateral\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawCollateral\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BorrowToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"closingFee\",\"type\":\"uint256\"}],\"name\":\"PayBackToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"vaultID\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amountPaid\",\"type\":\"uint256\"}],\"name\":\"BuyRiskyVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}]",
}
MaiMetaData contains all meta data concerning the Mai contract.
Functions ¶
This section is empty.
Types ¶
type Approval ¶
type Approval struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash Owner []byte `protobuf:"bytes,5,opt,name=Owner,proto3" json:"Owner,omitempty"` // address Spender []byte `protobuf:"bytes,6,opt,name=Spender,proto3" json:"Spender,omitempty"` // address Value []byte `protobuf:"bytes,7,opt,name=Value,proto3" json:"Value,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Approval) Descriptor
deprecated
func (*Approval) GetSpender ¶
func (*Approval) GetTs ¶
func (x *Approval) GetTs() *timestamppb.Timestamp
func (*Approval) ProtoMessage ¶
func (*Approval) ProtoMessage()
func (*Approval) ProtoReflect ¶
func (x *Approval) ProtoReflect() protoreflect.Message
type BorrowToken ¶
type BorrowToken struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 Amount []byte `protobuf:"bytes,6,opt,name=Amount,proto3" json:"Amount,omitempty"` // uint256 // contains filtered or unexported fields }
func (*BorrowToken) Descriptor
deprecated
func (*BorrowToken) Descriptor() ([]byte, []int)
Deprecated: Use BorrowToken.ProtoReflect.Descriptor instead.
func (*BorrowToken) GetAmount ¶
func (x *BorrowToken) GetAmount() []byte
func (*BorrowToken) GetBlock ¶
func (x *BorrowToken) GetBlock() uint64
func (*BorrowToken) GetIdx ¶
func (x *BorrowToken) GetIdx() uint64
func (*BorrowToken) GetTs ¶
func (x *BorrowToken) GetTs() *timestamppb.Timestamp
func (*BorrowToken) GetTx ¶
func (x *BorrowToken) GetTx() []byte
func (*BorrowToken) GetVaultID ¶
func (x *BorrowToken) GetVaultID() []byte
func (*BorrowToken) ProtoMessage ¶
func (*BorrowToken) ProtoMessage()
func (*BorrowToken) ProtoReflect ¶
func (x *BorrowToken) ProtoReflect() protoreflect.Message
func (*BorrowToken) Reset ¶
func (x *BorrowToken) Reset()
func (*BorrowToken) String ¶
func (x *BorrowToken) String() string
type BuyRiskyVault ¶
type BuyRiskyVault struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 Owner []byte `protobuf:"bytes,6,opt,name=Owner,proto3" json:"Owner,omitempty"` // address Buyer []byte `protobuf:"bytes,7,opt,name=Buyer,proto3" json:"Buyer,omitempty"` // address AmountPaid []byte `protobuf:"bytes,8,opt,name=AmountPaid,proto3" json:"AmountPaid,omitempty"` // uint256 // contains filtered or unexported fields }
func (*BuyRiskyVault) Descriptor
deprecated
func (*BuyRiskyVault) Descriptor() ([]byte, []int)
Deprecated: Use BuyRiskyVault.ProtoReflect.Descriptor instead.
func (*BuyRiskyVault) GetAmountPaid ¶
func (x *BuyRiskyVault) GetAmountPaid() []byte
func (*BuyRiskyVault) GetBlock ¶
func (x *BuyRiskyVault) GetBlock() uint64
func (*BuyRiskyVault) GetBuyer ¶
func (x *BuyRiskyVault) GetBuyer() []byte
func (*BuyRiskyVault) GetIdx ¶
func (x *BuyRiskyVault) GetIdx() uint64
func (*BuyRiskyVault) GetOwner ¶
func (x *BuyRiskyVault) GetOwner() []byte
func (*BuyRiskyVault) GetTs ¶
func (x *BuyRiskyVault) GetTs() *timestamppb.Timestamp
func (*BuyRiskyVault) GetTx ¶
func (x *BuyRiskyVault) GetTx() []byte
func (*BuyRiskyVault) GetVaultID ¶
func (x *BuyRiskyVault) GetVaultID() []byte
func (*BuyRiskyVault) ProtoMessage ¶
func (*BuyRiskyVault) ProtoMessage()
func (*BuyRiskyVault) ProtoReflect ¶
func (x *BuyRiskyVault) ProtoReflect() protoreflect.Message
func (*BuyRiskyVault) Reset ¶
func (x *BuyRiskyVault) Reset()
func (*BuyRiskyVault) String ¶
func (x *BuyRiskyVault) String() string
type CreateVault ¶
type CreateVault struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 Creator []byte `protobuf:"bytes,6,opt,name=Creator,proto3" json:"Creator,omitempty"` // address // contains filtered or unexported fields }
func (*CreateVault) Descriptor
deprecated
func (*CreateVault) Descriptor() ([]byte, []int)
Deprecated: Use CreateVault.ProtoReflect.Descriptor instead.
func (*CreateVault) GetBlock ¶
func (x *CreateVault) GetBlock() uint64
func (*CreateVault) GetCreator ¶
func (x *CreateVault) GetCreator() []byte
func (*CreateVault) GetIdx ¶
func (x *CreateVault) GetIdx() uint64
func (*CreateVault) GetTs ¶
func (x *CreateVault) GetTs() *timestamppb.Timestamp
func (*CreateVault) GetTx ¶
func (x *CreateVault) GetTx() []byte
func (*CreateVault) GetVaultID ¶
func (x *CreateVault) GetVaultID() []byte
func (*CreateVault) ProtoMessage ¶
func (*CreateVault) ProtoMessage()
func (*CreateVault) ProtoReflect ¶
func (x *CreateVault) ProtoReflect() protoreflect.Message
func (*CreateVault) Reset ¶
func (x *CreateVault) Reset()
func (*CreateVault) String ¶
func (x *CreateVault) String() string
type DepositCollateral ¶
type DepositCollateral struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 Amount []byte `protobuf:"bytes,6,opt,name=Amount,proto3" json:"Amount,omitempty"` // uint256 // contains filtered or unexported fields }
func (*DepositCollateral) Descriptor
deprecated
func (*DepositCollateral) Descriptor() ([]byte, []int)
Deprecated: Use DepositCollateral.ProtoReflect.Descriptor instead.
func (*DepositCollateral) GetAmount ¶
func (x *DepositCollateral) GetAmount() []byte
func (*DepositCollateral) GetBlock ¶
func (x *DepositCollateral) GetBlock() uint64
func (*DepositCollateral) GetIdx ¶
func (x *DepositCollateral) GetIdx() uint64
func (*DepositCollateral) GetTs ¶
func (x *DepositCollateral) GetTs() *timestamppb.Timestamp
func (*DepositCollateral) GetTx ¶
func (x *DepositCollateral) GetTx() []byte
func (*DepositCollateral) GetVaultID ¶
func (x *DepositCollateral) GetVaultID() []byte
func (*DepositCollateral) ProtoMessage ¶
func (*DepositCollateral) ProtoMessage()
func (*DepositCollateral) ProtoReflect ¶
func (x *DepositCollateral) ProtoReflect() protoreflect.Message
func (*DepositCollateral) Reset ¶
func (x *DepositCollateral) Reset()
func (*DepositCollateral) String ¶
func (x *DepositCollateral) String() string
type DestroyVault ¶
type DestroyVault struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 // contains filtered or unexported fields }
func (*DestroyVault) Descriptor
deprecated
func (*DestroyVault) Descriptor() ([]byte, []int)
Deprecated: Use DestroyVault.ProtoReflect.Descriptor instead.
func (*DestroyVault) GetBlock ¶
func (x *DestroyVault) GetBlock() uint64
func (*DestroyVault) GetIdx ¶
func (x *DestroyVault) GetIdx() uint64
func (*DestroyVault) GetTs ¶
func (x *DestroyVault) GetTs() *timestamppb.Timestamp
func (*DestroyVault) GetTx ¶
func (x *DestroyVault) GetTx() []byte
func (*DestroyVault) GetVaultID ¶
func (x *DestroyVault) GetVaultID() []byte
func (*DestroyVault) ProtoMessage ¶
func (*DestroyVault) ProtoMessage()
func (*DestroyVault) ProtoReflect ¶
func (x *DestroyVault) ProtoReflect() protoreflect.Message
func (*DestroyVault) Reset ¶
func (x *DestroyVault) Reset()
func (*DestroyVault) String ¶
func (x *DestroyVault) String() string
type Mai ¶
type Mai struct { MaiCaller // Read-only binding to the contract MaiTransactor // Write-only binding to the contract MaiFilterer // Log filterer for contract events }
Mai is an auto generated Go binding around an Ethereum contract.
type MaiApproval ¶
type MaiApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiApproval represents a Approval event raised by the Mai contract.
type MaiApprovalIterator ¶
type MaiApprovalIterator struct { Event *MaiApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Mai contract.
func (*MaiApprovalIterator) Close ¶
func (it *MaiApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiApprovalIterator) Error ¶
func (it *MaiApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiApprovalIterator) Next ¶
func (it *MaiApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiBorrowToken ¶
type MaiBorrowToken struct { VaultID *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiBorrowToken represents a BorrowToken event raised by the Mai contract.
type MaiBorrowTokenIterator ¶
type MaiBorrowTokenIterator struct { Event *MaiBorrowToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiBorrowTokenIterator is returned from FilterBorrowToken and is used to iterate over the raw logs and unpacked data for BorrowToken events raised by the Mai contract.
func (*MaiBorrowTokenIterator) Close ¶
func (it *MaiBorrowTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiBorrowTokenIterator) Error ¶
func (it *MaiBorrowTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiBorrowTokenIterator) Next ¶
func (it *MaiBorrowTokenIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiBuyRiskyVault ¶
type MaiBuyRiskyVault struct { VaultID *big.Int Owner common.Address Buyer common.Address AmountPaid *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiBuyRiskyVault represents a BuyRiskyVault event raised by the Mai contract.
type MaiBuyRiskyVaultIterator ¶
type MaiBuyRiskyVaultIterator struct { Event *MaiBuyRiskyVault // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiBuyRiskyVaultIterator is returned from FilterBuyRiskyVault and is used to iterate over the raw logs and unpacked data for BuyRiskyVault events raised by the Mai contract.
func (*MaiBuyRiskyVaultIterator) Close ¶
func (it *MaiBuyRiskyVaultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiBuyRiskyVaultIterator) Error ¶
func (it *MaiBuyRiskyVaultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiBuyRiskyVaultIterator) Next ¶
func (it *MaiBuyRiskyVaultIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiCaller ¶
type MaiCaller struct {
// contains filtered or unexported fields
}
MaiCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMaiCaller ¶
NewMaiCaller creates a new read-only instance of Mai, bound to a specific deployed contract.
func (*MaiCaller) Allowance ¶
func (_Mai *MaiCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*MaiCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MaiCaller) ClosingFee ¶
ClosingFee is a free data retrieval call binding the contract method 0x1c883e7b.
Solidity: function closingFee() view returns(uint256)
func (*MaiCaller) DebtCeiling ¶
DebtCeiling is a free data retrieval call binding the contract method 0xe1c84ea4.
Solidity: function debtCeiling() view returns(uint256)
func (*MaiCaller) Decimals ¶
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MaiCaller) Erc721 ¶
Erc721 is a free data retrieval call binding the contract method 0xbca6ce64.
Solidity: function erc721() view returns(address)
func (*MaiCaller) EthPriceSource ¶
EthPriceSource is a free data retrieval call binding the contract method 0x42f371c6.
Solidity: function ethPriceSource() view returns(address)
func (*MaiCaller) GetClosingFee ¶
GetClosingFee is a free data retrieval call binding the contract method 0xa5e98837.
Solidity: function getClosingFee() view returns(uint256)
func (*MaiCaller) GetDebtCeiling ¶
GetDebtCeiling is a free data retrieval call binding the contract method 0x94cd4ba7.
Solidity: function getDebtCeiling() view returns(uint256)
func (*MaiCaller) GetEthPriceSource ¶
GetEthPriceSource is a free data retrieval call binding the contract method 0x98c3f2db.
Solidity: function getEthPriceSource() view returns(uint256)
func (*MaiCaller) GetOpeningFee ¶
GetOpeningFee is a free data retrieval call binding the contract method 0xab806f15.
Solidity: function getOpeningFee() view returns(uint256)
func (*MaiCaller) GetTokenPriceSource ¶
GetTokenPriceSource is a free data retrieval call binding the contract method 0xcd44db1b.
Solidity: function getTokenPriceSource() view returns(uint256)
func (*MaiCaller) IsOwner ¶
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() view returns(bool)
func (*MaiCaller) Name ¶
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MaiCaller) OpeningFee ¶
OpeningFee is a free data retrieval call binding the contract method 0x728bbbb5.
Solidity: function openingFee() view returns(uint256)
func (*MaiCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MaiCaller) StabilityPool ¶
StabilityPool is a free data retrieval call binding the contract method 0x048c661d.
Solidity: function stabilityPool() view returns(address)
func (*MaiCaller) Symbol ¶
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MaiCaller) TokenPeg ¶
TokenPeg is a free data retrieval call binding the contract method 0xcdfedd63.
Solidity: function tokenPeg() view returns(uint256)
func (*MaiCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*MaiCaller) Treasury ¶
Treasury is a free data retrieval call binding the contract method 0x61d027b3.
Solidity: function treasury() view returns(uint256)
func (*MaiCaller) VaultCollateral ¶
VaultCollateral is a free data retrieval call binding the contract method 0xd4a9b2c5.
Solidity: function vaultCollateral(uint256 ) view returns(uint256)
func (*MaiCaller) VaultCount ¶
VaultCount is a free data retrieval call binding the contract method 0xa7c6a100.
Solidity: function vaultCount() view returns(uint256)
func (*MaiCaller) VaultDebt ¶
VaultDebt is a free data retrieval call binding the contract method 0xd310f49b.
Solidity: function vaultDebt(uint256 ) view returns(uint256)
func (*MaiCaller) VaultExistence ¶
VaultExistence is a free data retrieval call binding the contract method 0xa525323d.
Solidity: function vaultExistence(uint256 ) view returns(bool)
type MaiCallerRaw ¶
type MaiCallerRaw struct {
Contract *MaiCaller // Generic read-only contract binding to access the raw methods on
}
MaiCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MaiCallerRaw) Call ¶
func (_Mai *MaiCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type MaiCallerSession ¶
type MaiCallerSession struct { Contract *MaiCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MaiCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MaiCallerSession) Allowance ¶
func (_Mai *MaiCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*MaiCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MaiCallerSession) ClosingFee ¶
func (_Mai *MaiCallerSession) ClosingFee() (*big.Int, error)
ClosingFee is a free data retrieval call binding the contract method 0x1c883e7b.
Solidity: function closingFee() view returns(uint256)
func (*MaiCallerSession) DebtCeiling ¶
func (_Mai *MaiCallerSession) DebtCeiling() (*big.Int, error)
DebtCeiling is a free data retrieval call binding the contract method 0xe1c84ea4.
Solidity: function debtCeiling() view returns(uint256)
func (*MaiCallerSession) Decimals ¶
func (_Mai *MaiCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MaiCallerSession) Erc721 ¶
func (_Mai *MaiCallerSession) Erc721() (common.Address, error)
Erc721 is a free data retrieval call binding the contract method 0xbca6ce64.
Solidity: function erc721() view returns(address)
func (*MaiCallerSession) EthPriceSource ¶
func (_Mai *MaiCallerSession) EthPriceSource() (common.Address, error)
EthPriceSource is a free data retrieval call binding the contract method 0x42f371c6.
Solidity: function ethPriceSource() view returns(address)
func (*MaiCallerSession) GetClosingFee ¶
func (_Mai *MaiCallerSession) GetClosingFee() (*big.Int, error)
GetClosingFee is a free data retrieval call binding the contract method 0xa5e98837.
Solidity: function getClosingFee() view returns(uint256)
func (*MaiCallerSession) GetDebtCeiling ¶
func (_Mai *MaiCallerSession) GetDebtCeiling() (*big.Int, error)
GetDebtCeiling is a free data retrieval call binding the contract method 0x94cd4ba7.
Solidity: function getDebtCeiling() view returns(uint256)
func (*MaiCallerSession) GetEthPriceSource ¶
func (_Mai *MaiCallerSession) GetEthPriceSource() (*big.Int, error)
GetEthPriceSource is a free data retrieval call binding the contract method 0x98c3f2db.
Solidity: function getEthPriceSource() view returns(uint256)
func (*MaiCallerSession) GetOpeningFee ¶
func (_Mai *MaiCallerSession) GetOpeningFee() (*big.Int, error)
GetOpeningFee is a free data retrieval call binding the contract method 0xab806f15.
Solidity: function getOpeningFee() view returns(uint256)
func (*MaiCallerSession) GetTokenPriceSource ¶
func (_Mai *MaiCallerSession) GetTokenPriceSource() (*big.Int, error)
GetTokenPriceSource is a free data retrieval call binding the contract method 0xcd44db1b.
Solidity: function getTokenPriceSource() view returns(uint256)
func (*MaiCallerSession) IsOwner ¶
func (_Mai *MaiCallerSession) IsOwner() (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() view returns(bool)
func (*MaiCallerSession) Name ¶
func (_Mai *MaiCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MaiCallerSession) OpeningFee ¶
func (_Mai *MaiCallerSession) OpeningFee() (*big.Int, error)
OpeningFee is a free data retrieval call binding the contract method 0x728bbbb5.
Solidity: function openingFee() view returns(uint256)
func (*MaiCallerSession) Owner ¶
func (_Mai *MaiCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MaiCallerSession) StabilityPool ¶
func (_Mai *MaiCallerSession) StabilityPool() (common.Address, error)
StabilityPool is a free data retrieval call binding the contract method 0x048c661d.
Solidity: function stabilityPool() view returns(address)
func (*MaiCallerSession) Symbol ¶
func (_Mai *MaiCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MaiCallerSession) TokenPeg ¶
func (_Mai *MaiCallerSession) TokenPeg() (*big.Int, error)
TokenPeg is a free data retrieval call binding the contract method 0xcdfedd63.
Solidity: function tokenPeg() view returns(uint256)
func (*MaiCallerSession) TotalSupply ¶
func (_Mai *MaiCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*MaiCallerSession) Treasury ¶
func (_Mai *MaiCallerSession) Treasury() (*big.Int, error)
Treasury is a free data retrieval call binding the contract method 0x61d027b3.
Solidity: function treasury() view returns(uint256)
func (*MaiCallerSession) VaultCollateral ¶
VaultCollateral is a free data retrieval call binding the contract method 0xd4a9b2c5.
Solidity: function vaultCollateral(uint256 ) view returns(uint256)
func (*MaiCallerSession) VaultCount ¶
func (_Mai *MaiCallerSession) VaultCount() (*big.Int, error)
VaultCount is a free data retrieval call binding the contract method 0xa7c6a100.
Solidity: function vaultCount() view returns(uint256)
func (*MaiCallerSession) VaultDebt ¶
VaultDebt is a free data retrieval call binding the contract method 0xd310f49b.
Solidity: function vaultDebt(uint256 ) view returns(uint256)
func (*MaiCallerSession) VaultExistence ¶
func (_Mai *MaiCallerSession) VaultExistence(arg0 *big.Int) (bool, error)
VaultExistence is a free data retrieval call binding the contract method 0xa525323d.
Solidity: function vaultExistence(uint256 ) view returns(bool)
func (*MaiCallerSession) VaultOwner ¶
VaultOwner is a free data retrieval call binding the contract method 0x3c2ecfe5.
Solidity: function vaultOwner(uint256 ) view returns(address)
type MaiCreateVault ¶
type MaiCreateVault struct { VaultID *big.Int Creator common.Address Raw types.Log // Blockchain specific contextual infos }
MaiCreateVault represents a CreateVault event raised by the Mai contract.
type MaiCreateVaultIterator ¶
type MaiCreateVaultIterator struct { Event *MaiCreateVault // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiCreateVaultIterator is returned from FilterCreateVault and is used to iterate over the raw logs and unpacked data for CreateVault events raised by the Mai contract.
func (*MaiCreateVaultIterator) Close ¶
func (it *MaiCreateVaultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiCreateVaultIterator) Error ¶
func (it *MaiCreateVaultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiCreateVaultIterator) Next ¶
func (it *MaiCreateVaultIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiDepositCollateral ¶
type MaiDepositCollateral struct { VaultID *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiDepositCollateral represents a DepositCollateral event raised by the Mai contract.
type MaiDepositCollateralIterator ¶
type MaiDepositCollateralIterator struct { Event *MaiDepositCollateral // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiDepositCollateralIterator is returned from FilterDepositCollateral and is used to iterate over the raw logs and unpacked data for DepositCollateral events raised by the Mai contract.
func (*MaiDepositCollateralIterator) Close ¶
func (it *MaiDepositCollateralIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiDepositCollateralIterator) Error ¶
func (it *MaiDepositCollateralIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiDepositCollateralIterator) Next ¶
func (it *MaiDepositCollateralIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiDestroyVault ¶
type MaiDestroyVault struct { VaultID *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiDestroyVault represents a DestroyVault event raised by the Mai contract.
type MaiDestroyVaultIterator ¶
type MaiDestroyVaultIterator struct { Event *MaiDestroyVault // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiDestroyVaultIterator is returned from FilterDestroyVault and is used to iterate over the raw logs and unpacked data for DestroyVault events raised by the Mai contract.
func (*MaiDestroyVaultIterator) Close ¶
func (it *MaiDestroyVaultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiDestroyVaultIterator) Error ¶
func (it *MaiDestroyVaultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiDestroyVaultIterator) Next ¶
func (it *MaiDestroyVaultIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiFilterer ¶
type MaiFilterer struct {
// contains filtered or unexported fields
}
MaiFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMaiFilterer ¶
func NewMaiFilterer(address common.Address, filterer bind.ContractFilterer) (*MaiFilterer, error)
NewMaiFilterer creates a new log filterer instance of Mai, bound to a specific deployed contract.
func (*MaiFilterer) FilterApproval ¶
func (_Mai *MaiFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MaiApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MaiFilterer) FilterBorrowToken ¶
func (_Mai *MaiFilterer) FilterBorrowToken(opts *bind.FilterOpts) (*MaiBorrowTokenIterator, error)
FilterBorrowToken is a free log retrieval operation binding the contract event 0x3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca.
Solidity: event BorrowToken(uint256 vaultID, uint256 amount)
func (*MaiFilterer) FilterBuyRiskyVault ¶
func (_Mai *MaiFilterer) FilterBuyRiskyVault(opts *bind.FilterOpts) (*MaiBuyRiskyVaultIterator, error)
FilterBuyRiskyVault is a free log retrieval operation binding the contract event 0xd5f2917d6c1a1057183be88f3f1c867cf597030f2cd1197a2fdfe1f51376d0cb.
Solidity: event BuyRiskyVault(uint256 vaultID, address owner, address buyer, uint256 amountPaid)
func (*MaiFilterer) FilterCreateVault ¶
func (_Mai *MaiFilterer) FilterCreateVault(opts *bind.FilterOpts) (*MaiCreateVaultIterator, error)
FilterCreateVault is a free log retrieval operation binding the contract event 0x8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804.
Solidity: event CreateVault(uint256 vaultID, address creator)
func (*MaiFilterer) FilterDepositCollateral ¶
func (_Mai *MaiFilterer) FilterDepositCollateral(opts *bind.FilterOpts) (*MaiDepositCollateralIterator, error)
FilterDepositCollateral is a free log retrieval operation binding the contract event 0x52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d.
Solidity: event DepositCollateral(uint256 vaultID, uint256 amount)
func (*MaiFilterer) FilterDestroyVault ¶
func (_Mai *MaiFilterer) FilterDestroyVault(opts *bind.FilterOpts) (*MaiDestroyVaultIterator, error)
FilterDestroyVault is a free log retrieval operation binding the contract event 0x4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465.
Solidity: event DestroyVault(uint256 vaultID)
func (*MaiFilterer) FilterOwnershipTransferred ¶
func (_Mai *MaiFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MaiOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MaiFilterer) FilterPayBackToken ¶
func (_Mai *MaiFilterer) FilterPayBackToken(opts *bind.FilterOpts) (*MaiPayBackTokenIterator, error)
FilterPayBackToken is a free log retrieval operation binding the contract event 0x31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac.
Solidity: event PayBackToken(uint256 vaultID, uint256 amount, uint256 closingFee)
func (*MaiFilterer) FilterTransfer ¶
func (_Mai *MaiFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MaiTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MaiFilterer) FilterTransferVault ¶
func (_Mai *MaiFilterer) FilterTransferVault(opts *bind.FilterOpts) (*MaiTransferVaultIterator, error)
FilterTransferVault is a free log retrieval operation binding the contract event 0xa8159d062909288cfe1bc71a9cb71a800664f2658fc2588d52676a844f1b0f13.
Solidity: event TransferVault(uint256 vaultID, address from, address to)
func (*MaiFilterer) FilterWithdrawCollateral ¶
func (_Mai *MaiFilterer) FilterWithdrawCollateral(opts *bind.FilterOpts) (*MaiWithdrawCollateralIterator, error)
FilterWithdrawCollateral is a free log retrieval operation binding the contract event 0x6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9.
Solidity: event WithdrawCollateral(uint256 vaultID, uint256 amount)
func (*MaiFilterer) ParseApproval ¶
func (_Mai *MaiFilterer) ParseApproval(log types.Log) (*MaiApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MaiFilterer) ParseBorrowToken ¶
func (_Mai *MaiFilterer) ParseBorrowToken(log types.Log) (*MaiBorrowToken, error)
ParseBorrowToken is a log parse operation binding the contract event 0x3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca.
Solidity: event BorrowToken(uint256 vaultID, uint256 amount)
func (*MaiFilterer) ParseBuyRiskyVault ¶
func (_Mai *MaiFilterer) ParseBuyRiskyVault(log types.Log) (*MaiBuyRiskyVault, error)
ParseBuyRiskyVault is a log parse operation binding the contract event 0xd5f2917d6c1a1057183be88f3f1c867cf597030f2cd1197a2fdfe1f51376d0cb.
Solidity: event BuyRiskyVault(uint256 vaultID, address owner, address buyer, uint256 amountPaid)
func (*MaiFilterer) ParseCreateVault ¶
func (_Mai *MaiFilterer) ParseCreateVault(log types.Log) (*MaiCreateVault, error)
ParseCreateVault is a log parse operation binding the contract event 0x8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804.
Solidity: event CreateVault(uint256 vaultID, address creator)
func (*MaiFilterer) ParseDepositCollateral ¶
func (_Mai *MaiFilterer) ParseDepositCollateral(log types.Log) (*MaiDepositCollateral, error)
ParseDepositCollateral is a log parse operation binding the contract event 0x52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d.
Solidity: event DepositCollateral(uint256 vaultID, uint256 amount)
func (*MaiFilterer) ParseDestroyVault ¶
func (_Mai *MaiFilterer) ParseDestroyVault(log types.Log) (*MaiDestroyVault, error)
ParseDestroyVault is a log parse operation binding the contract event 0x4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465.
Solidity: event DestroyVault(uint256 vaultID)
func (*MaiFilterer) ParseOwnershipTransferred ¶
func (_Mai *MaiFilterer) ParseOwnershipTransferred(log types.Log) (*MaiOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MaiFilterer) ParsePayBackToken ¶
func (_Mai *MaiFilterer) ParsePayBackToken(log types.Log) (*MaiPayBackToken, error)
ParsePayBackToken is a log parse operation binding the contract event 0x31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac.
Solidity: event PayBackToken(uint256 vaultID, uint256 amount, uint256 closingFee)
func (*MaiFilterer) ParseTransfer ¶
func (_Mai *MaiFilterer) ParseTransfer(log types.Log) (*MaiTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MaiFilterer) ParseTransferVault ¶
func (_Mai *MaiFilterer) ParseTransferVault(log types.Log) (*MaiTransferVault, error)
ParseTransferVault is a log parse operation binding the contract event 0xa8159d062909288cfe1bc71a9cb71a800664f2658fc2588d52676a844f1b0f13.
Solidity: event TransferVault(uint256 vaultID, address from, address to)
func (*MaiFilterer) ParseWithdrawCollateral ¶
func (_Mai *MaiFilterer) ParseWithdrawCollateral(log types.Log) (*MaiWithdrawCollateral, error)
ParseWithdrawCollateral is a log parse operation binding the contract event 0x6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9.
Solidity: event WithdrawCollateral(uint256 vaultID, uint256 amount)
func (*MaiFilterer) WatchApproval ¶
func (_Mai *MaiFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MaiApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MaiFilterer) WatchBorrowToken ¶
func (_Mai *MaiFilterer) WatchBorrowToken(opts *bind.WatchOpts, sink chan<- *MaiBorrowToken) (event.Subscription, error)
WatchBorrowToken is a free log subscription operation binding the contract event 0x3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca.
Solidity: event BorrowToken(uint256 vaultID, uint256 amount)
func (*MaiFilterer) WatchBuyRiskyVault ¶
func (_Mai *MaiFilterer) WatchBuyRiskyVault(opts *bind.WatchOpts, sink chan<- *MaiBuyRiskyVault) (event.Subscription, error)
WatchBuyRiskyVault is a free log subscription operation binding the contract event 0xd5f2917d6c1a1057183be88f3f1c867cf597030f2cd1197a2fdfe1f51376d0cb.
Solidity: event BuyRiskyVault(uint256 vaultID, address owner, address buyer, uint256 amountPaid)
func (*MaiFilterer) WatchCreateVault ¶
func (_Mai *MaiFilterer) WatchCreateVault(opts *bind.WatchOpts, sink chan<- *MaiCreateVault) (event.Subscription, error)
WatchCreateVault is a free log subscription operation binding the contract event 0x8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804.
Solidity: event CreateVault(uint256 vaultID, address creator)
func (*MaiFilterer) WatchDepositCollateral ¶
func (_Mai *MaiFilterer) WatchDepositCollateral(opts *bind.WatchOpts, sink chan<- *MaiDepositCollateral) (event.Subscription, error)
WatchDepositCollateral is a free log subscription operation binding the contract event 0x52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d.
Solidity: event DepositCollateral(uint256 vaultID, uint256 amount)
func (*MaiFilterer) WatchDestroyVault ¶
func (_Mai *MaiFilterer) WatchDestroyVault(opts *bind.WatchOpts, sink chan<- *MaiDestroyVault) (event.Subscription, error)
WatchDestroyVault is a free log subscription operation binding the contract event 0x4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465.
Solidity: event DestroyVault(uint256 vaultID)
func (*MaiFilterer) WatchOwnershipTransferred ¶
func (_Mai *MaiFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MaiOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*MaiFilterer) WatchPayBackToken ¶
func (_Mai *MaiFilterer) WatchPayBackToken(opts *bind.WatchOpts, sink chan<- *MaiPayBackToken) (event.Subscription, error)
WatchPayBackToken is a free log subscription operation binding the contract event 0x31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac.
Solidity: event PayBackToken(uint256 vaultID, uint256 amount, uint256 closingFee)
func (*MaiFilterer) WatchTransfer ¶
func (_Mai *MaiFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MaiTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MaiFilterer) WatchTransferVault ¶
func (_Mai *MaiFilterer) WatchTransferVault(opts *bind.WatchOpts, sink chan<- *MaiTransferVault) (event.Subscription, error)
WatchTransferVault is a free log subscription operation binding the contract event 0xa8159d062909288cfe1bc71a9cb71a800664f2658fc2588d52676a844f1b0f13.
Solidity: event TransferVault(uint256 vaultID, address from, address to)
func (*MaiFilterer) WatchWithdrawCollateral ¶
func (_Mai *MaiFilterer) WatchWithdrawCollateral(opts *bind.WatchOpts, sink chan<- *MaiWithdrawCollateral) (event.Subscription, error)
WatchWithdrawCollateral is a free log subscription operation binding the contract event 0x6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9.
Solidity: event WithdrawCollateral(uint256 vaultID, uint256 amount)
type MaiOwnershipTransferred ¶
type MaiOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
MaiOwnershipTransferred represents a OwnershipTransferred event raised by the Mai contract.
type MaiOwnershipTransferredIterator ¶
type MaiOwnershipTransferredIterator struct { Event *MaiOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Mai contract.
func (*MaiOwnershipTransferredIterator) Close ¶
func (it *MaiOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiOwnershipTransferredIterator) Error ¶
func (it *MaiOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiOwnershipTransferredIterator) Next ¶
func (it *MaiOwnershipTransferredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiPayBackToken ¶
type MaiPayBackToken struct { VaultID *big.Int Amount *big.Int ClosingFee *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiPayBackToken represents a PayBackToken event raised by the Mai contract.
type MaiPayBackTokenIterator ¶
type MaiPayBackTokenIterator struct { Event *MaiPayBackToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiPayBackTokenIterator is returned from FilterPayBackToken and is used to iterate over the raw logs and unpacked data for PayBackToken events raised by the Mai contract.
func (*MaiPayBackTokenIterator) Close ¶
func (it *MaiPayBackTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiPayBackTokenIterator) Error ¶
func (it *MaiPayBackTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiPayBackTokenIterator) Next ¶
func (it *MaiPayBackTokenIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiRaw ¶
type MaiRaw struct {
Contract *Mai // Generic contract binding to access the raw methods on
}
MaiRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MaiRaw) Call ¶
func (_Mai *MaiRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*MaiRaw) Transact ¶
func (_Mai *MaiRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MaiRaw) Transfer ¶
func (_Mai *MaiRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MaiSession ¶
type MaiSession struct { Contract *Mai // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MaiSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MaiSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*MaiSession) Approve ¶
func (_Mai *MaiSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*MaiSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MaiSession) BorrowToken ¶
func (_Mai *MaiSession) BorrowToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
BorrowToken is a paid mutator transaction binding the contract method 0x08ec5927.
Solidity: function borrowToken(uint256 vaultID, uint256 amount) returns()
func (*MaiSession) Burn ¶
func (_Mai *MaiSession) Burn(account common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address account, uint256 amount) returns()
func (*MaiSession) BuyRiskyVault ¶
func (_Mai *MaiSession) BuyRiskyVault(vaultID *big.Int) (*types.Transaction, error)
BuyRiskyVault is a paid mutator transaction binding the contract method 0xce77f243.
Solidity: function buyRiskyVault(uint256 vaultID) returns()
func (*MaiSession) ChangeEthPriceSource ¶
func (_Mai *MaiSession) ChangeEthPriceSource(ethPriceSourceAddress common.Address) (*types.Transaction, error)
ChangeEthPriceSource is a paid mutator transaction binding the contract method 0x07960532.
Solidity: function changeEthPriceSource(address ethPriceSourceAddress) returns()
func (*MaiSession) ClosingFee ¶
func (_Mai *MaiSession) ClosingFee() (*big.Int, error)
ClosingFee is a free data retrieval call binding the contract method 0x1c883e7b.
Solidity: function closingFee() view returns(uint256)
func (*MaiSession) CreateVault ¶
func (_Mai *MaiSession) CreateVault() (*types.Transaction, error)
CreateVault is a paid mutator transaction binding the contract method 0x5d12928b.
Solidity: function createVault() returns(uint256)
func (*MaiSession) DebtCeiling ¶
func (_Mai *MaiSession) DebtCeiling() (*big.Int, error)
DebtCeiling is a free data retrieval call binding the contract method 0xe1c84ea4.
Solidity: function debtCeiling() view returns(uint256)
func (*MaiSession) Decimals ¶
func (_Mai *MaiSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MaiSession) DecreaseAllowance ¶
func (_Mai *MaiSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*MaiSession) DepositCollateral ¶
func (_Mai *MaiSession) DepositCollateral(vaultID *big.Int) (*types.Transaction, error)
DepositCollateral is a paid mutator transaction binding the contract method 0xbad4a01f.
Solidity: function depositCollateral(uint256 vaultID) payable returns()
func (*MaiSession) DestroyVault ¶
func (_Mai *MaiSession) DestroyVault(vaultID *big.Int) (*types.Transaction, error)
DestroyVault is a paid mutator transaction binding the contract method 0x85e290a3.
Solidity: function destroyVault(uint256 vaultID) returns()
func (*MaiSession) Erc721 ¶
func (_Mai *MaiSession) Erc721() (common.Address, error)
Erc721 is a free data retrieval call binding the contract method 0xbca6ce64.
Solidity: function erc721() view returns(address)
func (*MaiSession) EthPriceSource ¶
func (_Mai *MaiSession) EthPriceSource() (common.Address, error)
EthPriceSource is a free data retrieval call binding the contract method 0x42f371c6.
Solidity: function ethPriceSource() view returns(address)
func (*MaiSession) GetClosingFee ¶
func (_Mai *MaiSession) GetClosingFee() (*big.Int, error)
GetClosingFee is a free data retrieval call binding the contract method 0xa5e98837.
Solidity: function getClosingFee() view returns(uint256)
func (*MaiSession) GetDebtCeiling ¶
func (_Mai *MaiSession) GetDebtCeiling() (*big.Int, error)
GetDebtCeiling is a free data retrieval call binding the contract method 0x94cd4ba7.
Solidity: function getDebtCeiling() view returns(uint256)
func (*MaiSession) GetEthPriceSource ¶
func (_Mai *MaiSession) GetEthPriceSource() (*big.Int, error)
GetEthPriceSource is a free data retrieval call binding the contract method 0x98c3f2db.
Solidity: function getEthPriceSource() view returns(uint256)
func (*MaiSession) GetOpeningFee ¶
func (_Mai *MaiSession) GetOpeningFee() (*big.Int, error)
GetOpeningFee is a free data retrieval call binding the contract method 0xab806f15.
Solidity: function getOpeningFee() view returns(uint256)
func (*MaiSession) GetTokenPriceSource ¶
func (_Mai *MaiSession) GetTokenPriceSource() (*big.Int, error)
GetTokenPriceSource is a free data retrieval call binding the contract method 0xcd44db1b.
Solidity: function getTokenPriceSource() view returns(uint256)
func (*MaiSession) IncreaseAllowance ¶
func (_Mai *MaiSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*MaiSession) IsOwner ¶
func (_Mai *MaiSession) IsOwner() (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() view returns(bool)
func (*MaiSession) Mint ¶
func (_Mai *MaiSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address account, uint256 amount) returns()
func (*MaiSession) Name ¶
func (_Mai *MaiSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MaiSession) OpeningFee ¶
func (_Mai *MaiSession) OpeningFee() (*big.Int, error)
OpeningFee is a free data retrieval call binding the contract method 0x728bbbb5.
Solidity: function openingFee() view returns(uint256)
func (*MaiSession) Owner ¶
func (_Mai *MaiSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*MaiSession) PayBackToken ¶
func (_Mai *MaiSession) PayBackToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
PayBackToken is a paid mutator transaction binding the contract method 0x85af3c16.
Solidity: function payBackToken(uint256 vaultID, uint256 amount) returns()
func (*MaiSession) RenounceOwnership ¶
func (_Mai *MaiSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MaiSession) SetClosingFee ¶
func (_Mai *MaiSession) SetClosingFee(amount *big.Int) (*types.Transaction, error)
SetClosingFee is a paid mutator transaction binding the contract method 0x3db99177.
Solidity: function setClosingFee(uint256 amount) returns()
func (*MaiSession) SetDebtCeiling ¶
func (_Mai *MaiSession) SetDebtCeiling(amount *big.Int) (*types.Transaction, error)
SetDebtCeiling is a paid mutator transaction binding the contract method 0xb1511cc9.
Solidity: function setDebtCeiling(uint256 amount) returns()
func (*MaiSession) SetOpeningFee ¶
func (_Mai *MaiSession) SetOpeningFee(amount *big.Int) (*types.Transaction, error)
SetOpeningFee is a paid mutator transaction binding the contract method 0x86375994.
Solidity: function setOpeningFee(uint256 amount) returns()
func (*MaiSession) SetStabilityPool ¶
func (_Mai *MaiSession) SetStabilityPool(_pool common.Address) (*types.Transaction, error)
SetStabilityPool is a paid mutator transaction binding the contract method 0x98d721e0.
Solidity: function setStabilityPool(address _pool) returns()
func (*MaiSession) SetTokenPeg ¶
func (_Mai *MaiSession) SetTokenPeg(_tokenPeg *big.Int) (*types.Transaction, error)
SetTokenPeg is a paid mutator transaction binding the contract method 0x01e49d0a.
Solidity: function setTokenPeg(uint256 _tokenPeg) returns()
func (*MaiSession) SetTreasury ¶
func (_Mai *MaiSession) SetTreasury(_treasury *big.Int) (*types.Transaction, error)
SetTreasury is a paid mutator transaction binding the contract method 0x7139c929.
Solidity: function setTreasury(uint256 _treasury) returns()
func (*MaiSession) StabilityPool ¶
func (_Mai *MaiSession) StabilityPool() (common.Address, error)
StabilityPool is a free data retrieval call binding the contract method 0x048c661d.
Solidity: function stabilityPool() view returns(address)
func (*MaiSession) Symbol ¶
func (_Mai *MaiSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MaiSession) TokenPeg ¶
func (_Mai *MaiSession) TokenPeg() (*big.Int, error)
TokenPeg is a free data retrieval call binding the contract method 0xcdfedd63.
Solidity: function tokenPeg() view returns(uint256)
func (*MaiSession) TotalSupply ¶
func (_Mai *MaiSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*MaiSession) Transfer ¶
func (_Mai *MaiSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*MaiSession) TransferFrom ¶
func (_Mai *MaiSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
func (*MaiSession) TransferOwnership ¶
func (_Mai *MaiSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*MaiSession) TransferVault ¶
func (_Mai *MaiSession) TransferVault(vaultID *big.Int, to common.Address) (*types.Transaction, error)
TransferVault is a paid mutator transaction binding the contract method 0x3e61facd.
Solidity: function transferVault(uint256 vaultID, address to) returns()
func (*MaiSession) Treasury ¶
func (_Mai *MaiSession) Treasury() (*big.Int, error)
Treasury is a free data retrieval call binding the contract method 0x61d027b3.
Solidity: function treasury() view returns(uint256)
func (*MaiSession) VaultCollateral ¶
VaultCollateral is a free data retrieval call binding the contract method 0xd4a9b2c5.
Solidity: function vaultCollateral(uint256 ) view returns(uint256)
func (*MaiSession) VaultCount ¶
func (_Mai *MaiSession) VaultCount() (*big.Int, error)
VaultCount is a free data retrieval call binding the contract method 0xa7c6a100.
Solidity: function vaultCount() view returns(uint256)
func (*MaiSession) VaultDebt ¶
VaultDebt is a free data retrieval call binding the contract method 0xd310f49b.
Solidity: function vaultDebt(uint256 ) view returns(uint256)
func (*MaiSession) VaultExistence ¶
func (_Mai *MaiSession) VaultExistence(arg0 *big.Int) (bool, error)
VaultExistence is a free data retrieval call binding the contract method 0xa525323d.
Solidity: function vaultExistence(uint256 ) view returns(bool)
func (*MaiSession) VaultOwner ¶
VaultOwner is a free data retrieval call binding the contract method 0x3c2ecfe5.
Solidity: function vaultOwner(uint256 ) view returns(address)
func (*MaiSession) WithdrawCollateral ¶
func (_Mai *MaiSession) WithdrawCollateral(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
WithdrawCollateral is a paid mutator transaction binding the contract method 0x767a7b05.
Solidity: function withdrawCollateral(uint256 vaultID, uint256 amount) returns()
type MaiTransactor ¶
type MaiTransactor struct {
// contains filtered or unexported fields
}
MaiTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMaiTransactor ¶
func NewMaiTransactor(address common.Address, transactor bind.ContractTransactor) (*MaiTransactor, error)
NewMaiTransactor creates a new write-only instance of Mai, bound to a specific deployed contract.
func (*MaiTransactor) Approve ¶
func (_Mai *MaiTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*MaiTransactor) BorrowToken ¶
func (_Mai *MaiTransactor) BorrowToken(opts *bind.TransactOpts, vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
BorrowToken is a paid mutator transaction binding the contract method 0x08ec5927.
Solidity: function borrowToken(uint256 vaultID, uint256 amount) returns()
func (*MaiTransactor) Burn ¶
func (_Mai *MaiTransactor) Burn(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address account, uint256 amount) returns()
func (*MaiTransactor) BuyRiskyVault ¶
func (_Mai *MaiTransactor) BuyRiskyVault(opts *bind.TransactOpts, vaultID *big.Int) (*types.Transaction, error)
BuyRiskyVault is a paid mutator transaction binding the contract method 0xce77f243.
Solidity: function buyRiskyVault(uint256 vaultID) returns()
func (*MaiTransactor) ChangeEthPriceSource ¶
func (_Mai *MaiTransactor) ChangeEthPriceSource(opts *bind.TransactOpts, ethPriceSourceAddress common.Address) (*types.Transaction, error)
ChangeEthPriceSource is a paid mutator transaction binding the contract method 0x07960532.
Solidity: function changeEthPriceSource(address ethPriceSourceAddress) returns()
func (*MaiTransactor) CreateVault ¶
func (_Mai *MaiTransactor) CreateVault(opts *bind.TransactOpts) (*types.Transaction, error)
CreateVault is a paid mutator transaction binding the contract method 0x5d12928b.
Solidity: function createVault() returns(uint256)
func (*MaiTransactor) DecreaseAllowance ¶
func (_Mai *MaiTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*MaiTransactor) DepositCollateral ¶
func (_Mai *MaiTransactor) DepositCollateral(opts *bind.TransactOpts, vaultID *big.Int) (*types.Transaction, error)
DepositCollateral is a paid mutator transaction binding the contract method 0xbad4a01f.
Solidity: function depositCollateral(uint256 vaultID) payable returns()
func (*MaiTransactor) DestroyVault ¶
func (_Mai *MaiTransactor) DestroyVault(opts *bind.TransactOpts, vaultID *big.Int) (*types.Transaction, error)
DestroyVault is a paid mutator transaction binding the contract method 0x85e290a3.
Solidity: function destroyVault(uint256 vaultID) returns()
func (*MaiTransactor) IncreaseAllowance ¶
func (_Mai *MaiTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*MaiTransactor) Mint ¶
func (_Mai *MaiTransactor) Mint(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address account, uint256 amount) returns()
func (*MaiTransactor) PayBackToken ¶
func (_Mai *MaiTransactor) PayBackToken(opts *bind.TransactOpts, vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
PayBackToken is a paid mutator transaction binding the contract method 0x85af3c16.
Solidity: function payBackToken(uint256 vaultID, uint256 amount) returns()
func (*MaiTransactor) RenounceOwnership ¶
func (_Mai *MaiTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MaiTransactor) SetClosingFee ¶
func (_Mai *MaiTransactor) SetClosingFee(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
SetClosingFee is a paid mutator transaction binding the contract method 0x3db99177.
Solidity: function setClosingFee(uint256 amount) returns()
func (*MaiTransactor) SetDebtCeiling ¶
func (_Mai *MaiTransactor) SetDebtCeiling(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
SetDebtCeiling is a paid mutator transaction binding the contract method 0xb1511cc9.
Solidity: function setDebtCeiling(uint256 amount) returns()
func (*MaiTransactor) SetOpeningFee ¶
func (_Mai *MaiTransactor) SetOpeningFee(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
SetOpeningFee is a paid mutator transaction binding the contract method 0x86375994.
Solidity: function setOpeningFee(uint256 amount) returns()
func (*MaiTransactor) SetStabilityPool ¶
func (_Mai *MaiTransactor) SetStabilityPool(opts *bind.TransactOpts, _pool common.Address) (*types.Transaction, error)
SetStabilityPool is a paid mutator transaction binding the contract method 0x98d721e0.
Solidity: function setStabilityPool(address _pool) returns()
func (*MaiTransactor) SetTokenPeg ¶
func (_Mai *MaiTransactor) SetTokenPeg(opts *bind.TransactOpts, _tokenPeg *big.Int) (*types.Transaction, error)
SetTokenPeg is a paid mutator transaction binding the contract method 0x01e49d0a.
Solidity: function setTokenPeg(uint256 _tokenPeg) returns()
func (*MaiTransactor) SetTreasury ¶
func (_Mai *MaiTransactor) SetTreasury(opts *bind.TransactOpts, _treasury *big.Int) (*types.Transaction, error)
SetTreasury is a paid mutator transaction binding the contract method 0x7139c929.
Solidity: function setTreasury(uint256 _treasury) returns()
func (*MaiTransactor) Transfer ¶
func (_Mai *MaiTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*MaiTransactor) TransferFrom ¶
func (_Mai *MaiTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
func (*MaiTransactor) TransferOwnership ¶
func (_Mai *MaiTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*MaiTransactor) TransferVault ¶
func (_Mai *MaiTransactor) TransferVault(opts *bind.TransactOpts, vaultID *big.Int, to common.Address) (*types.Transaction, error)
TransferVault is a paid mutator transaction binding the contract method 0x3e61facd.
Solidity: function transferVault(uint256 vaultID, address to) returns()
func (*MaiTransactor) WithdrawCollateral ¶
func (_Mai *MaiTransactor) WithdrawCollateral(opts *bind.TransactOpts, vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
WithdrawCollateral is a paid mutator transaction binding the contract method 0x767a7b05.
Solidity: function withdrawCollateral(uint256 vaultID, uint256 amount) returns()
type MaiTransactorRaw ¶
type MaiTransactorRaw struct {
Contract *MaiTransactor // Generic write-only contract binding to access the raw methods on
}
MaiTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MaiTransactorRaw) Transact ¶
func (_Mai *MaiTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MaiTransactorRaw) Transfer ¶
func (_Mai *MaiTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MaiTransactorSession ¶
type MaiTransactorSession struct { Contract *MaiTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MaiTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MaiTransactorSession) Approve ¶
func (_Mai *MaiTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*MaiTransactorSession) BorrowToken ¶
func (_Mai *MaiTransactorSession) BorrowToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
BorrowToken is a paid mutator transaction binding the contract method 0x08ec5927.
Solidity: function borrowToken(uint256 vaultID, uint256 amount) returns()
func (*MaiTransactorSession) Burn ¶
func (_Mai *MaiTransactorSession) Burn(account common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address account, uint256 amount) returns()
func (*MaiTransactorSession) BuyRiskyVault ¶
func (_Mai *MaiTransactorSession) BuyRiskyVault(vaultID *big.Int) (*types.Transaction, error)
BuyRiskyVault is a paid mutator transaction binding the contract method 0xce77f243.
Solidity: function buyRiskyVault(uint256 vaultID) returns()
func (*MaiTransactorSession) ChangeEthPriceSource ¶
func (_Mai *MaiTransactorSession) ChangeEthPriceSource(ethPriceSourceAddress common.Address) (*types.Transaction, error)
ChangeEthPriceSource is a paid mutator transaction binding the contract method 0x07960532.
Solidity: function changeEthPriceSource(address ethPriceSourceAddress) returns()
func (*MaiTransactorSession) CreateVault ¶
func (_Mai *MaiTransactorSession) CreateVault() (*types.Transaction, error)
CreateVault is a paid mutator transaction binding the contract method 0x5d12928b.
Solidity: function createVault() returns(uint256)
func (*MaiTransactorSession) DecreaseAllowance ¶
func (_Mai *MaiTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*MaiTransactorSession) DepositCollateral ¶
func (_Mai *MaiTransactorSession) DepositCollateral(vaultID *big.Int) (*types.Transaction, error)
DepositCollateral is a paid mutator transaction binding the contract method 0xbad4a01f.
Solidity: function depositCollateral(uint256 vaultID) payable returns()
func (*MaiTransactorSession) DestroyVault ¶
func (_Mai *MaiTransactorSession) DestroyVault(vaultID *big.Int) (*types.Transaction, error)
DestroyVault is a paid mutator transaction binding the contract method 0x85e290a3.
Solidity: function destroyVault(uint256 vaultID) returns()
func (*MaiTransactorSession) IncreaseAllowance ¶
func (_Mai *MaiTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*MaiTransactorSession) Mint ¶
func (_Mai *MaiTransactorSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address account, uint256 amount) returns()
func (*MaiTransactorSession) PayBackToken ¶
func (_Mai *MaiTransactorSession) PayBackToken(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
PayBackToken is a paid mutator transaction binding the contract method 0x85af3c16.
Solidity: function payBackToken(uint256 vaultID, uint256 amount) returns()
func (*MaiTransactorSession) RenounceOwnership ¶
func (_Mai *MaiTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*MaiTransactorSession) SetClosingFee ¶
func (_Mai *MaiTransactorSession) SetClosingFee(amount *big.Int) (*types.Transaction, error)
SetClosingFee is a paid mutator transaction binding the contract method 0x3db99177.
Solidity: function setClosingFee(uint256 amount) returns()
func (*MaiTransactorSession) SetDebtCeiling ¶
func (_Mai *MaiTransactorSession) SetDebtCeiling(amount *big.Int) (*types.Transaction, error)
SetDebtCeiling is a paid mutator transaction binding the contract method 0xb1511cc9.
Solidity: function setDebtCeiling(uint256 amount) returns()
func (*MaiTransactorSession) SetOpeningFee ¶
func (_Mai *MaiTransactorSession) SetOpeningFee(amount *big.Int) (*types.Transaction, error)
SetOpeningFee is a paid mutator transaction binding the contract method 0x86375994.
Solidity: function setOpeningFee(uint256 amount) returns()
func (*MaiTransactorSession) SetStabilityPool ¶
func (_Mai *MaiTransactorSession) SetStabilityPool(_pool common.Address) (*types.Transaction, error)
SetStabilityPool is a paid mutator transaction binding the contract method 0x98d721e0.
Solidity: function setStabilityPool(address _pool) returns()
func (*MaiTransactorSession) SetTokenPeg ¶
func (_Mai *MaiTransactorSession) SetTokenPeg(_tokenPeg *big.Int) (*types.Transaction, error)
SetTokenPeg is a paid mutator transaction binding the contract method 0x01e49d0a.
Solidity: function setTokenPeg(uint256 _tokenPeg) returns()
func (*MaiTransactorSession) SetTreasury ¶
func (_Mai *MaiTransactorSession) SetTreasury(_treasury *big.Int) (*types.Transaction, error)
SetTreasury is a paid mutator transaction binding the contract method 0x7139c929.
Solidity: function setTreasury(uint256 _treasury) returns()
func (*MaiTransactorSession) Transfer ¶
func (_Mai *MaiTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*MaiTransactorSession) TransferFrom ¶
func (_Mai *MaiTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
func (*MaiTransactorSession) TransferOwnership ¶
func (_Mai *MaiTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*MaiTransactorSession) TransferVault ¶
func (_Mai *MaiTransactorSession) TransferVault(vaultID *big.Int, to common.Address) (*types.Transaction, error)
TransferVault is a paid mutator transaction binding the contract method 0x3e61facd.
Solidity: function transferVault(uint256 vaultID, address to) returns()
func (*MaiTransactorSession) WithdrawCollateral ¶
func (_Mai *MaiTransactorSession) WithdrawCollateral(vaultID *big.Int, amount *big.Int) (*types.Transaction, error)
WithdrawCollateral is a paid mutator transaction binding the contract method 0x767a7b05.
Solidity: function withdrawCollateral(uint256 vaultID, uint256 amount) returns()
type MaiTransfer ¶
type MaiTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiTransfer represents a Transfer event raised by the Mai contract.
type MaiTransferIterator ¶
type MaiTransferIterator struct { Event *MaiTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Mai contract.
func (*MaiTransferIterator) Close ¶
func (it *MaiTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiTransferIterator) Error ¶
func (it *MaiTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiTransferIterator) Next ¶
func (it *MaiTransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiTransferVault ¶
type MaiTransferVault struct { VaultID *big.Int From common.Address To common.Address Raw types.Log // Blockchain specific contextual infos }
MaiTransferVault represents a TransferVault event raised by the Mai contract.
type MaiTransferVaultIterator ¶
type MaiTransferVaultIterator struct { Event *MaiTransferVault // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiTransferVaultIterator is returned from FilterTransferVault and is used to iterate over the raw logs and unpacked data for TransferVault events raised by the Mai contract.
func (*MaiTransferVaultIterator) Close ¶
func (it *MaiTransferVaultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiTransferVaultIterator) Error ¶
func (it *MaiTransferVaultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiTransferVaultIterator) Next ¶
func (it *MaiTransferVaultIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type MaiWithdrawCollateral ¶
type MaiWithdrawCollateral struct { VaultID *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
MaiWithdrawCollateral represents a WithdrawCollateral event raised by the Mai contract.
type MaiWithdrawCollateralIterator ¶
type MaiWithdrawCollateralIterator struct { Event *MaiWithdrawCollateral // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MaiWithdrawCollateralIterator is returned from FilterWithdrawCollateral and is used to iterate over the raw logs and unpacked data for WithdrawCollateral events raised by the Mai contract.
func (*MaiWithdrawCollateralIterator) Close ¶
func (it *MaiWithdrawCollateralIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MaiWithdrawCollateralIterator) Error ¶
func (it *MaiWithdrawCollateralIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MaiWithdrawCollateralIterator) Next ¶
func (it *MaiWithdrawCollateralIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type OwnershipTransferred ¶
type OwnershipTransferred struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash PreviousOwner []byte `protobuf:"bytes,5,opt,name=PreviousOwner,proto3" json:"PreviousOwner,omitempty"` // address NewOwner []byte `protobuf:"bytes,6,opt,name=NewOwner,proto3" json:"NewOwner,omitempty"` // address // contains filtered or unexported fields }
func (*OwnershipTransferred) Descriptor
deprecated
func (*OwnershipTransferred) Descriptor() ([]byte, []int)
Deprecated: Use OwnershipTransferred.ProtoReflect.Descriptor instead.
func (*OwnershipTransferred) GetBlock ¶
func (x *OwnershipTransferred) GetBlock() uint64
func (*OwnershipTransferred) GetIdx ¶
func (x *OwnershipTransferred) GetIdx() uint64
func (*OwnershipTransferred) GetNewOwner ¶
func (x *OwnershipTransferred) GetNewOwner() []byte
func (*OwnershipTransferred) GetPreviousOwner ¶
func (x *OwnershipTransferred) GetPreviousOwner() []byte
func (*OwnershipTransferred) GetTs ¶
func (x *OwnershipTransferred) GetTs() *timestamppb.Timestamp
func (*OwnershipTransferred) GetTx ¶
func (x *OwnershipTransferred) GetTx() []byte
func (*OwnershipTransferred) ProtoMessage ¶
func (*OwnershipTransferred) ProtoMessage()
func (*OwnershipTransferred) ProtoReflect ¶
func (x *OwnershipTransferred) ProtoReflect() protoreflect.Message
func (*OwnershipTransferred) Reset ¶
func (x *OwnershipTransferred) Reset()
func (*OwnershipTransferred) String ¶
func (x *OwnershipTransferred) String() string
type PayBackToken ¶
type PayBackToken struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 Amount []byte `protobuf:"bytes,6,opt,name=Amount,proto3" json:"Amount,omitempty"` // uint256 ClosingFee []byte `protobuf:"bytes,7,opt,name=ClosingFee,proto3" json:"ClosingFee,omitempty"` // uint256 // contains filtered or unexported fields }
func (*PayBackToken) Descriptor
deprecated
func (*PayBackToken) Descriptor() ([]byte, []int)
Deprecated: Use PayBackToken.ProtoReflect.Descriptor instead.
func (*PayBackToken) GetAmount ¶
func (x *PayBackToken) GetAmount() []byte
func (*PayBackToken) GetBlock ¶
func (x *PayBackToken) GetBlock() uint64
func (*PayBackToken) GetClosingFee ¶
func (x *PayBackToken) GetClosingFee() []byte
func (*PayBackToken) GetIdx ¶
func (x *PayBackToken) GetIdx() uint64
func (*PayBackToken) GetTs ¶
func (x *PayBackToken) GetTs() *timestamppb.Timestamp
func (*PayBackToken) GetTx ¶
func (x *PayBackToken) GetTx() []byte
func (*PayBackToken) GetVaultID ¶
func (x *PayBackToken) GetVaultID() []byte
func (*PayBackToken) ProtoMessage ¶
func (*PayBackToken) ProtoMessage()
func (*PayBackToken) ProtoReflect ¶
func (x *PayBackToken) ProtoReflect() protoreflect.Message
func (*PayBackToken) Reset ¶
func (x *PayBackToken) Reset()
func (*PayBackToken) String ¶
func (x *PayBackToken) String() string
type SmartContract ¶
type SmartContract struct{}
type Transfer ¶
type Transfer struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash From []byte `protobuf:"bytes,5,opt,name=From,proto3" json:"From,omitempty"` // address To []byte `protobuf:"bytes,6,opt,name=To,proto3" json:"To,omitempty"` // address Value []byte `protobuf:"bytes,7,opt,name=Value,proto3" json:"Value,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Transfer) Descriptor
deprecated
func (*Transfer) GetTs ¶
func (x *Transfer) GetTs() *timestamppb.Timestamp
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message
type TransferVault ¶
type TransferVault struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 From []byte `protobuf:"bytes,6,opt,name=From,proto3" json:"From,omitempty"` // address To []byte `protobuf:"bytes,7,opt,name=To,proto3" json:"To,omitempty"` // address // contains filtered or unexported fields }
func (*TransferVault) Descriptor
deprecated
func (*TransferVault) Descriptor() ([]byte, []int)
Deprecated: Use TransferVault.ProtoReflect.Descriptor instead.
func (*TransferVault) GetBlock ¶
func (x *TransferVault) GetBlock() uint64
func (*TransferVault) GetFrom ¶
func (x *TransferVault) GetFrom() []byte
func (*TransferVault) GetIdx ¶
func (x *TransferVault) GetIdx() uint64
func (*TransferVault) GetTo ¶
func (x *TransferVault) GetTo() []byte
func (*TransferVault) GetTs ¶
func (x *TransferVault) GetTs() *timestamppb.Timestamp
func (*TransferVault) GetTx ¶
func (x *TransferVault) GetTx() []byte
func (*TransferVault) GetVaultID ¶
func (x *TransferVault) GetVaultID() []byte
func (*TransferVault) ProtoMessage ¶
func (*TransferVault) ProtoMessage()
func (*TransferVault) ProtoReflect ¶
func (x *TransferVault) ProtoReflect() protoreflect.Message
func (*TransferVault) Reset ¶
func (x *TransferVault) Reset()
func (*TransferVault) String ¶
func (x *TransferVault) String() string
type WithdrawCollateral ¶
type WithdrawCollateral struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` // block number Idx uint64 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"` // log index Tx []byte `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // tx hash VaultID []byte `protobuf:"bytes,5,opt,name=VaultID,proto3" json:"VaultID,omitempty"` // uint256 Amount []byte `protobuf:"bytes,6,opt,name=Amount,proto3" json:"Amount,omitempty"` // uint256 // contains filtered or unexported fields }
func (*WithdrawCollateral) Descriptor
deprecated
func (*WithdrawCollateral) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawCollateral.ProtoReflect.Descriptor instead.
func (*WithdrawCollateral) GetAmount ¶
func (x *WithdrawCollateral) GetAmount() []byte
func (*WithdrawCollateral) GetBlock ¶
func (x *WithdrawCollateral) GetBlock() uint64
func (*WithdrawCollateral) GetIdx ¶
func (x *WithdrawCollateral) GetIdx() uint64
func (*WithdrawCollateral) GetTs ¶
func (x *WithdrawCollateral) GetTs() *timestamppb.Timestamp
func (*WithdrawCollateral) GetTx ¶
func (x *WithdrawCollateral) GetTx() []byte
func (*WithdrawCollateral) GetVaultID ¶
func (x *WithdrawCollateral) GetVaultID() []byte
func (*WithdrawCollateral) ProtoMessage ¶
func (*WithdrawCollateral) ProtoMessage()
func (*WithdrawCollateral) ProtoReflect ¶
func (x *WithdrawCollateral) ProtoReflect() protoreflect.Message
func (*WithdrawCollateral) Reset ¶
func (x *WithdrawCollateral) Reset()
func (*WithdrawCollateral) String ¶
func (x *WithdrawCollateral) String() string