saddle-framework 0.3.21

The single business-facing facade for Saddle applications
syntax = "proto3";
package puc;

import "saddle_external_function.proto";
import "types/account.proto";

service PucExternalFunctions {
  rpc QueryBoundAccounts(QueryBoundAccountsRequest) returns (QueryBoundAccountsResult) {
    option (saddle.profusecontract.external_function) = {
      puc: "puc"
      function: "查询用户绑定户号"
    };
  }
}

message QueryBoundAccountsRequest { string user_id = 1; }
message QueryBoundAccountsResult { uint64 account_count = 1; }

// Pure descriptor type: it must not enter the external-function index.
message InternalAccountEnvelope { repeated Account accounts = 1; }