@stabilitydao/host 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm.yml +19 -0
- package/.github/workflows/prettier.yml +25 -0
- package/.github/workflows/test.yml +29 -0
- package/.prettierignore +4 -0
- package/.prettierrc +1 -0
- package/LICENSE +674 -0
- package/README.md +35 -0
- package/jest.config.js +9 -0
- package/logo.png +0 -0
- package/out/index.js +30 -0
- package/package.json +28 -0
- package/src/activity/builder.ts +141 -0
- package/src/activity/index.ts +34 -0
- package/src/agents.ts +31 -0
- package/src/api.ts +51 -0
- package/src/assets.ts +1579 -0
- package/src/chains.ts +604 -0
- package/src/host.ts +1212 -0
- package/src/index.ts +36 -0
- package/src/storage/daoMetaData.ts +312 -0
- package/src/storage/daos.ts +306 -0
- package/src/tokenlist.json +1938 -0
- package/tests/assets.test.ts +61 -0
- package/tests/chains.test.ts +22 -0
- package/tests/host.test.ts +811 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Publish Package to npmjs
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
# Setup .npmrc file to publish to npm
|
|
11
|
+
- uses: actions/setup-node@v4
|
|
12
|
+
with:
|
|
13
|
+
node-version: '20.x'
|
|
14
|
+
registry-url: 'https://registry.npmjs.org'
|
|
15
|
+
- run: yarn
|
|
16
|
+
- run: yarn build
|
|
17
|
+
- run: yarn publish --access public
|
|
18
|
+
env:
|
|
19
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Prettier check
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
pull_request: { }
|
|
7
|
+
workflow_dispatch: { }
|
|
8
|
+
jobs:
|
|
9
|
+
run:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
- name: Set up Node 18
|
|
15
|
+
uses: actions/setup-node@v3
|
|
16
|
+
with:
|
|
17
|
+
node-version: 18
|
|
18
|
+
- name: Run yarn install
|
|
19
|
+
uses: borales/actions-yarn@v4
|
|
20
|
+
with:
|
|
21
|
+
cmd: install
|
|
22
|
+
- name: Run prettier check
|
|
23
|
+
uses: borales/actions-yarn@v4
|
|
24
|
+
with:
|
|
25
|
+
cmd: prettier . --check
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Test and coverage
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
pull_request: { }
|
|
7
|
+
workflow_dispatch: { }
|
|
8
|
+
jobs:
|
|
9
|
+
run:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
- name: Set up Node 18
|
|
15
|
+
uses: actions/setup-node@v3
|
|
16
|
+
with:
|
|
17
|
+
node-version: 18
|
|
18
|
+
- name: Run yarn install
|
|
19
|
+
uses: borales/actions-yarn@v4
|
|
20
|
+
with:
|
|
21
|
+
cmd: install # will run `yarn install` command
|
|
22
|
+
- name: Run tests and collect coverage
|
|
23
|
+
uses: borales/actions-yarn@v4
|
|
24
|
+
with:
|
|
25
|
+
cmd: coverage # will run `yarn coverage` command
|
|
26
|
+
# - name: Upload coverage to Codecov
|
|
27
|
+
# uses: codecov/codecov-action@v4
|
|
28
|
+
# env:
|
|
29
|
+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|