@fivenorth/loop-sdk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/dist/index.js +3 -0
  3. package/package.json +14 -14
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # LOOP SDK
1
+ # Loop SDK
2
2
 
3
- Loop SDK allow dApps connect to a Loop account. The Loop wallet can be on mobile or on a desktop browser. All the interaction will happen inside the dApp. For signing, user will be prompted to sign either on their Loop wallet on mobile devices or on browser.
3
+ Loop SDK allows dApps connect to a [Loop](https://cantonloop.com) account. The Loop wallet can be on mobile or on a desktop browser. All the interaction will happen inside the dApp. For signing, user will be prompted to sign either on their Loop wallet on mobile devices or on browser.
4
4
 
5
5
  # Limitation
6
6
 
@@ -15,6 +15,7 @@ Refer to the file `demo/test.html` to see an example of setup and use the SDK.
15
15
  # API
16
16
 
17
17
 
18
+
18
19
  # Development Guide
19
20
 
20
21
  This section is only if you want to actively develop the SDK itself. To use the SDK, follow the `#Usage Guide` section
@@ -36,4 +37,5 @@ bun run index.ts
36
37
 
37
38
  ```
38
39
  bun run build
40
+ bun publish
39
41
  ```
package/dist/index.js CHANGED
@@ -2080,14 +2080,17 @@ class Connection {
2080
2080
  this.walletUrl = "http://localhost:3000";
2081
2081
  this.apiUrl = "http://localhost:8080";
2082
2082
  break;
2083
+ case "devnet":
2083
2084
  case "dev":
2084
2085
  this.walletUrl = "https://devnet.cantonloop.com";
2085
2086
  this.apiUrl = "https://devnet.cantonloop.com";
2086
2087
  break;
2088
+ case "testnet":
2087
2089
  case "test":
2088
2090
  this.walletUrl = "https://testnet.cantonloop.com";
2089
2091
  this.apiUrl = "https://testnet.cantonloop.com";
2090
2092
  break;
2093
+ case "mainnet":
2091
2094
  case "main":
2092
2095
  this.walletUrl = "https://cantonloop.com";
2093
2096
  this.apiUrl = "https://cantonloop.com";
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "author": "hello@fivenorth.io",
3
2
  "name": "@fivenorth/loop-sdk",
4
- "version": "0.1.0",
5
- "module": "dist/index.js",
3
+ "version": "0.1.1",
4
+ "author": "hello@fivenorth.io",
6
5
  "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "type": "module",
9
- "scripts": {
10
- "build": "bun build ./src/index.ts --outdir ./dist",
11
- "prepublishOnly": "bun run build",
12
- "start": "bun run src/server.ts"
13
- },
6
+ "module": "dist/index.js",
14
7
  "devDependencies": {
15
8
  "@types/bun": "latest"
16
9
  },
17
10
  "peerDependencies": {
18
11
  "typescript": "^5"
19
12
  },
20
- "dependencies": {
21
- "@types/qrcode": "^1.5.5",
22
- "qrcode": "^1.5.4"
23
- },
24
13
  "files": [
25
14
  "dist"
26
15
  ],
27
16
  "publishConfig": {
28
17
  "access": "public"
18
+ },
19
+ "scripts": {
20
+ "build": "bun build ./src/index.ts --outdir ./dist",
21
+ "prepublishOnly": "bun run build",
22
+ "start": "bun run src/server.ts"
23
+ },
24
+ "type": "module",
25
+ "types": "dist/index.d.ts",
26
+ "dependencies": {
27
+ "@types/qrcode": "^1.5.6",
28
+ "qrcode": "^1.5.4"
29
29
  }
30
30
  }