Skip to content

Commit

Permalink
Revert "fix: split tx registry to json file (#447)" (#469)
Browse files Browse the repository at this point in the history
This reverts commit d82a18f.
  • Loading branch information
peara authored Nov 7, 2023
1 parent d82a18f commit cc98d4a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
29 changes: 27 additions & 2 deletions src/services/crawl-tx/aura.registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ibc, cosmos } from '@aura-nw/aurajs';
import { toBase64, fromUtf8, fromBase64 } from '@cosmjs/encoding';
import { LoggerInstance } from 'moleculer';
import _ from 'lodash';
import txRegistryType from './registry-type/aura-network.json' assert { type: 'json' };
import { MSG_TYPE } from '../../common';
import Utils from '../../common/utils/utils';

Expand All @@ -28,7 +27,33 @@ export default class AuraRegistry {

// set default registry to decode msg
public setDefaultRegistry() {
const missingTypes = txRegistryType;
const missingTypes = [
// content proposal
'/cosmos.gov.v1beta1.MsgSubmitProposal',
'/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal',
'/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal',
'/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
'/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit',
'/cosmos.params.v1beta1.ParameterChangeProposal',
'/ibc.core.client.v1.UpgradeProposal',
'/ibc.core.client.v1.ClientUpdateProposal',
'/cosmos.params.v1beta1.ParameterChangeProposal',

// feegrant
'/cosmos.feegrant.v1beta1.BasicAllowance',
'/cosmos.feegrant.v1beta1.PeriodicAllowance',
'/cosmos.feegrant.v1beta1.AllowedContractAllowance',
'/cosmos.feegrant.v1beta1.AllowedMsgAllowance',
'/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount',

// ibc
'/ibc.lightclients.tendermint.v1.Header',
'/ibc.lightclients.tendermint.v1.ClientState',
'/ibc.lightclients.tendermint.v1.ConsensusState',

// slashing
'/cosmos.slashing.v1beta1.MsgUnjail',
];

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down
23 changes: 0 additions & 23 deletions src/services/crawl-tx/registry-type/aura-network.json

This file was deleted.

0 comments on commit cc98d4a

Please sign in to comment.