6 "github.com/vapor/claim/rpc"
7 claimtx "github.com/vapor/claim/rpc/bytom"
10 func (a *API) claimPeginTx(ctx context.Context, ins rpc.ClaimTxParam) Response {
12 c := &claimtx.BytomClaimTx{
17 resp, err := c.ClaimPeginTx(ctx)
20 return NewErrorResponse(err)
23 return NewSuccessResponse(resp)
26 func (a *API) claimContractPeginTx(ctx context.Context, ins rpc.ClaimTxParam) Response {
27 c := &claimtx.BytomClaimTx{
32 resp, err := c.ClaimContractPeginTx(ctx)
35 return NewErrorResponse(err)
38 return NewSuccessResponse(resp)