Skip to content

Commit

Permalink
Merge pull request #26 from dipdup-io/fix/operation-types
Browse files Browse the repository at this point in the history
Fix: operation types
  • Loading branch information
aopoltorzhicky authored Feb 10, 2024
2 parents 9875f79 + f60d839 commit 19e4ca7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
36 changes: 0 additions & 36 deletions cmd/mempool/tzkt/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,6 @@ import (
"github.com/dipdup-net/go-lib/tzkt/events"
)

var toNodeKinds = map[string]string{
data.KindActivation: node.KindActivation,
data.KindBallot: node.KindBallot,
data.KindDelegation: node.KindDelegation,
data.KindDoubleBaking: node.KindDoubleBaking,
data.KindDoubleEndorsing: node.KindDoubleEndorsing,
data.KindEndorsement: node.KindEndorsement,
data.KindNonceRevelation: node.KindNonceRevelation,
data.KindOrigination: node.KindOrigination,
data.KindProposal: node.KindProposal,
data.KindReveal: node.KindReveal,
data.KindTransaction: node.KindTransaction,
data.KindRegisterGlobalConstant: node.KindRegisterGlobalConstant,
data.KindRollupDispatchTickets: node.KindTxRollupDispatchTickets,
data.KindRollupFinalizeCommitment: node.KindTxRollupFinalizeCommitment,
data.KindRollupReturnBond: node.KindTxRollupReturnBond,
data.KindRollupSubmitBatch: node.KindTxRollupSubmitBatch,
data.KindTransferTicket: node.KindTransferTicket,
data.KindTxRollupCommit: node.KindTxRollupCommit,
data.KindTxRollupOrigination: node.KindTxRollupOrigination,
data.KindTxRollupRejection: node.KindTxRollupRejection,
data.KindTxRollupRemoveCommitment: node.KindTxRollupRemoveCommitment,
data.KindSetDepositsLimit: node.KindSetDepositsLimit,
data.KindIncreasePaidStorage: node.KindIncreasePaidStorage,
data.KindVdfRevelation: node.KindVdfRevelation,
data.KindUpdateConsensusKey: node.KindUpdateConsensusKey,
data.KindDrainDelegate: node.KindDrainDelegate,
data.KindSrAddMessages: node.KindSrAddMessages,
data.KindSrCement: node.KindSrCement,
data.KindSrExecute: node.KindSrExecute,
data.KindSrOriginate: node.KindSrOriginate,
data.KindSrPublish: node.KindSrPublish,
data.KindSrRecoverBond: node.KindSrRecoverBond,
data.KindSrRefute: node.KindSrRefute,
}

var toTzKTKinds = map[string]string{
node.KindActivation: data.KindActivation,
node.KindBallot: data.KindBallot,
Expand Down
1 change: 0 additions & 1 deletion cmd/mempool/tzkt/tzkt.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ func (tzkt *TzKT) processOperation(model interface{}, message *OperationMessage)
if err != nil {
return err
}
operation.Type = toNodeKinds[operation.Type]
if value, ok := message.Hash.LoadOrStore(operation.Hash, operation); ok {
if stored, ok := value.(data.Operation); ok {
if operation.BakerFee != nil {
Expand Down

0 comments on commit 19e4ca7

Please sign in to comment.