Socket
Socket
Sign inDemoInstall

@midcontract/protocol

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@midcontract/protocol - npm Package Compare versions

Comparing version 1.0.0-rc.26-0e9207b to 1.0.0-rc.26-359d262

dist/ccip-5SlYbbXY.mjs

207

dist/index.d.ts

@@ -391,2 +391,207 @@ // Generated by dts-bundle-generator v9.3.1

}>;
transactionParseMilestone(data: TransactionData): Promise<{
input: {
args: readonly [
];
functionName: "registry";
} | {
args: readonly [
bigint,
bigint,
bigint,
`0x${string}`
];
functionName: "approve";
} | {
args: readonly [
bigint,
bigint
];
functionName: "approveReturn";
} | {
args: readonly [
bigint,
bigint,
number
];
functionName: "cancelReturn";
} | {
args: readonly [
bigint,
bigint
];
functionName: "claim";
} | {
args: readonly [
];
functionName: "client";
} | {
args: readonly [
bigint,
bigint
];
functionName: "createDispute";
} | {
args: readonly [
bigint,
readonly {
contractor: `0x${string}`;
paymentToken: `0x${string}`;
amount: bigint;
amountToClaim: bigint;
amountToWithdraw: bigint;
timeLock: bigint;
contractorData: `0x${string}`;
feeConfig: number;
status: number;
}[]
];
functionName: "deposit";
} | {
args: readonly [
`0x${string}`,
`0x${string}`
];
functionName: "getContractorDataHash";
} | {
args: readonly [
];
functionName: "getCurrentContractId";
} | {
args: readonly [
`0x${string}`,
`0x${string}`,
`0x${string}`
];
functionName: "initialize";
} | {
args: readonly [
];
functionName: "initialized";
} | {
args: readonly [
`0x${string}`,
`0x${string}`
];
functionName: "isValidSignature";
} | {
args: readonly [
];
functionName: "owner";
} | {
args: readonly [
bigint,
bigint,
bigint
];
functionName: "refill";
} | {
args: readonly [
bigint,
bigint
];
functionName: "requestReturn";
} | {
args: readonly [
bigint,
bigint,
number,
bigint,
bigint
];
functionName: "resolveDispute";
} | {
args: readonly [
bigint,
bigint,
`0x${string}`,
`0x${string}`
];
functionName: "submit";
} | {
args: readonly [
`0x${string}`
];
functionName: "transferOwnership";
} | {
args: readonly [
`0x${string}`
];
functionName: "updateRegistry";
} | {
args: readonly [
bigint,
bigint
];
functionName: "withdraw";
} | {
args: readonly [
bigint,
bigint
];
functionName: "contractMilestones";
} | {
args: readonly [
bigint
];
functionName: "getMilestoneCount";
};
events: {
eventName: "Approved" | "Claimed" | "Deposited" | "DisputeCreated" | "DisputeResolved" | "OwnershipTransferred" | "Refilled" | "RegistryUpdated" | "ReturnApproved" | "ReturnCanceled" | "ReturnRequested" | "Submitted" | "Withdrawn";
args: {
contractId: bigint;
milestoneId: bigint;
amountApprove: bigint;
receiver: `0x${string}`;
} | {
contractId: bigint;
milestoneId: bigint;
amount: bigint;
} | {
sender: `0x${string}`;
contractId: bigint;
milestoneId: bigint;
paymentToken: `0x${string}`;
amount: bigint;
feeConfig: number;
} | {
contractId: bigint;
milestoneId: bigint;
sender: `0x${string}`;
} | {
contractId: bigint;
milestoneId: bigint;
winner: number;
clientAmount: bigint;
contractorAmount: bigint;
} | {
oldOwner: `0x${string}`;
newOwner: `0x${string}`;
} | {
contractId: bigint;
milestoneId: bigint;
amountAdditional: bigint;
} | {
registry: `0x${string}`;
} | {
contractId: bigint;
milestoneId: bigint;
sender: `0x${string}`;
} | {
contractId: bigint;
milestoneId: bigint;
} | {
contractId: bigint;
milestoneId: bigint;
} | {
sender: `0x${string}`;
milestoneId: bigint;
contractId: bigint;
} | {
contractId: bigint;
milestoneId: bigint;
amount: bigint;
};
}[];
}>;
private get tokenList();

@@ -398,3 +603,5 @@ parseAmount(tokenAddress: Address, amount: bigint): {

private parseLogs;
private parseLogsMilestone;
private parseInput;
private parseInputMilestone;
private send;

@@ -401,0 +608,0 @@ private generateRandomNumber;

2

package.json
{
"name": "@midcontract/protocol",
"version": "1.0.0-rc.26-0e9207b",
"version": "1.0.0-rc.26-359d262",
"description": "Crypto payment protocol with escrow",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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