Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@midcontract/protocol

Package Overview
Dependencies
Maintainers
0
Versions
102
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.29-1bbec05 to 1.0.0-rc.29-3687345

dist/ccip-CQFi9Elj.js

23

dist/index.d.ts

@@ -42,7 +42,11 @@ // Generated by dts-bundle-generator v9.3.1

declare enum FeeConfig {
CLIENT_COVERS_ALL = 0,
CLIENT_COVERS_ONLY = 1,
CONTRACTOR_COVERS_CLAIM = 2,
CLIENT_COVERS_ALL = 0,// Client covers all fees
CLIENT_COVERS_ONLY = 1,// Client pays only for his fee
CONTRACTOR_COVERS_CLAIM = 2,// Client covers only freelancer's claim fee
NO_FEES = 3
}
declare enum RefillType {
PREPAYMENT = 0,// Indicates a refill to the contract's general prepayment pool, which can be used to cover future claims.
WEEK_PAYMENT = 1
}
declare enum DisputeWinner {

@@ -111,2 +115,8 @@ CLIENT = 0,

}
export interface HourlyDepositInput {
contractorAddress: Address;
amountToClaim?: number;
amountToWithdraw?: number;
feeConfig: FeeConfig;
}
export interface ApproveInput {

@@ -184,2 +194,3 @@ contractId: bigint;

changeProvider(provider: EIP1193Provider): Promise<void>;
changeEmbeddedProvider(provider: EIP1193Provider, address: Address, chainId: number): Promise<void>;
changeEscrow(escrow: Address): void;

@@ -197,2 +208,3 @@ changeAccount(account: Account): void;

currentContractIdMilestone(): Promise<bigint>;
currentContractIdHourly(): Promise<bigint>;
get blockNumber(): Promise<number>;

@@ -212,9 +224,8 @@ get account(): Account;

escrowMilestoneDeposit(deposits: DepositInput[], token: SymbolToken, escrowContractId?: bigint, waitReceipt?: boolean): Promise<DepositResponse>;
escrowDepositHourly(deposits: DepositInput[], token: SymbolToken, escrowContractId?: bigint, waitReceipt?: boolean): Promise<DepositResponse>;
escrowDepositHourly(tokenSymbol: SymbolToken, prepaymentAmount: number | undefined, escrowContractId: bigint | undefined, deposit: HourlyDepositInput, waitReceipt?: boolean): Promise<DepositResponse>;
escrowSubmit(contractId: bigint, salt: Hash, data: string, waitReceipt?: boolean): Promise<TransactionId>;
escrowSubmitMilestone(contractId: bigint, milestoneId: bigint, salt: Hash, data: string, waitReceipt?: boolean): Promise<TransactionId>;
escrowSubmitHourly(contractId: bigint, weekId: bigint, salt: Hash, data: string, waitReceipt?: boolean): Promise<TransactionId>;
escrowRefill(contractId: bigint, value: number, waitReceipt?: boolean): Promise<TransactionId>;
escrowRefillMilestone(contractId: bigint, milestoneId: bigint, value: number, waitReceipt?: boolean): Promise<TransactionId>;
escrowRefillHourly(contractId: bigint, weekId: bigint, value: number, waitReceipt?: boolean): Promise<TransactionId>;
escrowRefillHourly(contractId: bigint, weekId: bigint, value: number, refillType: RefillType, waitReceipt?: boolean): Promise<TransactionId>;
escrowApprove(input: ApproveInput, waitReceipt?: boolean): Promise<TransactionId>;

@@ -221,0 +232,0 @@ escrowApproveMilestone(input: ApproveInputMilestone, waitReceipt?: boolean): Promise<TransactionId>;

{
"name": "@midcontract/protocol",
"version": "1.0.0-rc.29-1bbec05",
"version": "1.0.0-rc.29-3687345",
"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