Skip to content

Commit

Permalink
Merge pull request #30 from leapwallet/main
Browse files Browse the repository at this point in the history
Lint fixes
  • Loading branch information
leapsamvel authored Aug 26, 2023
2 parents def7204 + b699774 commit 9daf4bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cosmos-snap-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/cosmos-snap-provider",
"version": "0.0.7",
"version": "0.0.8",
"repository": {
"url": "[email protected]:leapwallet/cosmos-metamask-snap.git"
},
Expand Down
13 changes: 12 additions & 1 deletion packages/snap/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StdSignDoc } from '@cosmjs/amino';
import { AminoMsg, StdFee } from '@cosmjs/amino';
import { OnRpcRequestHandler } from '@metamask/snaps-types';
import { panel } from '@metamask/snaps-ui';
import { SignDoc } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
Expand All @@ -22,6 +22,17 @@ export type RequestParams<T> = {
readonly chainId?: string;
};

export type StdSignDoc = {
readonly chain_id?: string;
readonly chainId?: string;
readonly account_number: string;
readonly accountNumber?: string;
readonly sequence: string;
readonly fee: StdFee;
readonly msgs: readonly AminoMsg[];
readonly memo: string;
};

/**
* Handle incoming JSON-RPC requests, sent through `wallet_invokeSnap`.
*
Expand Down

0 comments on commit 9daf4bb

Please sign in to comment.