@connext/cf-types
Advanced tools
Comparing version 0.6.0 to 1.0.0
@@ -5,28 +5,8 @@ this.window = this.window || {}; | ||
const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple( | ||
uint256[] limit, | ||
address[] tokenAddresses | ||
) | ||
`; | ||
const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple(uint256 limit, address tokenAddress) | ||
`; | ||
const twoPartyFixedOutcomeInterpreterParamsEncoding = ` | ||
tuple(address[2] playerAddrs, uint256 amount) | ||
`; | ||
const virtualAppAgreementEncoding = ` | ||
tuple( | ||
uint256 capitalProvided, | ||
address capitalProvider, | ||
address virtualAppUser, | ||
address tokenAddress, | ||
) | ||
`; | ||
const multiAssetMultiPartyCoinTransferEncoding = ` | ||
tuple( | ||
address to, | ||
uint256 amount | ||
)[][] | ||
`; | ||
const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256[] limit, address[] tokenAddresses)`; | ||
const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256 limit, address tokenAddress)`; | ||
const twoPartyFixedOutcomeInterpreterParamsEncoding = `tuple(address[2] playerAddrs, uint256 amount)`; | ||
const virtualAppAgreementEncoding = `tuple(uint256 capitalProvided, address capitalProvider, address virtualAppUser, address tokenAddress)`; | ||
const multiAssetMultiPartyCoinTransferEncoding = `tuple(address to, uint256 amount)[][]`; | ||
const coinBalanceRefundStateEncoding = `tuple(address recipient, address multisig, uint256 threshold, address tokenAddress)`; | ||
(function (OutcomeType) { | ||
@@ -42,10 +22,2 @@ OutcomeType["TWO_PARTY_FIXED_OUTCOME"] = "TWO_PARTY_FIXED_OUTCOME"; | ||
})(exports.TwoPartyFixedOutcome || (exports.TwoPartyFixedOutcome = {})); | ||
const coinBalanceRefundStateEncoding = ` | ||
tuple( | ||
address recipient, | ||
address multisig, | ||
uint256 threshold, | ||
address tokenAddress | ||
) | ||
`; | ||
@@ -52,0 +24,0 @@ (function (Node) { |
@@ -1,27 +0,7 @@ | ||
const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple( | ||
uint256[] limit, | ||
address[] tokenAddresses | ||
) | ||
`; | ||
const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple(uint256 limit, address tokenAddress) | ||
`; | ||
const twoPartyFixedOutcomeInterpreterParamsEncoding = ` | ||
tuple(address[2] playerAddrs, uint256 amount) | ||
`; | ||
const virtualAppAgreementEncoding = ` | ||
tuple( | ||
uint256 capitalProvided, | ||
address capitalProvider, | ||
address virtualAppUser, | ||
address tokenAddress, | ||
) | ||
`; | ||
const multiAssetMultiPartyCoinTransferEncoding = ` | ||
tuple( | ||
address to, | ||
uint256 amount | ||
)[][] | ||
`; | ||
const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256[] limit, address[] tokenAddresses)`; | ||
const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256 limit, address tokenAddress)`; | ||
const twoPartyFixedOutcomeInterpreterParamsEncoding = `tuple(address[2] playerAddrs, uint256 amount)`; | ||
const virtualAppAgreementEncoding = `tuple(uint256 capitalProvided, address capitalProvider, address virtualAppUser, address tokenAddress)`; | ||
const multiAssetMultiPartyCoinTransferEncoding = `tuple(address to, uint256 amount)[][]`; | ||
const coinBalanceRefundStateEncoding = `tuple(address recipient, address multisig, uint256 threshold, address tokenAddress)`; | ||
var OutcomeType; | ||
@@ -39,10 +19,2 @@ (function (OutcomeType) { | ||
})(TwoPartyFixedOutcome || (TwoPartyFixedOutcome = {})); | ||
const coinBalanceRefundStateEncoding = ` | ||
tuple( | ||
address recipient, | ||
address multisig, | ||
uint256 threshold, | ||
address tokenAddress | ||
) | ||
`; | ||
@@ -49,0 +21,0 @@ var Node; |
@@ -5,28 +5,8 @@ 'use strict'; | ||
const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple( | ||
uint256[] limit, | ||
address[] tokenAddresses | ||
) | ||
`; | ||
const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple(uint256 limit, address tokenAddress) | ||
`; | ||
const twoPartyFixedOutcomeInterpreterParamsEncoding = ` | ||
tuple(address[2] playerAddrs, uint256 amount) | ||
`; | ||
const virtualAppAgreementEncoding = ` | ||
tuple( | ||
uint256 capitalProvided, | ||
address capitalProvider, | ||
address virtualAppUser, | ||
address tokenAddress, | ||
) | ||
`; | ||
const multiAssetMultiPartyCoinTransferEncoding = ` | ||
tuple( | ||
address to, | ||
uint256 amount | ||
)[][] | ||
`; | ||
const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256[] limit, address[] tokenAddresses)`; | ||
const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256 limit, address tokenAddress)`; | ||
const twoPartyFixedOutcomeInterpreterParamsEncoding = `tuple(address[2] playerAddrs, uint256 amount)`; | ||
const virtualAppAgreementEncoding = `tuple(uint256 capitalProvided, address capitalProvider, address virtualAppUser, address tokenAddress)`; | ||
const multiAssetMultiPartyCoinTransferEncoding = `tuple(address to, uint256 amount)[][]`; | ||
const coinBalanceRefundStateEncoding = `tuple(address recipient, address multisig, uint256 threshold, address tokenAddress)`; | ||
(function (OutcomeType) { | ||
@@ -42,10 +22,2 @@ OutcomeType["TWO_PARTY_FIXED_OUTCOME"] = "TWO_PARTY_FIXED_OUTCOME"; | ||
})(exports.TwoPartyFixedOutcome || (exports.TwoPartyFixedOutcome = {})); | ||
const coinBalanceRefundStateEncoding = ` | ||
tuple( | ||
address recipient, | ||
address multisig, | ||
uint256 threshold, | ||
address tokenAddress | ||
) | ||
`; | ||
@@ -52,0 +24,0 @@ (function (Node) { |
@@ -16,7 +16,8 @@ import { BigNumber } from "ethers/utils"; | ||
}; | ||
export declare const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = "\n tuple(\n uint256[] limit,\n address[] tokenAddresses\n )\n"; | ||
export declare const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = "\n tuple(uint256 limit, address tokenAddress)\n"; | ||
export declare const twoPartyFixedOutcomeInterpreterParamsEncoding = "\n tuple(address[2] playerAddrs, uint256 amount)\n"; | ||
export declare const virtualAppAgreementEncoding = "\n tuple(\n uint256 capitalProvided,\n address capitalProvider,\n address virtualAppUser,\n address tokenAddress,\n )\n"; | ||
export declare const multiAssetMultiPartyCoinTransferEncoding = "\n tuple(\n address to,\n uint256 amount\n )[][]\n"; | ||
export declare const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = "tuple(uint256[] limit, address[] tokenAddresses)"; | ||
export declare const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = "tuple(uint256 limit, address tokenAddress)"; | ||
export declare const twoPartyFixedOutcomeInterpreterParamsEncoding = "tuple(address[2] playerAddrs, uint256 amount)"; | ||
export declare const virtualAppAgreementEncoding = "tuple(uint256 capitalProvided, address capitalProvider, address virtualAppUser, address tokenAddress)"; | ||
export declare const multiAssetMultiPartyCoinTransferEncoding = "tuple(address to, uint256 amount)[][]"; | ||
export declare const coinBalanceRefundStateEncoding = "tuple(address recipient, address multisig, uint256 threshold, address tokenAddress)"; | ||
export declare type AppInstanceJson = { | ||
@@ -109,3 +110,2 @@ identityHash: string; | ||
}; | ||
export declare const coinBalanceRefundStateEncoding = "\n tuple(\n address recipient,\n address multisig,\n uint256 threshold,\n address tokenAddress\n )\n"; | ||
//# sourceMappingURL=data-types.d.ts.map |
@@ -1,27 +0,7 @@ | ||
export const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple( | ||
uint256[] limit, | ||
address[] tokenAddresses | ||
) | ||
`; | ||
export const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple(uint256 limit, address tokenAddress) | ||
`; | ||
export const twoPartyFixedOutcomeInterpreterParamsEncoding = ` | ||
tuple(address[2] playerAddrs, uint256 amount) | ||
`; | ||
export const virtualAppAgreementEncoding = ` | ||
tuple( | ||
uint256 capitalProvided, | ||
address capitalProvider, | ||
address virtualAppUser, | ||
address tokenAddress, | ||
) | ||
`; | ||
export const multiAssetMultiPartyCoinTransferEncoding = ` | ||
tuple( | ||
address to, | ||
uint256 amount | ||
)[][] | ||
`; | ||
export const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256[] limit, address[] tokenAddresses)`; | ||
export const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256 limit, address tokenAddress)`; | ||
export const twoPartyFixedOutcomeInterpreterParamsEncoding = `tuple(address[2] playerAddrs, uint256 amount)`; | ||
export const virtualAppAgreementEncoding = `tuple(uint256 capitalProvided, address capitalProvider, address virtualAppUser, address tokenAddress)`; | ||
export const multiAssetMultiPartyCoinTransferEncoding = `tuple(address to, uint256 amount)[][]`; | ||
export const coinBalanceRefundStateEncoding = `tuple(address recipient, address multisig, uint256 threshold, address tokenAddress)`; | ||
export var OutcomeType; | ||
@@ -39,10 +19,2 @@ (function (OutcomeType) { | ||
})(TwoPartyFixedOutcome || (TwoPartyFixedOutcome = {})); | ||
export const coinBalanceRefundStateEncoding = ` | ||
tuple( | ||
address recipient, | ||
address multisig, | ||
uint256 threshold, | ||
address tokenAddress | ||
) | ||
`; | ||
//# sourceMappingURL=data-types.js.map |
{ | ||
"name": "@connext/cf-types", | ||
"version": "0.6.0", | ||
"version": "1.0.0", | ||
"description": "TypeScript typings for common Counterfactual types", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,5 +6,5 @@ // https://github.com/counterfactual/monorepo/blob/master/packages/cf.js/API_REFERENCE.md#data-types | ||
// Derived from: | ||
// cf-funding-protocol/contracts/interpreters/TwoPartyFixedOutcomeInterpreter.sol#L10 | ||
export type TwoPartyFixedOutcomeInterpreterParams = { | ||
// Derived from: | ||
// packages/cf-funding-protocol/contracts/interpreters/TwoPartyFixedOutcomeInterpreter.sol#L10 | ||
playerAddrs: [string, string]; | ||
@@ -15,5 +15,5 @@ amount: BigNumber; | ||
// Derived from: | ||
// cf-funding-protocol/contracts/interpreters/MultiAssetMultiPartyCoinTransferInterpreter.sol#L18 | ||
export type MultiAssetMultiPartyCoinTransferInterpreterParams = { | ||
// Derived from: | ||
// packages/cf-funding-protocol/contracts/interpreters/MultiAssetMultiPartyCoinTransferInterpreter.sol#L18 | ||
limit: BigNumber[]; | ||
@@ -28,33 +28,14 @@ tokenAddresses: string[]; | ||
export const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple( | ||
uint256[] limit, | ||
address[] tokenAddresses | ||
) | ||
`; | ||
export const multiAssetMultiPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256[] limit, address[] tokenAddresses)`; | ||
export const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = ` | ||
tuple(uint256 limit, address tokenAddress) | ||
`; | ||
export const singleAssetTwoPartyCoinTransferInterpreterParamsEncoding = `tuple(uint256 limit, address tokenAddress)`; | ||
export const twoPartyFixedOutcomeInterpreterParamsEncoding = ` | ||
tuple(address[2] playerAddrs, uint256 amount) | ||
`; | ||
export const twoPartyFixedOutcomeInterpreterParamsEncoding = `tuple(address[2] playerAddrs, uint256 amount)`; | ||
export const virtualAppAgreementEncoding = ` | ||
tuple( | ||
uint256 capitalProvided, | ||
address capitalProvider, | ||
address virtualAppUser, | ||
address tokenAddress, | ||
) | ||
`; | ||
export const virtualAppAgreementEncoding = `tuple(uint256 capitalProvided, address capitalProvider, address virtualAppUser, address tokenAddress)`; | ||
export const multiAssetMultiPartyCoinTransferEncoding = ` | ||
tuple( | ||
address to, | ||
uint256 amount | ||
)[][] | ||
`; | ||
export const multiAssetMultiPartyCoinTransferEncoding = `tuple(address to, uint256 amount)[][]`; | ||
export const coinBalanceRefundStateEncoding = `tuple(address recipient, address multisig, uint256 threshold, address tokenAddress)`; | ||
export type AppInstanceJson = { | ||
@@ -77,5 +58,6 @@ identityHash: string; | ||
*/ | ||
// Derived from: | ||
// packages/cf-funding-protocol/contracts/interpreters/TwoPartyFixedOutcomeInterpreter.sol#L10 | ||
twoPartyOutcomeInterpreterParams?: { | ||
// Derived from: | ||
// packages/cf-funding-protocol/contracts/interpreters/TwoPartyFixedOutcomeInterpreter.sol#L10 | ||
playerAddrs: [string, string]; | ||
@@ -86,5 +68,5 @@ amount: { _hex: string }; | ||
// Derived from: | ||
// cf-funding-protocol/contracts/interpreters/MultiAssetMultiPartyCoinTransferInterpreter.sol#L18 | ||
multiAssetMultiPartyCoinTransferInterpreterParams?: { | ||
// Derived from: | ||
// packages/cf-funding-protocol/contracts/interpreters/MultiAssetMultiPartyCoinTransferInterpreter.sol#L18 | ||
limit: { _hex: string }[]; | ||
@@ -145,4 +127,2 @@ tokenAddresses: string[]; | ||
export type AppABIEncodings = { | ||
@@ -161,3 +141,3 @@ stateEncoding: string; | ||
// CoinTransfer[2] | ||
SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER = "SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER" | ||
SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER = "SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER", | ||
} | ||
@@ -169,3 +149,3 @@ | ||
SEND_TO_ADDR_TWO = 1, | ||
SPLIT_AND_SEND_TO_BOTH_ADDRS = 2 | ||
SPLIT_AND_SEND_TO_BOTH_ADDRS = 2, | ||
} | ||
@@ -179,10 +159,1 @@ | ||
}; | ||
export const coinBalanceRefundStateEncoding = ` | ||
tuple( | ||
address recipient, | ||
address multisig, | ||
uint256 threshold, | ||
address tokenAddress | ||
) | ||
`; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
259709
1533
1