@avaprotocol/sdk-js 2.6.6 → 2.6.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/CHANGELOG.md +15 -0
- package/dist/index.js +99 -19
- package/dist/index.mjs +99 -19
- package/dist/models/trigger/factory.d.ts.map +1 -1
- package/dist/models/trigger/factory.js +1 -1
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @avaprotocol/sdk-js
|
|
2
2
|
|
|
3
|
+
## 2.6.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8a767da: Remove input from both TriggerProps and NodeProps
|
|
8
|
+
- Updated dependencies [8a767da]
|
|
9
|
+
- @avaprotocol/types@2.4.8
|
|
10
|
+
|
|
11
|
+
## 2.6.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [1f8948b]
|
|
16
|
+
- @avaprotocol/types@2.4.7
|
|
17
|
+
|
|
3
18
|
## 2.6.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -2210,7 +2210,7 @@ var require_avs_pb = __commonJS({
|
|
|
2210
2210
|
proto.aggregator.EventTrigger.Query.prototype.clearMethodCallsList = function() {
|
|
2211
2211
|
return this.setMethodCallsList([]);
|
|
2212
2212
|
};
|
|
2213
|
-
proto.aggregator.EventTrigger.MethodCall.repeatedFields_ = [3];
|
|
2213
|
+
proto.aggregator.EventTrigger.MethodCall.repeatedFields_ = [3, 4];
|
|
2214
2214
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2215
2215
|
proto.aggregator.EventTrigger.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
2216
2216
|
return proto.aggregator.EventTrigger.MethodCall.toObject(opt_includeInstance, this);
|
|
@@ -2219,7 +2219,8 @@ var require_avs_pb = __commonJS({
|
|
|
2219
2219
|
var f, obj = {
|
|
2220
2220
|
methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2221
2221
|
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2222
|
-
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f
|
|
2222
|
+
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
2223
|
+
methodParamsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? void 0 : f
|
|
2223
2224
|
};
|
|
2224
2225
|
if (includeInstance) {
|
|
2225
2226
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2260,6 +2261,13 @@ var require_avs_pb = __commonJS({
|
|
|
2260
2261
|
);
|
|
2261
2262
|
msg.addApplyToFields(value);
|
|
2262
2263
|
break;
|
|
2264
|
+
case 4:
|
|
2265
|
+
var value = (
|
|
2266
|
+
/** @type {string} */
|
|
2267
|
+
reader.readString()
|
|
2268
|
+
);
|
|
2269
|
+
msg.addMethodParams(value);
|
|
2270
|
+
break;
|
|
2263
2271
|
default:
|
|
2264
2272
|
reader.skipField();
|
|
2265
2273
|
break;
|
|
@@ -2281,8 +2289,9 @@ var require_avs_pb = __commonJS({
|
|
|
2281
2289
|
f
|
|
2282
2290
|
);
|
|
2283
2291
|
}
|
|
2284
|
-
f =
|
|
2285
|
-
|
|
2292
|
+
f = /** @type {string} */
|
|
2293
|
+
jspb.Message.getField(message, 2);
|
|
2294
|
+
if (f != null) {
|
|
2286
2295
|
writer.writeString(
|
|
2287
2296
|
2,
|
|
2288
2297
|
f
|
|
@@ -2295,6 +2304,13 @@ var require_avs_pb = __commonJS({
|
|
|
2295
2304
|
f
|
|
2296
2305
|
);
|
|
2297
2306
|
}
|
|
2307
|
+
f = message.getMethodParamsList();
|
|
2308
|
+
if (f.length > 0) {
|
|
2309
|
+
writer.writeRepeatedString(
|
|
2310
|
+
4,
|
|
2311
|
+
f
|
|
2312
|
+
);
|
|
2313
|
+
}
|
|
2298
2314
|
};
|
|
2299
2315
|
proto.aggregator.EventTrigger.MethodCall.prototype.getMethodName = function() {
|
|
2300
2316
|
return (
|
|
@@ -2312,7 +2328,13 @@ var require_avs_pb = __commonJS({
|
|
|
2312
2328
|
);
|
|
2313
2329
|
};
|
|
2314
2330
|
proto.aggregator.EventTrigger.MethodCall.prototype.setCallData = function(value) {
|
|
2315
|
-
return jspb.Message.
|
|
2331
|
+
return jspb.Message.setField(this, 2, value);
|
|
2332
|
+
};
|
|
2333
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.clearCallData = function() {
|
|
2334
|
+
return jspb.Message.setField(this, 2, void 0);
|
|
2335
|
+
};
|
|
2336
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.hasCallData = function() {
|
|
2337
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2316
2338
|
};
|
|
2317
2339
|
proto.aggregator.EventTrigger.MethodCall.prototype.getApplyToFieldsList = function() {
|
|
2318
2340
|
return (
|
|
@@ -2329,6 +2351,21 @@ var require_avs_pb = __commonJS({
|
|
|
2329
2351
|
proto.aggregator.EventTrigger.MethodCall.prototype.clearApplyToFieldsList = function() {
|
|
2330
2352
|
return this.setApplyToFieldsList([]);
|
|
2331
2353
|
};
|
|
2354
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.getMethodParamsList = function() {
|
|
2355
|
+
return (
|
|
2356
|
+
/** @type {!Array<string>} */
|
|
2357
|
+
jspb.Message.getRepeatedField(this, 4)
|
|
2358
|
+
);
|
|
2359
|
+
};
|
|
2360
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.setMethodParamsList = function(value) {
|
|
2361
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
2362
|
+
};
|
|
2363
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.addMethodParams = function(value, opt_index) {
|
|
2364
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
2365
|
+
};
|
|
2366
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.clearMethodParamsList = function() {
|
|
2367
|
+
return this.setMethodParamsList([]);
|
|
2368
|
+
};
|
|
2332
2369
|
proto.aggregator.EventTrigger.Topics.repeatedFields_ = [1];
|
|
2333
2370
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2334
2371
|
proto.aggregator.EventTrigger.Topics.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3524,7 +3561,7 @@ var require_avs_pb = __commonJS({
|
|
|
3524
3561
|
proto.aggregator.ContractWriteNode.Config.prototype.clearMethodCallsList = function() {
|
|
3525
3562
|
return this.setMethodCallsList([]);
|
|
3526
3563
|
};
|
|
3527
|
-
proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3];
|
|
3564
|
+
proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3, 4];
|
|
3528
3565
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3529
3566
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
3530
3567
|
return proto.aggregator.ContractWriteNode.MethodCall.toObject(opt_includeInstance, this);
|
|
@@ -3533,7 +3570,8 @@ var require_avs_pb = __commonJS({
|
|
|
3533
3570
|
var f, obj = {
|
|
3534
3571
|
callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3535
3572
|
methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3536
|
-
|
|
3573
|
+
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
3574
|
+
methodParamsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? void 0 : f
|
|
3537
3575
|
};
|
|
3538
3576
|
if (includeInstance) {
|
|
3539
3577
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3568,6 +3606,13 @@ var require_avs_pb = __commonJS({
|
|
|
3568
3606
|
msg.setMethodName(value);
|
|
3569
3607
|
break;
|
|
3570
3608
|
case 3:
|
|
3609
|
+
var value = (
|
|
3610
|
+
/** @type {string} */
|
|
3611
|
+
reader.readString()
|
|
3612
|
+
);
|
|
3613
|
+
msg.addApplyToFields(value);
|
|
3614
|
+
break;
|
|
3615
|
+
case 4:
|
|
3571
3616
|
var value = (
|
|
3572
3617
|
/** @type {string} */
|
|
3573
3618
|
reader.readString()
|
|
@@ -3588,8 +3633,9 @@ var require_avs_pb = __commonJS({
|
|
|
3588
3633
|
};
|
|
3589
3634
|
proto.aggregator.ContractWriteNode.MethodCall.serializeBinaryToWriter = function(message, writer) {
|
|
3590
3635
|
var f = void 0;
|
|
3591
|
-
f =
|
|
3592
|
-
|
|
3636
|
+
f = /** @type {string} */
|
|
3637
|
+
jspb.Message.getField(message, 1);
|
|
3638
|
+
if (f != null) {
|
|
3593
3639
|
writer.writeString(
|
|
3594
3640
|
1,
|
|
3595
3641
|
f
|
|
@@ -3602,13 +3648,20 @@ var require_avs_pb = __commonJS({
|
|
|
3602
3648
|
f
|
|
3603
3649
|
);
|
|
3604
3650
|
}
|
|
3605
|
-
f = message.
|
|
3651
|
+
f = message.getApplyToFieldsList();
|
|
3606
3652
|
if (f.length > 0) {
|
|
3607
3653
|
writer.writeRepeatedString(
|
|
3608
3654
|
3,
|
|
3609
3655
|
f
|
|
3610
3656
|
);
|
|
3611
3657
|
}
|
|
3658
|
+
f = message.getMethodParamsList();
|
|
3659
|
+
if (f.length > 0) {
|
|
3660
|
+
writer.writeRepeatedString(
|
|
3661
|
+
4,
|
|
3662
|
+
f
|
|
3663
|
+
);
|
|
3664
|
+
}
|
|
3612
3665
|
};
|
|
3613
3666
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.getCallData = function() {
|
|
3614
3667
|
return (
|
|
@@ -3617,7 +3670,13 @@ var require_avs_pb = __commonJS({
|
|
|
3617
3670
|
);
|
|
3618
3671
|
};
|
|
3619
3672
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.setCallData = function(value) {
|
|
3620
|
-
return jspb.Message.
|
|
3673
|
+
return jspb.Message.setField(this, 1, value);
|
|
3674
|
+
};
|
|
3675
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearCallData = function() {
|
|
3676
|
+
return jspb.Message.setField(this, 1, void 0);
|
|
3677
|
+
};
|
|
3678
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.hasCallData = function() {
|
|
3679
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3621
3680
|
};
|
|
3622
3681
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodName = function() {
|
|
3623
3682
|
return (
|
|
@@ -3628,18 +3687,33 @@ var require_avs_pb = __commonJS({
|
|
|
3628
3687
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodName = function(value) {
|
|
3629
3688
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3630
3689
|
};
|
|
3631
|
-
proto.aggregator.ContractWriteNode.MethodCall.prototype.
|
|
3690
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getApplyToFieldsList = function() {
|
|
3632
3691
|
return (
|
|
3633
3692
|
/** @type {!Array<string>} */
|
|
3634
3693
|
jspb.Message.getRepeatedField(this, 3)
|
|
3635
3694
|
);
|
|
3636
3695
|
};
|
|
3637
|
-
proto.aggregator.ContractWriteNode.MethodCall.prototype.
|
|
3696
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setApplyToFieldsList = function(value) {
|
|
3638
3697
|
return jspb.Message.setField(this, 3, value || []);
|
|
3639
3698
|
};
|
|
3640
|
-
proto.aggregator.ContractWriteNode.MethodCall.prototype.
|
|
3699
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.addApplyToFields = function(value, opt_index) {
|
|
3641
3700
|
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3642
3701
|
};
|
|
3702
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearApplyToFieldsList = function() {
|
|
3703
|
+
return this.setApplyToFieldsList([]);
|
|
3704
|
+
};
|
|
3705
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodParamsList = function() {
|
|
3706
|
+
return (
|
|
3707
|
+
/** @type {!Array<string>} */
|
|
3708
|
+
jspb.Message.getRepeatedField(this, 4)
|
|
3709
|
+
);
|
|
3710
|
+
};
|
|
3711
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodParamsList = function(value) {
|
|
3712
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
3713
|
+
};
|
|
3714
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.addMethodParams = function(value, opt_index) {
|
|
3715
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
3716
|
+
};
|
|
3643
3717
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearMethodParamsList = function() {
|
|
3644
3718
|
return this.setMethodParamsList([]);
|
|
3645
3719
|
};
|
|
@@ -4083,8 +4157,9 @@ var require_avs_pb = __commonJS({
|
|
|
4083
4157
|
};
|
|
4084
4158
|
proto.aggregator.ContractReadNode.MethodCall.serializeBinaryToWriter = function(message, writer) {
|
|
4085
4159
|
var f = void 0;
|
|
4086
|
-
f =
|
|
4087
|
-
|
|
4160
|
+
f = /** @type {string} */
|
|
4161
|
+
jspb.Message.getField(message, 1);
|
|
4162
|
+
if (f != null) {
|
|
4088
4163
|
writer.writeString(
|
|
4089
4164
|
1,
|
|
4090
4165
|
f
|
|
@@ -4119,7 +4194,13 @@ var require_avs_pb = __commonJS({
|
|
|
4119
4194
|
);
|
|
4120
4195
|
};
|
|
4121
4196
|
proto.aggregator.ContractReadNode.MethodCall.prototype.setCallData = function(value) {
|
|
4122
|
-
return jspb.Message.
|
|
4197
|
+
return jspb.Message.setField(this, 1, value);
|
|
4198
|
+
};
|
|
4199
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.clearCallData = function() {
|
|
4200
|
+
return jspb.Message.setField(this, 1, void 0);
|
|
4201
|
+
};
|
|
4202
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.hasCallData = function() {
|
|
4203
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4123
4204
|
};
|
|
4124
4205
|
proto.aggregator.ContractReadNode.MethodCall.prototype.getMethodName = function() {
|
|
4125
4206
|
return (
|
|
@@ -16158,8 +16239,7 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
16158
16239
|
super({
|
|
16159
16240
|
...props,
|
|
16160
16241
|
type: import_types6.TriggerType.Manual,
|
|
16161
|
-
data: props.data
|
|
16162
|
-
input: props.input
|
|
16242
|
+
data: props.data
|
|
16163
16243
|
});
|
|
16164
16244
|
}
|
|
16165
16245
|
toRequest() {
|
package/dist/index.mjs
CHANGED
|
@@ -2210,7 +2210,7 @@ var require_avs_pb = __commonJS({
|
|
|
2210
2210
|
proto.aggregator.EventTrigger.Query.prototype.clearMethodCallsList = function() {
|
|
2211
2211
|
return this.setMethodCallsList([]);
|
|
2212
2212
|
};
|
|
2213
|
-
proto.aggregator.EventTrigger.MethodCall.repeatedFields_ = [3];
|
|
2213
|
+
proto.aggregator.EventTrigger.MethodCall.repeatedFields_ = [3, 4];
|
|
2214
2214
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2215
2215
|
proto.aggregator.EventTrigger.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
2216
2216
|
return proto.aggregator.EventTrigger.MethodCall.toObject(opt_includeInstance, this);
|
|
@@ -2219,7 +2219,8 @@ var require_avs_pb = __commonJS({
|
|
|
2219
2219
|
var f, obj = {
|
|
2220
2220
|
methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2221
2221
|
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2222
|
-
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f
|
|
2222
|
+
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
2223
|
+
methodParamsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? void 0 : f
|
|
2223
2224
|
};
|
|
2224
2225
|
if (includeInstance) {
|
|
2225
2226
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2260,6 +2261,13 @@ var require_avs_pb = __commonJS({
|
|
|
2260
2261
|
);
|
|
2261
2262
|
msg.addApplyToFields(value);
|
|
2262
2263
|
break;
|
|
2264
|
+
case 4:
|
|
2265
|
+
var value = (
|
|
2266
|
+
/** @type {string} */
|
|
2267
|
+
reader.readString()
|
|
2268
|
+
);
|
|
2269
|
+
msg.addMethodParams(value);
|
|
2270
|
+
break;
|
|
2263
2271
|
default:
|
|
2264
2272
|
reader.skipField();
|
|
2265
2273
|
break;
|
|
@@ -2281,8 +2289,9 @@ var require_avs_pb = __commonJS({
|
|
|
2281
2289
|
f
|
|
2282
2290
|
);
|
|
2283
2291
|
}
|
|
2284
|
-
f =
|
|
2285
|
-
|
|
2292
|
+
f = /** @type {string} */
|
|
2293
|
+
jspb.Message.getField(message, 2);
|
|
2294
|
+
if (f != null) {
|
|
2286
2295
|
writer.writeString(
|
|
2287
2296
|
2,
|
|
2288
2297
|
f
|
|
@@ -2295,6 +2304,13 @@ var require_avs_pb = __commonJS({
|
|
|
2295
2304
|
f
|
|
2296
2305
|
);
|
|
2297
2306
|
}
|
|
2307
|
+
f = message.getMethodParamsList();
|
|
2308
|
+
if (f.length > 0) {
|
|
2309
|
+
writer.writeRepeatedString(
|
|
2310
|
+
4,
|
|
2311
|
+
f
|
|
2312
|
+
);
|
|
2313
|
+
}
|
|
2298
2314
|
};
|
|
2299
2315
|
proto.aggregator.EventTrigger.MethodCall.prototype.getMethodName = function() {
|
|
2300
2316
|
return (
|
|
@@ -2312,7 +2328,13 @@ var require_avs_pb = __commonJS({
|
|
|
2312
2328
|
);
|
|
2313
2329
|
};
|
|
2314
2330
|
proto.aggregator.EventTrigger.MethodCall.prototype.setCallData = function(value) {
|
|
2315
|
-
return jspb.Message.
|
|
2331
|
+
return jspb.Message.setField(this, 2, value);
|
|
2332
|
+
};
|
|
2333
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.clearCallData = function() {
|
|
2334
|
+
return jspb.Message.setField(this, 2, void 0);
|
|
2335
|
+
};
|
|
2336
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.hasCallData = function() {
|
|
2337
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2316
2338
|
};
|
|
2317
2339
|
proto.aggregator.EventTrigger.MethodCall.prototype.getApplyToFieldsList = function() {
|
|
2318
2340
|
return (
|
|
@@ -2329,6 +2351,21 @@ var require_avs_pb = __commonJS({
|
|
|
2329
2351
|
proto.aggregator.EventTrigger.MethodCall.prototype.clearApplyToFieldsList = function() {
|
|
2330
2352
|
return this.setApplyToFieldsList([]);
|
|
2331
2353
|
};
|
|
2354
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.getMethodParamsList = function() {
|
|
2355
|
+
return (
|
|
2356
|
+
/** @type {!Array<string>} */
|
|
2357
|
+
jspb.Message.getRepeatedField(this, 4)
|
|
2358
|
+
);
|
|
2359
|
+
};
|
|
2360
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.setMethodParamsList = function(value) {
|
|
2361
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
2362
|
+
};
|
|
2363
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.addMethodParams = function(value, opt_index) {
|
|
2364
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
2365
|
+
};
|
|
2366
|
+
proto.aggregator.EventTrigger.MethodCall.prototype.clearMethodParamsList = function() {
|
|
2367
|
+
return this.setMethodParamsList([]);
|
|
2368
|
+
};
|
|
2332
2369
|
proto.aggregator.EventTrigger.Topics.repeatedFields_ = [1];
|
|
2333
2370
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2334
2371
|
proto.aggregator.EventTrigger.Topics.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3524,7 +3561,7 @@ var require_avs_pb = __commonJS({
|
|
|
3524
3561
|
proto.aggregator.ContractWriteNode.Config.prototype.clearMethodCallsList = function() {
|
|
3525
3562
|
return this.setMethodCallsList([]);
|
|
3526
3563
|
};
|
|
3527
|
-
proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3];
|
|
3564
|
+
proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3, 4];
|
|
3528
3565
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3529
3566
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
3530
3567
|
return proto.aggregator.ContractWriteNode.MethodCall.toObject(opt_includeInstance, this);
|
|
@@ -3533,7 +3570,8 @@ var require_avs_pb = __commonJS({
|
|
|
3533
3570
|
var f, obj = {
|
|
3534
3571
|
callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3535
3572
|
methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3536
|
-
|
|
3573
|
+
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
3574
|
+
methodParamsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? void 0 : f
|
|
3537
3575
|
};
|
|
3538
3576
|
if (includeInstance) {
|
|
3539
3577
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3568,6 +3606,13 @@ var require_avs_pb = __commonJS({
|
|
|
3568
3606
|
msg.setMethodName(value);
|
|
3569
3607
|
break;
|
|
3570
3608
|
case 3:
|
|
3609
|
+
var value = (
|
|
3610
|
+
/** @type {string} */
|
|
3611
|
+
reader.readString()
|
|
3612
|
+
);
|
|
3613
|
+
msg.addApplyToFields(value);
|
|
3614
|
+
break;
|
|
3615
|
+
case 4:
|
|
3571
3616
|
var value = (
|
|
3572
3617
|
/** @type {string} */
|
|
3573
3618
|
reader.readString()
|
|
@@ -3588,8 +3633,9 @@ var require_avs_pb = __commonJS({
|
|
|
3588
3633
|
};
|
|
3589
3634
|
proto.aggregator.ContractWriteNode.MethodCall.serializeBinaryToWriter = function(message, writer) {
|
|
3590
3635
|
var f = void 0;
|
|
3591
|
-
f =
|
|
3592
|
-
|
|
3636
|
+
f = /** @type {string} */
|
|
3637
|
+
jspb.Message.getField(message, 1);
|
|
3638
|
+
if (f != null) {
|
|
3593
3639
|
writer.writeString(
|
|
3594
3640
|
1,
|
|
3595
3641
|
f
|
|
@@ -3602,13 +3648,20 @@ var require_avs_pb = __commonJS({
|
|
|
3602
3648
|
f
|
|
3603
3649
|
);
|
|
3604
3650
|
}
|
|
3605
|
-
f = message.
|
|
3651
|
+
f = message.getApplyToFieldsList();
|
|
3606
3652
|
if (f.length > 0) {
|
|
3607
3653
|
writer.writeRepeatedString(
|
|
3608
3654
|
3,
|
|
3609
3655
|
f
|
|
3610
3656
|
);
|
|
3611
3657
|
}
|
|
3658
|
+
f = message.getMethodParamsList();
|
|
3659
|
+
if (f.length > 0) {
|
|
3660
|
+
writer.writeRepeatedString(
|
|
3661
|
+
4,
|
|
3662
|
+
f
|
|
3663
|
+
);
|
|
3664
|
+
}
|
|
3612
3665
|
};
|
|
3613
3666
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.getCallData = function() {
|
|
3614
3667
|
return (
|
|
@@ -3617,7 +3670,13 @@ var require_avs_pb = __commonJS({
|
|
|
3617
3670
|
);
|
|
3618
3671
|
};
|
|
3619
3672
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.setCallData = function(value) {
|
|
3620
|
-
return jspb.Message.
|
|
3673
|
+
return jspb.Message.setField(this, 1, value);
|
|
3674
|
+
};
|
|
3675
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearCallData = function() {
|
|
3676
|
+
return jspb.Message.setField(this, 1, void 0);
|
|
3677
|
+
};
|
|
3678
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.hasCallData = function() {
|
|
3679
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3621
3680
|
};
|
|
3622
3681
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodName = function() {
|
|
3623
3682
|
return (
|
|
@@ -3628,18 +3687,33 @@ var require_avs_pb = __commonJS({
|
|
|
3628
3687
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodName = function(value) {
|
|
3629
3688
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3630
3689
|
};
|
|
3631
|
-
proto.aggregator.ContractWriteNode.MethodCall.prototype.
|
|
3690
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getApplyToFieldsList = function() {
|
|
3632
3691
|
return (
|
|
3633
3692
|
/** @type {!Array<string>} */
|
|
3634
3693
|
jspb.Message.getRepeatedField(this, 3)
|
|
3635
3694
|
);
|
|
3636
3695
|
};
|
|
3637
|
-
proto.aggregator.ContractWriteNode.MethodCall.prototype.
|
|
3696
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setApplyToFieldsList = function(value) {
|
|
3638
3697
|
return jspb.Message.setField(this, 3, value || []);
|
|
3639
3698
|
};
|
|
3640
|
-
proto.aggregator.ContractWriteNode.MethodCall.prototype.
|
|
3699
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.addApplyToFields = function(value, opt_index) {
|
|
3641
3700
|
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3642
3701
|
};
|
|
3702
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearApplyToFieldsList = function() {
|
|
3703
|
+
return this.setApplyToFieldsList([]);
|
|
3704
|
+
};
|
|
3705
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodParamsList = function() {
|
|
3706
|
+
return (
|
|
3707
|
+
/** @type {!Array<string>} */
|
|
3708
|
+
jspb.Message.getRepeatedField(this, 4)
|
|
3709
|
+
);
|
|
3710
|
+
};
|
|
3711
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodParamsList = function(value) {
|
|
3712
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
3713
|
+
};
|
|
3714
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.addMethodParams = function(value, opt_index) {
|
|
3715
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
3716
|
+
};
|
|
3643
3717
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearMethodParamsList = function() {
|
|
3644
3718
|
return this.setMethodParamsList([]);
|
|
3645
3719
|
};
|
|
@@ -4083,8 +4157,9 @@ var require_avs_pb = __commonJS({
|
|
|
4083
4157
|
};
|
|
4084
4158
|
proto.aggregator.ContractReadNode.MethodCall.serializeBinaryToWriter = function(message, writer) {
|
|
4085
4159
|
var f = void 0;
|
|
4086
|
-
f =
|
|
4087
|
-
|
|
4160
|
+
f = /** @type {string} */
|
|
4161
|
+
jspb.Message.getField(message, 1);
|
|
4162
|
+
if (f != null) {
|
|
4088
4163
|
writer.writeString(
|
|
4089
4164
|
1,
|
|
4090
4165
|
f
|
|
@@ -4119,7 +4194,13 @@ var require_avs_pb = __commonJS({
|
|
|
4119
4194
|
);
|
|
4120
4195
|
};
|
|
4121
4196
|
proto.aggregator.ContractReadNode.MethodCall.prototype.setCallData = function(value) {
|
|
4122
|
-
return jspb.Message.
|
|
4197
|
+
return jspb.Message.setField(this, 1, value);
|
|
4198
|
+
};
|
|
4199
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.clearCallData = function() {
|
|
4200
|
+
return jspb.Message.setField(this, 1, void 0);
|
|
4201
|
+
};
|
|
4202
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.hasCallData = function() {
|
|
4203
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4123
4204
|
};
|
|
4124
4205
|
proto.aggregator.ContractReadNode.MethodCall.prototype.getMethodName = function() {
|
|
4125
4206
|
return (
|
|
@@ -16142,8 +16223,7 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
16142
16223
|
super({
|
|
16143
16224
|
...props,
|
|
16144
16225
|
type: TriggerType11.Manual,
|
|
16145
|
-
data: props.data
|
|
16146
|
-
input: props.input
|
|
16226
|
+
data: props.data
|
|
16147
16227
|
});
|
|
16148
16228
|
}
|
|
16149
16229
|
toRequest() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,YAAY,MAAM,SAAS,CAAC;AACnC,OAAO,WAAW,MAAM,QAAQ,CAAC;AACjC,OAAO,YAAY,MAAM,SAAS,CAAC;AACnC,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAEL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,YAAY,MAAM,SAAS,CAAC;AACnC,OAAO,WAAW,MAAM,QAAQ,CAAC;AACjC,OAAO,YAAY,MAAM,SAAS,CAAC;AACnC,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAEL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAM,cAAc;IAClB;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO;IAkB3C;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO;IAiBrD,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAkB9D;AAED,eAAe,cAAc,CAAC;AAG9B,OAAO,EACL,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,aAAa,GACd,CAAC;AAGF,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import EventTrigger from "./event";
|
|
|
5
5
|
import FixedTimeTrigger from "./fixedTime";
|
|
6
6
|
import ManualTrigger from "./manual";
|
|
7
7
|
import Trigger from "./interface";
|
|
8
|
-
import { TriggerType } from "@avaprotocol/types";
|
|
8
|
+
import { TriggerType, } from "@avaprotocol/types";
|
|
9
9
|
class TriggerFactory {
|
|
10
10
|
/**
|
|
11
11
|
* Static factory method to create Trigger instances
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/manual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,MAAM,aAAa,CAAC;AAMlC,OAAO,EAEL,kBAAkB,EAGnB,MAAM,oBAAoB,CAAC;AAE5B,cAAM,aAAc,SAAQ,OAAO;gBACrB,KAAK,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/manual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,MAAM,aAAa,CAAC;AAMlC,OAAO,EAEL,kBAAkB,EAGnB,MAAM,oBAAoB,CAAC;AAE5B,cAAM,aAAc,SAAQ,OAAO;gBACrB,KAAK,EAAE,kBAAkB;IAQrC,SAAS,IAAI,MAAM,CAAC,WAAW;IAgE/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,aAAa;IA4C3D;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,OAAO;CAuBlE;AAED,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avaprotocol/sdk-js",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.8",
|
|
4
4
|
"description": "A JavaScript/TypeScript SDK designed to simplify integration with Ava Protocol's AVS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepare": "node ../../scripts/prepare-package.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@avaprotocol/types": "^2.4.
|
|
34
|
+
"@avaprotocol/types": "^2.4.8",
|
|
35
35
|
"@grpc/grpc-js": "^1.11.3",
|
|
36
36
|
"@grpc/proto-loader": "^0.7.13",
|
|
37
37
|
"dotenv": "^16.4.5",
|