New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@connext/apps

Package Overview
Dependencies
Maintainers
4
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connext/apps - npm Package Compare versions

Comparing version 7.0.0-alpha.7 to 7.0.0-alpha.8

dist/src/GraphSignedTransferApp/index.d.ts

30

dist/index-iife.js

@@ -350,5 +350,23 @@ this.window = this.window || {};

const { Zero: Zero$8 } = ethers.constants;
const GraphSignedTransferAppRegistryInfo = {
allowNodeInstall: true,
name: types.GraphSignedTransferAppName,
outcomeType: types.OutcomeType.SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER,
stateEncoding: types.GraphSignedTransferAppStateEncoding,
actionEncoding: types.GraphSignedTransferAppActionEncoding,
};
const GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT = Zero$8;
const validateGraphSignedTransferApp = (params) => validateSignedTransferApp(params);
const proposeGraphSignedTransferMiddleware = (cxt) => {
const { params } = cxt;
return validateGraphSignedTransferApp(params);
};
const AppRegistry = [
SimpleLinkedTransferAppRegistryInfo,
SimpleSignedTransferAppRegistryInfo,
GraphSignedTransferAppRegistryInfo,
SimpleTwoPartySwapAppRegistryInfo,

@@ -421,2 +439,6 @@ WithdrawAppRegistryInfo,

}
case contractAddresses.GraphSignedTransferApp: {
proposeGraphSignedTransferMiddleware(middlewareContext);
break;
}
case contractAddresses.SimpleTwoPartySwapApp: {

@@ -447,4 +469,4 @@ break;

const { Zero: Zero$8 } = ethers.constants;
const TRANSFER_TIMEOUT = Zero$8;
const { Zero: Zero$9 } = ethers.constants;
const TRANSFER_TIMEOUT = Zero$9;

@@ -455,2 +477,4 @@ exports.AppRegistry = AppRegistry;

exports.DepositAppRegistryInfo = DepositAppRegistryInfo;
exports.GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT = GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT;
exports.GraphSignedTransferAppRegistryInfo = GraphSignedTransferAppRegistryInfo;
exports.HASHLOCK_TRANSFER_STATE_TIMEOUT = HASHLOCK_TRANSFER_STATE_TIMEOUT;

@@ -473,2 +497,3 @@ exports.HashLockTransferAppRegistryInfo = HashLockTransferAppRegistryInfo;

exports.proposeDepositMiddleware = proposeDepositMiddleware;
exports.proposeGraphSignedTransferMiddleware = proposeGraphSignedTransferMiddleware;
exports.proposeHashLockTransferMiddleware = proposeHashLockTransferMiddleware;

@@ -483,2 +508,3 @@ exports.proposeLinkedTransferMiddleware = proposeLinkedTransferMiddleware;

exports.validateDepositApp = validateDepositApp;
exports.validateGraphSignedTransferApp = validateGraphSignedTransferApp;
exports.validateHashLockTransferApp = validateHashLockTransferApp;

@@ -485,0 +511,0 @@ exports.validateSignedTransferApp = validateSignedTransferApp;

import { constants, Contract, utils, BigNumber } from 'ethers';
import { DepositAppName, OutcomeType, DepositAppStateEncoding, CONVENTION_FOR_ETH_ASSET_ID, Contract as Contract$1, ProtocolRoles, HashLockTransferAppName, HashLockTransferAppActionEncoding, HashLockTransferAppStateEncoding, SimpleLinkedTransferAppActionEncoding, SimpleLinkedTransferAppName, SimpleLinkedTransferAppStateEncoding, SimpleSignedTransferAppName, SimpleSignedTransferAppStateEncoding, SimpleSignedTransferAppActionEncoding, WithdrawAppName, WithdrawAppStateEncoding, WithdrawAppActionEncoding, singleAssetSinglePartyCoinTransferEncoding, singleAssetTwoPartyCoinTransferInterpreterParamsEncoding, MultisigOperation, SimpleTwoPartySwapAppName, SimpleSwapAppStateEncoding, ProtocolNames } from '@connext/types';
import { DepositAppName, OutcomeType, DepositAppStateEncoding, CONVENTION_FOR_ETH_ASSET_ID, Contract as Contract$1, ProtocolRoles, HashLockTransferAppName, HashLockTransferAppActionEncoding, HashLockTransferAppStateEncoding, SimpleLinkedTransferAppActionEncoding, SimpleLinkedTransferAppName, SimpleLinkedTransferAppStateEncoding, SimpleSignedTransferAppName, SimpleSignedTransferAppStateEncoding, SimpleSignedTransferAppActionEncoding, WithdrawAppName, WithdrawAppStateEncoding, WithdrawAppActionEncoding, singleAssetSinglePartyCoinTransferEncoding, singleAssetTwoPartyCoinTransferInterpreterParamsEncoding, MultisigOperation, SimpleTwoPartySwapAppName, SimpleSwapAppStateEncoding, GraphSignedTransferAppName, GraphSignedTransferAppStateEncoding, GraphSignedTransferAppActionEncoding, ProtocolNames } from '@connext/types';
import { toBN, getAddressFromAssetId, stringify, getSignerAddressFromPublicIdentifier, bigNumberifyJson, recoverAddressFromChannelMessage, calculateExchange } from '@connext/utils';

@@ -351,5 +351,23 @@ import { ERC20, MinimumViableMultisig, MultisigCommitment, ConditionalTransactionDelegateTarget } from '@connext/contracts';

const { Zero: Zero$8 } = constants;
const GraphSignedTransferAppRegistryInfo = {
allowNodeInstall: true,
name: GraphSignedTransferAppName,
outcomeType: OutcomeType.SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER,
stateEncoding: GraphSignedTransferAppStateEncoding,
actionEncoding: GraphSignedTransferAppActionEncoding,
};
const GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT = Zero$8;
const validateGraphSignedTransferApp = (params) => validateSignedTransferApp(params);
const proposeGraphSignedTransferMiddleware = (cxt) => {
const { params } = cxt;
return validateGraphSignedTransferApp(params);
};
const AppRegistry = [
SimpleLinkedTransferAppRegistryInfo,
SimpleSignedTransferAppRegistryInfo,
GraphSignedTransferAppRegistryInfo,
SimpleTwoPartySwapAppRegistryInfo,

@@ -422,2 +440,6 @@ WithdrawAppRegistryInfo,

}
case contractAddresses.GraphSignedTransferApp: {
proposeGraphSignedTransferMiddleware(middlewareContext);
break;
}
case contractAddresses.SimpleTwoPartySwapApp: {

@@ -448,5 +470,5 @@ break;

const { Zero: Zero$8 } = constants;
const TRANSFER_TIMEOUT = Zero$8;
const { Zero: Zero$9 } = constants;
const TRANSFER_TIMEOUT = Zero$9;
export { AppRegistry, DEFAULT_APP_TIMEOUT, DEPOSIT_STATE_TIMEOUT, DepositAppRegistryInfo, HASHLOCK_TRANSFER_STATE_TIMEOUT, HashLockTransferAppRegistryInfo, LINKED_TRANSFER_STATE_TIMEOUT, MINIMUM_APP_TIMEOUT, SIGNED_TRANSFER_STATE_TIMEOUT, SWAP_STATE_TIMEOUT, SimpleLinkedTransferAppRegistryInfo, SimpleSignedTransferAppRegistryInfo, SimpleTwoPartySwapAppRegistryInfo, TRANSFER_TIMEOUT, WITHDRAW_STATE_TIMEOUT, WithdrawAppRegistryInfo, WithdrawCommitment, baseCoinTransferValidation, commonAppProposalValidation, generateValidationMiddleware, proposeDepositMiddleware, proposeHashLockTransferMiddleware, proposeLinkedTransferMiddleware, proposeSignedTransferMiddleware, proposeSwapMiddleware, proposeWithdrawMiddleware, sharedProposalMiddleware, unidirectionalCoinTransferValidation, uninstallDepositMiddleware, validateDepositApp, validateHashLockTransferApp, validateSignedTransferApp, validateSimpleLinkedTransferApp, validateSimpleSwapApp, validateWithdrawApp };
export { AppRegistry, DEFAULT_APP_TIMEOUT, DEPOSIT_STATE_TIMEOUT, DepositAppRegistryInfo, GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT, GraphSignedTransferAppRegistryInfo, HASHLOCK_TRANSFER_STATE_TIMEOUT, HashLockTransferAppRegistryInfo, LINKED_TRANSFER_STATE_TIMEOUT, MINIMUM_APP_TIMEOUT, SIGNED_TRANSFER_STATE_TIMEOUT, SWAP_STATE_TIMEOUT, SimpleLinkedTransferAppRegistryInfo, SimpleSignedTransferAppRegistryInfo, SimpleTwoPartySwapAppRegistryInfo, TRANSFER_TIMEOUT, WITHDRAW_STATE_TIMEOUT, WithdrawAppRegistryInfo, WithdrawCommitment, baseCoinTransferValidation, commonAppProposalValidation, generateValidationMiddleware, proposeDepositMiddleware, proposeGraphSignedTransferMiddleware, proposeHashLockTransferMiddleware, proposeLinkedTransferMiddleware, proposeSignedTransferMiddleware, proposeSwapMiddleware, proposeWithdrawMiddleware, sharedProposalMiddleware, unidirectionalCoinTransferValidation, uninstallDepositMiddleware, validateDepositApp, validateGraphSignedTransferApp, validateHashLockTransferApp, validateSignedTransferApp, validateSimpleLinkedTransferApp, validateSimpleSwapApp, validateWithdrawApp };

@@ -355,5 +355,23 @@ 'use strict';

const { Zero: Zero$8 } = ethers.constants;
const GraphSignedTransferAppRegistryInfo = {
allowNodeInstall: true,
name: types.GraphSignedTransferAppName,
outcomeType: types.OutcomeType.SINGLE_ASSET_TWO_PARTY_COIN_TRANSFER,
stateEncoding: types.GraphSignedTransferAppStateEncoding,
actionEncoding: types.GraphSignedTransferAppActionEncoding,
};
const GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT = Zero$8;
const validateGraphSignedTransferApp = (params) => validateSignedTransferApp(params);
const proposeGraphSignedTransferMiddleware = (cxt) => {
const { params } = cxt;
return validateGraphSignedTransferApp(params);
};
const AppRegistry = [
SimpleLinkedTransferAppRegistryInfo,
SimpleSignedTransferAppRegistryInfo,
GraphSignedTransferAppRegistryInfo,
SimpleTwoPartySwapAppRegistryInfo,

@@ -426,2 +444,6 @@ WithdrawAppRegistryInfo,

}
case contractAddresses.GraphSignedTransferApp: {
proposeGraphSignedTransferMiddleware(middlewareContext);
break;
}
case contractAddresses.SimpleTwoPartySwapApp: {

@@ -452,4 +474,4 @@ break;

const { Zero: Zero$8 } = ethers.constants;
const TRANSFER_TIMEOUT = Zero$8;
const { Zero: Zero$9 } = ethers.constants;
const TRANSFER_TIMEOUT = Zero$9;

@@ -460,2 +482,4 @@ exports.AppRegistry = AppRegistry;

exports.DepositAppRegistryInfo = DepositAppRegistryInfo;
exports.GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT = GRAPH_SIGNED_TRANSFER_STATE_TIMEOUT;
exports.GraphSignedTransferAppRegistryInfo = GraphSignedTransferAppRegistryInfo;
exports.HASHLOCK_TRANSFER_STATE_TIMEOUT = HASHLOCK_TRANSFER_STATE_TIMEOUT;

@@ -478,2 +502,3 @@ exports.HashLockTransferAppRegistryInfo = HashLockTransferAppRegistryInfo;

exports.proposeDepositMiddleware = proposeDepositMiddleware;
exports.proposeGraphSignedTransferMiddleware = proposeGraphSignedTransferMiddleware;
exports.proposeHashLockTransferMiddleware = proposeHashLockTransferMiddleware;

@@ -488,2 +513,3 @@ exports.proposeLinkedTransferMiddleware = proposeLinkedTransferMiddleware;

exports.validateDepositApp = validateDepositApp;
exports.validateGraphSignedTransferApp = validateGraphSignedTransferApp;
exports.validateHashLockTransferApp = validateHashLockTransferApp;

@@ -490,0 +516,0 @@ exports.validateSignedTransferApp = validateSignedTransferApp;

@@ -9,4 +9,5 @@ export declare const TRANSFER_TIMEOUT: import("ethers").BigNumber;

export * from "./SimpleSignedTransferApp";
export * from "./GraphSignedTransferApp";
export * from "./SimpleTwoPartySwapApp";
export * from "./WithdrawApp";
//# sourceMappingURL=index.d.ts.map

@@ -11,4 +11,5 @@ import { constants } from "ethers";

export * from "./SimpleSignedTransferApp";
export * from "./GraphSignedTransferApp";
export * from "./SimpleTwoPartySwapApp";
export * from "./WithdrawApp";
//# sourceMappingURL=index.js.map

@@ -11,2 +11,3 @@ import { ProtocolNames, } from "@connext/types";

import { AppRegistry } from "./registry";
import { proposeGraphSignedTransferMiddleware } from "./GraphSignedTransferApp";
const getNameFromAddress = (contractAddress, appDefinition) => {

@@ -73,2 +74,6 @@ const [name] = Object.entries(contractAddress).find(([name, addr]) => addr === appDefinition) || [];

}
case contractAddresses.GraphSignedTransferApp: {
proposeGraphSignedTransferMiddleware(middlewareContext);
break;
}
case contractAddresses.SimpleTwoPartySwapApp: {

@@ -75,0 +80,0 @@ proposeSwapMiddleware(middlewareContext);

@@ -5,2 +5,3 @@ import { DepositAppRegistryInfo } from "./DepositApp";

import { SimpleSignedTransferAppRegistryInfo } from "./SimpleSignedTransferApp";
import { GraphSignedTransferAppRegistryInfo } from "./GraphSignedTransferApp";
import { SimpleTwoPartySwapAppRegistryInfo } from "./SimpleTwoPartySwapApp";

@@ -11,2 +12,3 @@ import { WithdrawAppRegistryInfo } from "./WithdrawApp";

SimpleSignedTransferAppRegistryInfo,
GraphSignedTransferAppRegistryInfo,
SimpleTwoPartySwapAppRegistryInfo,

@@ -13,0 +15,0 @@ WithdrawAppRegistryInfo,

6

package.json
{
"name": "@connext/apps",
"version": "7.0.0-alpha.7",
"version": "7.0.0-alpha.8",
"description": "Connext Counterfactual Apps",

@@ -22,4 +22,4 @@ "main": "dist/index.js",

"@connext/contracts": "3.2.3",
"@connext/utils": "7.0.0-alpha.7",
"@connext/types": "7.0.0-alpha.7",
"@connext/utils": "7.0.0-alpha.8",
"@connext/types": "7.0.0-alpha.8",
"ethers": "5.0.2",

@@ -26,0 +26,0 @@ "rollup": "2.12.1",

@@ -14,3 +14,4 @@ import { constants } from "ethers";

export * from "./SimpleSignedTransferApp";
export * from "./GraphSignedTransferApp";
export * from "./SimpleTwoPartySwapApp";
export * from "./WithdrawApp";

@@ -22,2 +22,3 @@ import {

import { AppRegistry } from "./registry";
import { proposeGraphSignedTransferMiddleware } from "./GraphSignedTransferApp";

@@ -120,2 +121,6 @@ const getNameFromAddress = (contractAddress: ContractAddresses, appDefinition: Address) => {

}
case contractAddresses.GraphSignedTransferApp: {
proposeGraphSignedTransferMiddleware(middlewareContext);
break;
}
case contractAddresses.SimpleTwoPartySwapApp: {

@@ -122,0 +127,0 @@ proposeSwapMiddleware(middlewareContext);

@@ -6,2 +6,3 @@ import { AppRegistryType } from "./shared";

import { SimpleSignedTransferAppRegistryInfo } from "./SimpleSignedTransferApp";
import { GraphSignedTransferAppRegistryInfo } from "./GraphSignedTransferApp";
import { SimpleTwoPartySwapAppRegistryInfo } from "./SimpleTwoPartySwapApp";

@@ -13,2 +14,3 @@ import { WithdrawAppRegistryInfo } from "./WithdrawApp";

SimpleSignedTransferAppRegistryInfo,
GraphSignedTransferAppRegistryInfo,
SimpleTwoPartySwapAppRegistryInfo,

@@ -15,0 +17,0 @@ WithdrawAppRegistryInfo,

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

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

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