Skip to content

Commit

Permalink
release: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
opatavi committed Apr 14, 2024
1 parent ba3e402 commit 2323c50
Show file tree
Hide file tree
Showing 8 changed files with 1,483 additions and 21 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# @gelatonetwork/relay-sdk-viem

## 1.0.1

### Patch Changes

- Viem Support
- Viem support
- Viem Support
- Viem Support

## 1.0.1-next.2

### Patch Changes

- Viem Support

## 1.0.1-next.1

### Patch Changes

- Viem Support

## 1.0.1-next.0

### Patch Changes

- Viem support
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gelatonetwork/relay-sdk-viem",
"version": "1.0.0",
"version": "1.0.1",
"description": "SDK to integrate with Gelato Relay with viem",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -38,6 +38,7 @@
"typescript": "5.0.4"
},
"dependencies": {
"@changesets/cli": "^2.27.1",
"axios": "0.27.2",
"isomorphic-ws": "^5.0.0",
"viem": "2.9.15",
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class GelatoRelay {

/**
* @param {CallWithSyncFeeERC2771Request | CallWithSyncFeeConcurrentERC2771Request} request - Call with sync fee: Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors
* @param {WalletClient} client - walletClient to sign the payload
* @param {PublicOrWalletClient} client - Public or Wallet Client
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call
* @returns {Promise<RelayResponse>} Response object with taskId parameter
Expand Down Expand Up @@ -182,7 +182,7 @@ export class GelatoRelay {

/**
* @param {CallWithERC2771Request | CallWithConcurrentERC2771Request} request - Sponsored: Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors
* @param {WalletClient} client - walletClient to sign the payload
* @param {PublicOrWalletClient} client - Public or Wallet Client
* @param {string} sponsorApiKey - Sponsor API key
* @param {RelayRequestOptions} [options] - Optional Relay configuration
* @returns {Promise<RelayResponse>} Response object with taskId parameter
Expand Down Expand Up @@ -213,7 +213,7 @@ export class GelatoRelay {

/**
* @param {CallWithERC2771Request | CallWithConcurrentERC2771Request} request - Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors
* @param {WalletClient} client - walletClient to sign the payload
* @param {PublicOrWalletClient} client - Public or Wallet Client
* @param {ERC2771Type} type - ERC2771Type.CallWithSyncFee or ERC2771Type.SponsoredCall
* @returns {Promise<SignatureData>} Response object with struct and signature
*
Expand All @@ -227,7 +227,7 @@ export class GelatoRelay {

/**
* @param {CallWithERC2771Request | CallWithConcurrentERC2771Request} request - Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors
* @param {WalletClient} client - optional walletClient to sign the payload
* @param {PublicOrWalletClient} [client] - Optional Public or Wallet Client
* @param {ERC2771Type} type - ERC2771Type.CallWithSyncFee or ERC2771Type.SponsoredCall
* @returns {Promise<PayloadToSign>} Response object with struct and typed data
*
Expand Down
4 changes: 2 additions & 2 deletions src/lib/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Hex, WalletClient, PublicClient } from "viem";
import { Hex, WalletClient, PublicClient, Address } from "viem";

export enum RelayCall {
CallWithSyncFee,
Expand Down Expand Up @@ -30,7 +30,7 @@ export type EIP712Domain = {
name: string;
version: string;
chainId: number;
verifyingContract: `0x${string}`;
verifyingContract: Address;
};

export const EIP712_DOMAIN_TYPE_DATA = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/signTypedDataV4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const signTypedDataV4 = async (
): Promise<string> => {
if (!client.account) {
throw new Error(
"The provided client is not a wallet client, or account not found on the client. Please, provide an account during the client creation."
"The provided client is not a wallet client, or account not found on the client. Please provide an account during the client creation."
);
}

Expand Down
Loading

0 comments on commit 2323c50

Please sign in to comment.