@taquito/wallet-connect 23.0.2 → 23.1.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/lib/taquito-wallet-connect.js +6 -0
- package/dist/lib/version.js +2 -2
- package/dist/taquito-wallet-connect.es6.js +7 -1
- package/dist/taquito-wallet-connect.es6.js.map +1 -1
- package/dist/taquito-wallet-connect.umd.js +7 -1
- package/dist/taquito-wallet-connect.umd.js.map +1 -1
- package/dist/types/taquito-wallet-connect.d.ts +10 -9
- package/package.json +6 -5
|
@@ -537,5 +537,11 @@ class WalletConnect {
|
|
|
537
537
|
return this.removeDefaultLimits(walletParams, yield (0, taquito_1.createIncreasePaidStorageOperation)(this.formatParameters(walletParams)));
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
+
mapRegisterGlobalConstantParamsToWalletParams(params) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
const walletParams = yield params();
|
|
543
|
+
return this.removeDefaultLimits(walletParams, yield (0, taquito_1.createRegisterGlobalConstantOperation)(this.formatParameters(walletParams)));
|
|
544
|
+
});
|
|
545
|
+
}
|
|
540
546
|
}
|
|
541
547
|
exports.WalletConnect = WalletConnect;
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "23.0
|
|
6
|
+
"commitHash": "c77fe4b0989665d8b5cfd15a7cc977499021f6fd",
|
|
7
|
+
"version": "23.1.0"
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Client from '@walletconnect/sign-client';
|
|
2
2
|
import { WalletConnectModal } from '@walletconnect/modal';
|
|
3
|
-
import { createTransferOperation, createTransferTicketOperation, createOriginationOperation, createSetDelegateOperation, createIncreasePaidStorageOperation } from '@taquito/taquito';
|
|
3
|
+
import { createTransferOperation, createTransferTicketOperation, createOriginationOperation, createSetDelegateOperation, createIncreasePaidStorageOperation, createRegisterGlobalConstantOperation } from '@taquito/taquito';
|
|
4
4
|
import { getSdkError } from '@walletconnect/utils';
|
|
5
5
|
|
|
6
6
|
/******************************************************************************
|
|
@@ -703,6 +703,12 @@ class WalletConnect {
|
|
|
703
703
|
return this.removeDefaultLimits(walletParams, yield createIncreasePaidStorageOperation(this.formatParameters(walletParams)));
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
+
mapRegisterGlobalConstantParamsToWalletParams(params) {
|
|
707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
708
|
+
const walletParams = yield params();
|
|
709
|
+
return this.removeDefaultLimits(walletParams, yield createRegisterGlobalConstantOperation(this.formatParameters(walletParams)));
|
|
710
|
+
});
|
|
711
|
+
}
|
|
706
712
|
}
|
|
707
713
|
|
|
708
714
|
export { ActiveAccountUnspecified, ActiveNetworkUnspecified, ConnectionFailed, InvalidAccount, InvalidNetwork, InvalidNetworkOrAccount, InvalidReceivedSessionNamespace, InvalidSession, InvalidSessionKey, MissingRequiredScope, NetworkType, NotConnected, PermissionScopeEvents, PermissionScopeMethods, PublicKeyRetrievalError, SigningType, WalletConnect };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-wallet-connect.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-wallet-connect.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@walletconnect/sign-client'), require('@walletconnect/modal'), require('@taquito/taquito'), require('@walletconnect/utils')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@walletconnect/sign-client', '@walletconnect/modal', '@taquito/taquito', '@walletconnect/utils'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoWalletConnect = {}, global.
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoWalletConnect = {}, global.walletconnectSignClient, global.walletconnectModal, global.taquito, global.walletconnectUtils));
|
|
5
5
|
})(this, (function (exports, Client, modal, taquito, utils) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
@@ -704,6 +704,12 @@
|
|
|
704
704
|
return this.removeDefaultLimits(walletParams, yield taquito.createIncreasePaidStorageOperation(this.formatParameters(walletParams)));
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
+
mapRegisterGlobalConstantParamsToWalletParams(params) {
|
|
708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
709
|
+
const walletParams = yield params();
|
|
710
|
+
return this.removeDefaultLimits(walletParams, yield taquito.createRegisterGlobalConstantOperation(this.formatParameters(walletParams)));
|
|
711
|
+
});
|
|
712
|
+
}
|
|
707
713
|
}
|
|
708
714
|
|
|
709
715
|
exports.ActiveAccountUnspecified = ActiveAccountUnspecified;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-wallet-connect.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-wallet-connect.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import Client from '@walletconnect/sign-client';
|
|
6
6
|
import { SignClientTypes, SessionTypes, PairingTypes } from '@walletconnect/types';
|
|
7
7
|
import { WalletConnectModal } from '@walletconnect/modal';
|
|
8
|
-
import { RPCDelegateOperation, RPCOriginationOperation, RPCTransferOperation, RPCTransferTicketOperation, RPCIncreasePaidStorageOperation, WalletDelegateParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletTransferTicketParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams, WalletIncreasePaidStorageParams } from '@taquito/taquito';
|
|
8
|
+
import { RPCDelegateOperation, RPCOriginationOperation, RPCTransferOperation, RPCTransferTicketOperation, RPCIncreasePaidStorageOperation, RPCRegisterGlobalConstantOperation, WalletDelegateParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletTransferTicketParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams, WalletIncreasePaidStorageParams, WalletRegisterGlobalConstantParams } from '@taquito/taquito';
|
|
9
9
|
import { NetworkType, OperationParams, PermissionScopeParam } from './types';
|
|
10
10
|
export { SignClientTypes, PairingTypes };
|
|
11
11
|
export * from './errors';
|
|
@@ -138,12 +138,13 @@ export declare class WalletConnect implements WalletProvider {
|
|
|
138
138
|
private getPermittedNetwork;
|
|
139
139
|
private formatParameters;
|
|
140
140
|
private removeDefaultLimits;
|
|
141
|
-
mapTransferParamsToWalletParams(params: () => Promise<WalletTransferParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
142
|
-
mapTransferTicketParamsToWalletParams(params: () => Promise<WalletTransferTicketParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
143
|
-
mapStakeParamsToWalletParams(params: () => Promise<WalletStakeParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
144
|
-
mapUnstakeParamsToWalletParams(params: () => Promise<WalletUnstakeParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
145
|
-
mapFinalizeUnstakeParamsToWalletParams(params: () => Promise<WalletFinalizeUnstakeParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
146
|
-
mapOriginateParamsToWalletParams(params: () => Promise<WalletOriginateParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
147
|
-
mapDelegateParamsToWalletParams(params: () => Promise<WalletDelegateParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
148
|
-
mapIncreasePaidStorageWalletParams(params: () => Promise<WalletIncreasePaidStorageParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation>>;
|
|
141
|
+
mapTransferParamsToWalletParams(params: () => Promise<WalletTransferParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
142
|
+
mapTransferTicketParamsToWalletParams(params: () => Promise<WalletTransferTicketParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
143
|
+
mapStakeParamsToWalletParams(params: () => Promise<WalletStakeParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
144
|
+
mapUnstakeParamsToWalletParams(params: () => Promise<WalletUnstakeParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
145
|
+
mapFinalizeUnstakeParamsToWalletParams(params: () => Promise<WalletFinalizeUnstakeParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
146
|
+
mapOriginateParamsToWalletParams(params: () => Promise<WalletOriginateParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
147
|
+
mapDelegateParamsToWalletParams(params: () => Promise<WalletDelegateParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
148
|
+
mapIncreasePaidStorageWalletParams(params: () => Promise<WalletIncreasePaidStorageParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
149
|
+
mapRegisterGlobalConstantParamsToWalletParams(params: () => Promise<WalletRegisterGlobalConstantParams>): Promise<Partial<RPCTransferOperation> | Partial<RPCTransferTicketOperation> | Partial<RPCOriginationOperation> | Partial<RPCDelegateOperation> | Partial<RPCIncreasePaidStorageOperation> | Partial<RPCRegisterGlobalConstantOperation>>;
|
|
149
150
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/wallet-connect",
|
|
3
|
-
"version": "23.0
|
|
3
|
+
"version": "23.1.0",
|
|
4
4
|
"description": "Walletconnect provider",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=20"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test": "jest --coverage",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@taquito/taquito": "^23.0
|
|
69
|
+
"@taquito/taquito": "^23.1.0",
|
|
70
70
|
"@walletconnect/modal": "^2.7.0",
|
|
71
71
|
"@walletconnect/sign-client": "^2.16.2",
|
|
72
72
|
"@walletconnect/types": "^2.16.2",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/bluebird": "^3.5.42",
|
|
77
77
|
"@types/chrome": "0.0.171",
|
|
78
78
|
"@types/jest": "^29.5.12",
|
|
79
|
-
"@types/node": "^
|
|
79
|
+
"@types/node": "^20",
|
|
80
80
|
"@types/pino": "^7.0.5",
|
|
81
81
|
"@types/ws": "^8.5.12",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"rimraf": "^6.0.1",
|
|
96
96
|
"rollup": "^4.19.1",
|
|
97
97
|
"rollup-plugin-json": "^4.0.0",
|
|
98
|
+
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
98
99
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
99
100
|
"shelljs": "^0.8.5",
|
|
100
101
|
"ts-jest": "^29.2.3",
|
|
@@ -102,5 +103,5 @@
|
|
|
102
103
|
"ts-toolbelt": "^9.6.0",
|
|
103
104
|
"typescript": "~5.5.4"
|
|
104
105
|
},
|
|
105
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "bcf60513cade1e3272cd50c47a786d4bd45f70c8"
|
|
106
107
|
}
|