@walletconnect/legacy-types
Advanced tools
Comparing version 2.0.0-rc.0 to 2.0.0-rc.10
export declare const WALLET_METHODS: string[]; | ||
export declare const SIGNING_METHODS: string[]; | ||
export declare const STATE_METHODS: string[]; | ||
export declare const signingMethods: string[]; | ||
export declare const STATE_METHODS: string[]; | ||
export declare const stateMethods: string[]; | ||
//# sourceMappingURL=jsonrpc.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stateMethods = exports.STATE_METHODS = exports.signingMethods = exports.SIGNING_METHODS = exports.WALLET_METHODS = void 0; | ||
exports.stateMethods = exports.signingMethods = exports.STATE_METHODS = exports.SIGNING_METHODS = exports.WALLET_METHODS = void 0; | ||
exports.WALLET_METHODS = [ | ||
@@ -25,5 +25,5 @@ "wallet_addEthereumChain", | ||
]; | ||
exports.STATE_METHODS = ["eth_accounts", "eth_chainId", "net_version"]; | ||
exports.signingMethods = exports.SIGNING_METHODS; | ||
exports.STATE_METHODS = ["eth_accounts", "eth_chainId", "net_version"]; | ||
exports.stateMethods = exports.STATE_METHODS; | ||
//# sourceMappingURL=jsonrpc.js.map |
@@ -35,2 +35,3 @@ import { IClientMeta, IConnector } from "./protocol"; | ||
message: string; | ||
data?: string; | ||
} | ||
@@ -37,0 +38,0 @@ export interface IJsonRpcResponseError { |
@@ -6,2 +6,8 @@ export interface IAppEntry { | ||
chains: string[]; | ||
image_id: string; | ||
image_url: { | ||
sm: string; | ||
md: string; | ||
lg: string; | ||
}; | ||
app: { | ||
@@ -8,0 +14,0 @@ browser: string; |
export declare const WALLET_METHODS: string[]; | ||
export declare const SIGNING_METHODS: string[]; | ||
export declare const STATE_METHODS: string[]; | ||
export declare const signingMethods: string[]; | ||
export declare const STATE_METHODS: string[]; | ||
export declare const stateMethods: string[]; | ||
//# sourceMappingURL=jsonrpc.d.ts.map |
@@ -22,5 +22,5 @@ export const WALLET_METHODS = [ | ||
]; | ||
export const STATE_METHODS = ["eth_accounts", "eth_chainId", "net_version"]; | ||
export const signingMethods = SIGNING_METHODS; | ||
export const STATE_METHODS = ["eth_accounts", "eth_chainId", "net_version"]; | ||
export const stateMethods = STATE_METHODS; | ||
//# sourceMappingURL=jsonrpc.js.map |
@@ -35,2 +35,3 @@ import { IClientMeta, IConnector } from "./protocol"; | ||
message: string; | ||
data?: string; | ||
} | ||
@@ -37,0 +38,0 @@ export interface IJsonRpcResponseError { |
@@ -6,2 +6,8 @@ export interface IAppEntry { | ||
chains: string[]; | ||
image_id: string; | ||
image_url: { | ||
sm: string; | ||
md: string; | ||
lg: string; | ||
}; | ||
app: { | ||
@@ -8,0 +14,0 @@ browser: string; |
@@ -16,2 +16,2 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("WalletConnectTypes",[],t):"object"==typeof exports?exports.WalletConnectTypes=t():e.WalletConnectTypes=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return u})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return s})),n.d(t,"__awaiter",(function(){return _})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return l})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return O})),n.d(t,"__spread",(function(){return R})),n.d(t,"__spreadArrays",(function(){return E})),n.d(t,"__await",(function(){return S})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return v})),n.d(t,"__asyncValues",(function(){return h})),n.d(t,"__makeTemplateObject",(function(){return b})),n.d(t,"__importStar",(function(){return I})),n.d(t,"__importDefault",(function(){return N})),n.d(t,"__classPrivateFieldGet",(function(){return M})),n.d(t,"__classPrivateFieldSet",(function(){return m})); | ||
***************************************************************************** */ | ||
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function _(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function l(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function R(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof S?Promise.resolve(n.value.v).then(c,s):_(i[0][2],n)}catch(e){_(i[0][3],e)}var n}function c(e){a("next",e)}function s(e){a("throw",e)}function _(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function h(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function N(e){return e&&e.__esModule?e:{default:e}}function M(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function m(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);r.__exportStar(n(2),t),r.__exportStar(n(3),t),r.__exportStar(n(9),t),r.__exportStar(n(10),t),r.__exportStar(n(11),t),r.__exportStar(n(12),t),r.__exportStar(n(13),t),r.__exportStar(n(14),t),r.__exportStar(n(15),t),r.__exportStar(n(16),t),r.__exportStar(n(17),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);r.__exportStar(n(4),t),r.__exportStar(n(5),t),r.__exportStar(n(6),t),r.__exportStar(n(7),t),r.__exportStar(n(8),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_QRCODE_MODAL_USER_CLOSED=t.ERROR_QRCODE_MODAL_NOT_PROVIDED=t.ERROR_INVALID_URI=t.ERROR_INVALID_RESPONSE=t.ERROR_MISSING_REQUIRED=t.ERROR_MISSING_ID=t.ERROR_MISSING_METHOD=t.ERROR_MISSING_ERROR=t.ERROR_MISSING_RESULT=t.ERROR_MISSING_JSON_RPC=t.ERROR_SESSION_REJECTED=t.ERROR_SESSION_DISCONNECTED=t.ERROR_SESSION_CONNECTED=void 0,t.ERROR_SESSION_CONNECTED="Session currently connected",t.ERROR_SESSION_DISCONNECTED="Session currently disconnected",t.ERROR_SESSION_REJECTED="Session Rejected",t.ERROR_MISSING_JSON_RPC="Missing JSON RPC response",t.ERROR_MISSING_RESULT='JSON-RPC success response must include "result" field',t.ERROR_MISSING_ERROR='JSON-RPC error response must include "error" field',t.ERROR_MISSING_METHOD='JSON RPC request must have valid "method" value',t.ERROR_MISSING_ID='JSON RPC request must have valid "id" value',t.ERROR_MISSING_REQUIRED="Missing one of the required parameters: bridge / uri / session",t.ERROR_INVALID_RESPONSE="JSON RPC response format is invalid",t.ERROR_INVALID_URI="URI format is invalid",t.ERROR_QRCODE_MODAL_NOT_PROVIDED="QRCode Modal not provided",t.ERROR_QRCODE_MODAL_USER_CLOSED="User close QRCode Modal"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reservedEvents=t.RESERVED_EVENTS=void 0,t.RESERVED_EVENTS=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],t.reservedEvents=t.RESERVED_EVENTS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateMethods=t.STATE_METHODS=t.signingMethods=t.SIGNING_METHODS=t.WALLET_METHODS=void 0,t.WALLET_METHODS=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],t.SIGNING_METHODS=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...t.WALLET_METHODS],t.signingMethods=t.SIGNING_METHODS,t.STATE_METHODS=["eth_accounts","eth_chainId","net_version"],t.stateMethods=t.STATE_METHODS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mobileLinkChoiceKey=t.MOBILE_LINK_CHOICE_KEY=void 0,t.MOBILE_LINK_CHOICE_KEY="WALLETCONNECT_DEEPLINK_CHOICE",t.mobileLinkChoiceKey=t.MOBILE_LINK_CHOICE_KEY},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.infuraNetworks=t.INFURA_NETWORKS=void 0,t.INFURA_NETWORKS={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},t.infuraNetworks=t.INFURA_NETWORKS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEvents=void 0;t.IEvents=class{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}])})); | ||
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function _(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function l(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function R(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof S?Promise.resolve(n.value.v).then(c,s):_(i[0][2],n)}catch(e){_(i[0][3],e)}var n}function c(e){a("next",e)}function s(e){a("throw",e)}function _(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function h(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function N(e){return e&&e.__esModule?e:{default:e}}function M(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function m(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);r.__exportStar(n(2),t),r.__exportStar(n(3),t),r.__exportStar(n(9),t),r.__exportStar(n(10),t),r.__exportStar(n(11),t),r.__exportStar(n(12),t),r.__exportStar(n(13),t),r.__exportStar(n(14),t),r.__exportStar(n(15),t),r.__exportStar(n(16),t),r.__exportStar(n(17),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);r.__exportStar(n(4),t),r.__exportStar(n(5),t),r.__exportStar(n(6),t),r.__exportStar(n(7),t),r.__exportStar(n(8),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_QRCODE_MODAL_USER_CLOSED=t.ERROR_QRCODE_MODAL_NOT_PROVIDED=t.ERROR_INVALID_URI=t.ERROR_INVALID_RESPONSE=t.ERROR_MISSING_REQUIRED=t.ERROR_MISSING_ID=t.ERROR_MISSING_METHOD=t.ERROR_MISSING_ERROR=t.ERROR_MISSING_RESULT=t.ERROR_MISSING_JSON_RPC=t.ERROR_SESSION_REJECTED=t.ERROR_SESSION_DISCONNECTED=t.ERROR_SESSION_CONNECTED=void 0,t.ERROR_SESSION_CONNECTED="Session currently connected",t.ERROR_SESSION_DISCONNECTED="Session currently disconnected",t.ERROR_SESSION_REJECTED="Session Rejected",t.ERROR_MISSING_JSON_RPC="Missing JSON RPC response",t.ERROR_MISSING_RESULT='JSON-RPC success response must include "result" field',t.ERROR_MISSING_ERROR='JSON-RPC error response must include "error" field',t.ERROR_MISSING_METHOD='JSON RPC request must have valid "method" value',t.ERROR_MISSING_ID='JSON RPC request must have valid "id" value',t.ERROR_MISSING_REQUIRED="Missing one of the required parameters: bridge / uri / session",t.ERROR_INVALID_RESPONSE="JSON RPC response format is invalid",t.ERROR_INVALID_URI="URI format is invalid",t.ERROR_QRCODE_MODAL_NOT_PROVIDED="QRCode Modal not provided",t.ERROR_QRCODE_MODAL_USER_CLOSED="User close QRCode Modal"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reservedEvents=t.RESERVED_EVENTS=void 0,t.RESERVED_EVENTS=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],t.reservedEvents=t.RESERVED_EVENTS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateMethods=t.signingMethods=t.STATE_METHODS=t.SIGNING_METHODS=t.WALLET_METHODS=void 0,t.WALLET_METHODS=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],t.SIGNING_METHODS=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...t.WALLET_METHODS],t.STATE_METHODS=["eth_accounts","eth_chainId","net_version"],t.signingMethods=t.SIGNING_METHODS,t.stateMethods=t.STATE_METHODS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mobileLinkChoiceKey=t.MOBILE_LINK_CHOICE_KEY=void 0,t.MOBILE_LINK_CHOICE_KEY="WALLETCONNECT_DEEPLINK_CHOICE",t.mobileLinkChoiceKey=t.MOBILE_LINK_CHOICE_KEY},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.infuraNetworks=t.INFURA_NETWORKS=void 0,t.INFURA_NETWORKS={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},t.infuraNetworks=t.INFURA_NETWORKS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEvents=void 0;t.IEvents=class{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}])})); |
{ | ||
"name": "@walletconnect/legacy-types", | ||
"description": "Legacy Typings (v1.0) for WalletConnect Protocol", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.10", | ||
"author": "WalletConnect, Inc. <walletconnect.com>", | ||
@@ -30,3 +30,3 @@ "homepage": "https://github.com/walletconnect/walletconnect-monorepo/", | ||
"dependencies": { | ||
"@walletconnect/jsonrpc-types": "^1.0.0" | ||
"@walletconnect/jsonrpc-types": "^1.0.2" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245965
1083