Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Deploy vector-0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rhlsthrm committed Mar 15, 2021
2 parents 2cd089f + d10660f commit 3a29f0b
Show file tree
Hide file tree
Showing 97 changed files with 21,154 additions and 373 deletions.
4 changes: 2 additions & 2 deletions modules/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"test": "ts-mocha --check-leaks --exit --timeout 60000 'src/**/*.spec.ts'"
},
"dependencies": {
"@connext/vector-types": "0.2.0-beta.8",
"@connext/vector-utils": "0.2.0-beta.8",
"@connext/vector-types": "0.2.0",
"@connext/vector-utils": "0.2.0",
"@sinclair/typebox": "0.12.7",
"crypto": "1.0.1",
"fastify": "3.13.0",
Expand Down
10 changes: 5 additions & 5 deletions modules/browser-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@connext/vector-browser-node",
"version": "0.2.0-beta.8",
"version": "0.2.0",
"author": "",
"license": "ISC",
"description": "",
Expand All @@ -17,10 +17,10 @@
"test": "ts-mocha --bail --check-leaks --exit --timeout 60000 'src/**/*.spec.ts'"
},
"dependencies": {
"@connext/vector-contracts": "0.2.0-beta.8",
"@connext/vector-engine": "0.2.0-beta.8",
"@connext/vector-types": "0.2.0-beta.8",
"@connext/vector-utils": "0.2.0-beta.8",
"@connext/vector-contracts": "0.2.0",
"@connext/vector-engine": "0.2.0",
"@connext/vector-types": "0.2.0",
"@connext/vector-utils": "0.2.0",
"@ethersproject/address": "5.0.10",
"@ethersproject/bignumber": "5.0.14",
"@ethersproject/constants": "5.0.9",
Expand Down
31 changes: 31 additions & 0 deletions modules/browser-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,36 @@ export class BrowserNode implements INodeService {
}
}

async getWithdrawalCommitment(
params: OptionalPublicIdentifier<NodeParams.GetWithdrawalCommitment>,
): Promise<Result<NodeResponses.GetWithdrawalCommitment, BrowserNodeError>> {
try {
const rpc = constructRpcRequest<"chan_getWithdrawalCommitment">(
ChannelRpcMethods.chan_getWithdrawalCommitment,
params,
);
const res = await this.channelProvider!.send(rpc);
return Result.ok(res);
} catch (e) {
return Result.fail(e);
}
}

async getWithdrawalCommitmentByTransactionHash(
params: OptionalPublicIdentifier<NodeParams.GetWithdrawalCommitmentByTransactionHash>,
): Promise<Result<NodeResponses.GetWithdrawalCommitmentByTransactionHash, BrowserNodeError>> {
try {
const rpc = constructRpcRequest<"chan_getWithdrawalCommitmentByTransactionHash">(
ChannelRpcMethods.chan_getWithdrawalCommitmentByTransactionHash,
params,
);
const res = await this.channelProvider!.send(rpc);
return Result.ok(res);
} catch (e) {
return Result.fail(e);
}
}

async setup(
params: OptionalPublicIdentifier<NodeParams.RequestSetup>,
): Promise<Result<NodeResponses.RequestSetup, BrowserNodeError>> {
Expand Down Expand Up @@ -484,6 +514,7 @@ export class BrowserNode implements INodeService {
channelAddress: res.channel.channelAddress,
transferId: (res.channel.latestUpdate.details as CreateUpdateDetails).transferId,
transactionHash: res.transactionHash,
transaction: res.transaction,
});
} catch (e) {
return Result.fail(e);
Expand Down
1 change: 1 addition & 0 deletions modules/contracts/deployments/avalanche/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
43114
264 changes: 264 additions & 0 deletions modules/contracts/deployments/avalanche/ChannelFactory.json

Large diffs are not rendered by default.

Loading

0 comments on commit 3a29f0b

Please sign in to comment.