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.11.0 to 3.12.0

dist/types/human-description.d.ts

0

dist/config.d.ts
export declare const DEFAULT_BASE_URL = "https://safe-client.safe.global";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import type { DeleteEndpoint, GetEndpoint, paths, PostEndpoint } from './types/api';

@@ -0,0 +0,0 @@ "use strict";

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

@@ -0,0 +0,0 @@ "use strict";

2

dist/types/api.d.ts

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

import type { RegisterNotificationsRequest } from './notifications';
export declare type Primitive = string | number | boolean | null;
export type Primitive = string | number | boolean | null;
interface Params {

@@ -14,0 +14,0 @@ path?: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=api.js.map

@@ -7,7 +7,7 @@ import type { Page } from './common';

}
export declare type RpcUri = {
export type RpcUri = {
authentication: RPC_AUTHENTICATION;
value: string;
};
export declare type BlockExplorerUriTemplate = {
export type BlockExplorerUriTemplate = {
address: string;

@@ -17,3 +17,3 @@ txHash: string;

};
export declare type NativeCurrency = {
export type NativeCurrency = {
name: string;

@@ -24,3 +24,3 @@ symbol: string;

};
export declare type Theme = {
export type Theme = {
textColor: string;

@@ -35,3 +35,3 @@ backgroundColor: string;

}
export declare type GasPriceOracle = {
export type GasPriceOracle = {
type: GAS_PRICE_TYPE.ORACLE;

@@ -42,7 +42,7 @@ uri: string;

};
export declare type GasPriceFixed = {
export type GasPriceFixed = {
type: GAS_PRICE_TYPE.FIXED;
weiValue: string;
};
export declare type GasPriceFixedEIP1559 = {
export type GasPriceFixedEIP1559 = {
type: GAS_PRICE_TYPE.FIXED_1559;

@@ -52,6 +52,6 @@ maxFeePerGas: string;

};
export declare type GasPriceUnknown = {
export type GasPriceUnknown = {
type: GAS_PRICE_TYPE.UNKNOWN;
};
export declare type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceFixedEIP1559 | GasPriceUnknown)[];
export type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceFixedEIP1559 | GasPriceUnknown)[];
export declare enum FEATURES {

@@ -68,3 +68,3 @@ ERC721 = "ERC721",

}
export declare type ChainInfo = {
export type ChainInfo = {
transactionService: string;

@@ -87,2 +87,2 @@ chainId: string;

};
export declare type ChainListResponse = Page<ChainInfo>;
export type ChainListResponse = Page<ChainInfo>;

@@ -0,0 +0,0 @@ "use strict";

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

export declare type AddressEx = {
export type AddressEx = {
value: string;

@@ -6,4 +6,4 @@ name?: string;

};
export declare type FiatCurrencies = string[];
export declare type OwnedSafes = {
export type FiatCurrencies = string[];
export type OwnedSafes = {
safes: string[];

@@ -19,3 +19,3 @@ };

*/
export declare type TokenInfo = {
export type TokenInfo = {
type: TokenType;

@@ -28,3 +28,3 @@ address: string;

};
export declare type SafeBalanceResponse = {
export type SafeBalanceResponse = {
fiatTotal: string;

@@ -38,3 +38,3 @@ items: Array<{

};
export declare type Page<T> = {
export type Page<T> = {
next?: string;

@@ -44,3 +44,3 @@ previous?: string;

};
export declare type SafeCollectibleResponse = {
export type SafeCollectibleResponse = {
address: string;

@@ -59,2 +59,2 @@ tokenName: string;

};
export declare type SafeCollectiblesPage = Page<SafeCollectibleResponse>;
export type SafeCollectiblesPage = Page<SafeCollectibleResponse>;

@@ -0,0 +0,0 @@ "use strict";

@@ -1,7 +0,7 @@

export declare type DecodedDataRequest = {
export type DecodedDataRequest = {
data: string;
to?: string;
};
declare type ParamValue = string | ParamValue[];
export declare type DecodedDataBasicParameter = {
type ParamValue = string | ParamValue[];
export type DecodedDataBasicParameter = {
name: string;

@@ -11,3 +11,3 @@ type: string;

};
export declare type DecodedDataParameterValue = {
export type DecodedDataParameterValue = {
operation: 0 | 1;

@@ -22,6 +22,6 @@ to: string;

};
export declare type DecodedDataParameter = {
export type DecodedDataParameter = {
valueDecoded?: DecodedDataParameterValue[];
} & DecodedDataBasicParameter;
export declare type DecodedDataResponse = {
export type DecodedDataResponse = {
method: string;

@@ -28,0 +28,0 @@ parameters: DecodedDataParameter[];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=decoded-data.js.map
import type { Page } from './common';
export declare type Delegate = {
export type Delegate = {
safe?: string;

@@ -8,4 +8,4 @@ delegate: string;

};
export declare type DelegateResponse = Page<Delegate>;
export declare type DelegatesRequest = {
export type DelegateResponse = Page<Delegate>;
export type DelegatesRequest = {
safe?: string;

@@ -16,3 +16,3 @@ delegate?: string;

};
export declare type AddDelegateRequest = {
export type AddDelegateRequest = {
safe?: string;

@@ -24,3 +24,3 @@ delegate: string;

};
export declare type DeleteDelegateRequest = {
export type DeleteDelegateRequest = {
delegate: string;

@@ -30,3 +30,3 @@ delegator: string;

};
export declare type DeleteSafeDelegateRequest = {
export type DeleteSafeDelegateRequest = {
safe: string;

@@ -33,0 +33,0 @@ delegate: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=delegates.js.map

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

export declare type MasterCopyReponse = {
export type MasterCopyReponse = {
address: string;
version: string;
}[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=master-copies.js.map

@@ -6,3 +6,3 @@ export declare enum DeviceType {

}
declare type SafeRegistration = {
type SafeRegistration = {
chainId: string;

@@ -12,3 +12,3 @@ safes: Array<string>;

};
export declare type RegisterNotificationsRequest = {
export type RegisterNotificationsRequest = {
uuid?: string;

@@ -15,0 +15,0 @@ cloudMessagingToken: string;

@@ -0,0 +0,0 @@ "use strict";

@@ -5,11 +5,11 @@ export declare enum SafeAppAccessPolicyTypes {

}
export declare type SafeAppNoRestrictionsPolicy = {
export type SafeAppNoRestrictionsPolicy = {
type: SafeAppAccessPolicyTypes.NoRestrictions;
};
export declare type SafeAppDomainAllowlistPolicy = {
export type SafeAppDomainAllowlistPolicy = {
type: SafeAppAccessPolicyTypes.DomainAllowlist;
value: string[];
};
export declare type SafeAppsAccessControlPolicies = SafeAppNoRestrictionsPolicy | SafeAppDomainAllowlistPolicy;
export declare type SafeAppProvider = {
export type SafeAppsAccessControlPolicies = SafeAppNoRestrictionsPolicy | SafeAppDomainAllowlistPolicy;
export type SafeAppProvider = {
url: string;

@@ -26,7 +26,7 @@ name: string;

}
export declare type SafeAppSocialProfile = {
export type SafeAppSocialProfile = {
platform: SafeAppSocialPlatforms;
url: string;
};
export declare type SafeAppData = {
export type SafeAppData = {
id: number;

@@ -45,2 +45,2 @@ url: string;

};
export declare type SafeAppsResponse = SafeAppData[];
export type SafeAppsResponse = SafeAppData[];

@@ -0,0 +0,0 @@ "use strict";

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

}
export declare type SafeInfo = {
export type SafeInfo = {
address: AddressEx;

@@ -10,0 +10,0 @@ chainId: string;

@@ -0,0 +0,0 @@ "use strict";

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

}
export declare type SafeMessageDateLabel = {
export type SafeMessageDateLabel = {
type: SafeMessageListItemType.DATE_LABEL;

@@ -26,6 +26,6 @@ timestamp: number;

}
declare type TypedMessageTypes = {
type TypedMessageTypes = {
[key: string]: TypedDataTypes[];
};
export declare type EIP712TypedData = {
export type EIP712TypedData = {
domain: TypedDataDomain;

@@ -35,3 +35,3 @@ types: TypedMessageTypes;

};
export declare type SafeMessage = {
export type SafeMessage = {
type: SafeMessageListItemType.MESSAGE;

@@ -54,5 +54,5 @@ messageHash: string;

};
export declare type SafeMessageListItem = SafeMessageDateLabel | SafeMessage;
export declare type SafeMessageListPage = Page<SafeMessageListItem>;
export declare type ProposeSafeMessageRequest = {
export type SafeMessageListItem = SafeMessageDateLabel | SafeMessage;
export type SafeMessageListPage = Page<SafeMessageListItem>;
export type ProposeSafeMessageRequest = {
message: SafeMessage['message'];

@@ -62,5 +62,5 @@ safeAppId?: number;

};
export declare type ConfirmSafeMessageRequest = {
export type ConfirmSafeMessageRequest = {
signature: string;
};
export {};

@@ -0,0 +0,0 @@ "use strict";

import type { AddressEx, Page, TokenInfo } from './common';
export declare type ParamValue = string | ParamValue[];
import type { RichDecodedInfo } from './human-description';
export type ParamValue = string | ParamValue[];
export declare enum Operation {

@@ -7,3 +8,3 @@ CALL = 0,

}
export declare type InternalTransaction = {
export type InternalTransaction = {
operation: Operation;

@@ -15,4 +16,4 @@ to: string;

};
export declare type ValueDecodedType = InternalTransaction[];
export declare type Parameter = {
export type ValueDecodedType = InternalTransaction[];
export type Parameter = {
name: string;

@@ -23,3 +24,3 @@ type: string;

};
export declare type DataDecoded = {
export type DataDecoded = {
method: string;

@@ -78,3 +79,3 @@ parameters?: Parameter[];

}
export declare type Erc20Transfer = {
export type Erc20Transfer = {
type: TransactionTokenType.ERC20;

@@ -88,3 +89,3 @@ tokenAddress: string;

};
export declare type Erc721Transfer = {
export type Erc721Transfer = {
type: TransactionTokenType.ERC721;

@@ -97,8 +98,8 @@ tokenAddress: string;

};
export declare type NativeCoinTransfer = {
export type NativeCoinTransfer = {
type: TransactionTokenType.NATIVE_COIN;
value: string;
};
export declare type TransferInfo = Erc20Transfer | Erc721Transfer | NativeCoinTransfer;
export declare type Transfer = {
export type TransferInfo = Erc20Transfer | Erc721Transfer | NativeCoinTransfer;
export type Transfer = {
type: TransactionInfoType.TRANSFER;

@@ -110,8 +111,9 @@ sender: AddressEx;

humanDescription?: string;
richDecodedInfo?: RichDecodedInfo;
};
export declare type SetFallbackHandler = {
export type SetFallbackHandler = {
type: SettingsInfoType.SET_FALLBACK_HANDLER;
handler: AddressEx;
};
export declare type AddOwner = {
export type AddOwner = {
type: SettingsInfoType.ADD_OWNER;

@@ -121,3 +123,3 @@ owner: AddressEx;

};
export declare type RemoveOwner = {
export type RemoveOwner = {
type: SettingsInfoType.REMOVE_OWNER;

@@ -127,3 +129,3 @@ owner: AddressEx;

};
export declare type SwapOwner = {
export type SwapOwner = {
type: SettingsInfoType.SWAP_OWNER;

@@ -133,27 +135,27 @@ oldOwner: AddressEx;

};
export declare type ChangeThreshold = {
export type ChangeThreshold = {
type: SettingsInfoType.CHANGE_THRESHOLD;
threshold: number;
};
export declare type ChangeImplementation = {
export type ChangeImplementation = {
type: SettingsInfoType.CHANGE_IMPLEMENTATION;
implementation: AddressEx;
};
export declare type EnableModule = {
export type EnableModule = {
type: SettingsInfoType.ENABLE_MODULE;
module: AddressEx;
};
export declare type DisableModule = {
export type DisableModule = {
type: SettingsInfoType.DISABLE_MODULE;
module: AddressEx;
};
export declare type SetGuard = {
export type SetGuard = {
type: SettingsInfoType.SET_GUARD;
guard: AddressEx;
};
export declare type DeleteGuard = {
export type DeleteGuard = {
type: SettingsInfoType.DELETE_GUARD;
};
export declare type SettingsInfo = SetFallbackHandler | AddOwner | RemoveOwner | SwapOwner | ChangeThreshold | ChangeImplementation | EnableModule | DisableModule | SetGuard | DeleteGuard;
export declare type SettingsChange = {
export type SettingsInfo = SetFallbackHandler | AddOwner | RemoveOwner | SwapOwner | ChangeThreshold | ChangeImplementation | EnableModule | DisableModule | SetGuard | DeleteGuard;
export type SettingsChange = {
type: TransactionInfoType.SETTINGS_CHANGE;

@@ -163,4 +165,5 @@ dataDecoded: DataDecoded;

humanDescription?: string;
richDecodedInfo?: RichDecodedInfo;
};
export declare type Custom = {
export type Custom = {
type: TransactionInfoType.CUSTOM;

@@ -174,4 +177,5 @@ to: AddressEx;

humanDescription?: string;
richDecodedInfo?: RichDecodedInfo;
};
export declare type MultiSend = {
export type MultiSend = {
type: TransactionInfoType.CUSTOM;

@@ -185,7 +189,8 @@ to: AddressEx;

humanDescription?: string;
richDecodedInfo?: RichDecodedInfo;
};
export declare type Cancellation = Custom & {
export type Cancellation = Custom & {
isCancellation: true;
};
export declare type Creation = {
export type Creation = {
type: TransactionInfoType.CREATION;

@@ -197,9 +202,10 @@ creator: AddressEx;

humanDescription?: string;
richDecodedInfo?: RichDecodedInfo;
};
export declare type TransactionInfo = Transfer | SettingsChange | Custom | MultiSend | Cancellation | Creation;
export declare type ModuleExecutionInfo = {
export type TransactionInfo = Transfer | SettingsChange | Custom | MultiSend | Cancellation | Creation;
export type ModuleExecutionInfo = {
type: DetailedExecutionInfoType.MODULE;
address: AddressEx;
};
export declare type MultisigExecutionInfo = {
export type MultisigExecutionInfo = {
type: DetailedExecutionInfoType.MULTISIG;

@@ -211,4 +217,4 @@ nonce: number;

};
export declare type ExecutionInfo = ModuleExecutionInfo | MultisigExecutionInfo;
export declare type TransactionSummary = {
export type ExecutionInfo = ModuleExecutionInfo | MultisigExecutionInfo;
export type TransactionSummary = {
id: string;

@@ -221,3 +227,3 @@ timestamp: number;

};
export declare type Transaction = {
export type Transaction = {
transaction: TransactionSummary;

@@ -227,3 +233,3 @@ conflictType: ConflictType;

};
export declare type IncomingTransfer = Omit<Transaction, 'transaction'> & {
export type IncomingTransfer = Omit<Transaction, 'transaction'> & {
transaction: Omit<TransactionSummary, 'txInfo' | 'executionInfo'> & {

@@ -235,3 +241,3 @@ txInfo: Omit<Transfer, 'direction'> & {

};
export declare type ModuleTransaction = Omit<Transaction, 'transaction'> & {
export type ModuleTransaction = Omit<Transaction, 'transaction'> & {
transaction: Omit<TransactionSummary, 'txInfo' | 'executionInfo'> & {

@@ -242,3 +248,3 @@ txInfo: Transfer;

};
export declare type MultisigTransaction = Omit<Transaction, 'transaction'> & {
export type MultisigTransaction = Omit<Transaction, 'transaction'> & {
transaction: Omit<TransactionSummary, 'txInfo' | 'executionInfo'> & {

@@ -251,3 +257,3 @@ txInfo: Omit<Transfer, 'direction'> & {

};
export declare type DateLabel = {
export type DateLabel = {
timestamp: number;

@@ -260,13 +266,13 @@ type: TransactionListItemType.DATE_LABEL;

}
export declare type Label = {
export type Label = {
label: LabelValue;
type: TransactionListItemType.LABEL;
};
export declare type ConflictHeader = {
export type ConflictHeader = {
nonce: number;
type: TransactionListItemType.CONFLICT_HEADER;
};
export declare type TransactionListItem = Transaction | DateLabel | Label | ConflictHeader;
export declare type TransactionListPage = Page<TransactionListItem>;
export declare type MultisigTransactionRequest = {
export type TransactionListItem = Transaction | DateLabel | Label | ConflictHeader;
export type TransactionListPage = Page<TransactionListItem>;
export type MultisigTransactionRequest = {
to: string;

@@ -287,3 +293,3 @@ value: string;

};
export declare type SafeAppInfo = {
export type SafeAppInfo = {
name: string;

@@ -293,3 +299,3 @@ url: string;

};
export declare type TransactionData = {
export type TransactionData = {
hexData?: string;

@@ -305,7 +311,7 @@ dataDecoded?: DataDecoded;

};
export declare type ModuleExecutionDetails = {
export type ModuleExecutionDetails = {
type: DetailedExecutionInfoType.MODULE;
address: AddressEx;
};
export declare type MultisigConfirmation = {
export type MultisigConfirmation = {
signer: AddressEx;

@@ -315,3 +321,3 @@ signature?: string;

};
export declare type MultisigExecutionDetails = {
export type MultisigExecutionDetails = {
type: DetailedExecutionInfoType.MULTISIG;

@@ -334,4 +340,4 @@ submittedAt: number;

};
export declare type DetailedExecutionInfo = ModuleExecutionDetails | MultisigExecutionDetails;
export declare type TransactionDetails = {
export type DetailedExecutionInfo = ModuleExecutionDetails | MultisigExecutionDetails;
export type TransactionDetails = {
safeAddress: string;

@@ -347,3 +353,3 @@ txId: string;

};
export declare type SafeTransactionEstimationRequest = {
export type SafeTransactionEstimationRequest = {
to: string;

@@ -354,3 +360,3 @@ value: string;

};
export declare type SafeTransactionEstimation = {
export type SafeTransactionEstimation = {
currentNonce: number;

@@ -360,4 +366,4 @@ recommendedNonce: number;

};
export declare type SafeIncomingTransfersResponse = Page<IncomingTransfer>;
export declare type SafeModuleTransactionsResponse = Page<ModuleTransaction>;
export declare type SafeMultisigTransactionsResponse = Page<MultisigTransaction>;
export type SafeIncomingTransfersResponse = Page<IncomingTransfer>;
export type SafeModuleTransactionsResponse = Page<ModuleTransaction>;
export type SafeMultisigTransactionsResponse = Page<MultisigTransaction>;

@@ -0,0 +0,0 @@ "use strict";

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

export declare type Params = Record<string, string | number | boolean | null>;
export declare type ErrorResponse = {
export type Params = Record<string, string | number | boolean | null>;
export type ErrorResponse = {
code: number;

@@ -4,0 +4,0 @@ message: string;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ MIT License

{
"name": "@safe-global/safe-gateway-typescript-sdk",
"version": "3.11.0",
"version": "3.12.0",
"main": "dist/index.js",

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

@@ -0,0 +0,0 @@ # Safe Gateway TypeScript SDK

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