@polymarket/relayer-client 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,7 @@ function buildProxyTransactionRequest(signer, provider, args) {
56
56
  const relayerFee = "0";
57
57
  const relayHub = constants_1.RELAY_HUB_ADDRESS;
58
58
  const gasLimit = yield provider.estimateGas({
59
+ from: args.from,
59
60
  to: to,
60
61
  data: args.data,
61
62
  });
package/dist/client.js CHANGED
@@ -24,7 +24,7 @@ class RelayClient {
24
24
  }
25
25
  if (signer != undefined) {
26
26
  this.signer = signer;
27
- if (signer.provider == undefined) {
27
+ if (signer.provider == undefined && this.provider == undefined) {
28
28
  throw new Error("signer must have provider attached");
29
29
  }
30
30
  if (provider == undefined) {
package/dist/types.d.ts CHANGED
@@ -116,6 +116,7 @@ export interface RelayerTransaction {
116
116
  export interface RelayerTransactionResponse {
117
117
  transactionID: string;
118
118
  state: string;
119
+ hash: string;
119
120
  transactionHash: string;
120
121
  getTransaction: () => Promise<RelayerTransaction[]>;
121
122
  wait: () => Promise<RelayerTransaction | undefined>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@polymarket/relayer-client",
3
3
  "description": "Client for Polymarket relayers",
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [