-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 645dda0
Showing
90 changed files
with
10,001 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["prettier", "@typescript-eslint", "prettier", "import"], | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": ["."], | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"] | ||
} | ||
} | ||
}, | ||
"extends": [ | ||
"prettier", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"import/no-duplicates": "error", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index" | ||
], | ||
"alphabetize": { | ||
"order": "asc" | ||
} | ||
} | ||
], | ||
"no-useless-rename": "error", | ||
"object-shorthand": "error", | ||
"prettier/prettier": "error" | ||
}, | ||
"ignorePatterns": ["**/*.js", "xsuite/*.d.ts"] | ||
} |
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,114 @@ | ||
name: Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
go-version: [1.19.x] | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Cache Go modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Cache Go build cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/go-build | ||
key: ${{ runner.os }}-go-build-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-go-build- | ||
- name: Cache Rust toolchain | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.rustup/toolchains | ||
key: ${{ runner.os }}-rustup | ||
restore-keys: | | ||
${{ runner.os }}-rustup | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
~/.cargo/bin | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('contracts/**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- name: Cache Rust target folders | ||
uses: actions/cache@v2 | ||
with: | ||
path: contracts/target | ||
key: ${{ runner.os }}-cargo-target-${{ hashFiles('contracts/**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-target- | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Use Golang ${{ matrix.go-version }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Lint | ||
run: pnpm lint | ||
|
||
- name: Build xSuite | ||
run: pnpm build-xsuite | ||
|
||
- name: Test xSuite | ||
run: pnpm test-xsuite | ||
|
||
- name: Build xSuite-cli | ||
run: pnpm build-xsuite-cli | ||
|
||
- name: xSuite setup Rust | ||
run: pnpm xsuite setup-rust | ||
|
||
- name: xSuite build contracts | ||
run: pnpm build-contracts | ||
|
||
- name: Typecheck contracts | ||
run: pnpm typecheck-contracts | ||
|
||
- name: Test contracts | ||
run: pnpm test-contracts |
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,5 @@ | ||
**/node_modules/ | ||
**/target/ | ||
**/.DS_Store | ||
**/__pycache__ | ||
keyfile.json |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Arda | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,39 @@ | ||
``` | ||
pnpm xsuite setup-rust | ||
``` | ||
|
||
``` | ||
pnpm xsuite contract-new --dir mycontract | ||
``` | ||
|
||
``` | ||
cd mycontract | ||
``` | ||
|
||
``` | ||
pnpm xsuite wallet-new --path wallet.json | ||
``` | ||
|
||
``` | ||
pnpm xsuite wallet-request-xegld --path wallet.json | ||
``` | ||
|
||
``` | ||
pnpm install | ||
``` | ||
|
||
``` | ||
pnpm run build | ||
``` | ||
|
||
``` | ||
pnpm run test | ||
``` | ||
|
||
``` | ||
pnpm run deploy | ||
``` | ||
|
||
--- | ||
|
||
xSuite.js has been used by Arda since more than a year. |
Oops, something went wrong.