Socket
Socket
Sign inDemoInstall

@safe-global/safe-gateway-typescript-sdk

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@safe-global/safe-gateway-typescript-sdk - npm Package Compare versions

Comparing version 3.21.0-alpha.0 to 3.21.0-alpha.1

4

dist/index.d.ts

@@ -101,2 +101,6 @@ import type { operations } from './types/api';

/**
* Returns decoded data
*/
export declare function getConfirmationView(chainId: string, safeAddress: string, encodedData: operations['data_decoder']['parameters']['body']['data'], to?: operations['data_decoder']['parameters']['body']['to']): Promise<DecodedDataResponse>;
/**
* Returns all defined chain configs

@@ -103,0 +107,0 @@ */

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getSafeOverviews = exports.unsubscribeAll = exports.unsubscribeSingle = exports.registerRecoveryModule = exports.deleteRegisteredEmail = exports.getRegisteredEmail = exports.verifyEmail = exports.resendEmailVerificationCode = exports.changeEmail = exports.registerEmail = exports.unregisterDevice = exports.unregisterSafe = exports.registerDevice = exports.getDelegates = exports.confirmSafeMessage = exports.proposeSafeMessage = exports.getSafeMessage = exports.getSafeMessages = exports.getDecodedData = exports.getMasterCopies = exports.getSafeApps = exports.getChainConfig = exports.getChainsConfig = exports.proposeTransaction = exports.getNonces = exports.postSafeGasEstimation = exports.deleteTransaction = exports.getTransactionDetails = exports.getTransactionQueue = exports.getTransactionHistory = exports.getCollectiblesPage = exports.getCollectibles = exports.getAllOwnedSafes = exports.getOwnedSafes = exports.getFiatCurrencies = exports.getBalances = exports.getMultisigTransactions = exports.getModuleTransactions = exports.getIncomingTransfers = exports.getSafeInfo = exports.getRelayCount = exports.relayTransaction = exports.setBaseUrl = void 0;
exports.getSafeOverviews = exports.unsubscribeAll = exports.unsubscribeSingle = exports.registerRecoveryModule = exports.deleteRegisteredEmail = exports.getRegisteredEmail = exports.verifyEmail = exports.resendEmailVerificationCode = exports.changeEmail = exports.registerEmail = exports.unregisterDevice = exports.unregisterSafe = exports.registerDevice = exports.getDelegates = exports.confirmSafeMessage = exports.proposeSafeMessage = exports.getSafeMessage = exports.getSafeMessages = exports.getDecodedData = exports.getMasterCopies = exports.getSafeApps = exports.getChainConfig = exports.getChainsConfig = exports.getConfirmationView = exports.proposeTransaction = exports.getNonces = exports.postSafeGasEstimation = exports.deleteTransaction = exports.getTransactionDetails = exports.getTransactionQueue = exports.getTransactionHistory = exports.getCollectiblesPage = exports.getCollectibles = exports.getAllOwnedSafes = exports.getOwnedSafes = exports.getFiatCurrencies = exports.getBalances = exports.getMultisigTransactions = exports.getModuleTransactions = exports.getIncomingTransfers = exports.getSafeInfo = exports.getRelayCount = exports.relayTransaction = exports.setBaseUrl = void 0;
const endpoint_1 = require("./endpoint");

@@ -200,2 +200,12 @@ const config_1 = require("./config");

/**
* Returns decoded data
*/
function getConfirmationView(chainId, safeAddress, encodedData, to) {
return (0, endpoint_1.postEndpoint)(baseUrl, '/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation', {
path: { chainId: chainId, safe_address: safeAddress },
body: { data: encodedData, to },
});
}
exports.getConfirmationView = getConfirmationView;
/**
* Returns all defined chain configs

@@ -202,0 +212,0 @@ */

@@ -6,3 +6,3 @@ import type { AllOwnedSafes, FiatCurrencies, OwnedSafes, SafeBalanceResponse, SafeCollectibleResponse, SafeCollectiblesPage } from './common';

import type { SafeAppsResponse } from './safe-apps';
import type { DecodedDataRequest, DecodedDataResponse } from './decoded-data';
import type { BaselineConfirmationView, CowSwapConfirmationView, DecodedDataRequest, DecodedDataResponse } from './decoded-data';
import type { MasterCopyReponse } from './master-copies';

@@ -209,2 +209,11 @@ import type { ConfirmSafeMessageRequest, ProposeSafeMessageRequest, SafeMessage, SafeMessageListPage } from './safe-messages';

};
'/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation': {
post: operations['get_transaction_confirmation_view'];
parameters: {
path: {
chainId: string;
safe_address: string;
};
};
};
'/v1/chains/{chainId}/owners/{address}/safes': {

@@ -712,2 +721,17 @@ get: operations['get_owned_safes'];

};
get_transaction_confirmation_view: {
parameters: {
path: {
/** A unique value identifying this chain. */
chainId: string;
safe_address: string;
};
body: DecodedDataRequest;
};
responses: {
200: {
schema: BaselineConfirmationView | CowSwapConfirmationView;
};
};
};
get_owned_safes: {

@@ -714,0 +738,0 @@ parameters: {

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

import type { SwapOrder } from './transactions';
export type DecodedDataRequest = {

@@ -28,2 +29,8 @@ data: string;

};
export type BaselineConfirmationView = {
type: 'GENERIC';
} & DecodedDataResponse;
export type CowSwapConfirmationView = {
type: 'COW_SWAP_ORDER';
} & DecodedDataResponse & Omit<SwapOrder, 'type' | 'humanDescription' | 'richDecodedInfo'>;
export {};

2

dist/types/transactions.d.ts

@@ -217,3 +217,3 @@ import type { AddressEx, Page, TokenInfo } from './common';

kind: OrderKind;
class: OrderClass;
orderClass: OrderClass;
/** @description The timestamp when the order expires */

@@ -220,0 +220,0 @@ validUntil: number;

{
"name": "@safe-global/safe-gateway-typescript-sdk",
"version": "3.21.0-alpha.0",
"version": "3.21.0-alpha.1",
"main": "dist/index.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