-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
7 changed files
with
17 additions
and
17 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
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 |
---|---|---|
|
@@ -66,28 +66,28 @@ const hash = await dataViaGetTransferDataMethod.transfer('INSERT_TRANSFER_AMOUNT | |
```bash | ||
git clone [email protected]:moonbeam-foundation/xcm-sdk.git | ||
cd xcm-sdk | ||
npm i | ||
pnpm install | ||
cd examples/sdk-simple | ||
|
||
# edit index.ts by adding your accounts | ||
|
||
npm start | ||
pnpm run start | ||
``` | ||
|
||
# Contributing | ||
|
||
```bash | ||
git clone [email protected]:moonbeam-foundation/xcm-sdk.git | ||
npm i | ||
npm run dev | ||
pnpm install | ||
pnpm run dev | ||
``` | ||
|
||
# Tests | ||
|
||
## Unit tests | ||
|
||
```bash | ||
npm run test | ||
pnpm run test | ||
``` | ||
|
||
## Acceptance tests | ||
|
@@ -96,7 +96,7 @@ npm run test | |
cp .env.example .env | ||
# add private key and suri to .env file | ||
|
||
npm run test:acc | ||
pnpm run test:acc | ||
``` | ||
|
||
# Release | ||
|
@@ -106,31 +106,31 @@ To create a dev version go to GitHub actions and run `publish dev versions` work | |
To create a release version run: | ||
|
||
```bash | ||
npm run changeset | ||
pnpm run changeset | ||
``` | ||
|
||
# Testing the change in the SDK locally | ||
|
||
Build the project: | ||
|
||
```bash | ||
npm run build | ||
pnpm run build | ||
``` | ||
|
||
```bash | ||
npm run link | ||
pnpm run link | ||
``` | ||
|
||
In your project where you would like to test the changes: | ||
|
||
```bash | ||
npm link @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk | ||
pnpm link @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk | ||
``` | ||
|
||
If you need you can link other packages too. | ||
|
||
After testing is done, unlink the SDK: | ||
|
||
```bash | ||
npm unlink @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk | ||
pnpm unlink @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-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