@avaprotocol/sdk-js 1.7.1 → 2.0.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/CHANGELOG.md +27 -0
- package/dist/index.d.ts +14 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +415 -13
- package/dist/index.mjs +417 -11
- package/dist/models/edge.d.ts +12 -0
- package/dist/models/edge.d.ts.map +1 -1
- package/dist/models/execution.d.ts +15 -0
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/node/branch.d.ts +11 -0
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +1 -0
- package/dist/models/node/contractRead.d.ts +11 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +1 -0
- package/dist/models/node/contractWrite.d.ts +11 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +1 -0
- package/dist/models/node/customCode.d.ts +11 -0
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +1 -0
- package/dist/models/node/ethTransfer.d.ts +11 -0
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +1 -0
- package/dist/models/node/factory.d.ts +23 -0
- package/dist/models/node/factory.d.ts.map +1 -1
- package/dist/models/node/filter.d.ts +11 -0
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +1 -0
- package/dist/models/node/graphqlQuery.d.ts +11 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +1 -0
- package/dist/models/node/interface.d.ts +21 -0
- package/dist/models/node/interface.d.ts.map +1 -1
- package/dist/models/node/loop.d.ts +11 -0
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +2 -2
- package/dist/models/node/restApi.d.ts +11 -0
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +1 -0
- package/dist/models/step.d.ts +19 -0
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +23 -14
- package/dist/models/trigger/block.d.ts +22 -0
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +1 -0
- package/dist/models/trigger/cron.d.ts +23 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +1 -0
- package/dist/models/trigger/event.d.ts +22 -0
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +19 -0
- package/dist/models/trigger/factory.d.ts +27 -0
- package/dist/models/trigger/factory.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.d.ts +23 -0
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +1 -0
- package/dist/models/trigger/interface.d.ts +20 -0
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/manual.d.ts +23 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/workflow.d.ts +42 -0
- package/dist/models/workflow.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -112,6 +112,8 @@ var require_avs_pb = __commonJS({
|
|
|
112
112
|
goog.exportSymbol("proto.aggregator.GetKeyReq", null, global);
|
|
113
113
|
goog.exportSymbol("proto.aggregator.GetSignatureFormatReq", null, global);
|
|
114
114
|
goog.exportSymbol("proto.aggregator.GetSignatureFormatResp", null, global);
|
|
115
|
+
goog.exportSymbol("proto.aggregator.GetTokenMetadataReq", null, global);
|
|
116
|
+
goog.exportSymbol("proto.aggregator.GetTokenMetadataResp", null, global);
|
|
115
117
|
goog.exportSymbol("proto.aggregator.GetWalletReq", null, global);
|
|
116
118
|
goog.exportSymbol("proto.aggregator.GetWalletResp", null, global);
|
|
117
119
|
goog.exportSymbol("proto.aggregator.GetWorkflowCountReq", null, global);
|
|
@@ -161,10 +163,32 @@ var require_avs_pb = __commonJS({
|
|
|
161
163
|
goog.exportSymbol("proto.aggregator.TaskStatus", null, global);
|
|
162
164
|
goog.exportSymbol("proto.aggregator.TaskTrigger", null, global);
|
|
163
165
|
goog.exportSymbol("proto.aggregator.TaskTrigger.TriggerTypeCase", null, global);
|
|
166
|
+
goog.exportSymbol("proto.aggregator.TokenMetadata", null, global);
|
|
164
167
|
goog.exportSymbol("proto.aggregator.TriggerTaskReq", null, global);
|
|
165
168
|
goog.exportSymbol("proto.aggregator.TriggerTaskReq.TriggerOutputCase", null, global);
|
|
166
169
|
goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
|
|
167
170
|
goog.exportSymbol("proto.aggregator.TriggerType", null, global);
|
|
171
|
+
proto.aggregator.TokenMetadata = function(opt_data) {
|
|
172
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
173
|
+
};
|
|
174
|
+
goog.inherits(proto.aggregator.TokenMetadata, jspb.Message);
|
|
175
|
+
if (goog.DEBUG && !COMPILED) {
|
|
176
|
+
proto.aggregator.TokenMetadata.displayName = "proto.aggregator.TokenMetadata";
|
|
177
|
+
}
|
|
178
|
+
proto.aggregator.GetTokenMetadataReq = function(opt_data) {
|
|
179
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
180
|
+
};
|
|
181
|
+
goog.inherits(proto.aggregator.GetTokenMetadataReq, jspb.Message);
|
|
182
|
+
if (goog.DEBUG && !COMPILED) {
|
|
183
|
+
proto.aggregator.GetTokenMetadataReq.displayName = "proto.aggregator.GetTokenMetadataReq";
|
|
184
|
+
}
|
|
185
|
+
proto.aggregator.GetTokenMetadataResp = function(opt_data) {
|
|
186
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
187
|
+
};
|
|
188
|
+
goog.inherits(proto.aggregator.GetTokenMetadataResp, jspb.Message);
|
|
189
|
+
if (goog.DEBUG && !COMPILED) {
|
|
190
|
+
proto.aggregator.GetTokenMetadataResp.displayName = "proto.aggregator.GetTokenMetadataResp";
|
|
191
|
+
}
|
|
168
192
|
proto.aggregator.IdReq = function(opt_data) {
|
|
169
193
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
170
194
|
};
|
|
@@ -830,6 +854,323 @@ var require_avs_pb = __commonJS({
|
|
|
830
854
|
if (goog.DEBUG && !COMPILED) {
|
|
831
855
|
proto.aggregator.SimulateTaskReq.displayName = "proto.aggregator.SimulateTaskReq";
|
|
832
856
|
}
|
|
857
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
858
|
+
proto.aggregator.TokenMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
859
|
+
return proto.aggregator.TokenMetadata.toObject(opt_includeInstance, this);
|
|
860
|
+
};
|
|
861
|
+
proto.aggregator.TokenMetadata.toObject = function(includeInstance, msg) {
|
|
862
|
+
var f, obj = {
|
|
863
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
864
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
865
|
+
symbol: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
866
|
+
decimals: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
867
|
+
};
|
|
868
|
+
if (includeInstance) {
|
|
869
|
+
obj.$jspbMessageInstance = msg;
|
|
870
|
+
}
|
|
871
|
+
return obj;
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
proto.aggregator.TokenMetadata.deserializeBinary = function(bytes) {
|
|
875
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
876
|
+
var msg = new proto.aggregator.TokenMetadata();
|
|
877
|
+
return proto.aggregator.TokenMetadata.deserializeBinaryFromReader(msg, reader);
|
|
878
|
+
};
|
|
879
|
+
proto.aggregator.TokenMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
880
|
+
while (reader.nextField()) {
|
|
881
|
+
if (reader.isEndGroup()) {
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
var field = reader.getFieldNumber();
|
|
885
|
+
switch (field) {
|
|
886
|
+
case 1:
|
|
887
|
+
var value = (
|
|
888
|
+
/** @type {string} */
|
|
889
|
+
reader.readString()
|
|
890
|
+
);
|
|
891
|
+
msg.setAddress(value);
|
|
892
|
+
break;
|
|
893
|
+
case 2:
|
|
894
|
+
var value = (
|
|
895
|
+
/** @type {string} */
|
|
896
|
+
reader.readString()
|
|
897
|
+
);
|
|
898
|
+
msg.setName(value);
|
|
899
|
+
break;
|
|
900
|
+
case 3:
|
|
901
|
+
var value = (
|
|
902
|
+
/** @type {string} */
|
|
903
|
+
reader.readString()
|
|
904
|
+
);
|
|
905
|
+
msg.setSymbol(value);
|
|
906
|
+
break;
|
|
907
|
+
case 4:
|
|
908
|
+
var value = (
|
|
909
|
+
/** @type {number} */
|
|
910
|
+
reader.readUint32()
|
|
911
|
+
);
|
|
912
|
+
msg.setDecimals(value);
|
|
913
|
+
break;
|
|
914
|
+
default:
|
|
915
|
+
reader.skipField();
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
return msg;
|
|
920
|
+
};
|
|
921
|
+
proto.aggregator.TokenMetadata.prototype.serializeBinary = function() {
|
|
922
|
+
var writer = new jspb.BinaryWriter();
|
|
923
|
+
proto.aggregator.TokenMetadata.serializeBinaryToWriter(this, writer);
|
|
924
|
+
return writer.getResultBuffer();
|
|
925
|
+
};
|
|
926
|
+
proto.aggregator.TokenMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
927
|
+
var f = void 0;
|
|
928
|
+
f = message.getAddress();
|
|
929
|
+
if (f.length > 0) {
|
|
930
|
+
writer.writeString(
|
|
931
|
+
1,
|
|
932
|
+
f
|
|
933
|
+
);
|
|
934
|
+
}
|
|
935
|
+
f = message.getName();
|
|
936
|
+
if (f.length > 0) {
|
|
937
|
+
writer.writeString(
|
|
938
|
+
2,
|
|
939
|
+
f
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
f = message.getSymbol();
|
|
943
|
+
if (f.length > 0) {
|
|
944
|
+
writer.writeString(
|
|
945
|
+
3,
|
|
946
|
+
f
|
|
947
|
+
);
|
|
948
|
+
}
|
|
949
|
+
f = message.getDecimals();
|
|
950
|
+
if (f !== 0) {
|
|
951
|
+
writer.writeUint32(
|
|
952
|
+
4,
|
|
953
|
+
f
|
|
954
|
+
);
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
proto.aggregator.TokenMetadata.prototype.getAddress = function() {
|
|
958
|
+
return (
|
|
959
|
+
/** @type {string} */
|
|
960
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
961
|
+
);
|
|
962
|
+
};
|
|
963
|
+
proto.aggregator.TokenMetadata.prototype.setAddress = function(value) {
|
|
964
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
965
|
+
};
|
|
966
|
+
proto.aggregator.TokenMetadata.prototype.getName = function() {
|
|
967
|
+
return (
|
|
968
|
+
/** @type {string} */
|
|
969
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
970
|
+
);
|
|
971
|
+
};
|
|
972
|
+
proto.aggregator.TokenMetadata.prototype.setName = function(value) {
|
|
973
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
974
|
+
};
|
|
975
|
+
proto.aggregator.TokenMetadata.prototype.getSymbol = function() {
|
|
976
|
+
return (
|
|
977
|
+
/** @type {string} */
|
|
978
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
979
|
+
);
|
|
980
|
+
};
|
|
981
|
+
proto.aggregator.TokenMetadata.prototype.setSymbol = function(value) {
|
|
982
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
983
|
+
};
|
|
984
|
+
proto.aggregator.TokenMetadata.prototype.getDecimals = function() {
|
|
985
|
+
return (
|
|
986
|
+
/** @type {number} */
|
|
987
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
988
|
+
);
|
|
989
|
+
};
|
|
990
|
+
proto.aggregator.TokenMetadata.prototype.setDecimals = function(value) {
|
|
991
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
992
|
+
};
|
|
993
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
994
|
+
proto.aggregator.GetTokenMetadataReq.prototype.toObject = function(opt_includeInstance) {
|
|
995
|
+
return proto.aggregator.GetTokenMetadataReq.toObject(opt_includeInstance, this);
|
|
996
|
+
};
|
|
997
|
+
proto.aggregator.GetTokenMetadataReq.toObject = function(includeInstance, msg) {
|
|
998
|
+
var f, obj = {
|
|
999
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1000
|
+
};
|
|
1001
|
+
if (includeInstance) {
|
|
1002
|
+
obj.$jspbMessageInstance = msg;
|
|
1003
|
+
}
|
|
1004
|
+
return obj;
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
proto.aggregator.GetTokenMetadataReq.deserializeBinary = function(bytes) {
|
|
1008
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1009
|
+
var msg = new proto.aggregator.GetTokenMetadataReq();
|
|
1010
|
+
return proto.aggregator.GetTokenMetadataReq.deserializeBinaryFromReader(msg, reader);
|
|
1011
|
+
};
|
|
1012
|
+
proto.aggregator.GetTokenMetadataReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1013
|
+
while (reader.nextField()) {
|
|
1014
|
+
if (reader.isEndGroup()) {
|
|
1015
|
+
break;
|
|
1016
|
+
}
|
|
1017
|
+
var field = reader.getFieldNumber();
|
|
1018
|
+
switch (field) {
|
|
1019
|
+
case 1:
|
|
1020
|
+
var value = (
|
|
1021
|
+
/** @type {string} */
|
|
1022
|
+
reader.readString()
|
|
1023
|
+
);
|
|
1024
|
+
msg.setAddress(value);
|
|
1025
|
+
break;
|
|
1026
|
+
default:
|
|
1027
|
+
reader.skipField();
|
|
1028
|
+
break;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
return msg;
|
|
1032
|
+
};
|
|
1033
|
+
proto.aggregator.GetTokenMetadataReq.prototype.serializeBinary = function() {
|
|
1034
|
+
var writer = new jspb.BinaryWriter();
|
|
1035
|
+
proto.aggregator.GetTokenMetadataReq.serializeBinaryToWriter(this, writer);
|
|
1036
|
+
return writer.getResultBuffer();
|
|
1037
|
+
};
|
|
1038
|
+
proto.aggregator.GetTokenMetadataReq.serializeBinaryToWriter = function(message, writer) {
|
|
1039
|
+
var f = void 0;
|
|
1040
|
+
f = message.getAddress();
|
|
1041
|
+
if (f.length > 0) {
|
|
1042
|
+
writer.writeString(
|
|
1043
|
+
1,
|
|
1044
|
+
f
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
proto.aggregator.GetTokenMetadataReq.prototype.getAddress = function() {
|
|
1049
|
+
return (
|
|
1050
|
+
/** @type {string} */
|
|
1051
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
1052
|
+
);
|
|
1053
|
+
};
|
|
1054
|
+
proto.aggregator.GetTokenMetadataReq.prototype.setAddress = function(value) {
|
|
1055
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1056
|
+
};
|
|
1057
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1058
|
+
proto.aggregator.GetTokenMetadataResp.prototype.toObject = function(opt_includeInstance) {
|
|
1059
|
+
return proto.aggregator.GetTokenMetadataResp.toObject(opt_includeInstance, this);
|
|
1060
|
+
};
|
|
1061
|
+
proto.aggregator.GetTokenMetadataResp.toObject = function(includeInstance, msg) {
|
|
1062
|
+
var f, obj = {
|
|
1063
|
+
token: (f = msg.getToken()) && proto.aggregator.TokenMetadata.toObject(includeInstance, f),
|
|
1064
|
+
found: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
1065
|
+
source: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1066
|
+
};
|
|
1067
|
+
if (includeInstance) {
|
|
1068
|
+
obj.$jspbMessageInstance = msg;
|
|
1069
|
+
}
|
|
1070
|
+
return obj;
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
proto.aggregator.GetTokenMetadataResp.deserializeBinary = function(bytes) {
|
|
1074
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1075
|
+
var msg = new proto.aggregator.GetTokenMetadataResp();
|
|
1076
|
+
return proto.aggregator.GetTokenMetadataResp.deserializeBinaryFromReader(msg, reader);
|
|
1077
|
+
};
|
|
1078
|
+
proto.aggregator.GetTokenMetadataResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
1079
|
+
while (reader.nextField()) {
|
|
1080
|
+
if (reader.isEndGroup()) {
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
var field = reader.getFieldNumber();
|
|
1084
|
+
switch (field) {
|
|
1085
|
+
case 1:
|
|
1086
|
+
var value = new proto.aggregator.TokenMetadata();
|
|
1087
|
+
reader.readMessage(value, proto.aggregator.TokenMetadata.deserializeBinaryFromReader);
|
|
1088
|
+
msg.setToken(value);
|
|
1089
|
+
break;
|
|
1090
|
+
case 2:
|
|
1091
|
+
var value = (
|
|
1092
|
+
/** @type {boolean} */
|
|
1093
|
+
reader.readBool()
|
|
1094
|
+
);
|
|
1095
|
+
msg.setFound(value);
|
|
1096
|
+
break;
|
|
1097
|
+
case 3:
|
|
1098
|
+
var value = (
|
|
1099
|
+
/** @type {string} */
|
|
1100
|
+
reader.readString()
|
|
1101
|
+
);
|
|
1102
|
+
msg.setSource(value);
|
|
1103
|
+
break;
|
|
1104
|
+
default:
|
|
1105
|
+
reader.skipField();
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
return msg;
|
|
1110
|
+
};
|
|
1111
|
+
proto.aggregator.GetTokenMetadataResp.prototype.serializeBinary = function() {
|
|
1112
|
+
var writer = new jspb.BinaryWriter();
|
|
1113
|
+
proto.aggregator.GetTokenMetadataResp.serializeBinaryToWriter(this, writer);
|
|
1114
|
+
return writer.getResultBuffer();
|
|
1115
|
+
};
|
|
1116
|
+
proto.aggregator.GetTokenMetadataResp.serializeBinaryToWriter = function(message, writer) {
|
|
1117
|
+
var f = void 0;
|
|
1118
|
+
f = message.getToken();
|
|
1119
|
+
if (f != null) {
|
|
1120
|
+
writer.writeMessage(
|
|
1121
|
+
1,
|
|
1122
|
+
f,
|
|
1123
|
+
proto.aggregator.TokenMetadata.serializeBinaryToWriter
|
|
1124
|
+
);
|
|
1125
|
+
}
|
|
1126
|
+
f = message.getFound();
|
|
1127
|
+
if (f) {
|
|
1128
|
+
writer.writeBool(
|
|
1129
|
+
2,
|
|
1130
|
+
f
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
f = message.getSource();
|
|
1134
|
+
if (f.length > 0) {
|
|
1135
|
+
writer.writeString(
|
|
1136
|
+
3,
|
|
1137
|
+
f
|
|
1138
|
+
);
|
|
1139
|
+
}
|
|
1140
|
+
};
|
|
1141
|
+
proto.aggregator.GetTokenMetadataResp.prototype.getToken = function() {
|
|
1142
|
+
return (
|
|
1143
|
+
/** @type{?proto.aggregator.TokenMetadata} */
|
|
1144
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TokenMetadata, 1)
|
|
1145
|
+
);
|
|
1146
|
+
};
|
|
1147
|
+
proto.aggregator.GetTokenMetadataResp.prototype.setToken = function(value) {
|
|
1148
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1149
|
+
};
|
|
1150
|
+
proto.aggregator.GetTokenMetadataResp.prototype.clearToken = function() {
|
|
1151
|
+
return this.setToken(void 0);
|
|
1152
|
+
};
|
|
1153
|
+
proto.aggregator.GetTokenMetadataResp.prototype.hasToken = function() {
|
|
1154
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1155
|
+
};
|
|
1156
|
+
proto.aggregator.GetTokenMetadataResp.prototype.getFound = function() {
|
|
1157
|
+
return (
|
|
1158
|
+
/** @type {boolean} */
|
|
1159
|
+
jspb.Message.getBooleanFieldWithDefault(this, 2, false)
|
|
1160
|
+
);
|
|
1161
|
+
};
|
|
1162
|
+
proto.aggregator.GetTokenMetadataResp.prototype.setFound = function(value) {
|
|
1163
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
1164
|
+
};
|
|
1165
|
+
proto.aggregator.GetTokenMetadataResp.prototype.getSource = function() {
|
|
1166
|
+
return (
|
|
1167
|
+
/** @type {string} */
|
|
1168
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
1169
|
+
);
|
|
1170
|
+
};
|
|
1171
|
+
proto.aggregator.GetTokenMetadataResp.prototype.setSource = function(value) {
|
|
1172
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1173
|
+
};
|
|
833
1174
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
834
1175
|
proto.aggregator.IdReq.prototype.toObject = function(opt_includeInstance) {
|
|
835
1176
|
return proto.aggregator.IdReq.toObject(opt_includeInstance, this);
|
|
@@ -13468,6 +13809,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13468
13809
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
13469
13810
|
return avs_pb23.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13470
13811
|
}
|
|
13812
|
+
function serialize_aggregator_GetTokenMetadataReq(arg) {
|
|
13813
|
+
if (!(arg instanceof avs_pb23.GetTokenMetadataReq)) {
|
|
13814
|
+
throw new Error("Expected argument of type aggregator.GetTokenMetadataReq");
|
|
13815
|
+
}
|
|
13816
|
+
return Buffer.from(arg.serializeBinary());
|
|
13817
|
+
}
|
|
13818
|
+
function deserialize_aggregator_GetTokenMetadataReq(buffer_arg) {
|
|
13819
|
+
return avs_pb23.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13820
|
+
}
|
|
13821
|
+
function serialize_aggregator_GetTokenMetadataResp(arg) {
|
|
13822
|
+
if (!(arg instanceof avs_pb23.GetTokenMetadataResp)) {
|
|
13823
|
+
throw new Error("Expected argument of type aggregator.GetTokenMetadataResp");
|
|
13824
|
+
}
|
|
13825
|
+
return Buffer.from(arg.serializeBinary());
|
|
13826
|
+
}
|
|
13827
|
+
function deserialize_aggregator_GetTokenMetadataResp(buffer_arg) {
|
|
13828
|
+
return avs_pb23.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13829
|
+
}
|
|
13471
13830
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
13472
13831
|
if (!(arg instanceof avs_pb23.GetWalletReq)) {
|
|
13473
13832
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
@@ -14004,6 +14363,18 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14004
14363
|
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
14005
14364
|
responseSerialize: serialize_aggregator_Execution,
|
|
14006
14365
|
responseDeserialize: deserialize_aggregator_Execution
|
|
14366
|
+
},
|
|
14367
|
+
// GetTokenMetadata allows looking up ERC20 token metadata by contract address
|
|
14368
|
+
getTokenMetadata: {
|
|
14369
|
+
path: "/aggregator.Aggregator/GetTokenMetadata",
|
|
14370
|
+
requestStream: false,
|
|
14371
|
+
responseStream: false,
|
|
14372
|
+
requestType: avs_pb23.GetTokenMetadataReq,
|
|
14373
|
+
responseType: avs_pb23.GetTokenMetadataResp,
|
|
14374
|
+
requestSerialize: serialize_aggregator_GetTokenMetadataReq,
|
|
14375
|
+
requestDeserialize: deserialize_aggregator_GetTokenMetadataReq,
|
|
14376
|
+
responseSerialize: serialize_aggregator_GetTokenMetadataResp,
|
|
14377
|
+
responseDeserialize: deserialize_aggregator_GetTokenMetadataResp
|
|
14007
14378
|
}
|
|
14008
14379
|
};
|
|
14009
14380
|
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -14388,7 +14759,9 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14388
14759
|
var manual_default = ManualTrigger;
|
|
14389
14760
|
|
|
14390
14761
|
// src/models/trigger/factory.ts
|
|
14391
|
-
import {
|
|
14762
|
+
import {
|
|
14763
|
+
TriggerType as TriggerType12
|
|
14764
|
+
} from "@avaprotocol/types";
|
|
14392
14765
|
|
|
14393
14766
|
// src/utils.ts
|
|
14394
14767
|
import {
|
|
@@ -14970,6 +15343,7 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14970
15343
|
super({ ...props, type: NodeType11.Loop, data: props.data });
|
|
14971
15344
|
}
|
|
14972
15345
|
static fromResponse(raw) {
|
|
15346
|
+
const obj = raw.toObject();
|
|
14973
15347
|
const loopNode = raw.getLoop();
|
|
14974
15348
|
if (!loopNode) {
|
|
14975
15349
|
throw new Error("Response does not contain a Loop node");
|
|
@@ -14987,8 +15361,7 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14987
15361
|
graphqlDataQuery: loopNodeData.graphqlDataQuery
|
|
14988
15362
|
};
|
|
14989
15363
|
return new _LoopNode({
|
|
14990
|
-
|
|
14991
|
-
name: raw.getName(),
|
|
15364
|
+
...obj,
|
|
14992
15365
|
type: NodeType11.Loop,
|
|
14993
15366
|
data
|
|
14994
15367
|
});
|
|
@@ -15322,7 +15695,7 @@ var Step = class _Step {
|
|
|
15322
15695
|
let nodeOutputMessage;
|
|
15323
15696
|
switch (outputDataType) {
|
|
15324
15697
|
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15325
|
-
return
|
|
15698
|
+
return void 0;
|
|
15326
15699
|
// Trigger outputs
|
|
15327
15700
|
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
15328
15701
|
const blockOutput = step.getBlockTrigger()?.toObject();
|
|
@@ -15354,7 +15727,10 @@ var Step = class _Step {
|
|
|
15354
15727
|
return manualOutput || void 0;
|
|
15355
15728
|
// Node outputs
|
|
15356
15729
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
15357
|
-
|
|
15730
|
+
const ethTransferOutput = step.getEthTransfer()?.toObject();
|
|
15731
|
+
return ethTransferOutput ? {
|
|
15732
|
+
transactionHash: ethTransferOutput.transactionHash
|
|
15733
|
+
} : void 0;
|
|
15358
15734
|
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15359
15735
|
nodeOutputMessage = step.getGraphql();
|
|
15360
15736
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15463,9 +15839,10 @@ import {
|
|
|
15463
15839
|
TriggerType as TriggerType13,
|
|
15464
15840
|
NodeTypeGoConverter as NodeTypeGoConverter2,
|
|
15465
15841
|
TriggerTypeGoConverter,
|
|
15466
|
-
TriggerTypeConverter
|
|
15842
|
+
TriggerTypeConverter,
|
|
15843
|
+
AUTH_KEY_HEADER,
|
|
15844
|
+
DEFAULT_LIMIT
|
|
15467
15845
|
} from "@avaprotocol/types";
|
|
15468
|
-
import { AUTH_KEY_HEADER, DEFAULT_LIMIT } from "@avaprotocol/types";
|
|
15469
15846
|
var BaseClient = class {
|
|
15470
15847
|
constructor(opts) {
|
|
15471
15848
|
this.endpoint = opts.endpoint;
|
|
@@ -15870,8 +16247,10 @@ var Client = class extends BaseClient {
|
|
|
15870
16247
|
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15871
16248
|
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15872
16249
|
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
15873
|
-
if (blockData.parentHash)
|
|
15874
|
-
|
|
16250
|
+
if (blockData.parentHash)
|
|
16251
|
+
blockOutput.setParentHash(blockData.parentHash);
|
|
16252
|
+
if (blockData.difficulty)
|
|
16253
|
+
blockOutput.setDifficulty(blockData.difficulty);
|
|
15875
16254
|
if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
|
|
15876
16255
|
if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
|
|
15877
16256
|
request.setBlockTrigger(blockOutput);
|
|
@@ -15901,7 +16280,9 @@ var Client = class extends BaseClient {
|
|
|
15901
16280
|
transferLog.setToAddress(eventData.transferLog.toAddress);
|
|
15902
16281
|
transferLog.setValue(eventData.transferLog.value);
|
|
15903
16282
|
transferLog.setValueFormatted(eventData.transferLog.valueFormatted);
|
|
15904
|
-
transferLog.setTransactionIndex(
|
|
16283
|
+
transferLog.setTransactionIndex(
|
|
16284
|
+
eventData.transferLog.transactionIndex
|
|
16285
|
+
);
|
|
15905
16286
|
transferLog.setLogIndex(eventData.transferLog.logIndex);
|
|
15906
16287
|
eventOutput.setTransferLog(transferLog);
|
|
15907
16288
|
}
|
|
@@ -15918,7 +16299,9 @@ var Client = class extends BaseClient {
|
|
|
15918
16299
|
case TriggerType13.Unspecified:
|
|
15919
16300
|
break;
|
|
15920
16301
|
default:
|
|
15921
|
-
throw new Error(
|
|
16302
|
+
throw new Error(
|
|
16303
|
+
`Unsupported trigger type: ${triggerData.type}`
|
|
16304
|
+
);
|
|
15922
16305
|
}
|
|
15923
16306
|
const result = await this.sendGrpcRequest("triggerTask", request, options);
|
|
15924
16307
|
return result.toObject();
|
|
@@ -16182,6 +16565,29 @@ var Client = class extends BaseClient {
|
|
|
16182
16565
|
const result = await this.sendGrpcRequest("simulateTask", request, options);
|
|
16183
16566
|
return execution_default.fromResponse(result);
|
|
16184
16567
|
}
|
|
16568
|
+
/**
|
|
16569
|
+
* Get token metadata by contract address
|
|
16570
|
+
* @param {GetTokenMetadataRequest} params - The parameters for getting token metadata
|
|
16571
|
+
* @param {string} params.address - The contract address to look up
|
|
16572
|
+
* @param {RequestOptions} options - Request options
|
|
16573
|
+
* @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
|
|
16574
|
+
*/
|
|
16575
|
+
async getTokenMetadata({ address }, options) {
|
|
16576
|
+
const request = new avs_pb22.GetTokenMetadataReq();
|
|
16577
|
+
request.setAddress(address);
|
|
16578
|
+
const result = await this.sendGrpcRequest("getTokenMetadata", request, options);
|
|
16579
|
+
const token = result.getToken();
|
|
16580
|
+
return {
|
|
16581
|
+
token: token ? {
|
|
16582
|
+
address: token.getAddress()?.toLowerCase(),
|
|
16583
|
+
name: token.getName(),
|
|
16584
|
+
symbol: token.getSymbol(),
|
|
16585
|
+
decimals: token.getDecimals()
|
|
16586
|
+
} : null,
|
|
16587
|
+
found: result.getFound(),
|
|
16588
|
+
source: result.getSource()
|
|
16589
|
+
};
|
|
16590
|
+
}
|
|
16185
16591
|
};
|
|
16186
16592
|
export {
|
|
16187
16593
|
block_default as BlockTrigger,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
2
|
+
import { EdgeProps } from "@avaprotocol/types";
|
|
3
|
+
declare class Edge implements EdgeProps {
|
|
4
|
+
id: string;
|
|
5
|
+
source: string;
|
|
6
|
+
target: string;
|
|
7
|
+
constructor(edge: EdgeProps);
|
|
8
|
+
static fromResponse(edge: avs_pb.TaskEdge): Edge;
|
|
9
|
+
toRequest(): avs_pb.TaskEdge;
|
|
10
|
+
}
|
|
11
|
+
export default Edge;
|
|
12
|
+
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/models/edge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/models/edge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,cAAM,IAAK,YAAW,SAAS;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;gBAEH,IAAI,EAAE,SAAS;IAM3B,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI;IAIhD,SAAS,IAAI,MAAM,CAAC,QAAQ;CAQ7B;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
2
|
+
import { ExecutionProps } from "@avaprotocol/types";
|
|
3
|
+
import Step from "./step";
|
|
4
|
+
declare class Execution implements ExecutionProps {
|
|
5
|
+
id: string;
|
|
6
|
+
startAt: number;
|
|
7
|
+
endAt: number;
|
|
8
|
+
success: boolean;
|
|
9
|
+
error: string;
|
|
10
|
+
steps: Step[];
|
|
11
|
+
constructor(props: ExecutionProps);
|
|
12
|
+
static fromResponse(execution: avs_pb.Execution): Execution;
|
|
13
|
+
}
|
|
14
|
+
export default Execution;
|
|
15
|
+
//# sourceMappingURL=execution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAqC,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,IAAI,MAAM,QAAQ,CAAC;AAI1B,cAAM,SAAU,YAAW,cAAc;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;gBAEF,KAAK,EAAE,cAAc;IASjC,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,GAAG,SAAS;CAc5D;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BranchNodeProps } from "@avaprotocol/types";
|
|
2
|
+
import Node from "./interface";
|
|
3
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
4
|
+
declare class BranchNode extends Node {
|
|
5
|
+
constructor(props: BranchNodeProps);
|
|
6
|
+
static fromResponse(raw: avs_pb.TaskNode): BranchNode;
|
|
7
|
+
toRequest(): avs_pb.TaskNode;
|
|
8
|
+
static fromOutputData(outputData: avs_pb.RunNodeWithInputsResp): any;
|
|
9
|
+
}
|
|
10
|
+
export default BranchNode;
|
|
11
|
+
//# sourceMappingURL=branch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../../src/models/node/branch.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../../src/models/node/branch.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,eAAe,EAAa,MAAM,oBAAoB,CAAC;AAC1F,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAKhD,cAAM,UAAW,SAAQ,IAAI;gBACf,KAAK,EAAE,eAAe;IAIlC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,GAAG,UAAU;IAUrD,SAAS,IAAI,MAAM,CAAC,QAAQ;IA+B5B,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,qBAAqB,GAAG,GAAG;CAMrE;AACD,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeType } from "@avaprotocol/types";
|
|
2
2
|
import Node from "./interface";
|
|
3
3
|
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
4
|
+
// Required props for constructor: id, name, type and data: { conditionsList }
|
|
4
5
|
class BranchNode extends Node {
|
|
5
6
|
constructor(props) {
|
|
6
7
|
super({ ...props, type: NodeType.Branch, data: props.data });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Node from "./interface";
|
|
2
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
3
|
+
import { ContractReadNodeProps } from "@avaprotocol/types";
|
|
4
|
+
declare class ContractReadNode extends Node {
|
|
5
|
+
constructor(props: ContractReadNodeProps);
|
|
6
|
+
static fromResponse(raw: avs_pb.TaskNode): ContractReadNode;
|
|
7
|
+
toRequest(): avs_pb.TaskNode;
|
|
8
|
+
static fromOutputData(outputData: avs_pb.RunNodeWithInputsResp): any;
|
|
9
|
+
}
|
|
10
|
+
export default ContractReadNode;
|
|
11
|
+
//# sourceMappingURL=contractRead.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractRead.d.ts","sourceRoot":"","sources":["../../../src/models/node/contractRead.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"contractRead.d.ts","sourceRoot":"","sources":["../../../src/models/node/contractRead.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAkC,qBAAqB,EAAa,MAAM,oBAAoB,CAAC;AAMtG,cAAM,gBAAiB,SAAQ,IAAI;gBACrB,KAAK,EAAE,qBAAqB;IAIxC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,GAAG,gBAAgB;IAU3D,SAAS,IAAI,MAAM,CAAC,QAAQ;IAoB5B,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,qBAAqB,GAAG,GAAG;CAUrE;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -2,6 +2,7 @@ import Node from "./interface";
|
|
|
2
2
|
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
3
3
|
import { NodeType } from "@avaprotocol/types";
|
|
4
4
|
import { convertProtobufValueToJs } from "../../utils";
|
|
5
|
+
// Required props for constructor: id, name, type and data
|
|
5
6
|
class ContractReadNode extends Node {
|
|
6
7
|
constructor(props) {
|
|
7
8
|
super({ ...props, type: NodeType.ContractRead, data: props.data });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Node from "./interface";
|
|
2
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
3
|
+
import { ContractWriteNodeProps } from "@avaprotocol/types";
|
|
4
|
+
declare class ContractWriteNode extends Node {
|
|
5
|
+
constructor(props: ContractWriteNodeProps);
|
|
6
|
+
static fromResponse(raw: avs_pb.TaskNode): ContractWriteNode;
|
|
7
|
+
toRequest(): avs_pb.TaskNode;
|
|
8
|
+
static fromOutputData(outputData: avs_pb.RunNodeWithInputsResp): any;
|
|
9
|
+
}
|
|
10
|
+
export default ContractWriteNode;
|
|
11
|
+
//# sourceMappingURL=contractWrite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractWrite.d.ts","sourceRoot":"","sources":["../../../src/models/node/contractWrite.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"contractWrite.d.ts","sourceRoot":"","sources":["../../../src/models/node/contractWrite.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAmC,sBAAsB,EAAa,MAAM,oBAAoB,CAAC;AAKxG,cAAM,iBAAkB,SAAQ,IAAI;gBACtB,KAAK,EAAE,sBAAsB;IAIzC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,GAAG,iBAAiB;IAU5D,SAAS,IAAI,MAAM,CAAC,QAAQ;IAmB5B,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,qBAAqB,GAAG,GAAG;CAIrE;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Node from "./interface";
|
|
2
2
|
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
3
3
|
import { NodeType } from "@avaprotocol/types";
|
|
4
|
+
// Required props for constructor: id, name, type and data: { config: { contractAddress, callData, contractAbi } }
|
|
4
5
|
class ContractWriteNode extends Node {
|
|
5
6
|
constructor(props) {
|
|
6
7
|
super({ ...props, type: NodeType.ContractWrite, data: props.data });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Node from "./interface";
|
|
2
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
3
|
+
import { CustomCodeNodeProps } from "@avaprotocol/types";
|
|
4
|
+
declare class CustomCodeNode extends Node {
|
|
5
|
+
constructor(props: CustomCodeNodeProps);
|
|
6
|
+
static fromResponse(raw: avs_pb.TaskNode): CustomCodeNode;
|
|
7
|
+
toRequest(): avs_pb.TaskNode;
|
|
8
|
+
static fromOutputData(outputData: avs_pb.RunNodeWithInputsResp): any;
|
|
9
|
+
}
|
|
10
|
+
export default CustomCodeNode;
|
|
11
|
+
//# sourceMappingURL=customCode.d.ts.map
|