Skip to content

Commit

Permalink
[PVM][Dependencies] AddDepositOffer / caminoethvm v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed Jul 6, 2023
1 parent bd84aba commit fadf074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ var (
TransactionTypeMultisigAlias TransactionType = RegisterTransactionTypeCustom + 9
TransactionTypeClaimReward TransactionType = RegisterTransactionTypeCustom + 10
TransactionTypeRewardsImport TransactionType = RegisterTransactionTypeCustom + 11
TransactionTypeAddDepositOffer TransactionType = RegisterTransactionTypeCustom + 15

ResultTypeTransaction SearchResultType = "transaction"
ResultTypeAsset SearchResultType = "asset"
Expand Down Expand Up @@ -153,6 +154,8 @@ func (t TransactionType) String() string {
return "claim"
case TransactionTypeRewardsImport:
return "rewards"
case TransactionTypeAddDepositOffer:
return "add_deposit_offer"
default:
return TypeUnknown
}
Expand Down
3 changes: 3 additions & 0 deletions services/indexes/pvm/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ func (w *Writer) indexTransaction(ctx services.ConsumerCtx, blkID ids.ID, tx *tx
Outs: castTx.Outs,
}
typ = models.TransactionTypeCaminoRewardValidator
case *txs.AddDepositOfferTx:
baseTx = castTx.BaseTx.BaseTx
typ = models.TransactionTypeAddDepositOffer
default:
return fmt.Errorf("unknown tx type %T", castTx)
}
Expand Down

0 comments on commit fadf074

Please sign in to comment.