mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-08-01 04:12:06 +00:00
Add useDurableStore flag in Nitro setupNode
(#428)
* Add useDurableStore flag in seUpNode * Upgrade nitro-node to 0.1.14 * Change payment amount to string --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
parent
e6767c3aca
commit
75b177cffd
@ -15,7 +15,7 @@
|
|||||||
"@cerc-io/cache": "^0.2.65",
|
"@cerc-io/cache": "^0.2.65",
|
||||||
"@cerc-io/ipld-eth-client": "^0.2.65",
|
"@cerc-io/ipld-eth-client": "^0.2.65",
|
||||||
"@cerc-io/libp2p": "^0.42.2-laconic-0.1.4",
|
"@cerc-io/libp2p": "^0.42.2-laconic-0.1.4",
|
||||||
"@cerc-io/nitro-node": "^0.1.13",
|
"@cerc-io/nitro-node": "^0.1.14",
|
||||||
"@cerc-io/peer": "^0.2.65",
|
"@cerc-io/peer": "^0.2.65",
|
||||||
"@cerc-io/rpc-eth-client": "^0.2.65",
|
"@cerc-io/rpc-eth-client": "^0.2.65",
|
||||||
"@cerc-io/util": "^0.2.65",
|
"@cerc-io/util": "^0.2.65",
|
||||||
|
@ -253,6 +253,7 @@ export class ServerCmd {
|
|||||||
nitroConfig.chainPrivateKey,
|
nitroConfig.chainPrivateKey,
|
||||||
nitroContractAddresses,
|
nitroContractAddresses,
|
||||||
this.peer,
|
this.peer,
|
||||||
|
true,
|
||||||
path.resolve(nitroConfig.store)
|
path.resolve(nitroConfig.store)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/utils.keyvaluecache": "^1.0.1",
|
"@apollo/utils.keyvaluecache": "^1.0.1",
|
||||||
"@cerc-io/nitro-node": "^0.1.13",
|
"@cerc-io/nitro-node": "^0.1.14",
|
||||||
"@cerc-io/peer": "^0.2.65",
|
"@cerc-io/peer": "^0.2.65",
|
||||||
"@cerc-io/solidity-mapper": "^0.2.65",
|
"@cerc-io/solidity-mapper": "^0.2.65",
|
||||||
"@cerc-io/ts-channel": "1.0.3-ts-nitro-0.1.1",
|
"@cerc-io/ts-channel": "1.0.3-ts-nitro-0.1.1",
|
||||||
|
@ -255,12 +255,12 @@ export class PaymentsManager {
|
|||||||
|
|
||||||
await this.nitro.directFund(
|
await this.nitro.directFund(
|
||||||
nodeConfig.address,
|
nodeConfig.address,
|
||||||
Number(nodeConfig.fundingAmounts?.directFund || 0)
|
nodeConfig.fundingAmounts?.directFund ?? '0'
|
||||||
);
|
);
|
||||||
|
|
||||||
return this.nitro.virtualFund(
|
return this.nitro.virtualFund(
|
||||||
nodeConfig.address,
|
nodeConfig.address,
|
||||||
Number(nodeConfig.fundingAmounts?.virtualFund || 0)
|
nodeConfig.fundingAmounts?.virtualFund ?? '0'
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: Handle closures
|
// TODO: Handle closures
|
||||||
@ -270,7 +270,7 @@ export class PaymentsManager {
|
|||||||
vhash:string,
|
vhash:string,
|
||||||
vsig:string
|
vsig:string
|
||||||
}> {
|
}> {
|
||||||
const voucher = await this.nitro.pay(destChannelId, Number(amount));
|
const voucher = await this.nitro.pay(destChannelId, amount);
|
||||||
assert(voucher.amount);
|
assert(voucher.amount);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
18
yarn.lock
18
yarn.lock
@ -350,13 +350,13 @@
|
|||||||
wherearewe "^2.0.0"
|
wherearewe "^2.0.0"
|
||||||
xsalsa20 "^1.1.0"
|
xsalsa20 "^1.1.0"
|
||||||
|
|
||||||
"@cerc-io/nitro-node@^0.1.13":
|
"@cerc-io/nitro-node@^0.1.14":
|
||||||
version "0.1.13"
|
version "0.1.14"
|
||||||
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fnitro-node/-/0.1.13/nitro-node-0.1.13.tgz#3a4661e5019802fdb4ec06ac6698bf772eaf5d8e"
|
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fnitro-node/-/0.1.14/nitro-node-0.1.14.tgz#9439f56aab562ea8809b923302c6b8f0be472f4e"
|
||||||
integrity sha512-U64qUUjla/sRyfnPC/12qNqDa+5R+1GlVZE1CO50vIhf2wTA2Sr7xwhqbGo277YhjD9xfalyZPZ0BiIvaAXBCQ==
|
integrity sha512-eZuG4+tuWul+UkxiQ+sOYmaYS7M8LmuxKLn5tWRuURXo9l1ynxkoovPDTte3obuuGDITGJTdOvVFZtOs6ryKtw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@cerc-io/libp2p" "0.42.2-laconic-0.1.4"
|
"@cerc-io/libp2p" "0.42.2-laconic-0.1.4"
|
||||||
"@cerc-io/nitro-util" "^0.1.13"
|
"@cerc-io/nitro-util" "^0.1.14"
|
||||||
"@cerc-io/peer" "^0.2.60"
|
"@cerc-io/peer" "^0.2.60"
|
||||||
"@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1"
|
"@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1"
|
||||||
"@jpwilliams/waitgroup" "^2.1.0"
|
"@jpwilliams/waitgroup" "^2.1.0"
|
||||||
@ -376,10 +376,10 @@
|
|||||||
promjs "^0.4.2"
|
promjs "^0.4.2"
|
||||||
uint8arrays "^4.0.3"
|
uint8arrays "^4.0.3"
|
||||||
|
|
||||||
"@cerc-io/nitro-util@^0.1.13":
|
"@cerc-io/nitro-util@^0.1.14":
|
||||||
version "0.1.13"
|
version "0.1.14"
|
||||||
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fnitro-util/-/0.1.13/nitro-util-0.1.13.tgz#72ad7bdbce952577f052b0f7dee5d4b2019f414f"
|
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fnitro-util/-/0.1.14/nitro-util-0.1.14.tgz#6ee1b2f95c3fc64bf73f8be0a2bd4f9ede823085"
|
||||||
integrity sha512-jlGGaGx6YGbiNDSqQvoAFt7GcYTH2rQT2iAnnb33IglnzQvcjyczJws+jMoPPauvcw1bhG5VxKvL529otm0Nbw==
|
integrity sha512-LnrTWzSaWwH4SBY1KtsKIdDpIkH8jhR9rr3VX5w9UWbXO8vgw+SmJFiVY+xRglVE/YRJvfofyUDKuCXBGsKrgw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1"
|
"@cerc-io/ts-channel" "1.0.3-ts-nitro-0.1.1"
|
||||||
"@statechannels/nitro-protocol" "^2.0.0-alpha.5"
|
"@statechannels/nitro-protocol" "^2.0.0-alpha.5"
|
||||||
|
Loading…
Reference in New Issue
Block a user