@safe-global/types-kit
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -166,2 +166,9 @@ export { type Hex } from 'viem'; | ||
} | ||
export declare const SignatureTypes: { | ||
readonly CONTRACT_SIGNATURE: "CONTRACT_SIGNATURE"; | ||
readonly EOA: "EOA"; | ||
readonly APPROVED_HASH: "APPROVED_HASH"; | ||
readonly ETH_SIGN: "ETH_SIGN"; | ||
}; | ||
export type SignatureType = (typeof SignatureTypes)[keyof typeof SignatureTypes]; | ||
export type SafeMultisigConfirmationResponse = { | ||
@@ -173,3 +180,3 @@ readonly owner: string; | ||
readonly signature: string; | ||
readonly signatureType?: string; | ||
readonly signatureType: SignatureType; | ||
}; | ||
@@ -279,3 +286,3 @@ export type ListResponse<T> = { | ||
readonly signature: string; | ||
readonly signatureType: string; | ||
readonly signatureType: SignatureType; | ||
}; | ||
@@ -282,0 +289,0 @@ export type UserOperationResponse = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isSafeOperationResponse = exports.isSafeOperation = exports.OperationType = void 0; | ||
exports.isSafeOperationResponse = exports.isSafeOperation = exports.SignatureTypes = exports.OperationType = void 0; | ||
var OperationType; | ||
@@ -9,2 +9,8 @@ (function (OperationType) { | ||
})(OperationType || (exports.OperationType = OperationType = {})); | ||
exports.SignatureTypes = { | ||
CONTRACT_SIGNATURE: 'CONTRACT_SIGNATURE', | ||
EOA: 'EOA', | ||
APPROVED_HASH: 'APPROVED_HASH', | ||
ETH_SIGN: 'ETH_SIGN' | ||
}; | ||
const isSafeOperation = (response) => { | ||
@@ -11,0 +17,0 @@ const safeOperation = response; |
{ | ||
"name": "@safe-global/types-kit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Types for use with the Safe Core SDK packages", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
847300
18984
1