[LEGACY] Monorepo containing everything related to the core Connext protocols and network.
# Add Rebalance Profile
POST http://localhost:3000/api/admin/rebalance-profile
Content-Type: application/json
x-auth-token: cxt1234
{
"multisigAddress": "0x93a8eAFC6436F3e238d962Cb429893ec22875705",
"rebalanceProfile": {
"assetId": "0x4E72770760c011647D4873f60A3CF6cDeA896CD8",
"collateralizeThreshold": "5",
"target": "15",
"reclaimThreshold": "0"
}
}
###
# Get Rebalance Profile
GET http://localhost:3000/api/admin/rebalance-profile/0x93a8eAFC6436F3e238d962Cb429893ec22875705/0x0000000000000000000000000000000000000000
Content-Type: application/json
x-auth-token: cxt1234
INDRA_DEFAULT_REBALANCE_PROFILE_ETH
INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN
- Currently applies across all tokensExample:
export INDRA_DEFAULT_REBALANCE_PROFILE_TOKEN='{"assetId":"0x4E72770760c011647D4873f60A3CF6cDeA896CD8","collateralizeThreshold":"10000000000000000","target":"50000000000000000","reclaimThreshold":"200000000000000000"}'
amount
field added to requestCollateral
method. amount
can be larger than target
but must be less than reclaimThreshold
.@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.3.11
paymentId
.@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.3.7
safeTransfer
.@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.3.1
channel.conditionalTransfer({ conditionType: ConditionalTransferTypes.OnlineTransfer })
deposit
and requestCollateral
now return without waiting for the completion of an onchain tx. The methods return a function completed()
as part of the response to allow waiting for the full process including the onchain tx and offchain protocol (inspired by Ethers' await tx.wait()
API).An example deposit call:
import { BigNumber, constants } from "ethers";
const response = await client.deposit({ amount: BigNumber.from(10), assetId: constants.AddressZero });
// deposit method returns quickly
await response.completed();
// tx complete, channel balance updated
appIdentityHash
rather than full channel locks.@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.1.1
INDRA_ETH_PROVIDER
has been changed to INDRA_CHAIN_PROVIDERS
to support multi-chain configuration. Example usage:# .env
export INDRA_CHAIN_PROVIDERS="{\"1337\":\"http://172.17.0.1:8545\",\"1338\":\"http://172.17.0.1:8546\"}"
INDRA_ETH_MNEMONIC
, INDRA_ETH_MNEMONIC_FILE
, and INDRA_ETH_CONTRACT_ADDRESSES
are changed to be chain-agnostic: INDRA_MNEMONIC_FILE
, INDRA_MNEMONIC
, and INDRA_CONTRACT_ADDRESSES
.INDRA_ADMIN_TOKEN
INDRA_CHAIN_PROVIDERS
INDRA_CONTRACT_ADDRESSES
INDRA_MNEMONIC_FILE
INDRA_MNEMONIC
INDRA_LOG_LEVEL
INDRA_NATS_JWT_SIGNER_PRIVATE_KEY
INDRA_NATS_JWT_SIGNER_PUBLIC_KEY
INDRA_NATS_SERVERS
INDRA_NATS_WS_ENDPOINT
INDRA_PG_DATABASE
INDRA_PG_HOST
INDRA_PG_PASSWORD_FILE
INDRA_PG_PORT
INDRA_PG_USERNAME
INDRA_PORT
INDRA_REDIS_URL
NODE_ENV
@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.0.0
@connext/{types,utils,cf-core,apps,messaging,store,channel-provider,client,watcher}@7.0.0-alpha.6