diff --git a/models/types.go b/models/types.go index 2bf9a1f6..c1b9b1f7 100644 --- a/models/types.go +++ b/models/types.go @@ -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" @@ -153,6 +154,8 @@ func (t TransactionType) String() string { return "claim" case TransactionTypeRewardsImport: return "rewards" + case TransactionTypeAddDepositOffer: + return "add_deposit_offer" default: return TypeUnknown } diff --git a/services/indexes/pvm/writer.go b/services/indexes/pvm/writer.go index 3a9d4181..d8211ef2 100644 --- a/services/indexes/pvm/writer.go +++ b/services/indexes/pvm/writer.go @@ -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) }