Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gnosis.pm/safe-react-gateway-sdk

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/safe-react-gateway-sdk - npm Package Compare versions

Comparing version 2.9.0 to 2.10.0

2

dist/index.min.js

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports['"@gnosis.pm/safe-react-gateway-sdk"']=n():e['"@gnosis.pm/safe-react-gateway-sdk"']=n()}(this,(function(){return(()=>{var e={204:(e,n,t)=>{e.exports=self.fetch||(self.fetch=t(869).default||t(869))},869:(e,n,t)=>{"use strict";function r(e,n){return n=n||{},new Promise((function(t,r){var a=new XMLHttpRequest,s=[],o=[],i={},c=function(){return{ok:2==(a.status/100|0),statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:c,headers:{keys:function(){return s},entries:function(){return o},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var u in a.open(n.method||"get",e,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,n,t){s.push(n=n.toLowerCase()),o.push([n,t]),i[n]=i[n]?i[n]+","+t:t})),t(c())},a.onerror=r,a.withCredentials="include"==n.credentials,n.headers)a.setRequestHeader(u,n.headers[u]);a.send(n.body||null)}))}t.r(n),t.d(n,{default:()=>r})}},n={};function t(r){var a=n[r];if(void 0!==a)return a.exports;var s=n[r]={exports:{}};return e[r](s,s.exports,t),s.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";t.r(r),t.d(r,{FEATURES:()=>u,GAS_PRICE_TYPE:()=>c,Operation:()=>n,RPC_AUTHENTICATION:()=>i,SafeAppAccessPolicyTypes:()=>e,TokenType:()=>o,TransactionStatus:()=>a,TransferDirection:()=>s,getBalances:()=>I,getChainConfig:()=>S,getChainsConfig:()=>_,getCollectibles:()=>T,getDecodedData:()=>L,getFiatCurrencies:()=>N,getMasterCopies:()=>g,getOwnedSafes:()=>E,getSafeApps:()=>b,getSafeInfo:()=>p,getTransactionDetails:()=>y,getTransactionHistory:()=>A,getTransactionQueue:()=>O,postSafeGasEstimation:()=>v,proposeTransaction:()=>C});var e,n,a,s,o,i,c,u,d=t(204),f=t.n(d);function l(e,n){return t=this,r=void 0,s=function(){var t,r,a,s,o;return function(e,n){var t,r,a,s,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}(this,(function(i){switch(i.label){case 0:return null!=n&&(t={method:"POST",body:"string"==typeof n?n:JSON.stringify(n),headers:{"Content-Type":"application/json"}}),[4,f()(e,t)];case 1:return[4,(r=i.sent()).json()];case 2:if(a=i.sent(),!r.ok){s="";try{s=(o=a).code+": "+o.message}catch(e){s=r.statusText}throw new Error(s)}return[2,a]}}))},new((a=void 0)||(a=Promise))((function(e,n){function o(e){try{c(s.next(e))}catch(e){n(e)}}function i(e){try{c(s.throw(e))}catch(e){n(e)}}function c(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,i)}c((s=s.apply(t,r||[])).next())}));var t,r,a,s}function h(e,n,t,r){if(r)return l(r);var a=t;return l(""+e+function(e,n){return n?Object.keys(n).reduce((function(e,t){return function(e,n,t){return e.replace(new RegExp("\\{"+n+"\\}","g"),t)}(e,t,String(n[t]))}),e):e}(n,null==a?void 0:a.path)+function(e){if(!e)return"";var n=new URLSearchParams;Object.keys(e).forEach((function(t){null!=e[t]&&n.append(t,String(e[t]))}));var t=n.toString();return t?"?"+t:""}(null==a?void 0:a.query),null==a?void 0:a.body)}function p(e,n,t){return h(e,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:n,address:t}})}function I(e,n,t,r,a){return void 0===r&&(r="usd"),void 0===a&&(a={}),h(e,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:n,address:t,currency:r},query:a})}function N(e){return h(e,"/v1/balances/supported-fiat-codes")}function E(e,n,t){return h(e,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:n,address:t}})}function T(e,n,t,r){return void 0===r&&(r={}),h(e,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:n,address:t},query:r})}function A(e,n,t,r){return h(e,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:n,safe_address:t},query:{}},r)}function O(e,n,t,r){return h(e,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:n,safe_address:t},query:{}},r)}function y(e,n,t){return h(e,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:n,transactionId:t}})}function v(e,n,t,r){return h(e,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:n,safe_address:t},body:r})}function C(e,n,t,r){return h(e,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:n,safe_address:t},body:r})}function _(e,n){return h(e,"/v1/chains",{query:n})}function S(e,n){return h(e,"/v1/chains/{chainId}",{path:{chainId:n}})}function b(e,n,t){return void 0===t&&(t={}),h(e,"/v1/chains/{chainId}/safe-apps",{path:{chainId:n},query:t})}function g(e,n){return h(e,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:n}})}function L(e,n,t){return h(e,"/v1/chains/{chainId}/data-decoder",{path:{chainId:n},body:{data:t}})}!function(e){e.NoRestrictions="NO_RESTRICTIONS",e.DomainAllowlist="DOMAIN_ALLOWLIST"}(e||(e={})),function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(n||(n={})),function(e){e.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",e.AWAITING_EXECUTION="AWAITING_EXECUTION",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e.SUCCESS="SUCCESS",e.PENDING="PENDING",e.WILL_BE_REPLACED="WILL_BE_REPLACED"}(a||(a={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(s||(s={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(o||(o={})),function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(i||(i={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.UNKNOWN="UNKNOWN"}(c||(c={})),function(e){e.ERC721="ERC721",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT",e.EIP1559="EIP1559",e.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL"}(u||(u={}))})(),r})()}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports['"@gnosis.pm/safe-react-gateway-sdk"']=e():t['"@gnosis.pm/safe-react-gateway-sdk"']=e()}(this,(function(){return(()=>{var t={98:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function l(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=l(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=l(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),d(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),d(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function A(t,e){var r,n,o=(e=e||{}).body;if(t instanceof A){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),I.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function T(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function v(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})},E.call(A.prototype),E.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var O=[301,302,303,307,308];v.redirect=function(t,e){if(-1===O.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(t,r){return new Promise((function(n,i){var s=new A(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new v(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=h,t.Request=A,t.Response=v),e.Headers=h,e.Request=A,e.Response=v,e.fetch=_,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{FEATURES:()=>u,GAS_PRICE_TYPE:()=>c,Operation:()=>e,RPC_AUTHENTICATION:()=>a,SafeAppAccessPolicyTypes:()=>t,TokenType:()=>f,TransactionStatus:()=>o,TransactionTokenType:()=>s,TransferDirection:()=>i,getBalances:()=>b,getChainConfig:()=>w,getChainsConfig:()=>N,getCollectibles:()=>A,getDecodedData:()=>S,getFiatCurrencies:()=>E,getMasterCopies:()=>C,getOwnedSafes:()=>I,getSafeApps:()=>g,getSafeInfo:()=>y,getTransactionDetails:()=>O,getTransactionHistory:()=>T,getTransactionQueue:()=>v,postSafeGasEstimation:()=>_,proposeTransaction:()=>m});var t,e,o,i,s,a,c,u,f,d=r(98),h=r.n(d);function p(t,e){return r=this,n=void 0,i=function(){var r,n,o,i,s;return function(t,e){var r,n,o,i,s={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(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(a){switch(a.label){case 0:return null!=e&&(r={method:"POST",body:"string"==typeof e?e:JSON.stringify(e),headers:{"Content-Type":"application/json"}}),[4,h()(t,r)];case 1:return[4,(n=a.sent()).json()];case 2:if(o=a.sent(),!n.ok){i="";try{i=(s=o).code+": "+s.message}catch(t){i=n.statusText}throw new Error(i)}return[2,o]}}))},new((o=void 0)||(o=Promise))((function(t,e){function s(t){try{c(i.next(t))}catch(t){e(t)}}function a(t){try{c(i.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(s,a)}c((i=i.apply(r,n||[])).next())}));var r,n,o,i}function l(t,e,r,n){if(n)return p(n);var o=r;return p(""+t+function(t,e){return e?Object.keys(e).reduce((function(t,r){return function(t,e,r){return t.replace(new RegExp("\\{"+e+"\\}","g"),r)}(t,r,String(e[r]))}),t):t}(e,null==o?void 0:o.path)+function(t){if(!t)return"";var e=new URLSearchParams;Object.keys(t).forEach((function(r){null!=t[r]&&e.append(r,String(t[r]))}));var r=e.toString();return r?"?"+r:""}(null==o?void 0:o.query),null==o?void 0:o.body)}function y(t,e,r){return l(t,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:e,address:r}})}function b(t,e,r,n,o){return void 0===n&&(n="usd"),void 0===o&&(o={}),l(t,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:e,address:r,currency:n},query:o})}function E(t){return l(t,"/v1/balances/supported-fiat-codes")}function I(t,e,r){return l(t,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:e,address:r}})}function A(t,e,r,n){return void 0===n&&(n={}),l(t,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:r},query:n})}function T(t,e,r,n){return l(t,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:e,safe_address:r},query:{}},n)}function v(t,e,r,n){return l(t,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:e,safe_address:r},query:{}},n)}function O(t,e,r){return l(t,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:e,transactionId:r}})}function _(t,e,r,n){return l(t,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:e,safe_address:r},body:n})}function m(t,e,r,n){return l(t,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:e,safe_address:r},body:n})}function N(t,e){return l(t,"/v1/chains",{query:e})}function w(t,e){return l(t,"/v1/chains/{chainId}",{path:{chainId:e}})}function g(t,e,r){return void 0===r&&(r={}),l(t,"/v1/chains/{chainId}/safe-apps",{path:{chainId:e},query:r})}function C(t,e){return l(t,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:e}})}function S(t,e,r){return l(t,"/v1/chains/{chainId}/data-decoder",{path:{chainId:e},body:{data:r}})}!function(t){t.NoRestrictions="NO_RESTRICTIONS",t.DomainAllowlist="DOMAIN_ALLOWLIST"}(t||(t={})),function(t){t[t.CALL=0]="CALL",t[t.DELEGATE=1]="DELEGATE"}(e||(e={})),function(t){t.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",t.AWAITING_EXECUTION="AWAITING_EXECUTION",t.CANCELLED="CANCELLED",t.FAILED="FAILED",t.SUCCESS="SUCCESS",t.PENDING="PENDING",t.WILL_BE_REPLACED="WILL_BE_REPLACED"}(o||(o={})),function(t){t.INCOMING="INCOMING",t.OUTGOING="OUTGOING",t.UNKNOWN="UNKNOWN"}(i||(i={})),function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_COIN="NATIVE_COIN"}(s||(s={})),function(t){t.API_KEY_PATH="API_KEY_PATH",t.NO_AUTHENTICATION="NO_AUTHENTICATION",t.UNKNOWN="UNKNOWN"}(a||(a={})),function(t){t.ORACLE="ORACLE",t.FIXED="FIXED",t.UNKNOWN="UNKNOWN"}(c||(c={})),function(t){t.ERC721="ERC721",t.SAFE_APPS="SAFE_APPS",t.CONTRACT_INTERACTION="CONTRACT_INTERACTION",t.DOMAIN_LOOKUP="DOMAIN_LOOKUP",t.SPENDING_LIMIT="SPENDING_LIMIT",t.EIP1559="EIP1559",t.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL"}(u||(u={})),function(t){t.ERC20="ERC20",t.ERC721="ERC721",t.NATIVE_TOKEN="NATIVE_TOKEN"}(f||(f={}))})(),n})()}));
//# sourceMappingURL=index.min.js.map

@@ -1,2 +0,6 @@

import { AddressEx, TokenInfo } from './transactions';
export declare type AddressEx = {
value: string;
name: string | null;
logoUri: string | null;
};
export declare type SafeInfo = {

@@ -21,2 +25,15 @@ address: AddressEx;

};
export declare enum TokenType {
ERC20 = "ERC20",
ERC721 = "ERC721",
NATIVE_TOKEN = "NATIVE_TOKEN"
}
export declare type TokenInfo = {
type: TokenType;
address: string;
decimals: number;
symbol: string;
name: string;
logoUri: string | null;
};
export declare type SafeBalanceResponse = {

@@ -23,0 +40,0 @@ fiatTotal: string;

@@ -1,2 +0,6 @@

import { AddressEx, TokenInfo } from './transactions'
export type AddressEx = {
value: string
name: string | null
logoUri: string | null
}

@@ -23,2 +27,17 @@ export type SafeInfo = {

export enum TokenType {
ERC20 = 'ERC20',
ERC721 = 'ERC721',
NATIVE_TOKEN = 'NATIVE_TOKEN',
}
export type TokenInfo = {
type: TokenType
address: string
decimals: number
symbol: string
name: string
logoUri: string | null
}
export type SafeBalanceResponse = {

@@ -25,0 +44,0 @@ fiatTotal: string

@@ -0,1 +1,2 @@

import { AddressEx, TokenInfo } from './common';
export declare type ParamValue = string | ParamValue[];

@@ -24,7 +25,2 @@ export declare enum Operation {

};
export declare type AddressEx = {
value: string;
name: string | null;
logoUri: string | null;
};
export declare enum TransactionStatus {

@@ -44,3 +40,3 @@ AWAITING_CONFIRMATIONS = "AWAITING_CONFIRMATIONS",

}
export declare enum TokenType {
export declare enum TransactionTokenType {
ERC20 = "ERC20",

@@ -51,3 +47,3 @@ ERC721 = "ERC721",

export declare type Erc20Transfer = {
type: TokenType.ERC20;
type: TransactionTokenType.ERC20;
tokenAddress: string;

@@ -61,3 +57,3 @@ tokenName: string | null;

export declare type Erc721Transfer = {
type: TokenType.ERC721;
type: TransactionTokenType.ERC721;
tokenAddress: string;

@@ -70,3 +66,3 @@ tokenId: string;

export declare type NativeCoinTransfer = {
type: TokenType.NATIVE_COIN;
type: TransactionTokenType.NATIVE_COIN;
value: string;

@@ -234,10 +230,2 @@ };

};
export declare type TokenInfo = {
type: TokenType;
address: string;
decimals: number;
symbol: string;
name: string;
logoUri: string | null;
};
export declare type MultisigExecutionDetails = {

@@ -244,0 +232,0 @@ type: 'MULTISIG';

@@ -0,1 +1,3 @@

import { AddressEx, TokenInfo } from './common'
export type ParamValue = string | ParamValue[]

@@ -30,8 +32,2 @@

export type AddressEx = {
value: string
name: string | null
logoUri: string | null
}
export enum TransactionStatus {

@@ -53,3 +49,3 @@ AWAITING_CONFIRMATIONS = 'AWAITING_CONFIRMATIONS',

export enum TokenType {
export enum TransactionTokenType {
ERC20 = 'ERC20',

@@ -61,3 +57,3 @@ ERC721 = 'ERC721',

export type Erc20Transfer = {
type: TokenType.ERC20
type: TransactionTokenType.ERC20
tokenAddress: string

@@ -72,3 +68,3 @@ tokenName: string | null

export type Erc721Transfer = {
type: TokenType.ERC721
type: TransactionTokenType.ERC721
tokenAddress: string

@@ -82,3 +78,3 @@ tokenId: string

export type NativeCoinTransfer = {
type: TokenType.NATIVE_COIN
type: TransactionTokenType.NATIVE_COIN
value: string

@@ -286,11 +282,2 @@ }

export type TokenInfo = {
type: TokenType
address: string
decimals: number
symbol: string
name: string
logoUri: string | null
}
export type MultisigExecutionDetails = {

@@ -297,0 +284,0 @@ type: 'MULTISIG'

{
"name": "@gnosis.pm/safe-react-gateway-sdk",
"version": "2.9.0",
"version": "2.10.0",
"main": "dist/index.min.js",

@@ -13,3 +13,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"isomorphic-unfetch": "^3.1.0"
"cross-fetch": "^3.1.5"
},

@@ -16,0 +16,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc