Skip to content

Commit

Permalink
Merge branch 'release/v0.5.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
Luphia1984 committed Jun 20, 2023
2 parents 868a294 + 728385c commit 651a97f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import IBlockchain from "./src/interfaces/iblockchain";
import IConnector from "./src/interfaces/iconnector";
import IEnv from "./src/interfaces/ienv";
import IJSON from "./src/interfaces/ijson";
import WalletConnect from "@walletconnect/core";

declare class Lunar {
private static instance: Lunar;
Expand All @@ -19,6 +20,7 @@ declare class Lunar {
public isConnected: boolean;
public address: string;
public blockchain: IBlockchain;
public walletConnect: WalletConnect | undefined;

public constructor();
public resetEvents(): void;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cafeca/lunar",
"version": "0.5.7",
"version": "0.5.8",
"description": "Blockchain Connect Module",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -38,6 +38,7 @@
"homepage": "https://github.com/CAFECA-IO/Lunar#readme",
"dependencies": {
"@cafeca/keccak": "^0.8.8",
"@walletconnect/core": "^2.8.1",
"bignumber.js": "^9.1.1",
"elliptic": "^6.5.4",
"ethereumjs-util": "^7.1.5"
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { recoverAddress } from './libs/common';
import IJSON from './interfaces/ijson';
import { EventEmitter } from 'events';
import { keccak256 } from '@cafeca/keccak';
import WalletConnect from "@walletconnect/core";
// import { version } from '../package.json';

declare global {
Expand All @@ -23,10 +24,11 @@ declare global {
export class Lunar {
private static instance: Lunar;
// static version = `v${version}`;
public static version = `v0.5.7`;
public static version = `v0.5.8`;
public static Blockchains = Blockchains;
public static Wallets = Wallets;
public static keccak256 = keccak256;
public walletConnect: WalletConnect|undefined;

public static getInstance(): Lunar {
if (!Lunar.instance) {
Expand Down Expand Up @@ -58,6 +60,7 @@ export class Lunar {

constructor() {
this.connector = ConnectorFactory.create();
this.walletConnect = new WalletConnect();
}

public resetEvents() {
Expand Down

0 comments on commit 651a97f

Please sign in to comment.