Skip to content

Commit

Permalink
Merge pull request #73 from formysister/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
formysister authored Apr 9, 2024
2 parents 2fafd40 + 4baae1a commit a819ea7
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multichain-wallet-sdk",
"version": "1.4.8",
"version": "1.4.9",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### 📡Supported Network List
- EVM based networks
- Solana
- BNB Beacon Chain
- BNB Beacon Chain (Temporarily disabled)

[Documentation](https://cybers-organization-5.gitbook.io/multichain-wallet-sdk-documentation)

Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EthereumWallet, SolanaWallet, BinanceWallet } from "./wallet_class"
import { EthereumWallet, SolanaWallet } from "./wallet_class"

// export = ({ EthereumWallet })
export { EthereumWallet, SolanaWallet, BinanceWallet }
export { EthereumWallet, SolanaWallet }
4 changes: 2 additions & 2 deletions src/wallet_class/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import EthereumWallet from "./ethereum"
import SolanaWallet from "./solana"
import BinanceWallet from "./binance"
// import BinanceWallet from "./binance"

export { EthereumWallet, SolanaWallet, BinanceWallet }
export { EthereumWallet, SolanaWallet }
46 changes: 23 additions & 23 deletions test/wallet.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import EthereumWallet from '../src/wallet_class/ethereum'
import { EthereumWallet, SolanaWallet, BinanceWallet } from "../src"
import { EthereumWallet, SolanaWallet } from "../src"
import SAMPLE_DATA from './sample_data'

jest.setTimeout(50000)
Expand Down Expand Up @@ -159,37 +159,37 @@ describe("Wallet Test", () => {
})
})

describe("BNB Beacon wallet test", () => {
let beaconWallet: BinanceWallet
// describe("BNB Beacon wallet test", () => {
// let beaconWallet: BinanceWallet

beforeAll(() => {
beaconWallet = new BinanceWallet()
})
// beforeAll(() => {
// beaconWallet = new BinanceWallet()
// })

it("Create wallet", () => {
const wallet = beaconWallet.createWallet()
// it("Create wallet", () => {
// const wallet = beaconWallet.createWallet()

expect(typeof wallet).toBe("object")
})
// expect(typeof wallet).toBe("object")
// })

it("Recover wallet", () => {
const wallet = beaconWallet.recoverWallet(SAMPLE_DATA.COMMON.MNEMONIC)
// it("Recover wallet", () => {
// const wallet = beaconWallet.recoverWallet(SAMPLE_DATA.COMMON.MNEMONIC)

expect(typeof wallet).toBe("object")
})
// expect(typeof wallet).toBe("object")
// })

it("Import account", () => {
const account = beaconWallet.importAccount(SAMPLE_DATA.BEACON.SAMPLE_PRIVATE_KEY)
// it("Import account", () => {
// const account = beaconWallet.importAccount(SAMPLE_DATA.BEACON.SAMPLE_PRIVATE_KEY)

expect(typeof account).toBe("object")
})
// expect(typeof account).toBe("object")
// })

it("Get balance", async () => {
const balance = await beaconWallet.getBalance(SAMPLE_DATA.BEACON.SAMPLE_SERVER_URL, "mainnet", SAMPLE_DATA.BEACON.SAMPLE_ADDRESS)
// it("Get balance", async () => {
// const balance = await beaconWallet.getBalance(SAMPLE_DATA.BEACON.SAMPLE_SERVER_URL, "mainnet", SAMPLE_DATA.BEACON.SAMPLE_ADDRESS)

expect(typeof balance).toBe("string")
})
})
// expect(typeof balance).toBe("string")
// })
// })

// describe("Bitcoin Wellet Test", () => {
// let bitcoinWallet: BitcoinWallet
Expand Down

0 comments on commit a819ea7

Please sign in to comment.