OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / api / cliam_transact.go
diff --git a/api/cliam_transact.go b/api/cliam_transact.go
deleted file mode 100644 (file)
index 33af428..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package api
-
-import (
-       "context"
-
-       "github.com/vapor/claim/rpc"
-       claimtx "github.com/vapor/claim/rpc/bytom"
-)
-
-func (a *API) claimPeginTx(ctx context.Context, ins rpc.ClaimTxParam) Response {
-
-       c := &claimtx.BytomClaimTx{
-               ClaimTxParam: ins,
-               Wallet:       a.wallet,
-               Chain:        a.chain,
-       }
-       resp, err := c.ClaimPeginTx(ctx)
-
-       if err != nil {
-               return NewErrorResponse(err)
-       }
-
-       return NewSuccessResponse(resp)
-}
-
-func (a *API) claimContractPeginTx(ctx context.Context, ins rpc.ClaimTxParam) Response {
-       c := &claimtx.BytomClaimTx{
-               ClaimTxParam: ins,
-               Wallet:       a.wallet,
-               Chain:        a.chain,
-       }
-       resp, err := c.ClaimContractPeginTx(ctx)
-
-       if err != nil {
-               return NewErrorResponse(err)
-       }
-
-       return NewSuccessResponse(resp)
-}