-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from KILTprotocol/aa/integration-tests
feat: add basic integration tests
- Loading branch information
Showing
21 changed files
with
2,494 additions
and
619 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
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 @@ | ||
name: Lint and Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "**.ts" | ||
pull_request: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
lint-and-build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Lint | ||
run: yarn lint | ||
- name: Check dependency duplication | ||
run: if ! yarn dedupe --check; then echo "::warning ::Dependencies may be deduplicated"; fi; | ||
- name: Check versioning | ||
run: yarn version check | ||
- name: Try build for CJS and ESM | ||
run: yarn 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 |
---|---|---|
|
@@ -22,3 +22,6 @@ cjs | |
# VSCode | ||
|
||
.vscode | ||
|
||
# Tests | ||
.env.* |
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 +1 @@ | ||
lts/Gallium | ||
lts/Hydrogen |
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,2 @@ | ||
declined: | ||
- "@kiltprotocol/dip-sdk" |
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 was deleted.
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,29 @@ | ||
/** | ||
* Copyright (c) 2023, BOTLabs GmbH. | ||
* | ||
* This source code is licensed under the BSD 4-Clause "Original" license | ||
* found in the LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import type { DefinitionsCall } from "@polkadot/types/types" | ||
|
||
export const dipProviderCalls: DefinitionsCall = { | ||
DipProvider: [ | ||
{ | ||
methods: { | ||
generate_proof: { | ||
description: | ||
"Generate a Merkle proof for the DIP protocol for the specified request parameters.", | ||
params: [ | ||
{ | ||
name: "request", | ||
type: "DipProofRequest", | ||
}, | ||
], | ||
type: "Result<CompleteMerkleProof, RuntimeApiDipProofError>", | ||
}, | ||
}, | ||
version: 1, | ||
}, | ||
], | ||
} |
Oops, something went wrong.