From fadf074897a98dbf979a0035ff895609ec076c1c Mon Sep 17 00:00:00 2001 From: peak3d Date: Thu, 6 Jul 2023 16:39:56 +0200 Subject: [PATCH] [PVM][Dependencies] AddDepositOffer / caminoethvm v1.0.0 --- models/types.go | 3 +++ services/indexes/pvm/writer.go | 3 +++ 2 files changed, 6 insertions(+) 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) }