Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConversion ¶ added in v0.3.2
TODO: Constant rate to be replaced with conversion rate monitor Cut away the PLMNT fractions as planetmint only works with natural numbers
func VerifyAddress ¶ added in v0.3.0
verifyAddress verifies the integrity and prefix of a given address.
Types ¶
type ConversionRequest ¶
type ElementsClient ¶
type ElementsClient struct{}
func NewElementsClient ¶
func NewElementsClient() *ElementsClient
func (*ElementsClient) GetNewAddress ¶
func (ec *ElementsClient) GetNewAddress(url string, params []string) (address string, err error)
func (*ElementsClient) ListReceivedByAddress ¶
func (ec *ElementsClient) ListReceivedByAddress(url string, params []string) (receivedTx []types.ListReceivedByAddressResult, err error)
type IElementsClient ¶
type IPlanetmintClient ¶
type PlanetmintClient ¶
type PlanetmintClient struct{}
func NewPlanetmintClient ¶
func NewPlanetmintClient() *PlanetmintClient
func (*PlanetmintClient) CheckMintRequest ¶
func (pmc *PlanetmintClient) CheckMintRequest(txhash string) (mintRequest *daotypes.QueryGetMintRequestsByHashResponse, err error)
type R2PService ¶
type R2PService struct {
// contains filtered or unexported fields
}
func NewR2PService ¶
func NewR2PService(router *gin.Engine, pmClient IPlanetmintClient, eClient IElementsClient, db *leveldb.DB, logger log.AppLogger) *R2PService
func (*R2PService) ExecutePotentialConversion ¶
func (r2p *R2PService) ExecutePotentialConversion(conversion ConversionRequest) (deleteEntry bool, err error)
type ReceiveAddressResponse ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.