antier-gnosis-safe
Advanced tools
Comparing version
@@ -48,8 +48,7 @@ import { Contract, BigNumber, BigNumberish, Signer, PopulatedTransaction } from "ethers"; | ||
export declare const logGas: (message: string, tx: Promise<any>, skip?: boolean) => Promise<any>; | ||
export declare const executeTx: (safe: Contract, safeTx: SafeTransaction, signatures: SafeSignature[], overrides?: any) => Promise<any>; | ||
export declare const populateExecuteTx: (safe: Contract, safeTx: SafeTransaction, signatures: SafeSignature[], overrides?: any) => Promise<PopulatedTransaction>; | ||
export declare const buildContractCall: (contract: Contract, method: string, params: any[], nonce: number, delegateCall?: boolean, overrides?: Partial<SafeTransaction>) => SafeTransaction; | ||
export declare const executeTxWithSigners: (safe: Contract, tx: SafeTransaction, signers: any[], provider: any, overrides?: any) => Promise<any>; | ||
export declare const executeContractCallForSigners: (safe: Contract, contract: Contract, method: string, params: any[], signers: any[], provider: any, delegateCall?: boolean, overrides?: Partial<SafeTransaction>) => Promise<any>; | ||
export declare const executeContractCallWithSignersBuy: (safe: Contract, contract: Contract, method: string, params: any[], signers: any[], provider: any, delegateCall?: boolean, overrides?: Partial<SafeTransaction>) => Promise<any>; | ||
export declare const executeTxWithSigners: (safe: Contract, tx: SafeTransaction, signers: any[], provider: any, overrides?: any) => Promise<SafeSignature[]>; | ||
export declare const executeContractCallForSigners: (safe: Contract, contract: Contract, method: string, params: any[], signers: any[], provider: any, delegateCall?: boolean, overrides?: Partial<SafeTransaction>) => Promise<SafeSignature[]>; | ||
export declare const executeContractCallWithSignersBuy: (safe: Contract, contract: Contract, method: string, params: any[], signers: any[], provider: any, delegateCall?: boolean, overrides?: Partial<SafeTransaction>) => Promise<SafeSignature[]>; | ||
export declare const buildSafeTransaction: (template: { | ||
@@ -56,0 +55,0 @@ to: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildSafeTransaction = exports.executeContractCallWithSignersBuy = exports.executeContractCallForSigners = exports.executeTxWithSigners = exports.buildContractCall = exports.populateExecuteTx = exports.executeTx = exports.logGas = exports.buildSignatureBytes = exports.safeSignMessage = exports.signHash = exports.safeSignTypedData = exports.safeApproveHash = exports.calculateSafeMessageHash = exports.calculateSafeTransactionHash = exports.preimageSafeTransactionHash = exports.calculateSafeDomainSeparator = exports.EIP712_SAFE_MESSAGE_TYPE = exports.EIP712_SAFE_TX_TYPE = exports.EIP_DOMAIN = void 0; | ||
exports.buildSafeTransaction = exports.executeContractCallWithSignersBuy = exports.executeContractCallForSigners = exports.executeTxWithSigners = exports.buildContractCall = exports.populateExecuteTx = exports.logGas = exports.buildSignatureBytes = exports.safeSignMessage = exports.signHash = exports.safeSignTypedData = exports.safeApproveHash = exports.calculateSafeMessageHash = exports.calculateSafeTransactionHash = exports.preimageSafeTransactionHash = exports.calculateSafeDomainSeparator = exports.EIP712_SAFE_MESSAGE_TYPE = exports.EIP712_SAFE_TX_TYPE = exports.EIP_DOMAIN = void 0; | ||
const ethers_1 = require("ethers"); | ||
@@ -103,7 +103,2 @@ const constants_1 = require("@ethersproject/constants"); | ||
exports.logGas = logGas; | ||
const executeTx = async (safe, safeTx, signatures, overrides) => { | ||
const signatureBytes = (0, exports.buildSignatureBytes)(signatures); | ||
return signatureBytes; | ||
}; | ||
exports.executeTx = executeTx; | ||
const populateExecuteTx = async (safe, safeTx, signatures, overrides) => { | ||
@@ -133,3 +128,3 @@ const signatureBytes = (0, exports.buildSignatureBytes)(signatures); | ||
const sigs = await Promise.all(signers.map((signer) => (0, exports.safeSignTypedData)(signer, safe, tx, chainId))); | ||
return (0, exports.executeTx)(safe, tx, sigs, overrides); | ||
return sigs; | ||
}; | ||
@@ -136,0 +131,0 @@ exports.executeTxWithSigners = executeTxWithSigners; |
import { ethers } from 'ethers'; | ||
export declare const signForApprover: (multiSigWalletAddress: string, interactWithContract: ethers.Contract, senderWalletAddress: string, method: string, inputs: any) => Promise<any>; | ||
export declare const signForApprover: (multiSigWalletAddress: string, interactWithContract: ethers.Contract, senderWalletAddress: string, method: string, inputs: any) => Promise<import("./gnosis-utils").SafeSignature[] | { | ||
error: boolean; | ||
message: string; | ||
}>; | ||
export declare const executeWithApprover: (multiSigWalletAddress: string, interactWithContract: ethers.Contract, senderWalletAddress: string, method: string, inputs: any, approverWithSign: { | ||
@@ -4,0 +7,0 @@ approverWallet: string; |
{ | ||
"name": "antier-gnosis-safe", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
132286
-0.39%2207
-0.14%