Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
Maintainers
6
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.5.3 to 2.5.4

3

CHANGELOG.md

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

* chore: Add txId to TransactionDetails type (#29)
* Chore: automatically publish the npm package when the version is updated (#28)
* Update chain config types (#31)
import { operations } from './types/api';
import { SafeTransactionEstimation, TransactionDetails, TransactionListPage } from './types/transactions';
import { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeInfo } from './types/common';
import { ChainListResponse, ChainConfig } from './types/chains';
import { ChainListResponse, ChainInfo } from './types/chains';
export * from './types/transactions';

@@ -55,2 +55,2 @@ export * from './types/chains';

*/
export declare function getChainConfig(baseUrl: string, chainId: string): Promise<ChainConfig>;
export declare function getChainConfig(baseUrl: string, chainId: string): Promise<ChainInfo>;

@@ -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()}(self,(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={},u=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:u,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 c 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(u())},a.onerror=r,a.withCredentials="include"==n.credentials,n.headers)a.setRequestHeader(c,n.headers[c]);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,{Operation:()=>e,TokenType:()=>s,TransactionStatus:()=>n,TransferDirection:()=>a,getBalances:()=>f,getChainConfig:()=>g,getChainsConfig:()=>N,getCollectibles:()=>h,getFiatCurrencies:()=>d,getOwnedSafes:()=>l,getSafeInfo:()=>c,getTransactionDetails:()=>y,getTransactionHistory:()=>p,getTransactionQueue:()=>I,postSafeGasEstimation:()=>E,proposeTransaction:()=>b});var e,n,a,s,o=t(204),i=t.n(o);function u(e,n,t,r){var a,s=r;if(!s){var o=t;s=""+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==o?void 0:o.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==o?void 0:o.query),a=null==o?void 0:o.body}return function(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(u){switch(u.label){case 0:return null!=n&&(t={method:"POST",body:"string"==typeof n?n:JSON.stringify(n),headers:{"Content-Type":"application/json"}}),[4,i()(e,t)];case 1:return[4,(r=u.sent()).json()];case 2:if(a=u.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{u(s.next(e))}catch(e){n(e)}}function i(e){try{u(s.throw(e))}catch(e){n(e)}}function u(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,i)}u((s=s.apply(t,r||[])).next())}));var t,r,a,s}(s,a)}function c(e,n,t){return u(e,"/chains/{chainId}/safes/{address}/",{path:{chainId:n,address:t}})}function f(e,n,t,r,a){return void 0===r&&(r="usd"),void 0===a&&(a={}),u(e,"/chains/{chainId}/safes/{address}/balances/{currency}/",{path:{chainId:n,address:t,currency:r},query:a})}function d(e){return u(e,"/balances/supported-fiat-codes")}function l(e,n,t){return u(e,"/chains/{chainId}/owners/{address}/safes",{path:{chainId:n,address:t}})}function h(e,n,t,r){return void 0===r&&(r={}),u(e,"/chains/{chainId}/safes/{address}/collectibles/",{path:{chainId:n,address:t},query:r})}function p(e,n,t,r){return u(e,"/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:n,safe_address:t},query:{}},r)}function I(e,n,t,r){return u(e,"/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:n,safe_address:t},query:{}},r)}function y(e,n,t){return u(e,"/chains/{chainId}/transactions/{transactionId}",{path:{chainId:n,transactionId:t}})}function E(e,n,t,r){return u(e,"/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:n,safe_address:t},body:r})}function b(e,n,t,r){return u(e,"/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:n,safe_address:t},body:r})}function N(e,n){return u(e,"/chains/",{query:n})}function g(e,n){return u(e,"/chains/{chainId}/",{path:{chainId:n}})}!function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(e||(e={})),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.PENDING_FAILED="PENDING_FAILED",e.WILL_BE_REPLACED="WILL_BE_REPLACED"}(n||(n={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(a||(a={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(s||(s={}))})(),r})()}));
!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()}(self,(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={},u=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:u,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 c 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(u())},a.onerror=r,a.withCredentials="include"==n.credentials,n.headers)a.setRequestHeader(c,n.headers[c]);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:()=>i,Operation:()=>e,RPC_AUTHENTICATION:()=>o,TokenType:()=>s,TransactionStatus:()=>n,TransferDirection:()=>a,getBalances:()=>h,getChainConfig:()=>_,getChainsConfig:()=>O,getCollectibles:()=>N,getFiatCurrencies:()=>I,getOwnedSafes:()=>p,getSafeInfo:()=>l,getTransactionDetails:()=>y,getTransactionHistory:()=>E,getTransactionQueue:()=>T,postSafeGasEstimation:()=>C,proposeTransaction:()=>A});var e,n,a,s,o,i,u,c=t(204),f=t.n(c);function d(e,n,t,r){var a,s=r;if(!s){var o=t;s=""+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==o?void 0:o.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==o?void 0:o.query),a=null==o?void 0:o.body}return function(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{u(s.next(e))}catch(e){n(e)}}function i(e){try{u(s.throw(e))}catch(e){n(e)}}function u(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,i)}u((s=s.apply(t,r||[])).next())}));var t,r,a,s}(s,a)}function l(e,n,t){return d(e,"/chains/{chainId}/safes/{address}/",{path:{chainId:n,address:t}})}function h(e,n,t,r,a){return void 0===r&&(r="usd"),void 0===a&&(a={}),d(e,"/chains/{chainId}/safes/{address}/balances/{currency}/",{path:{chainId:n,address:t,currency:r},query:a})}function I(e){return d(e,"/balances/supported-fiat-codes")}function p(e,n,t){return d(e,"/chains/{chainId}/owners/{address}/safes",{path:{chainId:n,address:t}})}function N(e,n,t,r){return void 0===r&&(r={}),d(e,"/chains/{chainId}/safes/{address}/collectibles/",{path:{chainId:n,address:t},query:r})}function E(e,n,t,r){return d(e,"/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:n,safe_address:t},query:{}},r)}function T(e,n,t,r){return d(e,"/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:n,safe_address:t},query:{}},r)}function y(e,n,t){return d(e,"/chains/{chainId}/transactions/{transactionId}",{path:{chainId:n,transactionId:t}})}function C(e,n,t,r){return d(e,"/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:n,safe_address:t},body:r})}function A(e,n,t,r){return d(e,"/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:n,safe_address:t},body:r})}function O(e,n){return d(e,"/chains/",{query:n})}function _(e,n){return d(e,"/chains/{chainId}/",{path:{chainId:n}})}!function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(e||(e={})),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.PENDING_FAILED="PENDING_FAILED",e.WILL_BE_REPLACED="WILL_BE_REPLACED"}(n||(n={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(a||(a={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(s||(s={})),function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(o||(o={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.UNKNOWN="UNKNOWN"}(i||(i={})),function(e){e.ERC721="ERC721",e.ERC1155="ERC1155",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT"}(u||(u={}))})(),r})()}));
//# sourceMappingURL=index.min.js.map
import { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeInfo } from './common';
import { MultisigTransactionRequest, TransactionDetails, SafeTransactionEstimation, SafeTransactionEstimationRequest, TransactionListPage } from './transactions';
import { ChainListResponse, ChainConfig } from './chains';
import { ChainListResponse, ChainInfo } from './chains';
export interface paths {

@@ -315,3 +315,3 @@ '/chains/{chainId}/safes/{address}/': {

200: {
schema: ChainConfig;
schema: ChainInfo;
};

@@ -318,0 +318,0 @@ };

@@ -9,3 +9,3 @@ import { FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeInfo } from './common'

} from './transactions'
import { ChainListResponse, ChainConfig } from './chains'
import { ChainListResponse, ChainInfo } from './chains'

@@ -324,3 +324,3 @@ export interface paths {

200: {
schema: ChainConfig
schema: ChainInfo
}

@@ -327,0 +327,0 @@ }

@@ -1,4 +0,9 @@

export declare type BaseRpcUri = {
authentication?: string;
value?: string;
export declare enum RPC_AUTHENTICATION {
API_KEY_PATH = "API_KEY_PATH",
NO_AUTHENTICATION = "NO_AUTHENTICATION",
UNKNOWN = "UNKNOWN"
}
export declare type RpcUri = {
authentication: RPC_AUTHENTICATION;
value: string;
};

@@ -8,8 +13,9 @@ export declare type BlockExplorerUriTemplate = {

txHash: string;
api: string;
};
export declare type Currency = {
export declare type NativeCurrency = {
name: string;
symbol: string;
decimals: number;
logoUri?: string;
logoUri: string;
};

@@ -20,4 +26,9 @@ export declare type Theme = {

};
export declare enum GAS_PRICE_TYPE {
ORACLE = "ORACLE",
FIXED = "FIXED",
UNKNOWN = "UNKNOWN"
}
export declare type GasPriceOracle = {
type: 'ORACLE';
type: GAS_PRICE_TYPE.ORACLE;
uri: string;

@@ -28,26 +39,37 @@ gasParameter: string;

export declare type GasPriceFixed = {
type: 'FIXED';
type: GAS_PRICE_TYPE.FIXED;
weiValue: string;
};
export declare type GasPrices = (GasPriceOracle | GasPriceFixed)[];
export declare type ChainConfig = {
export declare type GasPriceUnknown = {
type: GAS_PRICE_TYPE.UNKNOWN;
};
export declare type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceUnknown)[];
export declare enum FEATURES {
ERC721 = "ERC721",
ERC1155 = "ERC1155",
SAFE_APPS = "SAFE_APPS",
CONTRACT_INTERACTION = "CONTRACT_INTERACTION",
DOMAIN_LOOKUP = "DOMAIN_LOOKUP",
SPENDING_LIMIT = "SPENDING_LIMIT"
}
export declare type ChainInfo = {
transactionService: string;
chainId: string;
chainName: string;
shortName: string;
description?: string;
l2: boolean;
rpcUri?: BaseRpcUri;
safeAppsRpcUri?: BaseRpcUri;
blockExplorerUriTemplate?: BlockExplorerUriTemplate;
nativeCurrency?: Currency;
transactionService?: string;
vpcTransactionService: string;
theme?: Theme;
gasPrice?: GasPrices;
description: string;
rpcUri: RpcUri;
blockExplorerUriTemplate: BlockExplorerUriTemplate;
nativeCurrency: NativeCurrency;
theme: Theme;
ensRegistryAddress?: string;
gasPrice: GasPrice;
disabledWallets: string[];
features: FEATURES[];
};
export declare type ChainListResponse = {
next?: string;
previous?: string;
results: ChainConfig[];
next: string | null;
previous: string | null;
results: ChainInfo[];
};

@@ -1,16 +0,23 @@

export type BaseRpcUri = {
authentication?: string
value?: string
export enum RPC_AUTHENTICATION {
API_KEY_PATH = 'API_KEY_PATH',
NO_AUTHENTICATION = 'NO_AUTHENTICATION',
UNKNOWN = 'UNKNOWN',
}
export type RpcUri = {
authentication: RPC_AUTHENTICATION
value: string
}
export type BlockExplorerUriTemplate = {
address: string
txHash: string
api: string
}
export type Currency = {
export type NativeCurrency = {
name: string
symbol: string
decimals: number
logoUri?: string
logoUri: string
}

@@ -23,4 +30,10 @@

export enum GAS_PRICE_TYPE {
ORACLE = 'ORACLE',
FIXED = 'FIXED',
UNKNOWN = 'UNKNOWN',
}
export type GasPriceOracle = {
type: 'ORACLE'
type: GAS_PRICE_TYPE.ORACLE
uri: string

@@ -32,29 +45,44 @@ gasParameter: string

export type GasPriceFixed = {
type: 'FIXED'
type: GAS_PRICE_TYPE.FIXED
weiValue: string
}
export type GasPrices = (GasPriceOracle | GasPriceFixed)[]
export type GasPriceUnknown = {
type: GAS_PRICE_TYPE.UNKNOWN
}
export type ChainConfig = {
chainId: string
export type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceUnknown)[]
export enum FEATURES {
ERC721 = 'ERC721',
ERC1155 = 'ERC1155',
SAFE_APPS = 'SAFE_APPS',
CONTRACT_INTERACTION = 'CONTRACT_INTERACTION',
DOMAIN_LOOKUP = 'DOMAIN_LOOKUP',
SPENDING_LIMIT = 'SPENDING_LIMIT',
}
// Remain agnostic as possible and reference what is returned in the CGW, i.e.
// https://gnosis.github.io/safe-client-gateway/docs/routes/chains/models/struct.ChainInfo.html
export type ChainInfo = {
transactionService: string
chainId: string // Restricted by what is returned by the CGW
chainName: string
shortName: string
description?: string
l2: boolean
rpcUri?: BaseRpcUri
safeAppsRpcUri?: BaseRpcUri
blockExplorerUriTemplate?: BlockExplorerUriTemplate
nativeCurrency?: Currency
transactionService?: string
vpcTransactionService: string
theme?: Theme
gasPrice?: GasPrices
description: string
rpcUri: RpcUri
blockExplorerUriTemplate: BlockExplorerUriTemplate
nativeCurrency: NativeCurrency
theme: Theme
ensRegistryAddress?: string
gasPrice: GasPrice
disabledWallets: string[]
features: FEATURES[]
}
export type ChainListResponse = {
next?: string
previous?: string
results: ChainConfig[]
next: string | null
previous: string | null
results: ChainInfo[]
}
{
"name": "@gnosis.pm/safe-react-gateway-sdk",
"version": "2.5.3",
"version": "2.5.4",
"main": "dist/index.min.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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