Skip to content

Commit d7aabfd

Browse files
authored
Merge pull request #535 from LIT-Protocol/staging/v7
V7 Release
2 parents ded2c3f + d1c4879 commit d7aabfd

File tree

350 files changed

+9015
-24309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+9015
-24309
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ trim_trailing_whitespace = true
1111
[*.md]
1212
max_line_length = off
1313
trim_trailing_whitespace = false
14+
15+
[*.rs]
16+
indent_size = 4

.env.ci

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tinny ENV Vars
22
MAX_ATTEMTPS=1
3-
NETWORK=localchain
3+
NETWORK=custom
44
DEBUG=true
55
WAIT_FOR_KEY_INTERVAL=3000
66
TIME_TO_RELEASE_KEY=10000
@@ -16,4 +16,4 @@ STOP_TESTNET=false
1616
TESTNET_MANAGER_URL=http://127.0.0.1:8000
1717
USE_LIT_BINARIES=true
1818
LIT_NODE_BINARY_PATH=/usr/bin/lit_node
19-
LIT_ACTION_BINARY_PATH=/usr/bin/lit_actions
19+
LIT_ACTION_BINARY_PATH=/usr/bin/lit_actions

.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tinny ENV Vars
22
MAX_ATTEMPTS=1
3-
NETWORK=cayenne
3+
NETWORK=datil-dev
44
DEBUG=true
55
WAIT_FOR_KEY_INTERVAL=3000
66
LIT_OFFICAL_RPC=https://chain-rpc.litprotocol.com/http
@@ -18,4 +18,4 @@ STOP_TESTNET=false
1818
TESTNET_MANAGER_URL=http://0.0.0.0:8000
1919
USE_LIT_BINARIES=true
2020
LIT_NODE_BINARY_PATH=/path/to/lit_node/binary
21-
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary
21+
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules
2+
packages/wasm/rust/**/*
3+
packages/wasm/src/pkg/*

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"type"
6969
]
7070
}
71-
]
71+
],
72+
"no-throw-literal": "error"
7273
}
7374
}

.github/workflows/ci.yml

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- staging/**
1010
- feat/**
1111
- feature/**
12+
- staging/**
1213
jobs:
1314
unit-tests:
1415
runs-on: warp-ubuntu-latest-x64-16x
@@ -23,6 +24,12 @@ jobs:
2324
with:
2425
node-version: '20'
2526
cache: 'yarn'
27+
- name: Install rust
28+
uses: dtolnay/[email protected]
29+
- uses: jetli/[email protected]
30+
with:
31+
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
32+
version: 'latest'
2633
- name: Install project dependencies
2734
run: yarn --frozen-lockfile
2835
- uses: nrwl/nx-set-shas@v3
@@ -49,7 +56,7 @@ jobs:
4956
fetch-depth: 0
5057
repository: LIT-Protocol/lit-assets
5158
ref: ${{env.DATIL_COMMIT_HASH}}
52-
token: ${{secrets.GH_PAT}}
59+
token: ${{secrets.GH_PAT_FOR_SHIVA}}
5360
path: ${{ github.workspace }}/lit-assets/
5461
submodules: false
5562
sparse-checkout: |
@@ -62,17 +69,21 @@ jobs:
6269
working-directory: ${{github.workspace}}/lit-assets/blockchain/contracts
6370
- name: Docker login
6471
id: login
65-
run: docker login ghcr.io/ -u ${{secrets.GH_USER}} --password ${{secrets.GH_PAT}}
72+
run: docker login ghcr.io/ -u ${{ github.actor }} --password ${{secrets.GH_PAT_FOR_SHIVA}}
6673
- name: Pull Shiva Container
6774
id: shiva-pull
6875
run: docker pull ghcr.io/lit-protocol/shiva:latest
6976
- name: Run Shiva Container
7077
id: shiva-runner
71-
run: docker run -d -m 32g -p 8000:8000 -p 8545:8545 -p 7470:7470 -p 7471:7471 -p 7472:7472 -p 7473:7473 -p 7474:7474 -p 7475:7475 -v ${{github.workspace}}/lit-assets:/data -e GH_PAT=${{secrets.GH_PAT}} -e HASH=$DATIL_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest
78+
run: docker run -d -m 32g -p 8000:8000 -p 8545:8545 -p 7470:7470 -p 7471:7471 -p 7472:7472 -p 7473:7473 -p 7474:7474 -p 7475:7475 -v ${{github.workspace}}/lit-assets:/data -e GH_PAT=${{secrets.GH_PAT_FOR_SHIVA}} -e HASH=$DATIL_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest
7279
- name: Set up Node.js
7380
uses: actions/setup-node@v3
7481
with:
7582
node-version: '20'
83+
- uses: jetli/[email protected]
84+
with:
85+
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
86+
version: 'latest'
7687
- name: Install project dependencies
7788
run: yarn --frozen-lockfile
7889
- uses: nrwl/nx-set-shas@v3
@@ -95,4 +106,34 @@ jobs:
95106
run: docker stop shiva && docker rm shiva
96107
- name: Post Pull Shiva Image
97108
if: steps.shiva-pull.outputs.exit_code == 0
98-
run: docker rmi ghcr.io/lit-protocol/shiva
109+
run: docker rmi ghcr.io/lit-protocol/shiva
110+
ping-lit-configuration-guides:
111+
runs-on: ubuntu-latest
112+
# needs: [unit-tests, integration-tests] # Make sure this job runs after others complete
113+
steps:
114+
- name: Get PR labels
115+
id: pr-labels
116+
uses: actions/github-script@v6
117+
if: github.event_name == 'pull_request'
118+
with:
119+
script: |
120+
const labels = context.payload.pull_request.labels
121+
.map(label => label.name)
122+
.filter(name => name.startsWith('tag:'))
123+
.map(name => name.split(':')[1]);
124+
if (labels.length > 0) {
125+
core.setOutput('tag', labels[0]);
126+
} else {
127+
core.setOutput('skip', 'true');
128+
}
129+
- name: Trigger dependencies bot in lit-configuration-guides
130+
if: steps.pr-labels.outputs.skip != 'true'
131+
run: |
132+
TAG="${{ steps.pr-labels.outputs.tag }}"
133+
curl -X POST \
134+
-H "Accept: application/vnd.github.everest-preview+json" \
135+
-H "Authorization: token ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}" \
136+
https://api.github.com/repos/LIT-Protocol/lit-configuration-guides/dispatches \
137+
-d "{\"event_type\":\"dependency_update\", \"client_payload\": {\"labels\": [\"$TAG\"]}}"
138+
env:
139+
GH_PAT_LIT_CONFIGURATION_GUIDES_REPO: ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}

.github/workflows/lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
with:
1919
node-version: '18'
2020
cache: 'yarn'
21+
- name: Install rust
22+
uses: dtolnay/[email protected]
23+
- uses: jetli/[email protected]
24+
with:
25+
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
26+
version: 'latest'
2127
- name: Install project dependencies
2228
run: yarn install
2329
- name: Lint

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
/packages/*/dist
1313
.nx
1414
tools
15-
**/*/dist
15+
/packages/wasm/rust/*
16+
/packages/wasm/src/pkg/*
17+
**/*/dist

0 commit comments

Comments
 (0)