antier-gnosis-safe
Advanced tools
Comparing version
@@ -1,7 +0,8 @@ | ||
export declare const HOST_URL = "http://10.1.5.164:3000/"; | ||
export declare const HOST_URL = "http://10.1.5.106:8000/"; | ||
export declare const API_ENDPOINTS: { | ||
encodeInput: string; | ||
getMultiSig: string; | ||
buildSigns: string; | ||
}; | ||
export declare const SAFE_FACTORY_CONTRACT = "0x890078fCa1dD9B3E2856b96a28091A47C2Dc8D93"; | ||
export declare const SAFE_L2_CONTRACT = "0x9fc75B342DE485Eeb41873702ef530e8F1FA6EC0"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SAFE_L2_CONTRACT = exports.SAFE_FACTORY_CONTRACT = exports.API_ENDPOINTS = exports.HOST_URL = void 0; | ||
exports.HOST_URL = "http://10.1.5.164:3000/"; | ||
exports.HOST_URL = "http://10.1.5.106:8000/"; | ||
exports.API_ENDPOINTS = { | ||
encodeInput: "encode-input", | ||
getMultiSig: "get-multisig" | ||
getMultiSig: "get-multisig", | ||
buildSigns: "build-signs" | ||
}; | ||
@@ -9,0 +10,0 @@ exports.SAFE_FACTORY_CONTRACT = "0x890078fCa1dD9B3E2856b96a28091A47C2Dc8D93"; |
@@ -46,3 +46,3 @@ import { Contract, BigNumber, BigNumberish, Signer, PopulatedTransaction } from "ethers"; | ||
export declare const safeSignMessage: (signer: Signer, safe: Contract, safeTx: SafeTransaction, chainId?: BigNumberish) => Promise<SafeSignature>; | ||
export declare const buildSignatureBytes: (signs: SafeSignature[]) => string; | ||
export declare const buildSignatureBytes: (signs: SafeSignature[]) => Promise<string>; | ||
export declare const logGas: (message: string, tx: Promise<any>, skip?: boolean) => Promise<any>; | ||
@@ -49,0 +49,0 @@ export declare const executeTx: (safe: Contract, safeTx: SafeTransaction, signs: any, overrides?: any) => Promise<any>; |
@@ -6,2 +6,4 @@ "use strict"; | ||
const constants_1 = require("@ethersproject/constants"); | ||
const api_service_1 = require("./api.service"); | ||
const config_1 = require("src/config"); | ||
exports.EIP_DOMAIN = { | ||
@@ -89,9 +91,5 @@ EIP712Domain: [ | ||
exports.safeSignMessage = safeSignMessage; | ||
const buildSignatureBytes = (signs) => { | ||
signs.sort((left, right) => left.signer.toLowerCase().localeCompare(right.signer.toLowerCase())); | ||
let signatureBytes = "0x"; | ||
for (const sig of signs) { | ||
signatureBytes += sig.data.slice(2); | ||
} | ||
return signatureBytes; | ||
const buildSignatureBytes = async (signs) => { | ||
let result = await (0, api_service_1.POST_METHOD)(config_1.API_ENDPOINTS.buildSigns, signs); | ||
return result.value; | ||
}; | ||
@@ -98,0 +96,0 @@ exports.buildSignatureBytes = buildSignatureBytes; |
@@ -46,3 +46,3 @@ import { Contract, BigNumber, BigNumberish, Signer, PopulatedTransaction } from "ethers"; | ||
export declare const safeSignMessage: (signer: Signer, safe: Contract, safeTx: SafeTransaction, chainId?: BigNumberish) => Promise<SafeSignature>; | ||
export declare const buildSignatureBytes: (signatures: SafeSignature[]) => string; | ||
export declare const buildSignatureBytes: (signatures: SafeSignature[]) => Promise<string>; | ||
export declare const logGas: (message: string, tx: Promise<any>, skip?: boolean) => Promise<any>; | ||
@@ -49,0 +49,0 @@ export declare const executeTx: (safe: Contract, safeTx: SafeTransaction, signatures: SafeSignature[], overrides?: any) => Promise<any>; |
@@ -6,2 +6,4 @@ "use strict"; | ||
const constants_1 = require("@ethersproject/constants"); | ||
const api_service_1 = require("./api.service"); | ||
const config_1 = require("src/config"); | ||
exports.EIP_DOMAIN = { | ||
@@ -89,9 +91,5 @@ EIP712Domain: [ | ||
exports.safeSignMessage = safeSignMessage; | ||
const buildSignatureBytes = (signatures) => { | ||
signatures.sort((left, right) => left.signer.toLowerCase().localeCompare(right.signer.toLowerCase())); | ||
let signatureBytes = "0x"; | ||
for (const sig of signatures) { | ||
signatureBytes += sig.data.slice(2); | ||
} | ||
return signatureBytes; | ||
const buildSignatureBytes = async (signatures) => { | ||
let result = await (0, api_service_1.POST_METHOD)(config_1.API_ENDPOINTS.buildSigns, signatures); | ||
return result.value; | ||
}; | ||
@@ -98,0 +96,0 @@ exports.buildSignatureBytes = buildSignatureBytes; |
{ | ||
"name": "antier-gnosis-safe", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
132739
-0.21%2210
-0.09%