Skip to content

Commit

Permalink
fix(deps): Upgrade Awala lib to v1.60 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Mar 4, 2022
1 parent 019d25b commit 2c32f28
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 28 deletions.
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"node": ">=12"
},
"dependencies": {
"@relaycorp/relaynet-core": "^1.59.3"
"@relaycorp/relaynet-core": "^1.60.0"
},
"devDependencies": {
"@relaycorp/shared-config": "^1.6.1",
Expand All @@ -49,7 +49,7 @@
"typescript": "^3.9.10"
},
"peerDependencies": {
"@relaycorp/relaynet-core": ">= 1.56.0 < 2"
"@relaycorp/relaynet-core": ">= 1.60.0 < 2"
},
"prettier": "@relaycorp/shared-config/.prettierrc.json",
"publishConfig": {
Expand Down
10 changes: 7 additions & 3 deletions src/lib/gsc/MockGSCClient.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {
GSCClient,
ParcelCollection,
ParcelCollectionHandshakeSigner,
ParcelDeliverySigner,
PrivateNodeRegistration,
Signer,
StreamingMode,
} from '@relaycorp/relaynet-core';

Expand All @@ -29,7 +30,7 @@ export class MockGSCClient implements GSCClient {
}

public collectParcels(
nonceSigners: readonly Signer[],
nonceSigners: readonly ParcelCollectionHandshakeSigner[],
streamingMode: StreamingMode,
handshakeCallback?: () => void,
): AsyncIterable<ParcelCollection> {
Expand All @@ -38,7 +39,10 @@ export class MockGSCClient implements GSCClient {
return call.call(args);
}

public async deliverParcel(parcelSerialized: ArrayBuffer, signer: Signer): Promise<void> {
public async deliverParcel(
parcelSerialized: ArrayBuffer,
signer: ParcelDeliverySigner,
): Promise<void> {
const call = this.getNextCall(DeliverParcelCall);
const args: DeliverParcelArgs = { parcelSerialized, deliverySigner: signer };
return call.call(args);
Expand Down
10 changes: 7 additions & 3 deletions src/lib/gsc/args.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Signer, StreamingMode } from '@relaycorp/relaynet-core';
import {
ParcelCollectionHandshakeSigner,
ParcelDeliverySigner,
StreamingMode,
} from '@relaycorp/relaynet-core';

export interface CallArgs {}

Expand All @@ -12,11 +16,11 @@ export interface RegisterNodeArgs extends CallArgs {

export interface DeliverParcelArgs extends CallArgs {
readonly parcelSerialized: ArrayBuffer;
readonly deliverySigner: Signer;
readonly deliverySigner: ParcelDeliverySigner;
}

export interface CollectParcelsArgs extends CallArgs {
readonly nonceSigners: readonly Signer[];
readonly nonceSigners: readonly ParcelCollectionHandshakeSigner[];
readonly streamingMode: StreamingMode;
readonly handshakeCallback?: () => void;
}

0 comments on commit 2c32f28

Please sign in to comment.