Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Aug 28, 2024
2 parents 6118a8c + 0759dd0 commit d10c086
Show file tree
Hide file tree
Showing 24 changed files with 4,604 additions and 5,548 deletions.
18 changes: 0 additions & 18 deletions .eslintrc

This file was deleted.

54 changes: 23 additions & 31 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ concurrency:
cancel-in-progress: true

jobs:
build:
name: Build
build-and-lint:
name: Build and Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
scope: "@subtopia-algo"
cache: "npm"
cache-dependency-path: ./package-lock.json
Expand All @@ -37,34 +37,16 @@ jobs:
- name: Run build
run: npm run build

lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
scope: "@subtopia-algo"
cache: "npm"
cache-dependency-path: ./package-lock.json

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint:scripts
run: npm run lint

unit-tests:
name: Integration tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18, 20]
node: [20]
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -75,7 +57,7 @@ jobs:
ssh-key: ${{ secrets.PRIVATE_SSH_KEY }}
repository: subtopia-algo/subtopia-contracts
path: ./registry-infra
node-version: 18
node-version: 20
python-version: ">=3.11 <3.12"
poetry-version: 1.7.1

Expand All @@ -91,11 +73,11 @@ jobs:
run: npm ci

- name: Run tests
run: npm run test:integration
run: npm run test

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
if: runner.os == 'Linux' && matrix.node == '18'
uses: codecov/codecov-action@v4
if: runner.os == 'Linux' && matrix.node == '20'
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -104,7 +86,7 @@ jobs:
if: github.ref == 'refs/heads/release'
permissions: write-all
name: Deploy docs
needs: [build, lint, unit-tests]
needs: [build-and-lint, unit-tests]
runs-on: ubuntu-latest
steps:
- name: Check out repository
Expand All @@ -113,7 +95,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
scope: "@subtopia-algo"
cache: "npm"
cache-dependency-path: ./package-lock.json
Expand All @@ -135,7 +117,7 @@ jobs:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release'
permissions: write-all
name: Release
needs: [build, lint, unit-tests]
needs: [build-and-lint, unit-tests]
runs-on: ubuntu-latest
steps:
- name: Check out repository
Expand All @@ -147,7 +129,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
scope: "@subtopia-algo"
cache: "npm"
cache-dependency-path: ./package-lock.json
Expand All @@ -163,3 +145,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release

- name: Merge release -> main
uses: devmasx/merge-branch@6ec8363d74aad4f1615d1234ae1908b4185c4313
if: github.ref == 'refs/heads/release'
with:
type: now
from_branch: release
target_branch: main
message: Merge release back to main to get version increment [no ci]
github_token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 0 additions & 8 deletions .github/workflows/prod_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,3 @@ jobs:
from_branch: main
target_branch: release
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Merge release -> main
uses: devmasx/merge-branch@6ec8363d74aad4f1615d1234ae1908b4185c4313
with:
type: now
from_branch: release
target_branch: main
message: Merge release back to main to get version increment [no ci]
github_token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 0 additions & 18 deletions .stylelintrc

This file was deleted.

28 changes: 21 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
# [2.0.0](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v1.1.0...v2.0.0) (2024-01-29)
# [2.0.0-beta.18](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.17...v2.0.0-beta.18) (2024-08-28)

# [2.0.0-beta.17](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.16...v2.0.0-beta.17) (2024-08-28)

### Features
# [2.0.0-beta.16](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2024-08-28)

* refactoring contracts to support latest 'token-based' types ([#39](https://github.com/subtopia-algo/subtopia-js-sdk/issues/39)) ([604becc](https://github.com/subtopia-algo/subtopia-js-sdk/commit/604beccc4fc2800b4859368aebf3228b6122dd8f))
# [2.0.0-beta.15](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.14...v2.0.0-beta.15) (2024-08-27)

# [2.0.0-beta.14](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.13...v2.0.0-beta.14) (2024-08-26)

### BREAKING CHANGES
# [2.0.0-beta.13](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.12...v2.0.0-beta.13) (2024-08-26)

* Deprecating interface for old contracts, adding a refined and more flexible setup with Token Based subscriptions.
# [2.0.0-beta.12](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2024-08-26)

* refactor: improving project structure; minor refinements
# [2.0.0-beta.11](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.10...v2.0.0-beta.11) (2024-03-18)

* chore: testing ci
# [2.0.0-beta.10](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.9...v2.0.0-beta.10) (2024-03-18)

# [2.0.0-beta.10](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.9...v2.0.0-beta.10) (2024-03-18)

# [2.0.0-beta.9](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2024-03-17)

# [2.0.0-beta.8](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.7...v2.0.0-beta.8) (2024-03-17)

# [2.0.0-beta.7](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2024-03-01)

# [2.0.0-beta.6](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2024-03-01)

# [2.0.0-beta.5](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2024-02-03)

# [2.0.0-beta.4](https://github.com/subtopia-algo/subtopia-js-sdk/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2024-01-21)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {
ChainType,
SUBTOPIA_REGISTRY_ID
} from "subtopia-js-sdk";
// ... your code
// ... your code

const subtopiaClient = await SubtopiaClient.init({
algodClient: PUT_ALGOD_INSTANCE_HERE,
Expand Down
11 changes: 0 additions & 11 deletions dts-bundle-generator.config.ts

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
prettier,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

parser: tsParser,
},

rules: {
"prettier/prettier": "error",
},
},
];
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

Loading

0 comments on commit d10c086

Please sign in to comment.