Skip to content

Commit

Permalink
feat(api): use all the types in indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed May 8, 2024
1 parent eadc869 commit 9103462
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions indexer/src/shared/utils/protobuf.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Registry, isTsProtoGeneratedType, GeneratedType } from "@cosmjs/proto-signing";
import { defaultRegistryTypes } from "@cosmjs/stargate";
import { MsgUnjail } from "cosmjs-types/cosmos/slashing/v1beta1/tx";
import omit from "lodash/omit";

import * as v1beta1 from "@akashnetwork/akash-api/v1beta1";
import * as v1beta2 from "@akashnetwork/akash-api/v1beta2";
Expand All @@ -11,7 +10,7 @@ import * as v1beta4 from "@akashnetwork/akash-api/v1beta4";
const akashTypes: ReadonlyArray<[string, GeneratedType]> = [
...Object.values(v1beta1),
...Object.values(v1beta2),
...Object.values(omit(v1beta3, 'DepositDeploymentAuthorization')),
...Object.values(v1beta3),
...Object.values(v1beta4)
].map((x) => ["/" + x.$type, x]);
const missingTypes: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail]];
Expand Down

0 comments on commit 9103462

Please sign in to comment.