@polymarket/relayer-client 1.0.7 → 1.0.8
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.
- package/dist/client.js +3 -3
- package/dist/response/index.d.ts +2 -1
- package/dist/response/index.js +2 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -71,7 +71,7 @@ class RelayClient {
|
|
|
71
71
|
const request = yield builder_1.buildProxyTransactionRequest(this.signer, args);
|
|
72
72
|
console.log(`Client side proxy request creation took: ${(Date.now() - start) / 1000} seconds`);
|
|
73
73
|
const resp = yield this.submitTransaction(request);
|
|
74
|
-
return new response_1.ClientRelayerTransactionResponse(resp.transactionID, resp.state, this);
|
|
74
|
+
return new response_1.ClientRelayerTransactionResponse(resp.transactionID, resp.state, resp.transactionHash, this);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
executeSafeTransactions(txns) {
|
|
@@ -92,7 +92,7 @@ class RelayClient {
|
|
|
92
92
|
const request = yield builder_1.buildSafeTransactionRequest(this.signer, args);
|
|
93
93
|
console.log(`Client side safe request creation took: ${(Date.now() - start) / 1000} seconds`);
|
|
94
94
|
const resp = yield this.submitTransaction(request);
|
|
95
|
-
return new response_1.ClientRelayerTransactionResponse(resp.transactionID, resp.state, this);
|
|
95
|
+
return new response_1.ClientRelayerTransactionResponse(resp.transactionID, resp.state, resp.transactionHash, this);
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
executeManualTransactions(txns, overrides) {
|
|
@@ -124,7 +124,7 @@ class RelayClient {
|
|
|
124
124
|
const request = yield builder_1.buildSafeCreateTransactionRequest(this.signer, args);
|
|
125
125
|
console.log(`Client side deploy request creation took: ${(Date.now() - start) / 1000} seconds`);
|
|
126
126
|
const resp = yield this.submitTransaction(request);
|
|
127
|
-
return new response_1.ClientRelayerTransactionResponse(resp.transactionID, resp.state, this);
|
|
127
|
+
return new response_1.ClientRelayerTransactionResponse(resp.transactionID, resp.state, resp.transactionHash, this);
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
// Periodically polls the transaction id until it reaches a desired state
|
package/dist/response/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { RelayerTransaction, RelayerTransactionResponse } from "../types";
|
|
|
3
3
|
export declare class ClientRelayerTransactionResponse implements RelayerTransactionResponse {
|
|
4
4
|
readonly client: RelayClient;
|
|
5
5
|
readonly transactionID: string;
|
|
6
|
+
readonly transactionHash: string;
|
|
6
7
|
readonly state: string;
|
|
7
|
-
constructor(transactionID: string, state: string, client: RelayClient);
|
|
8
|
+
constructor(transactionID: string, state: string, transactionHash: string, client: RelayClient);
|
|
8
9
|
getTransaction(): Promise<RelayerTransaction[]>;
|
|
9
10
|
wait(): Promise<RelayerTransaction | undefined>;
|
|
10
11
|
}
|
package/dist/response/index.js
CHANGED
|
@@ -4,9 +4,10 @@ exports.ClientRelayerTransactionResponse = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
class ClientRelayerTransactionResponse {
|
|
7
|
-
constructor(transactionID, state, client) {
|
|
7
|
+
constructor(transactionID, state, transactionHash, client) {
|
|
8
8
|
this.transactionID = transactionID;
|
|
9
9
|
this.state = state;
|
|
10
|
+
this.transactionHash = transactionHash;
|
|
10
11
|
this.client = client;
|
|
11
12
|
}
|
|
12
13
|
getTransaction() {
|
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
|
+
transactionHash: string;
|
|
119
120
|
getTransaction: () => Promise<RelayerTransaction[]>;
|
|
120
121
|
wait: () => Promise<RelayerTransaction | undefined>;
|
|
121
122
|
}
|