Skip to content

Commit 20beef5

Browse files
Merge pull request #49 from jcam1/develop
Release 2024-08-27 08:54:16 +0900
2 parents a4080e9 + 000262e commit 20beef5

File tree

13 files changed

+160
-1421
lines changed

13 files changed

+160
-1421
lines changed

.npmignore

Lines changed: 0 additions & 131 deletions
This file was deleted.

README.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ yarn
4747
To run yarn scripts defined in workspaces, run the following.
4848

4949
```sh
50-
$ yarn workspace <workspace name> run <command name>
50+
$ yarn workspace ${workspace_name} run ${command_name}
5151
```
5252

5353
### Dependencies
@@ -56,23 +56,23 @@ To add dependencies, run one of the following. To prevent unexpected behaviors,
5656

5757
```sh
5858
# Add dependencies to the specified workspace
59-
$ yarn workspace <workspace name> add -E <dependencies>
59+
$ yarn workspace ${workspace_name} add -E ${dependencies}
6060

6161
# Add dev dependencies to the specified workspace
62-
$ yarn workspace <workspace name> add -E -D <dependencies>
62+
$ yarn workspace ${workspace_name} add -E -D ${dependencies}
6363

6464
# Add dev dependencies to the workspaces root
65-
$ yarn add -E -D -W <dependencies>
65+
$ yarn add -E -D -W ${dependencies}
6666
```
6767

6868
To remove dependencies, run one of the following.
6969

7070
```sh
7171
# Remove dependencies from the specified workspace
72-
$ yarn workspace <workspace name> remove <dependencies>
72+
$ yarn workspace ${workspace_name} remove ${dependencies}
7373

7474
# Remove dependencies from the workspaces root
75-
$ yarn remove -W <dependencies>
75+
$ yarn remove -W ${dependencies}
7676
```
7777

7878
### Documentation
@@ -85,4 +85,32 @@ $ yarn run docs
8585

8686
## 🔥 How to Contribute
8787

88-
Feel free to create new issues from [here](https://github.com/jcam1/sdks/issues/new/choose) to propose/request new features or report bugs.
88+
We appreciate your interest to contribute to this project! Please read the following steps to see how to contribute to this project.
89+
90+
### 1. Create an Issue
91+
92+
The first thing to do is to create a new issue. Feel free to create new issues from [here](https://github.com/jcam1/sdks/issues/new/choose) to propose/request new features or report bugs.
93+
94+
### 2. Clone This Repository
95+
96+
Next, clone this repo. Our default branch is `develop`.
97+
98+
```sh
99+
$ git clone --recursive https://github.com/jcam1/sdks.git
100+
```
101+
102+
### 3. Checkout to a New Branch
103+
104+
You then need to checkout to a new branch (name whatever you would like) from the cloned `develop` branch.
105+
106+
```sh
107+
$ git checkout -b ${your_branch_name}
108+
```
109+
110+
### 4. Write Code
111+
112+
Now, write code to implement the proposed features and/or to fix bugs.
113+
114+
### 5. Open a Pull Request
115+
116+
Finally, open a new PR from your branch to `develop` branch to describe what you'll have done.

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
{
22
"name": "@jpyc/sdks",
3+
"version": "1.7.1",
4+
"private": true,
5+
"license": "MIT",
36
"description": "Node SDKs to build applications on top of JPYC protocol",
4-
"keywords": [
5-
"jpyc",
6-
"stablecoin"
7-
],
87
"repository": "https://github.com/jcam1/sdks.git",
9-
"license": "MIT",
10-
"version": "1.7.0",
8+
"homepage": "https://github.com/jcam1/sdks.git#readme",
119
"engines": {
1210
"node": "^20.12.0",
1311
"yarn": "^1.22.22"
1412
},
15-
"private": true,
1613
"workspaces": [
1714
"packages/*"
1815
],

packages/core/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 JPYC株式会社
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/core/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# JPYC Core SDK
22

3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
34
![build](https://github.com/jcam1/sdks/actions/workflows/check.yml/badge.svg)
45
[![npm version](https://badge.fury.io/js/@jpyc%2Fsdk-core.svg)](https://badge.fury.io/js/@jpyc%2Fsdk-core)
56

packages/core/package.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
{
22
"name": "@jpyc/sdk-core",
3+
"version": "1.4.1",
4+
"license": "MIT",
35
"description": "Core SDK for JPYC protocol",
6+
"keywords": [
7+
"jpyc",
8+
"jpy",
9+
"stablecoin",
10+
"ethereum"
11+
],
412
"repository": "https://github.com/jcam1/sdks.git",
5-
"license": "MIT",
6-
"version": "1.4.0",
7-
"publishConfig": {
8-
"access": "public"
13+
"homepage": "https://github.com/jcam1/sdks.git#readme",
14+
"bugs": {
15+
"url": "https://github.com/jcam1/sdks/issues/new/choose"
916
},
1017
"engines": {
1118
"node": "^20.12.0",
@@ -14,8 +21,13 @@
1421
"main": "dist/src",
1522
"types": "dist/types/src",
1623
"files": [
17-
"dist"
24+
"dist",
25+
"src",
26+
"!**/*.tsbuildinfo"
1827
],
28+
"publishConfig": {
29+
"access": "public"
30+
},
1931
"scripts": {
2032
"docs": "typedoc",
2133
"compile": "tsc",
@@ -25,25 +37,25 @@
2537
"format:dry-run": "prettier --check .",
2638
"test": "jest"
2739
},
40+
"dependencies": {
41+
"dotenv": "16.4.5",
42+
"viem": "2.20.0"
43+
},
2844
"devDependencies": {
2945
"@types/jest": "29.5.12",
3046
"@types/node": "20.14.9",
3147
"@typescript-eslint/eslint-plugin": "7.15.0",
3248
"@typescript-eslint/parser": "7.15.0",
33-
"dotenv": "16.4.5",
3449
"eslint": "8.57.0",
3550
"eslint-config-prettier": "9.1.0",
3651
"eslint-plugin-prettier": "5.1.3",
3752
"jest": "29.7.0",
38-
"npm-run-all": "4.1.5",
3953
"prettier": "3.3.2",
4054
"ts-jest": "29.2.4",
4155
"ts-node": "10.9.2",
42-
"tsconfig-paths": "4.2.0",
4356
"typedoc": "0.26.6",
4457
"typedoc-plugin-markdown": "4.2.6",
45-
"typescript": "5.5.3",
46-
"viem": "2.19.4"
58+
"typescript": "5.5.3"
4759
},
4860
"jest": {
4961
"verbose": true,

packages/core/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,5 @@
4242
"esModuleInterop": true,
4343
"experimentalDecorators": true,
4444
"emitDecoratorMetadata": true
45-
},
46-
"ts-node": {
47-
"require": ["tsconfig-paths/register"]
4845
}
4946
}

packages/v1/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 JPYC株式会社
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/v1/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# JPYC V1 SDK
22

3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
34
![build](https://github.com/jcam1/sdks/actions/workflows/check.yml/badge.svg)
45
[![npm version](https://badge.fury.io/js/@jpyc%2Fsdk-v1.svg)](https://badge.fury.io/js/@jpyc%2Fsdk-v1)
56

@@ -36,7 +37,7 @@ Some data, such as configuration variables (e.g., chain name) or sensitive data
3637

3738
#### 3. Instantiate SDK
3839

39-
Initialize an SDK instance that implements an abstracted interface to JPYCv2 contracts.
40+
Initialize an SDK instance that implements an abstracted interface to the JPYCv2 contracts.
4041

4142
```ts
4243
import { ChainName, Endpoint, NetworkName } from '@jpyc/sdk-core';

packages/v1/examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ yarn run deploy
3131

3232
### 4. Set Environment Variables
3333

34-
Run the following commands and edit the generated `.env` file accordingly. Set `LOCAL_PROXY_ADDRESS` to the value of `JPYCV2Module#FiatTokenV1` at [here](../ignition/deployments/chain-31337/deployed_addresses.json). See [here](../README.md/) for more details.
34+
Run the following commands and edit the generated `.env` file accordingly. Set `LOCAL_PROXY_ADDRESS` to the value of `JPYCV2Module#FiatTokenV1` at [here](../ignition/deployments/chain-31337/deployed_addresses.json). See [here](../README.md) for more details.
3535

3636
```sh
3737
$ yarn run env

0 commit comments

Comments
 (0)