Skip to content

Commit fbd9195

Browse files
authored
Merge pull request #111 from lighthouse-web3/v0.3.3
V0.3.3
2 parents 369d3fd + 25e14b3 commit fbd9195

File tree

14 files changed

+64
-51
lines changed

14 files changed

+64
-51
lines changed

.github/workflows/node.js.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Node CI
52

63
on:
@@ -15,14 +12,16 @@ jobs:
1512

1613
strategy:
1714
matrix:
18-
node-version: [18.x]
15+
node-version: [20.x]
1916
steps:
20-
- name: Use Node.js ${{ matrix.node-version }} 🛎️
17+
- name: Checkout repository 🛎️
2118
uses: actions/checkout@v3
19+
20+
- name: Setup Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
cache: 'npm'
25-
persist-credentials: false
2625

2726
- name: Install 🔧
2827
run: npm install

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
- run: npm ci
1919
- run: npm run build
2020
- run: npm test
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v3
3131
- uses: actions/setup-node@v3
3232
with:
33-
node-version: 18
33+
node-version: 20
3434
registry-url: https://registry.npmjs.org/
3535
- run: npm ci
3636
- run: npm run build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Lighthouse <img src="https://img.shields.io/badge/BETA-v0.3.2-green"/>
1+
# Lighthouse <img src="https://img.shields.io/badge/BETA-v0.3.3-green"/>
22

33
Lighthouse is a permanent decentralized file storage protocol that allows the ability to pay once and store forever. While traditionally, users need to repeatedly keep track and pay for their storage after every fixed amount of time, Lighthouse manages this for them and makes sure that user files are stored forever. The aim is to move users from a rent-based cost model where they are renting their own files on cloud storage to a permanent ownership model. It is built on top of IPFS, Filecoin, and Polygon. It uses the existing miner network and storage capacity of the filecoin network.
44

package-lock.json

Lines changed: 28 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lighthouse-web3/sdk",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "NPM package and CLI tool to interact with lighthouse protocol",
55
"main": "./dist/Lighthouse/index.js",
66
"types": "./dist/Lighthouse/index.d.ts",
@@ -32,9 +32,9 @@
3232
},
3333
"license": "MIT",
3434
"dependencies": {
35-
"@lighthouse-web3/kavach": "^0.1.4",
35+
"@lighthouse-web3/kavach": "^0.1.6",
3636
"@peculiar/webcrypto": "^1.4.0",
37-
"axios": "^0.24.0",
37+
"axios": "^1.6.8",
3838
"bls-eth-wasm": "^1.0.4",
3939
"cli-spinner": "^0.2.10",
4040
"commander": "^10.0.0",

src/Commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Command.prototype.helpInformation = function (context: any) {
7272
}
7373

7474
widgets.addHelpText('before', 'Welcome to lighthouse-web3')
75-
widgets.version('0.3.2')
75+
widgets.version('0.3.3')
7676

7777
widgets
7878
.command('wallet')

src/Commands/utils/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export const sign_auth_message = async (privateKey: string) => {
77
const messageRequested = (
88
await lighthouse.getAuthMessage(signer.address.toLocaleLowerCase())
99
).data.message
10-
const signedMessage = await signer.signMessage(messageRequested)
10+
const signedMessage = await signer.signMessage(messageRequested as string)
1111
return signedMessage
1212
}

src/Lighthouse/encryption/applyAccessCondition.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { accessControl, ChainType } from '@lighthouse-web3/kavach'
1+
import { accessControl } from '@lighthouse-web3/kavach'
2+
import { ChainType } from '@lighthouse-web3/kavach/dist/types'
23

34
export type accessControlResponse = {
45
data: {

src/Lighthouse/encryption/getAuthMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getAuthMessage } from '@lighthouse-web3/kavach'
33

44
export type authMessageResponse = {
55
data: {
6-
message: string
6+
message: string | null
77
}
88
}
99

src/Lighthouse/tests/encryption.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const signAuthMessage = async (privateKey: string) => {
66
const signer = new ethers.Wallet(privateKey, provider)
77
const messageRequested = (await lighthouse.getAuthMessage(signer.address))
88
.data.message
9-
const signedMessage = await signer.signMessage(messageRequested)
9+
const signedMessage = await signer.signMessage(messageRequested as string)
1010
return signedMessage
1111
}
1212

@@ -43,7 +43,7 @@ describe('encryption', () => {
4343
signed_message
4444
)
4545
expect(typeof response.data.key).toBe('string')
46-
}, 60000)
46+
}, 80000)
4747

4848
it('should not fetch encryption key when incorrect public-private key pair is provided', async () => {
4949
try {

0 commit comments

Comments
 (0)