@meshconnect/uwc-ton-connector 0.9.16 → 0.10.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.
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { buildTonTransactionRequest, buildSignDataPayload, executeSignData, unwr
4
4
  export { buildJettonTransferPayload, buildTonNativeRequestFromJettonTransfer } from './jetton-transfer';
5
5
  export { buildTonCommentPayload, MAX_TON_COMMENT_BYTES } from './text-comment';
6
6
  export { TonConnectConnector } from './ton-connect-connector';
7
+ export { TON_CONNECT_USER_REJECTS_CODE } from './ton-connect-errors';
7
8
  export { WALLET_RESPONSE_TIMEOUT_MS, withWalletResponseTimeout } from './ton-connect-session-restore';
8
9
  export { TON_CONNECT_INJECTED_STORAGE_PREFIX, tryRestoreInjectedSession } from './ton-connect-injected-restore';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,0BAA0B,EAC1B,uCAAuC,EACxC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,mCAAmC,EACnC,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,0BAA0B,EAC1B,uCAAuC,EACxC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,mCAAmC,EACnC,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA"}
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ export { buildTonTransactionRequest, buildSignDataPayload, executeSignData, unwr
4
4
  export { buildJettonTransferPayload, buildTonNativeRequestFromJettonTransfer } from './jetton-transfer';
5
5
  export { buildTonCommentPayload, MAX_TON_COMMENT_BYTES } from './text-comment';
6
6
  export { TonConnectConnector } from './ton-connect-connector';
7
+ export { TON_CONNECT_USER_REJECTS_CODE } from './ton-connect-errors';
7
8
  export { WALLET_RESPONSE_TIMEOUT_MS, withWalletResponseTimeout } from './ton-connect-session-restore';
8
9
  export { TON_CONNECT_INJECTED_STORAGE_PREFIX, tryRestoreInjectedSession } from './ton-connect-injected-restore';
9
10
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,0BAA0B,EAC1B,uCAAuC,EACxC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,mCAAmC,EACnC,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,0BAA0B,EAC1B,uCAAuC,EACxC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,mCAAmC,EACnC,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * TON Connect error code for "user declined the request" (the same 300 in the
3
+ * SDK's send-transaction and sign-data enums). Checked against the SDK's enum so
4
+ * a change there fails the build. The import is type-only: the SDK is loaded
5
+ * lazily, and a value import would pull it into the main bundle.
6
+ */
7
+ export declare const TON_CONNECT_USER_REJECTS_CODE = 300;
8
+ //# sourceMappingURL=ton-connect-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ton-connect-errors.d.ts","sourceRoot":"","sources":["../src/ton-connect-errors.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,MACqB,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * TON Connect error code for "user declined the request" (the same 300 in the
3
+ * SDK's send-transaction and sign-data enums). Checked against the SDK's enum so
4
+ * a change there fails the build. The import is type-only: the SDK is loaded
5
+ * lazily, and a value import would pull it into the main bundle.
6
+ */
7
+ export const TON_CONNECT_USER_REJECTS_CODE = 300;
8
+ //# sourceMappingURL=ton-connect-errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ton-connect-errors.js","sourceRoot":"","sources":["../src/ton-connect-errors.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GACxC,GAA6D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshconnect/uwc-ton-connector",
3
- "version": "0.9.16",
3
+ "version": "0.10.0",
4
4
  "description": "TON Connect connector for Universal Wallet Connector — mobile QR/URI wallet connections",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -14,6 +14,7 @@ export {
14
14
  } from './jetton-transfer'
15
15
  export { buildTonCommentPayload, MAX_TON_COMMENT_BYTES } from './text-comment'
16
16
  export { TonConnectConnector } from './ton-connect-connector'
17
+ export { TON_CONNECT_USER_REJECTS_CODE } from './ton-connect-errors'
17
18
  export {
18
19
  WALLET_RESPONSE_TIMEOUT_MS,
19
20
  withWalletResponseTimeout
@@ -0,0 +1,10 @@
1
+ import type { SEND_TRANSACTION_ERROR_CODES } from '@tonconnect/sdk'
2
+
3
+ /**
4
+ * TON Connect error code for "user declined the request" (the same 300 in the
5
+ * SDK's send-transaction and sign-data enums). Checked against the SDK's enum so
6
+ * a change there fails the build. The import is type-only: the SDK is loaded
7
+ * lazily, and a value import would pull it into the main bundle.
8
+ */
9
+ export const TON_CONNECT_USER_REJECTS_CODE =
10
+ 300 satisfies SEND_TRANSACTION_ERROR_CODES.USER_REJECTS_ERROR