Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/i483' into i483
Browse files Browse the repository at this point in the history
  • Loading branch information
oskin1 committed Oct 9, 2018
2 parents 1b283dd + 88529bb commit 009f36a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/scala/org/ergoplatform/api/WalletApiRoute.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import io.circe.Encoder
import org.ergoplatform.modifiers.mempool.ErgoTransaction
import org.ergoplatform.nodeView.ErgoReadersHolder.{GetReaders, Readers}
import org.ergoplatform.nodeView.wallet._
import org.ergoplatform.nodeView.wallet.requests.{PaymentRequest, PaymentRequestDecoder}
import org.ergoplatform.settings.ErgoSettings
import scorex.core.NodeViewHolder.ReceivableMessages.LocallyGeneratedTransaction
import scorex.core.api.http.ApiError.BadRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.ergoplatform.nodeView.history.ErgoHistory
import org.ergoplatform.nodeView.mempool.ErgoMemPool
import org.ergoplatform.nodeView.state.UtxoState
import org.ergoplatform.nodeView.wallet._
import org.ergoplatform.nodeView.wallet.requests.PaymentRequest
import org.ergoplatform.settings.ErgoSettings
import scorex.core.NodeViewHolder.ReceivableMessages.{GetDataFromCurrentView, LocallyGeneratedTransaction}
import scorex.core.network.NodeViewSynchronizer.ReceivableMessages.{SemanticallySuccessfulModifier, SuccessfulTransaction}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import akka.pattern.ask
import akka.util.Timeout
import org.ergoplatform.modifiers.mempool.ErgoTransaction
import org.ergoplatform.nodeView.wallet.ErgoWalletActor.{GenerateTransaction, ReadPublicKeys, ReadRandomPublicKey, ReadTrackedAddresses}
import org.ergoplatform.nodeView.wallet.requests.PaymentRequest
import scorex.core.transaction.wallet.VaultReader

import scala.concurrent.Future
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.ergoplatform.nodeView.wallet.requests

import org.ergoplatform.ErgoBoxCandidate
import org.ergoplatform.nodeView.wallet.ErgoAddress

case class AssetIssueRequest(address: ErgoAddress,
amount: Long,
name: String,
decimals: Int) {

def toBoxCandidate: ErgoBoxCandidate = ???
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package org.ergoplatform.nodeView.wallet
package org.ergoplatform.nodeView.wallet.requests

import io.circe.syntax._
import io.circe.{Decoder, Encoder, HCursor, Json}
import org.ergoplatform.ErgoBox.NonMandatoryRegisterId
import org.ergoplatform.modifiers.mempool.ErgoTransaction._
import org.ergoplatform.nodeView.wallet.{ErgoAddress, ErgoAddressEncoder}
import org.ergoplatform.settings.ErgoSettings
import org.ergoplatform.{ErgoBox, ErgoBoxCandidate}
import sigmastate.SType
Expand All @@ -23,7 +24,7 @@ case class PaymentRequest(address: ErgoAddress,

class PaymentRequestEncoder(settings: ErgoSettings) extends Encoder[PaymentRequest] {

implicit val addressEncoder = new ErgoAddressEncoder(settings).encoder
implicit val addressEncoder: Encoder[ErgoAddress] = new ErgoAddressEncoder(settings).encoder

def apply(request: PaymentRequest): Json = {
Json.obj(
Expand Down

0 comments on commit 009f36a

Please sign in to comment.