Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abstract osmojs and stride package #7

Merged
merged 6 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@leapwallet/buffer-boba",
"description": "Buffer Boba is a library for decoding protocol buffers in the cosmos ecosystem.",
"version": "0.1.8",
"version": "0.1.9",
"repository": "https://github.com/leapwallet/buffer-boba",
"author": "Leap Wallet",
"license": "MIT",
Expand Down Expand Up @@ -50,16 +50,12 @@
"base64js": "1.0.1",
"cosmjs-types": "0.9.0",
"long": "5.2.0",
"osmojs": "16.5.1",
"protobufjs": "7.2.5",
"stridejs": "0.6.2"
"protobufjs": "7.2.5"
},
"peerDependencies": {
"@cosmjs/proto-signing": "0.31.x",
"osmojs": "16.5.x",
"protobufjs": "7.2.x",
"stridejs": "0.6.2",
"long": "5.2.x"
"long": "5.2.x",
"protobufjs": "7.2.x"
},
"resolutions": {
"long": "5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GeneratedType } from '@cosmjs/proto-signing'
import { Writer, Reader } from 'protobufjs'
import { Registry } from './registry'
import { convertToProtoFactory } from './util'
import { Any } from 'osmojs/dist/codegen/google/protobuf/any'
import { Any } from './proto/google/protobuf/any'

export type AnyWithUnpacked =
| Any
Expand Down
4 changes: 2 additions & 2 deletions src/decoder.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DirectSignDocDecoder } from './decoder'
import Long from 'long'
import { cosmos, cosmwasm } from 'osmojs'
import { stride } from 'stridejs'
import { cosmos, cosmwasm } from './proto/osmojs'
import { stride } from './proto/stridejs'
import { assert, describe, expect, it } from 'vitest'

const createSendSignDoc = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/msg-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
osmosisAminoConverters,
ibcAminoConverters,
cosmwasmAminoConverters
} from 'osmojs'
import { strideAminoConverters } from 'stridejs'
} from './proto/osmojs'
import { strideAminoConverters } from './proto/stridejs'

import type { AminoConverters } from './supported-modules'

Expand Down
Loading
Loading