unwallet-client-sdk 0.10.0 → 0.11.0

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.
@@ -9,16 +9,15 @@ jobs:
9
9
  - name: Checkout
10
10
  uses: actions/checkout@v4
11
11
  - name: Set up pnpm
12
- uses: pnpm/action-setup@v2
12
+ uses: pnpm/action-setup@v4
13
13
  with:
14
14
  version: 8
15
- run_install: false
16
15
  - name: Prepare to cache dependencies
17
16
  shell: bash
18
17
  run: |
19
18
  echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
20
19
  - name: Cache dependencies
21
- uses: actions/cache@v3
20
+ uses: actions/cache@v4
22
21
  with:
23
22
  path: ${{ env.PNPM_STORE_PATH }}
24
23
  key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export { Config, SignResult, SendTransactionResult } from "./types";
1
2
  export { UnWallet } from "./unwallet";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
package/dist/types.d.ts CHANGED
@@ -11,6 +11,6 @@ export interface SignResult {
11
11
  signature: string;
12
12
  }
13
13
  export interface SendTransactionResult {
14
- TransactionID: string;
14
+ transactionID: string;
15
15
  }
16
16
  //# sourceMappingURL=types.d.ts.map
package/dist/unwallet.js CHANGED
@@ -92,7 +92,7 @@ class UnWallet {
92
92
  throw new Error("either value or data required");
93
93
  }
94
94
  this.resolve = (txID) => {
95
- resolve({ TransactionID: txID });
95
+ resolve({ transactionID: txID });
96
96
  };
97
97
  this.reject = reject;
98
98
  const url = new URL(`${this.unWalletConfig.baseURL}/x/sendTransaction`);
@@ -121,7 +121,7 @@ class UnWallet {
121
121
  case "signature":
122
122
  this.resolve(msg.value);
123
123
  break;
124
- case "metaTransaction":
124
+ case "transactionID":
125
125
  this.resolve(msg.value);
126
126
  break;
127
127
  case "error":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unwallet-client-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "unWallet client-side SDK",
5
5
  "license": "MIT",
6
6
  "author": "SIVIRA",
package/src/index.ts CHANGED
@@ -1 +1,2 @@
1
+ export { Config, SignResult, SendTransactionResult } from "./types";
1
2
  export { UnWallet } from "./unwallet";
package/src/types.ts CHANGED
@@ -14,5 +14,5 @@ export interface SignResult {
14
14
  }
15
15
 
16
16
  export interface SendTransactionResult {
17
- TransactionID: string;
17
+ transactionID: string;
18
18
  }
package/src/unwallet.ts CHANGED
@@ -138,7 +138,7 @@ export class UnWallet {
138
138
  }
139
139
 
140
140
  this.resolve = (txID: string) => {
141
- resolve({ TransactionID: txID });
141
+ resolve({ transactionID: txID });
142
142
  };
143
143
  this.reject = reject;
144
144
 
@@ -179,7 +179,7 @@ export class UnWallet {
179
179
  this.resolve!(msg.value);
180
180
  break;
181
181
 
182
- case "metaTransaction":
182
+ case "transactionID":
183
183
  this.resolve!(msg.value);
184
184
  break;
185
185