Skip to content

Commit

Permalink
rename more files
Browse files Browse the repository at this point in the history
  • Loading branch information
v9n committed Dec 12, 2024
1 parent 6b9bdea commit b493fbe
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 169 deletions.
2 changes: 1 addition & 1 deletion core/taskengine/trigger/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestChainlinkLatestAnswer(t *testing.T) {
eventTrigger := NewEventTrigger(&RpcOption{
RpcURL: testutil.GetTestRPCURL(),
WsRpcURL: testutil.GetTestRPCURL(),
}, make(chan TriggerMark[EventMark], 1000))
}, make(chan TriggerMetadata[EventMark], 1000))

envs := macros.GetEnvs(map[string]interface{}{
"trigger1": map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion core/taskengine/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func TestEvaluateEvent(t *testing.T) {
},
}

mark := avsproto.TriggerMark{
mark := avsproto.TriggerMetadata{
BlockNumber: 7212417,
TxHash: "0x53beb2163994510e0984b436ebc828dc57e480ee671cfbe7ed52776c2a4830c8",
LogIndex: 98,
Expand Down
46 changes: 23 additions & 23 deletions examples/static_codegen/avs_grpc_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,37 @@ function deserialize_aggregator_CreateTaskResp(buffer_arg) {
return avs_pb.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_aggregator_CreateWalletReq(arg) {
if (!(arg instanceof avs_pb.CreateWalletReq)) {
throw new Error('Expected argument of type aggregator.CreateWalletReq');
function serialize_aggregator_GetKeyReq(arg) {
if (!(arg instanceof avs_pb.GetKeyReq)) {
throw new Error('Expected argument of type aggregator.GetKeyReq');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_aggregator_CreateWalletReq(buffer_arg) {
return avs_pb.CreateWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_aggregator_GetKeyReq(buffer_arg) {
return avs_pb.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_aggregator_CreateWalletResp(arg) {
if (!(arg instanceof avs_pb.CreateWalletResp)) {
throw new Error('Expected argument of type aggregator.CreateWalletResp');
function serialize_aggregator_GetWalletReq(arg) {
if (!(arg instanceof avs_pb.GetWalletReq)) {
throw new Error('Expected argument of type aggregator.GetWalletReq');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_aggregator_CreateWalletResp(buffer_arg) {
return avs_pb.CreateWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_aggregator_GetWalletReq(buffer_arg) {
return avs_pb.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_aggregator_GetKeyReq(arg) {
if (!(arg instanceof avs_pb.GetKeyReq)) {
throw new Error('Expected argument of type aggregator.GetKeyReq');
function serialize_aggregator_GetWalletResp(arg) {
if (!(arg instanceof avs_pb.GetWalletResp)) {
throw new Error('Expected argument of type aggregator.GetWalletResp');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_aggregator_GetKeyReq(buffer_arg) {
return avs_pb.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_aggregator_GetWalletResp(buffer_arg) {
return avs_pb.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_aggregator_IdReq(arg) {
Expand Down Expand Up @@ -240,16 +240,16 @@ getNonce: {
responseSerialize: serialize_aggregator_NonceResp,
responseDeserialize: deserialize_aggregator_NonceResp,
},
createWallet: {
path: '/aggregator.Aggregator/CreateWallet',
getWallet: {
path: '/aggregator.Aggregator/GetWallet',
requestStream: false,
responseStream: false,
requestType: avs_pb.CreateWalletReq,
responseType: avs_pb.CreateWalletResp,
requestSerialize: serialize_aggregator_CreateWalletReq,
requestDeserialize: deserialize_aggregator_CreateWalletReq,
responseSerialize: serialize_aggregator_CreateWalletResp,
responseDeserialize: deserialize_aggregator_CreateWalletResp,
requestType: avs_pb.GetWalletReq,
responseType: avs_pb.GetWalletResp,
requestSerialize: serialize_aggregator_GetWalletReq,
requestDeserialize: deserialize_aggregator_GetWalletReq,
responseSerialize: serialize_aggregator_GetWalletResp,
responseDeserialize: deserialize_aggregator_GetWalletResp,
},
listWallets: {
path: '/aggregator.Aggregator/ListWallets',
Expand Down
Loading

0 comments on commit b493fbe

Please sign in to comment.