Skip to content

Commit

Permalink
Merge pull request #170 from WalletConnect/feat/irn_batchFetchMessages
Browse files Browse the repository at this point in the history
chore: adds `irn_batchFetchMessages`
  • Loading branch information
ganchoradkov authored Apr 19, 2024
2 parents 0e76965 + 99ee10f commit ff9e57a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jsonrpc/ws-connection/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe("@walletconnect/jsonrpc-ws-connection", () => {
await new Promise<void>(async (resolve) => {
conn.once("close", (event: CloseEvent) => {
chai.expect(event.code).to.equal(3000);
chai.expect(event.reason).to.equal("Authorization error: Project ID is missing");
chai.expect(event.reason).to.equal("Project ID is missing");
resolve();
});
await conn.open();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion relay/relay-api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walletconnect/relay-api",
"description": "Relay JSON-RPC API",
"version": "1.0.9",
"version": "1.0.10",
"author": "WalletConnect, Inc. <walletconnect.com>",
"license": "MIT",
"keywords": [
Expand Down
3 changes: 3 additions & 0 deletions relay/relay-api/src/jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const RELAY_JSONRPC: { [protocol: string]: RelayJsonRpc.Methods } = {
subscription: "waku_subscription",
unsubscribe: "waku_unsubscribe",
batchUnsubscribe: "waku_batchUnsubscribe",
batchFetchMessages: "waku_batchFetchMessages",
},
irn: {
publish: "irn_publish",
Expand All @@ -18,6 +19,7 @@ export const RELAY_JSONRPC: { [protocol: string]: RelayJsonRpc.Methods } = {
subscription: "irn_subscription",
unsubscribe: "irn_unsubscribe",
batchUnsubscribe: "irn_batchUnsubscribe",
batchFetchMessages: "irn_batchFetchMessages",
},
iridium: {
publish: "iridium_publish",
Expand All @@ -27,5 +29,6 @@ export const RELAY_JSONRPC: { [protocol: string]: RelayJsonRpc.Methods } = {
subscription: "iridium_subscription",
unsubscribe: "iridium_unsubscribe",
batchUnsubscribe: "iridium_batchUnsubscribe",
batchFetchMessages: "iridium_batchFetchMessages",
},
};
5 changes: 5 additions & 0 deletions relay/relay-api/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export declare namespace RelayJsonRpc {
subscription: string;
unsubscribe: string;
batchUnsubscribe: string;
batchFetchMessages: string;
}

export interface SubscribeParams {
Expand All @@ -17,6 +18,10 @@ export declare namespace RelayJsonRpc {
topics: string[];
}

export interface BatchFetchMessagesParams {
topics: string[];
}

export interface BatchUnsubscribeParams {
subscriptions: UnsubscribeParams[];
}
Expand Down

0 comments on commit ff9e57a

Please sign in to comment.