@meshtrade/api-old 1.35.0 → 1.37.0
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/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/iam/role/v1/role.js +2 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +3 -1
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.js +11 -2
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/index.d.ts +4 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/index.js +45 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/option_pb.d.ts +173 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/option_pb.js +1351 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/service_grpc_web_client_meshts.d.ts +46 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/service_grpc_web_client_meshts.js +88 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/service_grpc_web_pb.d.ts +55 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/service_grpc_web_pb.js +275 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/service_pb.d.ts +115 -0
- package/dist/meshtrade/testing/ledger/token_tap/v1/service_pb.js +962 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.js +11 -2
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.js +10 -0
- package/dist/meshtrade/type/v1/ledger.js +3 -0
- package/dist/meshtrade/type/v1/ledger_pb.d.ts +2 -1
- package/dist/meshtrade/type/v1/ledger_pb.js +2 -1
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.d.ts +13 -1
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.js +26 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.d.ts +24 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.js +124 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +85 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +730 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { InitialiseTokenTapsRequest, InitialiseTokenTapsResponse, ListTokenTapsRequest, ListTokenTapsResponse, MintTokenRequest, MintTokenResponse } from "./service_pb";
|
|
2
|
+
import { UnaryInterceptor } from "grpc-web";
|
|
3
|
+
import { ConfigOpts } from "../../../../common/config";
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the meshtrade.testing.ledger.token_tap.v1 token tap v1 API resource service.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TokenTapServiceGrpcWebClientV1 {
|
|
8
|
+
private _service;
|
|
9
|
+
private readonly _config;
|
|
10
|
+
private readonly _interceptors;
|
|
11
|
+
/**
|
|
12
|
+
* Constructs an instance of TokenTapServiceGrpcWebClientV1.
|
|
13
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
14
|
+
* @param {UnaryInterceptor<any, any>[]} [interceptors] - For internal use by `withGroup`.
|
|
15
|
+
*/
|
|
16
|
+
constructor(config?: ConfigOpts, interceptors?: UnaryInterceptor<any, any>[]);
|
|
17
|
+
/**
|
|
18
|
+
* Returns a new client instance configured to send the specified group
|
|
19
|
+
* resource name in the request headers for subsequent API calls.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} group - The operating group context to inject into the request
|
|
22
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
23
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
24
|
+
* @returns {TokenTapServiceGrpcWebClientV1} A new, configured instance of the client.
|
|
25
|
+
* @throws {Error} If the group format is invalid (validation occurs in GroupHeaderInterceptor)
|
|
26
|
+
*/
|
|
27
|
+
withGroup(group: string): TokenTapServiceGrpcWebClientV1;
|
|
28
|
+
/**
|
|
29
|
+
* Performs initialisetokentaps operation on token tap.
|
|
30
|
+
* @param {InitialiseTokenTapsRequest} request - The request object for initialisetokentaps.
|
|
31
|
+
* @returns {Promise<InitialiseTokenTapsResponse>} A promise that resolves with the token tap.
|
|
32
|
+
*/
|
|
33
|
+
initialiseTokenTaps(request: InitialiseTokenTapsRequest): Promise<InitialiseTokenTapsResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves a list of token taps.
|
|
36
|
+
* @param {ListTokenTapsRequest} request - The request object for listtokentaps.
|
|
37
|
+
* @returns {Promise<ListTokenTapsResponse>} A promise that resolves with the list of token taps.
|
|
38
|
+
*/
|
|
39
|
+
listTokenTaps(request: ListTokenTapsRequest): Promise<ListTokenTapsResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Performs minttoken operation on token tap.
|
|
42
|
+
* @param {MintTokenRequest} request - The request object for minttoken.
|
|
43
|
+
* @returns {Promise<MintTokenResponse>} A promise that resolves with the token tap.
|
|
44
|
+
*/
|
|
45
|
+
mintToken(request: MintTokenRequest): Promise<MintTokenResponse>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-meshts v1
|
|
3
|
+
// @generated from file meshtrade/testing/ledger/token_tap/v1/service.proto (package meshtrade.testing.ledger.token_tap.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TokenTapServiceGrpcWebClientV1 = void 0;
|
|
7
|
+
const grpc_web_1 = require("../../../../common/grpc_web");
|
|
8
|
+
const service_grpc_web_pb_1 = require("./service_grpc_web_pb");
|
|
9
|
+
const config_1 = require("../../../../common/config");
|
|
10
|
+
const groupHeaderInterceptor_1 = require("../../../../common/groupHeaderInterceptor");
|
|
11
|
+
/**
|
|
12
|
+
* Validates that a request object is not null or undefined.
|
|
13
|
+
* @param {any} request - The request object to validate
|
|
14
|
+
* @throws {Error} If the request is null or undefined
|
|
15
|
+
*/
|
|
16
|
+
function validateRequest(request) {
|
|
17
|
+
if (!request) {
|
|
18
|
+
throw new Error('Request cannot be null or undefined');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Client for interacting with the meshtrade.testing.ledger.token_tap.v1 token tap v1 API resource service.
|
|
23
|
+
*/
|
|
24
|
+
class TokenTapServiceGrpcWebClientV1 {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs an instance of TokenTapServiceGrpcWebClientV1.
|
|
27
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
28
|
+
* @param {UnaryInterceptor<any, any>[]} [interceptors] - For internal use by `withGroup`.
|
|
29
|
+
*/
|
|
30
|
+
constructor(config, interceptors) {
|
|
31
|
+
this._config = (0, config_1.getConfigFromOpts)(config);
|
|
32
|
+
this._interceptors = interceptors || [new grpc_web_1.LoggingInterceptor()];
|
|
33
|
+
// Construct the underlying gRPC-web service client
|
|
34
|
+
this._service = new service_grpc_web_pb_1.TokenTapServicePromiseClient(this._config.apiServerURL, null, {
|
|
35
|
+
withCredentials: true,
|
|
36
|
+
unaryInterceptors: this._interceptors,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns a new client instance configured to send the specified group
|
|
41
|
+
* resource name in the request headers for subsequent API calls.
|
|
42
|
+
*
|
|
43
|
+
* @param {string} group - The operating group context to inject into the request
|
|
44
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
45
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
46
|
+
* @returns {TokenTapServiceGrpcWebClientV1} A new, configured instance of the client.
|
|
47
|
+
* @throws {Error} If the group format is invalid (validation occurs in GroupHeaderInterceptor)
|
|
48
|
+
*/
|
|
49
|
+
withGroup(group) {
|
|
50
|
+
// Check if a GroupHeaderInterceptor already exists.
|
|
51
|
+
const hasGroupInterceptor = this._interceptors.some((interceptor) => interceptor instanceof groupHeaderInterceptor_1.GroupHeaderInterceptor);
|
|
52
|
+
if (hasGroupInterceptor) {
|
|
53
|
+
throw new Error("Attempted to set group context twice. A group has already been set for this client instance.");
|
|
54
|
+
}
|
|
55
|
+
// Create a new interceptor for the group context
|
|
56
|
+
const groupInterceptor = new groupHeaderInterceptor_1.GroupHeaderInterceptor(group);
|
|
57
|
+
// Return a new client instance with the existing interceptors plus the new one
|
|
58
|
+
return new TokenTapServiceGrpcWebClientV1(this._config, [
|
|
59
|
+
...this._interceptors,
|
|
60
|
+
groupInterceptor,
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Performs initialisetokentaps operation on token tap.
|
|
65
|
+
* @param {InitialiseTokenTapsRequest} request - The request object for initialisetokentaps.
|
|
66
|
+
* @returns {Promise<InitialiseTokenTapsResponse>} A promise that resolves with the token tap.
|
|
67
|
+
*/
|
|
68
|
+
initialiseTokenTaps(request) {
|
|
69
|
+
return this._service.initialiseTokenTaps(request);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves a list of token taps.
|
|
73
|
+
* @param {ListTokenTapsRequest} request - The request object for listtokentaps.
|
|
74
|
+
* @returns {Promise<ListTokenTapsResponse>} A promise that resolves with the list of token taps.
|
|
75
|
+
*/
|
|
76
|
+
listTokenTaps(request) {
|
|
77
|
+
return this._service.listTokenTaps(request);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Performs minttoken operation on token tap.
|
|
81
|
+
* @param {MintTokenRequest} request - The request object for minttoken.
|
|
82
|
+
* @returns {Promise<MintTokenResponse>} A promise that resolves with the token tap.
|
|
83
|
+
*/
|
|
84
|
+
mintToken(request) {
|
|
85
|
+
return this._service.mintToken(request);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.TokenTapServiceGrpcWebClientV1 = TokenTapServiceGrpcWebClientV1;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as meshtrade_testing_ledger_token_tap_v1_service_pb from '../../../../../meshtrade/testing/ledger/token_tap/v1/service_pb'; // proto import: "meshtrade/testing/ledger/token_tap/v1/service.proto"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class TokenTapServiceClient {
|
|
7
|
+
constructor (hostname: string,
|
|
8
|
+
credentials?: null | { [index: string]: string; },
|
|
9
|
+
options?: null | { [index: string]: any; });
|
|
10
|
+
|
|
11
|
+
initialiseTokenTaps(
|
|
12
|
+
request: meshtrade_testing_ledger_token_tap_v1_service_pb.InitialiseTokenTapsRequest,
|
|
13
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
14
|
+
callback: (err: grpcWeb.RpcError,
|
|
15
|
+
response: meshtrade_testing_ledger_token_tap_v1_service_pb.InitialiseTokenTapsResponse) => void
|
|
16
|
+
): grpcWeb.ClientReadableStream<meshtrade_testing_ledger_token_tap_v1_service_pb.InitialiseTokenTapsResponse>;
|
|
17
|
+
|
|
18
|
+
listTokenTaps(
|
|
19
|
+
request: meshtrade_testing_ledger_token_tap_v1_service_pb.ListTokenTapsRequest,
|
|
20
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
21
|
+
callback: (err: grpcWeb.RpcError,
|
|
22
|
+
response: meshtrade_testing_ledger_token_tap_v1_service_pb.ListTokenTapsResponse) => void
|
|
23
|
+
): grpcWeb.ClientReadableStream<meshtrade_testing_ledger_token_tap_v1_service_pb.ListTokenTapsResponse>;
|
|
24
|
+
|
|
25
|
+
mintToken(
|
|
26
|
+
request: meshtrade_testing_ledger_token_tap_v1_service_pb.MintTokenRequest,
|
|
27
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
28
|
+
callback: (err: grpcWeb.RpcError,
|
|
29
|
+
response: meshtrade_testing_ledger_token_tap_v1_service_pb.MintTokenResponse) => void
|
|
30
|
+
): grpcWeb.ClientReadableStream<meshtrade_testing_ledger_token_tap_v1_service_pb.MintTokenResponse>;
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class TokenTapServicePromiseClient {
|
|
35
|
+
constructor (hostname: string,
|
|
36
|
+
credentials?: null | { [index: string]: string; },
|
|
37
|
+
options?: null | { [index: string]: any; });
|
|
38
|
+
|
|
39
|
+
initialiseTokenTaps(
|
|
40
|
+
request: meshtrade_testing_ledger_token_tap_v1_service_pb.InitialiseTokenTapsRequest,
|
|
41
|
+
metadata?: grpcWeb.Metadata
|
|
42
|
+
): Promise<meshtrade_testing_ledger_token_tap_v1_service_pb.InitialiseTokenTapsResponse>;
|
|
43
|
+
|
|
44
|
+
listTokenTaps(
|
|
45
|
+
request: meshtrade_testing_ledger_token_tap_v1_service_pb.ListTokenTapsRequest,
|
|
46
|
+
metadata?: grpcWeb.Metadata
|
|
47
|
+
): Promise<meshtrade_testing_ledger_token_tap_v1_service_pb.ListTokenTapsResponse>;
|
|
48
|
+
|
|
49
|
+
mintToken(
|
|
50
|
+
request: meshtrade_testing_ledger_token_tap_v1_service_pb.MintTokenRequest,
|
|
51
|
+
metadata?: grpcWeb.Metadata
|
|
52
|
+
): Promise<meshtrade_testing_ledger_token_tap_v1_service_pb.MintTokenResponse>;
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for meshtrade.testing.ledger.token_tap.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v0.0.0
|
|
11
|
+
// source: meshtrade/testing/ledger/token_tap/v1/service.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const grpc = {};
|
|
20
|
+
grpc.web = require('grpc-web');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var buf_validate_validate_pb = require('../../../../../buf/validate/validate_pb.js')
|
|
24
|
+
|
|
25
|
+
var meshtrade_option_method_options_v1_method_options_pb = require('../../../../../meshtrade/option/method_options/v1/method_options_pb.js')
|
|
26
|
+
|
|
27
|
+
var meshtrade_testing_ledger_token_tap_v1_option_pb = require('../../../../../meshtrade/testing/ledger/token_tap/v1/option_pb.js')
|
|
28
|
+
|
|
29
|
+
var meshtrade_type_v1_amount_pb = require('../../../../../meshtrade/type/v1/amount_pb.js')
|
|
30
|
+
|
|
31
|
+
var meshtrade_type_v1_token_pb = require('../../../../../meshtrade/type/v1/token_pb.js')
|
|
32
|
+
const proto = {};
|
|
33
|
+
proto.meshtrade = {};
|
|
34
|
+
proto.meshtrade.testing = {};
|
|
35
|
+
proto.meshtrade.testing.ledger = {};
|
|
36
|
+
proto.meshtrade.testing.ledger.token_tap = {};
|
|
37
|
+
proto.meshtrade.testing.ledger.token_tap.v1 = require('./service_pb.js');
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} hostname
|
|
41
|
+
* @param {?Object} credentials
|
|
42
|
+
* @param {?grpc.web.ClientOptions} options
|
|
43
|
+
* @constructor
|
|
44
|
+
* @struct
|
|
45
|
+
* @final
|
|
46
|
+
*/
|
|
47
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServiceClient =
|
|
48
|
+
function(hostname, credentials, options) {
|
|
49
|
+
if (!options) options = {};
|
|
50
|
+
options.format = 'binary';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
54
|
+
*/
|
|
55
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @private @const {string} The hostname
|
|
59
|
+
*/
|
|
60
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} hostname
|
|
67
|
+
* @param {?Object} credentials
|
|
68
|
+
* @param {?grpc.web.ClientOptions} options
|
|
69
|
+
* @constructor
|
|
70
|
+
* @struct
|
|
71
|
+
* @final
|
|
72
|
+
*/
|
|
73
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServicePromiseClient =
|
|
74
|
+
function(hostname, credentials, options) {
|
|
75
|
+
if (!options) options = {};
|
|
76
|
+
options.format = 'binary';
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
80
|
+
*/
|
|
81
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @private @const {string} The hostname
|
|
85
|
+
*/
|
|
86
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
87
|
+
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @const
|
|
93
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
94
|
+
* !proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest,
|
|
95
|
+
* !proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse>}
|
|
96
|
+
*/
|
|
97
|
+
const methodDescriptor_TokenTapService_InitialiseTokenTaps = new grpc.web.MethodDescriptor(
|
|
98
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/InitialiseTokenTaps',
|
|
99
|
+
grpc.web.MethodType.UNARY,
|
|
100
|
+
proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest,
|
|
101
|
+
proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse,
|
|
102
|
+
/**
|
|
103
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest} request
|
|
104
|
+
* @return {!Uint8Array}
|
|
105
|
+
*/
|
|
106
|
+
function(request) {
|
|
107
|
+
return request.serializeBinary();
|
|
108
|
+
},
|
|
109
|
+
proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse.deserializeBinary
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest} request The
|
|
115
|
+
* request proto
|
|
116
|
+
* @param {?Object<string, string>} metadata User defined
|
|
117
|
+
* call metadata
|
|
118
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse)}
|
|
119
|
+
* callback The callback function(error, response)
|
|
120
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse>|undefined}
|
|
121
|
+
* The XHR Node Readable Stream
|
|
122
|
+
*/
|
|
123
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServiceClient.prototype.initialiseTokenTaps =
|
|
124
|
+
function(request, metadata, callback) {
|
|
125
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
126
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/InitialiseTokenTaps',
|
|
127
|
+
request,
|
|
128
|
+
metadata || {},
|
|
129
|
+
methodDescriptor_TokenTapService_InitialiseTokenTaps,
|
|
130
|
+
callback);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest} request The
|
|
136
|
+
* request proto
|
|
137
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
138
|
+
* call metadata
|
|
139
|
+
* @return {!Promise<!proto.meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse>}
|
|
140
|
+
* Promise that resolves to the response
|
|
141
|
+
*/
|
|
142
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServicePromiseClient.prototype.initialiseTokenTaps =
|
|
143
|
+
function(request, metadata) {
|
|
144
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
145
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/InitialiseTokenTaps',
|
|
146
|
+
request,
|
|
147
|
+
metadata || {},
|
|
148
|
+
methodDescriptor_TokenTapService_InitialiseTokenTaps);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @const
|
|
154
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
155
|
+
* !proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest,
|
|
156
|
+
* !proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse>}
|
|
157
|
+
*/
|
|
158
|
+
const methodDescriptor_TokenTapService_ListTokenTaps = new grpc.web.MethodDescriptor(
|
|
159
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/ListTokenTaps',
|
|
160
|
+
grpc.web.MethodType.UNARY,
|
|
161
|
+
proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest,
|
|
162
|
+
proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse,
|
|
163
|
+
/**
|
|
164
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest} request
|
|
165
|
+
* @return {!Uint8Array}
|
|
166
|
+
*/
|
|
167
|
+
function(request) {
|
|
168
|
+
return request.serializeBinary();
|
|
169
|
+
},
|
|
170
|
+
proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse.deserializeBinary
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest} request The
|
|
176
|
+
* request proto
|
|
177
|
+
* @param {?Object<string, string>} metadata User defined
|
|
178
|
+
* call metadata
|
|
179
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse)}
|
|
180
|
+
* callback The callback function(error, response)
|
|
181
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse>|undefined}
|
|
182
|
+
* The XHR Node Readable Stream
|
|
183
|
+
*/
|
|
184
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServiceClient.prototype.listTokenTaps =
|
|
185
|
+
function(request, metadata, callback) {
|
|
186
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
187
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/ListTokenTaps',
|
|
188
|
+
request,
|
|
189
|
+
metadata || {},
|
|
190
|
+
methodDescriptor_TokenTapService_ListTokenTaps,
|
|
191
|
+
callback);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest} request The
|
|
197
|
+
* request proto
|
|
198
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
199
|
+
* call metadata
|
|
200
|
+
* @return {!Promise<!proto.meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse>}
|
|
201
|
+
* Promise that resolves to the response
|
|
202
|
+
*/
|
|
203
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServicePromiseClient.prototype.listTokenTaps =
|
|
204
|
+
function(request, metadata) {
|
|
205
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
206
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/ListTokenTaps',
|
|
207
|
+
request,
|
|
208
|
+
metadata || {},
|
|
209
|
+
methodDescriptor_TokenTapService_ListTokenTaps);
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @const
|
|
215
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
216
|
+
* !proto.meshtrade.testing.ledger.token_tap.v1.MintTokenRequest,
|
|
217
|
+
* !proto.meshtrade.testing.ledger.token_tap.v1.MintTokenResponse>}
|
|
218
|
+
*/
|
|
219
|
+
const methodDescriptor_TokenTapService_MintToken = new grpc.web.MethodDescriptor(
|
|
220
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/MintToken',
|
|
221
|
+
grpc.web.MethodType.UNARY,
|
|
222
|
+
proto.meshtrade.testing.ledger.token_tap.v1.MintTokenRequest,
|
|
223
|
+
proto.meshtrade.testing.ledger.token_tap.v1.MintTokenResponse,
|
|
224
|
+
/**
|
|
225
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.MintTokenRequest} request
|
|
226
|
+
* @return {!Uint8Array}
|
|
227
|
+
*/
|
|
228
|
+
function(request) {
|
|
229
|
+
return request.serializeBinary();
|
|
230
|
+
},
|
|
231
|
+
proto.meshtrade.testing.ledger.token_tap.v1.MintTokenResponse.deserializeBinary
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.MintTokenRequest} request The
|
|
237
|
+
* request proto
|
|
238
|
+
* @param {?Object<string, string>} metadata User defined
|
|
239
|
+
* call metadata
|
|
240
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.testing.ledger.token_tap.v1.MintTokenResponse)}
|
|
241
|
+
* callback The callback function(error, response)
|
|
242
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.testing.ledger.token_tap.v1.MintTokenResponse>|undefined}
|
|
243
|
+
* The XHR Node Readable Stream
|
|
244
|
+
*/
|
|
245
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServiceClient.prototype.mintToken =
|
|
246
|
+
function(request, metadata, callback) {
|
|
247
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
248
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/MintToken',
|
|
249
|
+
request,
|
|
250
|
+
metadata || {},
|
|
251
|
+
methodDescriptor_TokenTapService_MintToken,
|
|
252
|
+
callback);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @param {!proto.meshtrade.testing.ledger.token_tap.v1.MintTokenRequest} request The
|
|
258
|
+
* request proto
|
|
259
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
260
|
+
* call metadata
|
|
261
|
+
* @return {!Promise<!proto.meshtrade.testing.ledger.token_tap.v1.MintTokenResponse>}
|
|
262
|
+
* Promise that resolves to the response
|
|
263
|
+
*/
|
|
264
|
+
proto.meshtrade.testing.ledger.token_tap.v1.TokenTapServicePromiseClient.prototype.mintToken =
|
|
265
|
+
function(request, metadata) {
|
|
266
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
267
|
+
'/meshtrade.testing.ledger.token_tap.v1.TokenTapService/MintToken',
|
|
268
|
+
request,
|
|
269
|
+
metadata || {},
|
|
270
|
+
methodDescriptor_TokenTapService_MintToken);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
module.exports = proto.meshtrade.testing.ledger.token_tap.v1;
|
|
275
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as buf_validate_validate_pb from '../../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
|
|
4
|
+
import * as meshtrade_option_method_options_v1_method_options_pb from '../../../../../meshtrade/option/method_options/v1/method_options_pb'; // proto import: "meshtrade/option/method_options/v1/method_options.proto"
|
|
5
|
+
import * as meshtrade_testing_ledger_token_tap_v1_option_pb from '../../../../../meshtrade/testing/ledger/token_tap/v1/option_pb'; // proto import: "meshtrade/testing/ledger/token_tap/v1/option.proto"
|
|
6
|
+
import * as meshtrade_type_v1_amount_pb from '../../../../../meshtrade/type/v1/amount_pb'; // proto import: "meshtrade/type/v1/amount.proto"
|
|
7
|
+
import * as meshtrade_type_v1_token_pb from '../../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export class InitialiseTokenTapsRequest extends jspb.Message {
|
|
11
|
+
serializeBinary(): Uint8Array;
|
|
12
|
+
toObject(includeInstance?: boolean): InitialiseTokenTapsRequest.AsObject;
|
|
13
|
+
static toObject(includeInstance: boolean, msg: InitialiseTokenTapsRequest): InitialiseTokenTapsRequest.AsObject;
|
|
14
|
+
static serializeBinaryToWriter(message: InitialiseTokenTapsRequest, writer: jspb.BinaryWriter): void;
|
|
15
|
+
static deserializeBinary(bytes: Uint8Array): InitialiseTokenTapsRequest;
|
|
16
|
+
static deserializeBinaryFromReader(message: InitialiseTokenTapsRequest, reader: jspb.BinaryReader): InitialiseTokenTapsRequest;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export namespace InitialiseTokenTapsRequest {
|
|
20
|
+
export type AsObject = {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class InitialiseTokenTapsResponse extends jspb.Message {
|
|
25
|
+
serializeBinary(): Uint8Array;
|
|
26
|
+
toObject(includeInstance?: boolean): InitialiseTokenTapsResponse.AsObject;
|
|
27
|
+
static toObject(includeInstance: boolean, msg: InitialiseTokenTapsResponse): InitialiseTokenTapsResponse.AsObject;
|
|
28
|
+
static serializeBinaryToWriter(message: InitialiseTokenTapsResponse, writer: jspb.BinaryWriter): void;
|
|
29
|
+
static deserializeBinary(bytes: Uint8Array): InitialiseTokenTapsResponse;
|
|
30
|
+
static deserializeBinaryFromReader(message: InitialiseTokenTapsResponse, reader: jspb.BinaryReader): InitialiseTokenTapsResponse;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export namespace InitialiseTokenTapsResponse {
|
|
34
|
+
export type AsObject = {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class ListTokenTapsRequest extends jspb.Message {
|
|
39
|
+
serializeBinary(): Uint8Array;
|
|
40
|
+
toObject(includeInstance?: boolean): ListTokenTapsRequest.AsObject;
|
|
41
|
+
static toObject(includeInstance: boolean, msg: ListTokenTapsRequest): ListTokenTapsRequest.AsObject;
|
|
42
|
+
static serializeBinaryToWriter(message: ListTokenTapsRequest, writer: jspb.BinaryWriter): void;
|
|
43
|
+
static deserializeBinary(bytes: Uint8Array): ListTokenTapsRequest;
|
|
44
|
+
static deserializeBinaryFromReader(message: ListTokenTapsRequest, reader: jspb.BinaryReader): ListTokenTapsRequest;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export namespace ListTokenTapsRequest {
|
|
48
|
+
export type AsObject = {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export class ListTokenTapsResponse extends jspb.Message {
|
|
53
|
+
getTokensList(): Array<meshtrade_type_v1_token_pb.Token>;
|
|
54
|
+
setTokensList(value: Array<meshtrade_type_v1_token_pb.Token>): ListTokenTapsResponse;
|
|
55
|
+
clearTokensList(): ListTokenTapsResponse;
|
|
56
|
+
addTokens(value?: meshtrade_type_v1_token_pb.Token, index?: number): meshtrade_type_v1_token_pb.Token;
|
|
57
|
+
|
|
58
|
+
serializeBinary(): Uint8Array;
|
|
59
|
+
toObject(includeInstance?: boolean): ListTokenTapsResponse.AsObject;
|
|
60
|
+
static toObject(includeInstance: boolean, msg: ListTokenTapsResponse): ListTokenTapsResponse.AsObject;
|
|
61
|
+
static serializeBinaryToWriter(message: ListTokenTapsResponse, writer: jspb.BinaryWriter): void;
|
|
62
|
+
static deserializeBinary(bytes: Uint8Array): ListTokenTapsResponse;
|
|
63
|
+
static deserializeBinaryFromReader(message: ListTokenTapsResponse, reader: jspb.BinaryReader): ListTokenTapsResponse;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace ListTokenTapsResponse {
|
|
67
|
+
export type AsObject = {
|
|
68
|
+
tokensList: Array<meshtrade_type_v1_token_pb.Token.AsObject>,
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export class MintTokenRequest extends jspb.Message {
|
|
73
|
+
getAmount(): meshtrade_type_v1_amount_pb.Amount | undefined;
|
|
74
|
+
setAmount(value?: meshtrade_type_v1_amount_pb.Amount): MintTokenRequest;
|
|
75
|
+
hasAmount(): boolean;
|
|
76
|
+
clearAmount(): MintTokenRequest;
|
|
77
|
+
|
|
78
|
+
getAddress(): string;
|
|
79
|
+
setAddress(value: string): MintTokenRequest;
|
|
80
|
+
|
|
81
|
+
getOptions(): meshtrade_testing_ledger_token_tap_v1_option_pb.MintTokenOptions | undefined;
|
|
82
|
+
setOptions(value?: meshtrade_testing_ledger_token_tap_v1_option_pb.MintTokenOptions): MintTokenRequest;
|
|
83
|
+
hasOptions(): boolean;
|
|
84
|
+
clearOptions(): MintTokenRequest;
|
|
85
|
+
|
|
86
|
+
serializeBinary(): Uint8Array;
|
|
87
|
+
toObject(includeInstance?: boolean): MintTokenRequest.AsObject;
|
|
88
|
+
static toObject(includeInstance: boolean, msg: MintTokenRequest): MintTokenRequest.AsObject;
|
|
89
|
+
static serializeBinaryToWriter(message: MintTokenRequest, writer: jspb.BinaryWriter): void;
|
|
90
|
+
static deserializeBinary(bytes: Uint8Array): MintTokenRequest;
|
|
91
|
+
static deserializeBinaryFromReader(message: MintTokenRequest, reader: jspb.BinaryReader): MintTokenRequest;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace MintTokenRequest {
|
|
95
|
+
export type AsObject = {
|
|
96
|
+
amount?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
97
|
+
address: string,
|
|
98
|
+
options?: meshtrade_testing_ledger_token_tap_v1_option_pb.MintTokenOptions.AsObject,
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export class MintTokenResponse extends jspb.Message {
|
|
103
|
+
serializeBinary(): Uint8Array;
|
|
104
|
+
toObject(includeInstance?: boolean): MintTokenResponse.AsObject;
|
|
105
|
+
static toObject(includeInstance: boolean, msg: MintTokenResponse): MintTokenResponse.AsObject;
|
|
106
|
+
static serializeBinaryToWriter(message: MintTokenResponse, writer: jspb.BinaryWriter): void;
|
|
107
|
+
static deserializeBinary(bytes: Uint8Array): MintTokenResponse;
|
|
108
|
+
static deserializeBinaryFromReader(message: MintTokenResponse, reader: jspb.BinaryReader): MintTokenResponse;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace MintTokenResponse {
|
|
112
|
+
export type AsObject = {
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|