@meshtrade/api-web 1.36.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.
@@ -47,6 +47,8 @@ const roleToStringMapping = {
47
47
  [role_pb_1.Role.MARKET_DATA_VIEWER]: "Market Data Viewer",
48
48
  [role_pb_1.Role.MARKET_DATA_PRICE_ADMIN]: "Market Data Price Admin",
49
49
  [role_pb_1.Role.MARKET_DATA_PRICE_VIEWER]: "Market Data Price Viewer",
50
+ [role_pb_1.Role.TESTING_LEDGER_TOKEN_TAP_ADMIN]: "Testing Ledger Token Tap Admin",
51
+ [role_pb_1.Role.TESTING_LEDGER_TOKEN_TAP_VIEWER]: "Testing Ledger Token Tap Viewer",
50
52
  };
51
53
  // Reverse mapping from string to Role enum
52
54
  const stringToRoleMapping = {};
@@ -156,7 +156,15 @@ export declare enum Role {
156
156
  /**
157
157
  * @generated from enum value: ROLE_MARKET_DATA_PRICE_VIEWER = 8000003;
158
158
  */
159
- MARKET_DATA_PRICE_VIEWER = 8000003
159
+ MARKET_DATA_PRICE_VIEWER = 8000003,
160
+ /**
161
+ * @generated from enum value: ROLE_TESTING_LEDGER_TOKEN_TAP_ADMIN = 9000000;
162
+ */
163
+ TESTING_LEDGER_TOKEN_TAP_ADMIN = 9000000,
164
+ /**
165
+ * @generated from enum value: ROLE_TESTING_LEDGER_TOKEN_TAP_VIEWER = 9000001;
166
+ */
167
+ TESTING_LEDGER_TOKEN_TAP_VIEWER = 9000001
160
168
  }
161
169
  /**
162
170
  * Describes the enum meshtrade.iam.role.v1.Role.
@@ -8,7 +8,7 @@ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
8
  /**
9
9
  * Describes the file meshtrade/iam/role/v1/role.proto.
10
10
  */
11
- exports.file_meshtrade_iam_role_v1_role = (0, codegenv2_1.fileDesc)("CiBtZXNodHJhZGUvaWFtL3JvbGUvdjEvcm9sZS5wcm90bxIVbWVzaHRyYWRlLmlhbS5y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NUSU5HX0xFREdFUl9UT0tFTl9UQVBfVklFV0VSEMGopQRCTwocY28ubWVzaHRyYWRlLmFwaS5pYW0ucm9sZS52MVovZ2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL2lhbS9yb2xlL3YxO3JvbGVfdjFiBnByb3RvMw");
12
12
  /**
13
13
  *
14
14
  * Role defines a named collection of permissions.
@@ -164,6 +164,14 @@ var Role;
164
164
  * @generated from enum value: ROLE_MARKET_DATA_PRICE_VIEWER = 8000003;
165
165
  */
166
166
  Role[Role["MARKET_DATA_PRICE_VIEWER"] = 8000003] = "MARKET_DATA_PRICE_VIEWER";
167
+ /**
168
+ * @generated from enum value: ROLE_TESTING_LEDGER_TOKEN_TAP_ADMIN = 9000000;
169
+ */
170
+ Role[Role["TESTING_LEDGER_TOKEN_TAP_ADMIN"] = 9000000] = "TESTING_LEDGER_TOKEN_TAP_ADMIN";
171
+ /**
172
+ * @generated from enum value: ROLE_TESTING_LEDGER_TOKEN_TAP_VIEWER = 9000001;
173
+ */
174
+ Role[Role["TESTING_LEDGER_TOKEN_TAP_VIEWER"] = 9000001] = "TESTING_LEDGER_TOKEN_TAP_VIEWER";
167
175
  })(Role || (exports.Role = Role = {}));
168
176
  /**
169
177
  * Describes the enum meshtrade.iam.role.v1.Role.
@@ -0,0 +1,3 @@
1
+ export * from "./option_pb";
2
+ export * from "./service_pb";
3
+ export * from "./service_web_meshts";
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // ===================================================================
3
+ // AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
4
+ // ===================================================================
5
+ // This section is automatically managed by protoc-gen-meshts.
6
+ //
7
+ // DO NOT EDIT ANYTHING IN THIS SECTION MANUALLY!
8
+ // Your changes will be overwritten during code generation.
9
+ //
10
+ // To add custom exports, scroll down to the
11
+ // "MANUAL EXPORTS" section indicated below.
12
+ // ===================================================================
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ // Generated exports
29
+ __exportStar(require("./option_pb"), exports);
30
+ __exportStar(require("./service_pb"), exports);
31
+ __exportStar(require("./service_web_meshts"), exports);
32
+ // ===================================================================
33
+ // END OF AUTO-GENERATED SECTION
34
+ // ===================================================================
35
+ //
36
+ // MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
37
+ //
38
+ // You can safely add your own export statements in this section.
39
+ // They will be preserved across code generation.
40
+ //
41
+ // Example:
42
+ // export * from "./my_custom_module";
43
+ // export { MyCustomClass } from "./another_module";
44
+ // ===================================================================
@@ -0,0 +1,158 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file meshtrade/testing/ledger/token_tap/v1/option.proto.
5
+ */
6
+ export declare const file_meshtrade_testing_ledger_token_tap_v1_option: GenFile;
7
+ /**
8
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.MintTokenOptions
9
+ */
10
+ export type MintTokenOptions = Message<"meshtrade.testing.ledger.token_tap.v1.MintTokenOptions"> & {
11
+ /**
12
+ * @generated from oneof meshtrade.testing.ledger.token_tap.v1.MintTokenOptions.mint_token_options
13
+ */
14
+ mintTokenOptions: {
15
+ /**
16
+ * @generated from field: meshtrade.testing.ledger.token_tap.v1.StellarMintOptions stellar_mint_options = 1;
17
+ */
18
+ value: StellarMintOptions;
19
+ case: "stellarMintOptions";
20
+ } | {
21
+ /**
22
+ * @generated from field: meshtrade.testing.ledger.token_tap.v1.SolanaMintOptions solana_mint_options = 2;
23
+ */
24
+ value: SolanaMintOptions;
25
+ case: "solanaMintOptions";
26
+ } | {
27
+ case: undefined;
28
+ value?: undefined;
29
+ };
30
+ };
31
+ /**
32
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.MintTokenOptions.
33
+ * Use `create(MintTokenOptionsSchema)` to create a new message.
34
+ */
35
+ export declare const MintTokenOptionsSchema: GenMessage<MintTokenOptions>;
36
+ /**
37
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.StellarMintOptions
38
+ */
39
+ export type StellarMintOptions = Message<"meshtrade.testing.ledger.token_tap.v1.StellarMintOptions"> & {
40
+ /**
41
+ * @generated from field: repeated meshtrade.testing.ledger.token_tap.v1.StellarMintOption options = 1;
42
+ */
43
+ options: StellarMintOption[];
44
+ };
45
+ /**
46
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.StellarMintOptions.
47
+ * Use `create(StellarMintOptionsSchema)` to create a new message.
48
+ */
49
+ export declare const StellarMintOptionsSchema: GenMessage<StellarMintOptions>;
50
+ /**
51
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.StellarMintOption
52
+ */
53
+ export type StellarMintOption = Message<"meshtrade.testing.ledger.token_tap.v1.StellarMintOption"> & {
54
+ /**
55
+ * @generated from oneof meshtrade.testing.ledger.token_tap.v1.StellarMintOption.stellar_mint_option
56
+ */
57
+ stellarMintOption: {
58
+ /**
59
+ * @generated from field: meshtrade.testing.ledger.token_tap.v1.StellarMintTokenWithMemo stellar_mint_token_with_memo = 1;
60
+ */
61
+ value: StellarMintTokenWithMemo;
62
+ case: "stellarMintTokenWithMemo";
63
+ } | {
64
+ case: undefined;
65
+ value?: undefined;
66
+ };
67
+ };
68
+ /**
69
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.StellarMintOption.
70
+ * Use `create(StellarMintOptionSchema)` to create a new message.
71
+ */
72
+ export declare const StellarMintOptionSchema: GenMessage<StellarMintOption>;
73
+ /**
74
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.StellarMintTokenWithMemo
75
+ */
76
+ export type StellarMintTokenWithMemo = Message<"meshtrade.testing.ledger.token_tap.v1.StellarMintTokenWithMemo"> & {
77
+ /**
78
+ * @generated from field: string memo = 1;
79
+ */
80
+ memo: string;
81
+ };
82
+ /**
83
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.StellarMintTokenWithMemo.
84
+ * Use `create(StellarMintTokenWithMemoSchema)` to create a new message.
85
+ */
86
+ export declare const StellarMintTokenWithMemoSchema: GenMessage<StellarMintTokenWithMemo>;
87
+ /**
88
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.SolanaMintOptions
89
+ */
90
+ export type SolanaMintOptions = Message<"meshtrade.testing.ledger.token_tap.v1.SolanaMintOptions"> & {
91
+ /**
92
+ * @generated from field: repeated meshtrade.testing.ledger.token_tap.v1.SolanaMintOption options = 1;
93
+ */
94
+ options: SolanaMintOption[];
95
+ };
96
+ /**
97
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.SolanaMintOptions.
98
+ * Use `create(SolanaMintOptionsSchema)` to create a new message.
99
+ */
100
+ export declare const SolanaMintOptionsSchema: GenMessage<SolanaMintOptions>;
101
+ /**
102
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.SolanaMintOption
103
+ */
104
+ export type SolanaMintOption = Message<"meshtrade.testing.ledger.token_tap.v1.SolanaMintOption"> & {
105
+ /**
106
+ * @generated from oneof meshtrade.testing.ledger.token_tap.v1.SolanaMintOption.solana_mint_option
107
+ */
108
+ solanaMintOption: {
109
+ /**
110
+ * @generated from field: meshtrade.testing.ledger.token_tap.v1.SolanaMintTokenOption solana_mint_token_option = 1;
111
+ */
112
+ value: SolanaMintTokenOption;
113
+ case: "solanaMintTokenOption";
114
+ } | {
115
+ case: undefined;
116
+ value?: undefined;
117
+ };
118
+ };
119
+ /**
120
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.SolanaMintOption.
121
+ * Use `create(SolanaMintOptionSchema)` to create a new message.
122
+ */
123
+ export declare const SolanaMintOptionSchema: GenMessage<SolanaMintOption>;
124
+ /**
125
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.SolanaMintTokenOption
126
+ */
127
+ export type SolanaMintTokenOption = Message<"meshtrade.testing.ledger.token_tap.v1.SolanaMintTokenOption"> & {
128
+ /**
129
+ * @generated from field: meshtrade.testing.ledger.token_tap.v1.SolanaMintToken token = 1;
130
+ */
131
+ token: SolanaMintToken;
132
+ };
133
+ /**
134
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.SolanaMintTokenOption.
135
+ * Use `create(SolanaMintTokenOptionSchema)` to create a new message.
136
+ */
137
+ export declare const SolanaMintTokenOptionSchema: GenMessage<SolanaMintTokenOption>;
138
+ /**
139
+ * @generated from enum meshtrade.testing.ledger.token_tap.v1.SolanaMintToken
140
+ */
141
+ export declare enum SolanaMintToken {
142
+ /**
143
+ * @generated from enum value: SOLANA_MINT_TOKEN_UNSPECIFIED = 0;
144
+ */
145
+ SOLANA_MINT_TOKEN_UNSPECIFIED = 0,
146
+ /**
147
+ * @generated from enum value: SOLANA_MINT_TOKEN_LEGACY = 1;
148
+ */
149
+ SOLANA_MINT_TOKEN_LEGACY = 1,
150
+ /**
151
+ * @generated from enum value: SOLANA_MINT_TOKEN_2022 = 2;
152
+ */
153
+ SOLANA_MINT_TOKEN_2022 = 2
154
+ }
155
+ /**
156
+ * Describes the enum meshtrade.testing.ledger.token_tap.v1.SolanaMintToken.
157
+ */
158
+ export declare const SolanaMintTokenSchema: GenEnum<SolanaMintToken>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
3
+ // @generated from file meshtrade/testing/ledger/token_tap/v1/option.proto (package meshtrade.testing.ledger.token_tap.v1, syntax proto3)
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SolanaMintTokenSchema = exports.SolanaMintToken = exports.SolanaMintTokenOptionSchema = exports.SolanaMintOptionSchema = exports.SolanaMintOptionsSchema = exports.StellarMintTokenWithMemoSchema = exports.StellarMintOptionSchema = exports.StellarMintOptionsSchema = exports.MintTokenOptionsSchema = exports.file_meshtrade_testing_ledger_token_tap_v1_option = void 0;
7
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
+ /**
9
+ * Describes the file meshtrade/testing/ledger/token_tap/v1/option.proto.
10
+ */
11
+ exports.file_meshtrade_testing_ledger_token_tap_v1_option = (0, codegenv2_1.fileDesc)("CjJtZXNodHJhZGUvdGVzdGluZy9sZWRnZXIvdG9rZW5fdGFwL3YxL29wdGlvbi5wcm90bxIlbWVzaHRyYWRlLnRlc3RpbmcubGVkZ2VyLnRva2VuX3RhcC52MSLcAQoQTWludFRva2VuT3B0aW9ucxJZChRzdGVsbGFyX21pbnRfb3B0aW9ucxgBIAEoCzI5Lm1lc2h0cmFkZS50ZXN0aW5nLmxlZGdlci50b2tlbl90YXAudjEuU3RlbGxhck1pbnRPcHRpb25zSAASVwoTc29sYW5hX21pbnRfb3B0aW9ucxgCIAEoCzI4Lm1lc2h0cmFkZS50ZXN0aW5nLmxlZGdlci50b2tlbl90YXAudjEuU29sYW5hTWludE9wdGlvbnNIAEIUChJtaW50X3Rva2VuX29wdGlvbnMiXwoSU3RlbGxhck1pbnRPcHRpb25zEkkKB29wdGlvbnMYASADKAsyOC5tZXNodHJhZGUudGVzdGluZy5sZWRnZXIudG9rZW5fdGFwLnYxLlN0ZWxsYXJNaW50T3B0aW9uIpMBChFTdGVsbGFyTWludE9wdGlvbhJnChxzdGVsbGFyX21pbnRfdG9rZW5fd2l0aF9tZW1vGAEgASgLMj8ubWVzaHRyYWRlLnRlc3RpbmcubGVkZ2VyLnRva2VuX3RhcC52MS5TdGVsbGFyTWludFRva2VuV2l0aE1lbW9IAEIVChNzdGVsbGFyX21pbnRfb3B0aW9uIigKGFN0ZWxsYXJNaW50VG9rZW5XaXRoTWVtbxIMCgRtZW1vGAEgASgJIl0KEVNvbGFuYU1pbnRPcHRpb25zEkgKB29wdGlvbnMYASADKAsyNy5tZXNodHJhZGUudGVzdGluZy5sZWRnZXIudG9rZW5fdGFwLnYxLlNvbGFuYU1pbnRPcHRpb24iigEKEFNvbGFuYU1pbnRPcHRpb24SYAoYc29sYW5hX21pbnRfdG9rZW5fb3B0aW9uGAEgASgLMjwubWVzaHRyYWRlLnRlc3RpbmcubGVkZ2VyLnRva2VuX3RhcC52MS5Tb2xhbmFNaW50VG9rZW5PcHRpb25IAEIUChJzb2xhbmFfbWludF9vcHRpb24iXgoVU29sYW5hTWludFRva2VuT3B0aW9uEkUKBXRva2VuGAEgASgOMjYubWVzaHRyYWRlLnRlc3RpbmcubGVkZ2VyLnRva2VuX3RhcC52MS5Tb2xhbmFNaW50VG9rZW4qbgoPU29sYW5hTWludFRva2VuEiEKHVNPTEFOQV9NSU5UX1RPS0VOX1VOU1BFQ0lGSUVEEAASHAoYU09MQU5BX01JTlRfVE9LRU5fTEVHQUNZEAESGgoWU09MQU5BX01JTlRfVE9LRU5fMjAyMhACQnQKLGNvLm1lc2h0cmFkZS5hcGkudGVzdGluZy5sZWRnZXIudG9rZW5fdGFwLnYxWkRnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vdGVzdGluZy9sZWRnZXIvdG9rZW5fdGFwL3YxO3Rva2VuX3RhcF92MWIGcHJvdG8z");
12
+ /**
13
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.MintTokenOptions.
14
+ * Use `create(MintTokenOptionsSchema)` to create a new message.
15
+ */
16
+ exports.MintTokenOptionsSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 0);
17
+ /**
18
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.StellarMintOptions.
19
+ * Use `create(StellarMintOptionsSchema)` to create a new message.
20
+ */
21
+ exports.StellarMintOptionsSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 1);
22
+ /**
23
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.StellarMintOption.
24
+ * Use `create(StellarMintOptionSchema)` to create a new message.
25
+ */
26
+ exports.StellarMintOptionSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 2);
27
+ /**
28
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.StellarMintTokenWithMemo.
29
+ * Use `create(StellarMintTokenWithMemoSchema)` to create a new message.
30
+ */
31
+ exports.StellarMintTokenWithMemoSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 3);
32
+ /**
33
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.SolanaMintOptions.
34
+ * Use `create(SolanaMintOptionsSchema)` to create a new message.
35
+ */
36
+ exports.SolanaMintOptionsSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 4);
37
+ /**
38
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.SolanaMintOption.
39
+ * Use `create(SolanaMintOptionSchema)` to create a new message.
40
+ */
41
+ exports.SolanaMintOptionSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 5);
42
+ /**
43
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.SolanaMintTokenOption.
44
+ * Use `create(SolanaMintTokenOptionSchema)` to create a new message.
45
+ */
46
+ exports.SolanaMintTokenOptionSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 6);
47
+ /**
48
+ * @generated from enum meshtrade.testing.ledger.token_tap.v1.SolanaMintToken
49
+ */
50
+ var SolanaMintToken;
51
+ (function (SolanaMintToken) {
52
+ /**
53
+ * @generated from enum value: SOLANA_MINT_TOKEN_UNSPECIFIED = 0;
54
+ */
55
+ SolanaMintToken[SolanaMintToken["SOLANA_MINT_TOKEN_UNSPECIFIED"] = 0] = "SOLANA_MINT_TOKEN_UNSPECIFIED";
56
+ /**
57
+ * @generated from enum value: SOLANA_MINT_TOKEN_LEGACY = 1;
58
+ */
59
+ SolanaMintToken[SolanaMintToken["SOLANA_MINT_TOKEN_LEGACY"] = 1] = "SOLANA_MINT_TOKEN_LEGACY";
60
+ /**
61
+ * @generated from enum value: SOLANA_MINT_TOKEN_2022 = 2;
62
+ */
63
+ SolanaMintToken[SolanaMintToken["SOLANA_MINT_TOKEN_2022"] = 2] = "SOLANA_MINT_TOKEN_2022";
64
+ })(SolanaMintToken || (exports.SolanaMintToken = SolanaMintToken = {}));
65
+ /**
66
+ * Describes the enum meshtrade.testing.ledger.token_tap.v1.SolanaMintToken.
67
+ */
68
+ exports.SolanaMintTokenSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_option, 0);
@@ -0,0 +1,141 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { MintTokenOptions } from "./option_pb";
3
+ import type { Amount } from "../../../../type/v1/amount_pb";
4
+ import type { Token } from "../../../../type/v1/token_pb";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file meshtrade/testing/ledger/token_tap/v1/service.proto.
8
+ */
9
+ export declare const file_meshtrade_testing_ledger_token_tap_v1_service: GenFile;
10
+ /**
11
+ * InitialiseTokenTapsRequest is the message used to initialize token taps.
12
+ *
13
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest
14
+ */
15
+ export type InitialiseTokenTapsRequest = Message<"meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest"> & {};
16
+ /**
17
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest.
18
+ * Use `create(InitialiseTokenTapsRequestSchema)` to create a new message.
19
+ */
20
+ export declare const InitialiseTokenTapsRequestSchema: GenMessage<InitialiseTokenTapsRequest>;
21
+ /**
22
+ * InitialiseTokenTapsResponse is the response message from initializing token taps.
23
+ *
24
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse
25
+ */
26
+ export type InitialiseTokenTapsResponse = Message<"meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse"> & {};
27
+ /**
28
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse.
29
+ * Use `create(InitialiseTokenTapsResponseSchema)` to create a new message.
30
+ */
31
+ export declare const InitialiseTokenTapsResponseSchema: GenMessage<InitialiseTokenTapsResponse>;
32
+ /**
33
+ * ListTokenTapsRequest is the message used to retrieve available tokens.
34
+ *
35
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest
36
+ */
37
+ export type ListTokenTapsRequest = Message<"meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest"> & {};
38
+ /**
39
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest.
40
+ * Use `create(ListTokenTapsRequestSchema)` to create a new message.
41
+ */
42
+ export declare const ListTokenTapsRequestSchema: GenMessage<ListTokenTapsRequest>;
43
+ /**
44
+ * ListTokenTapsResponse contains a list of available tokens for minting.
45
+ *
46
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse
47
+ */
48
+ export type ListTokenTapsResponse = Message<"meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse"> & {
49
+ /**
50
+ * Available tokens that can be minted.
51
+ *
52
+ * @generated from field: repeated meshtrade.type.v1.Token tokens = 1;
53
+ */
54
+ tokens: Token[];
55
+ };
56
+ /**
57
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse.
58
+ * Use `create(ListTokenTapsResponseSchema)` to create a new message.
59
+ */
60
+ export declare const ListTokenTapsResponseSchema: GenMessage<ListTokenTapsResponse>;
61
+ /**
62
+ * MintTokenRequest is the message used to mint tokens to an address.
63
+ *
64
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.MintTokenRequest
65
+ */
66
+ export type MintTokenRequest = Message<"meshtrade.testing.ledger.token_tap.v1.MintTokenRequest"> & {
67
+ /**
68
+ * The amount of tokens to mint. Must be specified.
69
+ *
70
+ * @generated from field: meshtrade.type.v1.Amount amount = 1;
71
+ */
72
+ amount?: Amount;
73
+ /**
74
+ * The blockchain address to mint tokens to. Must be specified.
75
+ *
76
+ * @generated from field: string address = 2;
77
+ */
78
+ address: string;
79
+ /**
80
+ * Optional parameters for customizing the mint operation.
81
+ *
82
+ * @generated from field: meshtrade.testing.ledger.token_tap.v1.MintTokenOptions options = 3;
83
+ */
84
+ options?: MintTokenOptions;
85
+ };
86
+ /**
87
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.MintTokenRequest.
88
+ * Use `create(MintTokenRequestSchema)` to create a new message.
89
+ */
90
+ export declare const MintTokenRequestSchema: GenMessage<MintTokenRequest>;
91
+ /**
92
+ * MintTokenResponse is the response message from minting tokens.
93
+ *
94
+ * @generated from message meshtrade.testing.ledger.token_tap.v1.MintTokenResponse
95
+ */
96
+ export type MintTokenResponse = Message<"meshtrade.testing.ledger.token_tap.v1.MintTokenResponse"> & {};
97
+ /**
98
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.MintTokenResponse.
99
+ * Use `create(MintTokenResponseSchema)` to create a new message.
100
+ */
101
+ export declare const MintTokenResponseSchema: GenMessage<MintTokenResponse>;
102
+ /**
103
+ *
104
+ * TokenTapService provides token distribution and minting functionality for testing
105
+ * and development purposes. It enables initialization of token taps, querying
106
+ * available tokens, and minting tokens to specified addresses.
107
+ *
108
+ * @generated from service meshtrade.testing.ledger.token_tap.v1.TokenTapService
109
+ */
110
+ export declare const TokenTapService: GenService<{
111
+ /**
112
+ * InitialiseTokenTaps initialises the available token taps.
113
+ *
114
+ * @generated from rpc meshtrade.testing.ledger.token_tap.v1.TokenTapService.InitialiseTokenTaps
115
+ */
116
+ initialiseTokenTaps: {
117
+ methodKind: "unary";
118
+ input: typeof InitialiseTokenTapsRequestSchema;
119
+ output: typeof InitialiseTokenTapsResponseSchema;
120
+ };
121
+ /**
122
+ * ListTokenTaps retrieves the list of available tokens for minting.
123
+ *
124
+ * @generated from rpc meshtrade.testing.ledger.token_tap.v1.TokenTapService.ListTokenTaps
125
+ */
126
+ listTokenTaps: {
127
+ methodKind: "unary";
128
+ input: typeof ListTokenTapsRequestSchema;
129
+ output: typeof ListTokenTapsResponseSchema;
130
+ };
131
+ /**
132
+ * MintToken creates and distributes tokens to the specified address.
133
+ *
134
+ * @generated from rpc meshtrade.testing.ledger.token_tap.v1.TokenTapService.MintToken
135
+ */
136
+ mintToken: {
137
+ methodKind: "unary";
138
+ input: typeof MintTokenRequestSchema;
139
+ output: typeof MintTokenResponseSchema;
140
+ };
141
+ }>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
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.TokenTapService = exports.MintTokenResponseSchema = exports.MintTokenRequestSchema = exports.ListTokenTapsResponseSchema = exports.ListTokenTapsRequestSchema = exports.InitialiseTokenTapsResponseSchema = exports.InitialiseTokenTapsRequestSchema = exports.file_meshtrade_testing_ledger_token_tap_v1_service = void 0;
7
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
+ const validate_pb_1 = require("../../../../../buf/validate/validate_pb");
9
+ const method_options_pb_1 = require("../../../../option/method_options/v1/method_options_pb");
10
+ const option_pb_1 = require("./option_pb");
11
+ const amount_pb_1 = require("../../../../type/v1/amount_pb");
12
+ const token_pb_1 = require("../../../../type/v1/token_pb");
13
+ /**
14
+ * Describes the file meshtrade/testing/ledger/token_tap/v1/service.proto.
15
+ */
16
+ exports.file_me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RUb2tlbhI3Lm1lc2h0cmFkZS50ZXN0aW5nLmxlZGdlci50b2tlbl90YXAudjEuTWludFRva2VuUmVxdWVzdBo4Lm1lc2h0cmFkZS50ZXN0aW5nLmxlZGdlci50b2tlbl90YXAudjEuTWludFRva2VuUmVzcG9uc2UiCLK1GAQIAhABQnQKLGNvLm1lc2h0cmFkZS5hcGkudGVzdGluZy5sZWRnZXIudG9rZW5fdGFwLnYxWkRnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vdGVzdGluZy9sZWRnZXIvdG9rZW5fdGFwL3YxO3Rva2VuX3RhcF92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options, option_pb_1.file_meshtrade_testing_ledger_token_tap_v1_option, amount_pb_1.file_meshtrade_type_v1_amount, token_pb_1.file_meshtrade_type_v1_token]);
17
+ /**
18
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsRequest.
19
+ * Use `create(InitialiseTokenTapsRequestSchema)` to create a new message.
20
+ */
21
+ exports.InitialiseTokenTapsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 0);
22
+ /**
23
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.InitialiseTokenTapsResponse.
24
+ * Use `create(InitialiseTokenTapsResponseSchema)` to create a new message.
25
+ */
26
+ exports.InitialiseTokenTapsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 1);
27
+ /**
28
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.ListTokenTapsRequest.
29
+ * Use `create(ListTokenTapsRequestSchema)` to create a new message.
30
+ */
31
+ exports.ListTokenTapsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 2);
32
+ /**
33
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.ListTokenTapsResponse.
34
+ * Use `create(ListTokenTapsResponseSchema)` to create a new message.
35
+ */
36
+ exports.ListTokenTapsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 3);
37
+ /**
38
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.MintTokenRequest.
39
+ * Use `create(MintTokenRequestSchema)` to create a new message.
40
+ */
41
+ exports.MintTokenRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 4);
42
+ /**
43
+ * Describes the message meshtrade.testing.ledger.token_tap.v1.MintTokenResponse.
44
+ * Use `create(MintTokenResponseSchema)` to create a new message.
45
+ */
46
+ exports.MintTokenResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 5);
47
+ /**
48
+ *
49
+ * TokenTapService provides token distribution and minting functionality for testing
50
+ * and development purposes. It enables initialization of token taps, querying
51
+ * available tokens, and minting tokens to specified addresses.
52
+ *
53
+ * @generated from service meshtrade.testing.ledger.token_tap.v1.TokenTapService
54
+ */
55
+ exports.TokenTapService = (0, codegenv2_1.serviceDesc)(exports.file_meshtrade_testing_ledger_token_tap_v1_service, 0);
@@ -0,0 +1,102 @@
1
+ import { InitialiseTokenTapsRequest, InitialiseTokenTapsResponse, ListTokenTapsRequest, ListTokenTapsResponse, MintTokenRequest, MintTokenResponse } from "./service_pb";
2
+ import { ClientOption } from "../../../../config";
3
+ /**
4
+ * Web client for interacting with the meshtrade.testing.ledger.token_tap.v1 token tap v1 API resource service.
5
+ * Uses Connect-ES with gRPC-Web transport for browser-based communication.
6
+ *
7
+ * Supports flexible authentication modes using functional options pattern:
8
+ *
9
+ * 1. **No Authentication** (public APIs):
10
+ * ```typescript
11
+ * const client = new TokenTapServiceWeb(
12
+ * WithServerUrl("http://localhost:10000")
13
+ * );
14
+ * ```
15
+ *
16
+ * 2. **API Key Authentication** (backend services):
17
+ * ```typescript
18
+ * const client = new TokenTapServiceWeb(
19
+ * WithAPIKey("your-api-key"),
20
+ * WithGroup("groups/01ARZ3NDEKTSV4YWVF8F5BH32"),
21
+ * WithServerUrl("https://api.example.com")
22
+ * );
23
+ * ```
24
+ *
25
+ * 3. **JWT Token Authentication** (Next.js frontend with user session):
26
+ * ```typescript
27
+ * const client = new TokenTapServiceWeb(
28
+ * WithJWTAccessToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."),
29
+ * WithServerUrl("https://api.example.com")
30
+ * );
31
+ * ```
32
+ *
33
+ * 4. **JWT with Group Context** (user session with specific group):
34
+ * ```typescript
35
+ * const client = new TokenTapServiceWeb(
36
+ * WithJWTAccessToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."),
37
+ * WithGroup("groups/01ARZ3NDEKTSV4YWVF8F5BH32"),
38
+ * WithServerUrl("https://api.example.com")
39
+ * );
40
+ * ```
41
+ *
42
+ * Available options:
43
+ * - `WithAPIKey(key)` - API key authentication (mutually exclusive with JWT)
44
+ * - `WithJWTAccessToken(token)` - JWT authentication (mutually exclusive with API key)
45
+ * - `WithGroup(group)` - Group context (optional, works with both auth modes)
46
+ * - `WithServerUrl(url)` - Custom server URL (optional, defaults to production)
47
+ */
48
+ export declare class TokenTapServiceWeb {
49
+ private _client;
50
+ private readonly _config;
51
+ private readonly _interceptors;
52
+ private readonly _validator;
53
+ /**
54
+ * Constructs an instance of TokenTapServiceWeb.
55
+ *
56
+ * Uses functional options pattern for flexible configuration:
57
+ * - `WithAPIKey(key)` - API key authentication
58
+ * - `WithJWTAccessToken(token)` - JWT authentication
59
+ * - `WithGroup(group)` - Group context (optional)
60
+ * - `WithServerUrl(url)` - Custom server URL (optional)
61
+ *
62
+ * @param {...ClientOption} opts - Variable number of configuration options
63
+ */
64
+ constructor(...opts: ClientOption[]);
65
+ /**
66
+ * Returns a new client instance configured to send the specified group
67
+ * resource name in the request headers for subsequent API calls.
68
+ *
69
+ * This method creates a new client with the same authentication configuration
70
+ * but with the group context updated to the specified value.
71
+ *
72
+ * **Compatibility**: Works with all authentication modes:
73
+ * - **API key auth**: Creates new client with API key + new group
74
+ * - **JWT auth**: Creates new client with JWT + new group
75
+ * - **No auth**: Creates new client with standalone group interceptor
76
+ *
77
+ * @param {string} group - The operating group context to inject into the request
78
+ * in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
79
+ * Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
80
+ * @returns {TokenTapServiceWeb} A new, configured instance of the client.
81
+ * @throws {Error} If the group format is invalid
82
+ */
83
+ withGroup(group: string): TokenTapServiceWeb;
84
+ /**
85
+ * Performs initialisetokentaps operation on token tap.
86
+ * @param {InitialiseTokenTapsRequest} request - The request object for initialisetokentaps.
87
+ * @returns {Promise<InitialiseTokenTapsResponse>} A promise that resolves with the token tap.
88
+ */
89
+ initialiseTokenTaps(request: InitialiseTokenTapsRequest): Promise<InitialiseTokenTapsResponse>;
90
+ /**
91
+ * Retrieves a list of token taps.
92
+ * @param {ListTokenTapsRequest} request - The request object for listtokentaps.
93
+ * @returns {Promise<ListTokenTapsResponse>} A promise that resolves with the list of token taps.
94
+ */
95
+ listTokenTaps(request: ListTokenTapsRequest): Promise<ListTokenTapsResponse>;
96
+ /**
97
+ * Performs minttoken operation on token tap.
98
+ * @param {MintTokenRequest} request - The request object for minttoken.
99
+ * @returns {Promise<MintTokenResponse>} A promise that resolves with the token tap.
100
+ */
101
+ mintToken(request: MintTokenRequest): Promise<MintTokenResponse>;
102
+ }
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-meshts. DO NOT EDIT.
3
+ // @generated by protoc-gen-meshts v1
4
+ // @generated from file meshtrade/testing/ledger/token_tap/v1/service.proto (package meshtrade.testing.ledger.token_tap.v1, syntax proto3)
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TokenTapServiceWeb = void 0;
8
+ const connect_1 = require("@connectrpc/connect");
9
+ const connect_web_1 = require("@connectrpc/connect-web");
10
+ const service_pb_1 = require("./service_pb");
11
+ const service_pb_2 = require("./service_pb");
12
+ const config_1 = require("../../../../config");
13
+ const protovalidate_1 = require("@bufbuild/protovalidate");
14
+ const interceptors_1 = require("../../../../interceptors");
15
+ /**
16
+ * Web client for interacting with the meshtrade.testing.ledger.token_tap.v1 token tap v1 API resource service.
17
+ * Uses Connect-ES with gRPC-Web transport for browser-based communication.
18
+ *
19
+ * Supports flexible authentication modes using functional options pattern:
20
+ *
21
+ * 1. **No Authentication** (public APIs):
22
+ * ```typescript
23
+ * const client = new TokenTapServiceWeb(
24
+ * WithServerUrl("http://localhost:10000")
25
+ * );
26
+ * ```
27
+ *
28
+ * 2. **API Key Authentication** (backend services):
29
+ * ```typescript
30
+ * const client = new TokenTapServiceWeb(
31
+ * WithAPIKey("your-api-key"),
32
+ * WithGroup("groups/01ARZ3NDEKTSV4YWVF8F5BH32"),
33
+ * WithServerUrl("https://api.example.com")
34
+ * );
35
+ * ```
36
+ *
37
+ * 3. **JWT Token Authentication** (Next.js frontend with user session):
38
+ * ```typescript
39
+ * const client = new TokenTapServiceWeb(
40
+ * WithJWTAccessToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."),
41
+ * WithServerUrl("https://api.example.com")
42
+ * );
43
+ * ```
44
+ *
45
+ * 4. **JWT with Group Context** (user session with specific group):
46
+ * ```typescript
47
+ * const client = new TokenTapServiceWeb(
48
+ * WithJWTAccessToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."),
49
+ * WithGroup("groups/01ARZ3NDEKTSV4YWVF8F5BH32"),
50
+ * WithServerUrl("https://api.example.com")
51
+ * );
52
+ * ```
53
+ *
54
+ * Available options:
55
+ * - `WithAPIKey(key)` - API key authentication (mutually exclusive with JWT)
56
+ * - `WithJWTAccessToken(token)` - JWT authentication (mutually exclusive with API key)
57
+ * - `WithGroup(group)` - Group context (optional, works with both auth modes)
58
+ * - `WithServerUrl(url)` - Custom server URL (optional, defaults to production)
59
+ */
60
+ class TokenTapServiceWeb {
61
+ /**
62
+ * Constructs an instance of TokenTapServiceWeb.
63
+ *
64
+ * Uses functional options pattern for flexible configuration:
65
+ * - `WithAPIKey(key)` - API key authentication
66
+ * - `WithJWTAccessToken(token)` - JWT authentication
67
+ * - `WithGroup(group)` - Group context (optional)
68
+ * - `WithServerUrl(url)` - Custom server URL (optional)
69
+ *
70
+ * @param {...ClientOption} opts - Variable number of configuration options
71
+ */
72
+ constructor(...opts) {
73
+ // Build configuration from options
74
+ this._config = (0, config_1.buildConfigFromOptions)(...opts);
75
+ // Initialize validator for request validation
76
+ this._validator = (0, protovalidate_1.createValidator)();
77
+ this._interceptors = [];
78
+ this._interceptors.push((0, interceptors_1.createLoggingInterceptor)());
79
+ if (this._config.apiKey) {
80
+ this._interceptors.push((0, interceptors_1.createApiKeyInterceptor)(this._config.apiKey));
81
+ }
82
+ if (this._config.jwtToken) {
83
+ this._interceptors.push((0, interceptors_1.createJwtInterceptor)(this._config.jwtToken));
84
+ }
85
+ if (this._config.group) {
86
+ this._interceptors.push((0, interceptors_1.createGroupInterceptor)(this._config.group));
87
+ }
88
+ // Create the gRPC-Web transport for browser with interceptors
89
+ // Custom fetch wrapper to include credentials for cookie-based authentication
90
+ const transport = (0, connect_web_1.createGrpcWebTransport)({
91
+ baseUrl: this._config.apiServerURL,
92
+ interceptors: this._interceptors,
93
+ fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
94
+ });
95
+ // Construct the Connect-ES client
96
+ this._client = (0, connect_1.createClient)(service_pb_1.TokenTapService, transport);
97
+ }
98
+ /**
99
+ * Returns a new client instance configured to send the specified group
100
+ * resource name in the request headers for subsequent API calls.
101
+ *
102
+ * This method creates a new client with the same authentication configuration
103
+ * but with the group context updated to the specified value.
104
+ *
105
+ * **Compatibility**: Works with all authentication modes:
106
+ * - **API key auth**: Creates new client with API key + new group
107
+ * - **JWT auth**: Creates new client with JWT + new group
108
+ * - **No auth**: Creates new client with standalone group interceptor
109
+ *
110
+ * @param {string} group - The operating group context to inject into the request
111
+ * in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
112
+ * Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
113
+ * @returns {TokenTapServiceWeb} A new, configured instance of the client.
114
+ * @throws {Error} If the group format is invalid
115
+ */
116
+ withGroup(group) {
117
+ // Build new options array with existing auth and updated group
118
+ const newOpts = [];
119
+ // Add server URL
120
+ newOpts.push((0, config_1.WithServerUrl)(this._config.apiServerURL));
121
+ // Add authentication (preserve existing mode)
122
+ if (this._config.apiKey) {
123
+ newOpts.push((0, config_1.WithAPIKey)(this._config.apiKey));
124
+ }
125
+ else if (this._config.jwtToken) {
126
+ newOpts.push((0, config_1.WithJWTAccessToken)(this._config.jwtToken));
127
+ }
128
+ // Add the new group
129
+ newOpts.push((0, config_1.WithGroup)(group));
130
+ // Return a new client instance with updated configuration
131
+ return new TokenTapServiceWeb(...newOpts);
132
+ }
133
+ /**
134
+ * Performs initialisetokentaps operation on token tap.
135
+ * @param {InitialiseTokenTapsRequest} request - The request object for initialisetokentaps.
136
+ * @returns {Promise<InitialiseTokenTapsResponse>} A promise that resolves with the token tap.
137
+ */
138
+ initialiseTokenTaps(request) {
139
+ // Validate request
140
+ const result = this._validator.validate(service_pb_2.InitialiseTokenTapsRequestSchema, request);
141
+ if (result.kind === "invalid") {
142
+ const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
143
+ throw new Error(`Validation failed: ${violations}`);
144
+ }
145
+ else if (result.kind === "error") {
146
+ throw result.error;
147
+ }
148
+ return this._client.initialiseTokenTaps(request);
149
+ }
150
+ /**
151
+ * Retrieves a list of token taps.
152
+ * @param {ListTokenTapsRequest} request - The request object for listtokentaps.
153
+ * @returns {Promise<ListTokenTapsResponse>} A promise that resolves with the list of token taps.
154
+ */
155
+ listTokenTaps(request) {
156
+ // Validate request
157
+ const result = this._validator.validate(service_pb_2.ListTokenTapsRequestSchema, request);
158
+ if (result.kind === "invalid") {
159
+ const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
160
+ throw new Error(`Validation failed: ${violations}`);
161
+ }
162
+ else if (result.kind === "error") {
163
+ throw result.error;
164
+ }
165
+ return this._client.listTokenTaps(request);
166
+ }
167
+ /**
168
+ * Performs minttoken operation on token tap.
169
+ * @param {MintTokenRequest} request - The request object for minttoken.
170
+ * @returns {Promise<MintTokenResponse>} A promise that resolves with the token tap.
171
+ */
172
+ mintToken(request) {
173
+ // Validate request
174
+ const result = this._validator.validate(service_pb_2.MintTokenRequestSchema, request);
175
+ if (result.kind === "invalid") {
176
+ const violations = result.violations.map(v => `${v.field.toString()}: ${v.message}`).join("; ");
177
+ throw new Error(`Validation failed: ${violations}`);
178
+ }
179
+ else if (result.kind === "error") {
180
+ throw result.error;
181
+ }
182
+ return this._client.mintToken(request);
183
+ }
184
+ }
185
+ exports.TokenTapServiceWeb = TokenTapServiceWeb;
@@ -17,6 +17,7 @@ const ledgerToStringMapping = {
17
17
  [ledger_pb_1.Ledger.ETHEREUM]: "Ethereum",
18
18
  [ledger_pb_1.Ledger.XRP]: "Ripple",
19
19
  [ledger_pb_1.Ledger.SA_STOCK_BROKERS]: "SA Stock Brokers",
20
+ [ledger_pb_1.Ledger.SOLANA]: "Solana",
20
21
  [ledger_pb_1.Ledger.NULL]: "NULL",
21
22
  };
22
23
  // Reverse mapping from string to Ledger enum
@@ -73,6 +74,7 @@ const ledgerDecimalPlaces = {
73
74
  [ledger_pb_1.Ledger.ETHEREUM]: 7,
74
75
  [ledger_pb_1.Ledger.XRP]: 7,
75
76
  [ledger_pb_1.Ledger.SA_STOCK_BROKERS]: 2,
77
+ [ledger_pb_1.Ledger.SOLANA]: 9,
76
78
  [ledger_pb_1.Ledger.NULL]: 2,
77
79
  };
78
80
  /**
@@ -98,6 +100,7 @@ const ledgerToBEStringMapping = {
98
100
  [ledger_pb_1.Ledger.ETHEREUM]: "LEDGER_ETHEREUM",
99
101
  [ledger_pb_1.Ledger.XRP]: "LEDGER_XRP",
100
102
  [ledger_pb_1.Ledger.SA_STOCK_BROKERS]: "LEDGER_SA_STOCK_BROKERS",
103
+ [ledger_pb_1.Ledger.SOLANA]: "LEDGER_SOLANA",
101
104
  [ledger_pb_1.Ledger.NULL]: "LEDGER_NULL",
102
105
  };
103
106
  /**
@@ -68,14 +68,21 @@ export declare enum Ledger {
68
68
  * @generated from enum value: LEDGER_SA_STOCK_BROKERS = 15;
69
69
  */
70
70
  SA_STOCK_BROKERS = 15,
71
+ /**
72
+ *
73
+ * The Solana ledger network
74
+ *
75
+ * @generated from enum value: LEDGER_SOLANA = 16;
76
+ */
77
+ SOLANA = 16,
71
78
  /**
72
79
  *
73
80
  * A null ledger, used as a placeholder for assets that do not have
74
81
  * an external or on-chain accounting ledger.
75
82
  *
76
- * @generated from enum value: LEDGER_NULL = 16;
83
+ * @generated from enum value: LEDGER_NULL = 17;
77
84
  */
78
- NULL = 16
85
+ NULL = 17
79
86
  }
80
87
  /**
81
88
  * Describes the enum meshtrade.type.v1.Ledger.
@@ -8,7 +8,7 @@ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
8
  /**
9
9
  * Describes the file meshtrade/type/v1/ledger.proto.
10
10
  */
11
- exports.file_meshtrade_type_v1_ledger = (0, codegenv2_1.fileDesc)("Ch5tZXNodHJhZGUvdHlwZS92MS9sZWRnZXIucHJvdG8SEW1lc2h0cmFkZS50eXBlLnYxKrABCgZMZWRnZXISFgoSTEVER0VSX1VOU1BFQ0lGSUVEEAASEgoOTEVER0VSX1NURUxMQVIQAxISCg5MRURHRVJfQklUQ09JThAFEhMKD0xFREdFUl9MSVRFQ09JThAHEhMKD0xFREdFUl9FVEhFUkVVTRAJEg4KCkxFREdFUl9YUlAQCxIbChdMRURHRVJfU0FfU1RPQ0tfQlJPS0VSUxAPEg8KC0xFREdFUl9OVUxMEBBCRwoYY28ubWVzaHRyYWRlLmFwaS50eXBlLnYxWitnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vdHlwZS92MTt0eXBlX3YxYgZwcm90bzM");
11
+ exports.file_meshtrade_type_v1_ledger = (0, codegenv2_1.fileDesc)("Ch5tZXNodHJhZGUvdHlwZS92MS9sZWRnZXIucHJvdG8SEW1lc2h0cmFkZS50eXBlLnYxKsMBCgZMZWRnZXISFgoSTEVER0VSX1VOU1BFQ0lGSUVEEAASEgoOTEVER0VSX1NURUxMQVIQAxISCg5MRURHRVJfQklUQ09JThAFEhMKD0xFREdFUl9MSVRFQ09JThAHEhMKD0xFREdFUl9FVEhFUkVVTRAJEg4KCkxFREdFUl9YUlAQCxIbChdMRURHRVJfU0FfU1RPQ0tfQlJPS0VSUxAPEhEKDUxFREdFUl9TT0xBTkEQEBIPCgtMRURHRVJfTlVMTBARQkcKGGNvLm1lc2h0cmFkZS5hcGkudHlwZS52MVorZ2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL3R5cGUvdjE7dHlwZV92MWIGcHJvdG8z");
12
12
  /**
13
13
  *
14
14
  * Ledger represents the various distributed and centralized systems that Mesh
@@ -75,14 +75,21 @@ var Ledger;
75
75
  * @generated from enum value: LEDGER_SA_STOCK_BROKERS = 15;
76
76
  */
77
77
  Ledger[Ledger["SA_STOCK_BROKERS"] = 15] = "SA_STOCK_BROKERS";
78
+ /**
79
+ *
80
+ * The Solana ledger network
81
+ *
82
+ * @generated from enum value: LEDGER_SOLANA = 16;
83
+ */
84
+ Ledger[Ledger["SOLANA"] = 16] = "SOLANA";
78
85
  /**
79
86
  *
80
87
  * A null ledger, used as a placeholder for assets that do not have
81
88
  * an external or on-chain accounting ledger.
82
89
  *
83
- * @generated from enum value: LEDGER_NULL = 16;
90
+ * @generated from enum value: LEDGER_NULL = 17;
84
91
  */
85
- Ledger[Ledger["NULL"] = 16] = "NULL";
92
+ Ledger[Ledger["NULL"] = 17] = "NULL";
86
93
  })(Ledger || (exports.Ledger = Ledger = {}));
87
94
  /**
88
95
  * Describes the enum meshtrade.type.v1.Ledger.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-web",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "description": "Mesh Typescript SDK",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",
@@ -76,6 +76,11 @@
76
76
  "require": "./dist/meshtrade/studio/instrument/v1/index.js",
77
77
  "import": "./dist/meshtrade/studio/instrument/v1/index.js"
78
78
  },
79
+ "./testing/ledger/token_tap/v1": {
80
+ "types": "./dist/meshtrade/testing/ledger/token_tap/v1/index.d.ts",
81
+ "require": "./dist/meshtrade/testing/ledger/token_tap/v1/index.js",
82
+ "import": "./dist/meshtrade/testing/ledger/token_tap/v1/index.js"
83
+ },
79
84
  "./option/method_options/v1": {
80
85
  "types": "./dist/meshtrade/option/method_options/v1/index.d.ts",
81
86
  "require": "./dist/meshtrade/option/method_options/v1/index.js",
@@ -135,6 +140,9 @@
135
140
  "studio/instrument/v1": [
136
141
  "dist/meshtrade/studio/instrument/v1/index.d.ts"
137
142
  ],
143
+ "testing/ledger/token_tap/v1": [
144
+ "dist/meshtrade/testing/ledger/token_tap/v1/index.d.ts"
145
+ ],
138
146
  "option/method_options/v1": [
139
147
  "dist/meshtrade/option/method_options/v1/index.d.ts"
140
148
  ],