-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Darren/implement new vechain sdk (#310)
* refactor: remove connex and init signer within dappkit * chore(deps): remove connex * fix: gha syntax error * chore(deps): remove connex * fix: tests * fix: build errors * revert: add sync2 back int * fix: tests * refactor: yarn, e2e and eslint (#311) * refactor: yarn, e2e and eslint * fix(GHA): install before install:all * fix(GHA): install before install:all * fix(extension): bug in extension * fix(extension): bug in extension * fix: update cucumber * fix: run stop preview after e2e * fix: lint errors * fix: sync errors * fix: sync2 not connecting * fix: sync2 txs broken * fix: tests * fix: tests * fix: yarn * fix: yarn workspaces * fix: missing declarations in test * fix: missing declarations in test * fix: missing declarations in test * fix: missing declarations in test * fix: dapp-kit-react tsx * fix: add exports to package.json * fix: ignore cucumber in examples * fix: set type to module * fix: package.jsons * fix: add type module * fix: package.jsons * fix: package.jsons * fix: fix angular * chore: documenation
- Loading branch information
1 parent
16bbb20
commit 5eb9131
Showing
107 changed files
with
29,457 additions
and
20,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
const Config = require('@vechain/repo-config'); | ||
|
||
module.exports = Config.EslintLibrary; | ||
module.exports = { | ||
...Config.EslintLibrary, | ||
rules: { | ||
...Config.EslintLibrary.rules, | ||
'import/no-extraneous-dependencies': 'error', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
name: Lint, Build & Test | ||
|
||
on: | ||
push: | ||
branches: [ main-v2 ] | ||
pull_request: | ||
branches: [ main-v2 ] | ||
push: | ||
branches: [ main-v2 ] | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.ref_name }}-build-test-scan | ||
cancel-in-progress: true | ||
group: ${{ github.head_ref || github.ref_name }}-build-test-scan | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
name: Lint, Build & Test | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
name: Lint, Build & Test | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
|
||
- name: Install | ||
run: yarn install:all | ||
- name: Install | ||
run: | | ||
yarn | ||
yarn install:all | ||
- name: Lint | ||
run: yarn run lint | ||
- name: Lint | ||
run: yarn run lint | ||
|
||
- name: Test | ||
run: yarn run test | ||
- name: Test | ||
run: yarn run test | ||
|
||
- name: Build | ||
run: yarn run build | ||
- name: Build | ||
run: yarn run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
push: | ||
branches: [ main-v2 ] | ||
pull_request: | ||
branches: [ main-v2 ] | ||
push: | ||
branches: [ main-v2 ] | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.ref_name }}-e2e-test | ||
cancel-in-progress: true | ||
group: ${{ github.head_ref || github.ref_name }}-e2e-test | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e-tests: | ||
runs-on: ubuntu-latest | ||
name: E2E Tests | ||
|
||
steps: | ||
- name: Install Stable Chrome | ||
run: | | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | ||
sudo apt-get update | ||
sudo apt-get install google-chrome-stable | ||
- name: Install Stable chromedriver | ||
uses: nanasess/setup-chromedriver@v2 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
|
||
- name: Install | ||
run: yarn install:all | ||
|
||
- name: Run E2E Tests | ||
run: yarn test:e2e:ci | ||
e2e-tests: | ||
runs-on: ubuntu-latest | ||
name: E2E Tests | ||
|
||
steps: | ||
- name: Install Stable Chrome | ||
run: | | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | ||
sudo apt-get update | ||
sudo apt-get install google-chrome-stable | ||
- name: Install Stable chromedriver | ||
uses: nanasess/setup-chromedriver@v2 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
|
||
- name: Install | ||
run: | | ||
yarn | ||
yarn install:all | ||
- name: Run E2E Tests | ||
run: yarn test:e2e:ci |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.5.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ThorClient } from '@vechain/sdk-network'; | ||
import { VeChainSignerDAppKit } from '@vechain/dapp-kit'; | ||
|
||
export const Counter = { | ||
abi: { | ||
counter: { | ||
inputs: [], | ||
name: 'counter', | ||
outputs: [ | ||
{ | ||
internalType: 'uint256', | ||
name: '', | ||
type: 'uint256', | ||
}, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
increment: { | ||
inputs: [], | ||
name: 'increment', | ||
outputs: [], | ||
stateMutability: 'nonpayable', | ||
type: 'function', | ||
}, | ||
}, | ||
address: '0x8384738c995d49c5b692560ae688fc8b51af1059', | ||
delegateURL: 'https://sponsor-testnet.vechain.energy/by/90', | ||
load: (thor: ThorClient, signer?: VeChainSignerDAppKit) => { | ||
return thor.contracts.load( | ||
Counter.address, | ||
[Counter.abi.counter, Counter.abi.increment] as const, | ||
signer, | ||
); | ||
}, | ||
} as const; |
Oops, something went wrong.