@avaprotocol/sdk-js 1.3.4-dev.1 → 1.3.4-dev.2
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/index.js +3 -4
- package/dist/index.mjs +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6204,7 +6204,7 @@ var require_avs_pb = __commonJS({
|
|
|
6204
6204
|
var require_avs_grpc_pb = __commonJS({
|
|
6205
6205
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
6206
6206
|
"use strict";
|
|
6207
|
-
var
|
|
6207
|
+
var grpc = require("@grpc/grpc-js");
|
|
6208
6208
|
var avs_pb20 = require_avs_pb();
|
|
6209
6209
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
6210
6210
|
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
@@ -6554,7 +6554,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
6554
6554
|
responseDeserialize: deserialize_aggregator_UserTriggerTaskResp
|
|
6555
6555
|
}
|
|
6556
6556
|
};
|
|
6557
|
-
exports2.AggregatorClient =
|
|
6557
|
+
exports2.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService);
|
|
6558
6558
|
}
|
|
6559
6559
|
});
|
|
6560
6560
|
|
|
@@ -6590,7 +6590,6 @@ __export(index_exports, {
|
|
|
6590
6590
|
});
|
|
6591
6591
|
module.exports = __toCommonJS(index_exports);
|
|
6592
6592
|
var import_lodash3 = __toESM(require("lodash"));
|
|
6593
|
-
var grpc = __toESM(require("@grpc/grpc-js"));
|
|
6594
6593
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
6595
6594
|
|
|
6596
6595
|
// src/auth.ts
|
|
@@ -7465,7 +7464,7 @@ var BaseClient = class {
|
|
|
7465
7464
|
this.endpoint = opts.endpoint;
|
|
7466
7465
|
this.rpcClient = new import_avs_grpc_pb.AggregatorClient(
|
|
7467
7466
|
this.endpoint,
|
|
7468
|
-
|
|
7467
|
+
import_grpc_js.credentials.createInsecure()
|
|
7469
7468
|
);
|
|
7470
7469
|
this.factoryAddress = opts.factoryAddress;
|
|
7471
7470
|
this.metadata = new import_grpc_js.Metadata();
|
package/dist/index.mjs
CHANGED
|
@@ -6204,7 +6204,7 @@ var require_avs_pb = __commonJS({
|
|
|
6204
6204
|
var require_avs_grpc_pb = __commonJS({
|
|
6205
6205
|
"../../grpc_codegen/avs_grpc_pb.js"(exports) {
|
|
6206
6206
|
"use strict";
|
|
6207
|
-
var
|
|
6207
|
+
var grpc = __require("@grpc/grpc-js");
|
|
6208
6208
|
var avs_pb20 = require_avs_pb();
|
|
6209
6209
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
6210
6210
|
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
@@ -6554,14 +6554,13 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
6554
6554
|
responseDeserialize: deserialize_aggregator_UserTriggerTaskResp
|
|
6555
6555
|
}
|
|
6556
6556
|
};
|
|
6557
|
-
exports.AggregatorClient =
|
|
6557
|
+
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService);
|
|
6558
6558
|
}
|
|
6559
6559
|
});
|
|
6560
6560
|
|
|
6561
6561
|
// src/index.ts
|
|
6562
6562
|
import _3 from "lodash";
|
|
6563
|
-
import
|
|
6564
|
-
import { Metadata } from "@grpc/grpc-js";
|
|
6563
|
+
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
6565
6564
|
|
|
6566
6565
|
// src/auth.ts
|
|
6567
6566
|
var getKeyRequestMessage = (chainId, address, issuedAt, expiredAt) => {
|
|
@@ -7435,7 +7434,7 @@ var BaseClient = class {
|
|
|
7435
7434
|
this.endpoint = opts.endpoint;
|
|
7436
7435
|
this.rpcClient = new import_avs_grpc_pb.AggregatorClient(
|
|
7437
7436
|
this.endpoint,
|
|
7438
|
-
|
|
7437
|
+
credentials.createInsecure()
|
|
7439
7438
|
);
|
|
7440
7439
|
this.factoryAddress = opts.factoryAddress;
|
|
7441
7440
|
this.metadata = new Metadata();
|
package/package.json
CHANGED