@meshtrade/api-web 1.30.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/README.md +68 -0
- package/dist/buf/validate/validate_pb.d.ts +4597 -0
- package/dist/buf/validate/validate_pb.js +354 -0
- package/dist/google/type/date_pb.d.ts +52 -0
- package/dist/google/type/date_pb.js +26 -0
- package/dist/meshtrade/common/config.d.ts +7 -0
- package/dist/meshtrade/common/config.js +9 -0
- package/dist/meshtrade/common/connectInterceptors.d.ts +73 -0
- package/dist/meshtrade/common/connectInterceptors.js +126 -0
- package/dist/meshtrade/common/validation.d.ts +62 -0
- package/dist/meshtrade/common/validation.js +77 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.d.ts +138 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.js +23 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +313 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.js +100 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +81 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +22 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +88 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +95 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +55 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +62 -0
- package/dist/meshtrade/compliance/client/v1/index.d.ts +16 -0
- package/dist/meshtrade/compliance/client/v1/index.js +59 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +86 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +16 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +133 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +140 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +143 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +24 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +46 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +53 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +123 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +45 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.d.ts +48 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.js +92 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +180 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +187 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +40 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +17 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +57 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +64 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +43 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +17 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +152 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +95 -0
- package/dist/meshtrade/iam/api_user/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/api_user/v1/index.js +45 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +343 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +86 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.js +152 -0
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +58 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +17 -0
- package/dist/meshtrade/iam/group/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/group/v1/index.js +44 -0
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +306 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +75 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.d.ts +60 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.js +112 -0
- package/dist/meshtrade/iam/role/v1/index.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/index.js +43 -0
- package/dist/meshtrade/iam/role/v1/role.d.ts +71 -0
- package/dist/meshtrade/iam/role/v1/role.js +192 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +164 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +171 -0
- package/dist/meshtrade/iam/user/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/user/v1/index.js +44 -0
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +379 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +90 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.d.ts +78 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.js +142 -0
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +58 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +17 -0
- package/dist/meshtrade/ledger/transaction/v1/index.d.ts +5 -0
- package/dist/meshtrade/ledger/transaction/v1/index.js +46 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +102 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +41 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.js +91 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +46 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +53 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.d.ts +14 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.js +64 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +57 -0
- package/dist/meshtrade/market_data/price/v1/index.d.ts +3 -0
- package/dist/meshtrade/market_data/price/v1/index.js +44 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +50 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.js +19 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +48 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +27 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.js +72 -0
- package/dist/meshtrade/option/method_options/v1/index.d.ts +1 -0
- package/dist/meshtrade/option/method_options/v1/index.js +42 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +132 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +108 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +136 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +28 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +39 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +16 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +66 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +18 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +139 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +80 -0
- package/dist/meshtrade/reporting/account_report/v1/index.d.ts +7 -0
- package/dist/meshtrade/reporting/account_report/v1/index.js +48 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +162 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +46 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.d.ts +42 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.js +82 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +80 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/index.d.ts +3 -0
- package/dist/meshtrade/studio/instrument/v1/index.js +44 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.d.ts +53 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +214 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +221 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +148 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.js +155 -0
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +211 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +111 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +357 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +73 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.d.ts +81 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.js +141 -0
- package/dist/meshtrade/trading/market_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/market_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +20 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +16 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +34 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +22 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.js +72 -0
- package/dist/meshtrade/type/v1/address_pb.d.ts +82 -0
- package/dist/meshtrade/type/v1/address_pb.js +16 -0
- package/dist/meshtrade/type/v1/amount.d.ts +13 -0
- package/dist/meshtrade/type/v1/amount.js +68 -0
- package/dist/meshtrade/type/v1/amountWrapper.d.ts +74 -0
- package/dist/meshtrade/type/v1/amountWrapper.js +98 -0
- package/dist/meshtrade/type/v1/amount_pb.d.ts +44 -0
- package/dist/meshtrade/type/v1/amount_pb.js +18 -0
- package/dist/meshtrade/type/v1/contact_details_pb.d.ts +98 -0
- package/dist/meshtrade/type/v1/contact_details_pb.js +16 -0
- package/dist/meshtrade/type/v1/date.d.ts +49 -0
- package/dist/meshtrade/type/v1/date.js +136 -0
- package/dist/meshtrade/type/v1/date_pb.d.ts +50 -0
- package/dist/meshtrade/type/v1/date_pb.js +16 -0
- package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimalConversions.js +39 -0
- package/dist/meshtrade/type/v1/decimal_pb.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimal_pb.js +16 -0
- package/dist/meshtrade/type/v1/index.d.ts +15 -0
- package/dist/meshtrade/type/v1/index.js +56 -0
- package/dist/meshtrade/type/v1/ledger.d.ts +27 -0
- package/dist/meshtrade/type/v1/ledger.js +115 -0
- package/dist/meshtrade/type/v1/ledger_pb.d.ts +83 -0
- package/dist/meshtrade/type/v1/ledger_pb.js +90 -0
- package/dist/meshtrade/type/v1/sorting_pb.d.ts +35 -0
- package/dist/meshtrade/type/v1/sorting_pb.js +42 -0
- package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
- package/dist/meshtrade/type/v1/time_of_day.js +199 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +67 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.js +16 -0
- package/dist/meshtrade/type/v1/token.d.ts +4 -0
- package/dist/meshtrade/type/v1/token.js +23 -0
- package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
- package/dist/meshtrade/type/v1/tokenWrapper.js +92 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +56 -0
- package/dist/meshtrade/type/v1/token_pb.js +17 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +264 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +74 -0
- package/dist/meshtrade/wallet/account/v1/index.d.ts +3 -0
- package/dist/meshtrade/wallet/account/v1/index.js +44 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +559 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +112 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.js +152 -0
- package/package.json +171 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file meshtrade/type/v1/time_of_day.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_meshtrade_type_v1_time_of_day: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Represents a time of day in 24-hour format. The date and time zone are either
|
|
9
|
+
* not significant or are specified elsewhere. This type does not support leap
|
|
10
|
+
* seconds and uses standard 24-hour time representation (00:00:00 to 23:59:59).
|
|
11
|
+
*
|
|
12
|
+
* Validation Rules:
|
|
13
|
+
* * Hours: 0-23 (24-hour format, no support for 24:00:00 end-of-day representation)
|
|
14
|
+
* * Minutes: 0-59
|
|
15
|
+
* * Seconds: 0-59 (no leap seconds support)
|
|
16
|
+
* * Nanos: 0-999,999,999 (nanosecond precision for sub-second timing)
|
|
17
|
+
*
|
|
18
|
+
* Examples:
|
|
19
|
+
* * Midnight: hours=0, minutes=0, seconds=0, nanos=0 → "00:00:00"
|
|
20
|
+
* * Noon: hours=12, minutes=0, seconds=0, nanos=0 → "12:00:00"
|
|
21
|
+
* * End of day: hours=23, minutes=59, seconds=59, nanos=999999999 → "23:59:59.999999999"
|
|
22
|
+
* * High precision: hours=15, minutes=30, seconds=45, nanos=123456789 → "15:30:45.123456789"
|
|
23
|
+
*
|
|
24
|
+
* Usage Notes:
|
|
25
|
+
* * Can be combined with meshtrade.type.v1.Date to represent complete datetime
|
|
26
|
+
* * Suitable for scheduling, timestamps, duration calculations
|
|
27
|
+
* * Sub-second precision supports high-frequency trading and precise timing requirements
|
|
28
|
+
*
|
|
29
|
+
* Related types are [meshtrade.type.v1.Date][meshtrade.type.v1.Date] and
|
|
30
|
+
* `google.protobuf.Timestamp`.
|
|
31
|
+
*
|
|
32
|
+
* @generated from message meshtrade.type.v1.TimeOfDay
|
|
33
|
+
*/
|
|
34
|
+
export type TimeOfDay = Message<"meshtrade.type.v1.TimeOfDay"> & {
|
|
35
|
+
/**
|
|
36
|
+
* Hours of day in 24 hour format. Must be from 0 to 23. Does not support
|
|
37
|
+
* 24:00:00 end-of-day representation; use 23:59:59.999999999 instead.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: int32 hours = 1;
|
|
40
|
+
*/
|
|
41
|
+
hours: number;
|
|
42
|
+
/**
|
|
43
|
+
* Minutes of hour of day. Must be from 0 to 59.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: int32 minutes = 2;
|
|
46
|
+
*/
|
|
47
|
+
minutes: number;
|
|
48
|
+
/**
|
|
49
|
+
* Seconds of minutes of the time. Must be from 0 to 59. Leap seconds are
|
|
50
|
+
* not supported.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: int32 seconds = 3;
|
|
53
|
+
*/
|
|
54
|
+
seconds: number;
|
|
55
|
+
/**
|
|
56
|
+
* Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
|
57
|
+
* Provides nanosecond precision for sub-second timing requirements.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: int32 nanos = 4;
|
|
60
|
+
*/
|
|
61
|
+
nanos: number;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message meshtrade.type.v1.TimeOfDay.
|
|
65
|
+
* Use `create(TimeOfDaySchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export declare const TimeOfDaySchema: GenMessage<TimeOfDay>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/type/v1/time_of_day.proto (package meshtrade.type.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TimeOfDaySchema = exports.file_meshtrade_type_v1_time_of_day = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file meshtrade/type/v1/time_of_day.proto.
|
|
10
|
+
*/
|
|
11
|
+
exports.file_meshtrade_type_v1_time_of_day = (0, codegenv2_1.fileDesc)("CiNtZXNodHJhZGUvdHlwZS92MS90aW1lX29mX2RheS5wcm90bxIRbWVzaHRyYWRlLnR5cGUudjEiSwoJVGltZU9mRGF5Eg0KBWhvdXJzGAEgASgFEg8KB21pbnV0ZXMYAiABKAUSDwoHc2Vjb25kcxgDIAEoBRINCgVuYW5vcxgEIAEoBUJHChhjby5tZXNodHJhZGUuYXBpLnR5cGUudjFaK2dpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby90eXBlL3YxO3R5cGVfdjFiBnByb3RvMw");
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message meshtrade.type.v1.TimeOfDay.
|
|
14
|
+
* Use `create(TimeOfDaySchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
exports.TimeOfDaySchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_type_v1_time_of_day, 0);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tokensAreEqual = tokensAreEqual;
|
|
4
|
+
exports.tokenIsUndefined = tokenIsUndefined;
|
|
5
|
+
exports.tokenToString = tokenToString;
|
|
6
|
+
const ledger_pb_1 = require("./ledger_pb");
|
|
7
|
+
function tokensAreEqual(t, t2) {
|
|
8
|
+
return ((t?.code ?? "") === (t2?.code ?? "") &&
|
|
9
|
+
(t?.issuer ?? "") === (t2?.issuer ?? "") &&
|
|
10
|
+
(t?.ledger ?? ledger_pb_1.Ledger.UNSPECIFIED) === (t2?.ledger ?? ledger_pb_1.Ledger.UNSPECIFIED));
|
|
11
|
+
}
|
|
12
|
+
function tokenIsUndefined(t) {
|
|
13
|
+
if (!t) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return ((t.code === "-" || t.code === "") &&
|
|
17
|
+
(t.issuer === "-" || t.issuer === "") &&
|
|
18
|
+
// NULL is not unspecified
|
|
19
|
+
t.ledger === ledger_pb_1.Ledger.UNSPECIFIED);
|
|
20
|
+
}
|
|
21
|
+
function tokenToString(t) {
|
|
22
|
+
return `${t?.code ?? "-"} by ${t?.issuer ?? "-"} on ${t?.ledger ?? ledger_pb_1.Ledger.UNSPECIFIED}`;
|
|
23
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Token } from "./token_pb";
|
|
2
|
+
import { Decimal } from "./decimal_pb";
|
|
3
|
+
import { Amount } from "./amount_pb";
|
|
4
|
+
import { Ledger } from "./ledger_pb";
|
|
5
|
+
/**
|
|
6
|
+
* Class representing a wrapper around a Token.
|
|
7
|
+
*
|
|
8
|
+
* The TokenWrapper class provides convenience methods to manipulate and retrieve the
|
|
9
|
+
* Token instance it wraps, along with its associated properties.
|
|
10
|
+
*/
|
|
11
|
+
export declare class TokenWrapper {
|
|
12
|
+
private _token;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs an instance of the TokenWrapper class.
|
|
15
|
+
*
|
|
16
|
+
* This constructor initializes the TokenWrapper with a given Token.
|
|
17
|
+
* The token argument is set to option (i.e. could be undefined) as objects
|
|
18
|
+
* returned by protobuf types are typically optionally undefined.
|
|
19
|
+
*
|
|
20
|
+
* @param {Token} [token] - The token to be wrapped. Must be defined.
|
|
21
|
+
*/
|
|
22
|
+
constructor(token?: Token);
|
|
23
|
+
get code(): string;
|
|
24
|
+
getCode(): string;
|
|
25
|
+
get issuer(): string;
|
|
26
|
+
getIssuer(): string;
|
|
27
|
+
get ledger(): Ledger;
|
|
28
|
+
getLedger(): Ledger;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves the wrapped Token.
|
|
31
|
+
*
|
|
32
|
+
* This getter provides access to the Token instance that is wrapped by this class.
|
|
33
|
+
*
|
|
34
|
+
* @returns {Token} The wrapped Token.
|
|
35
|
+
*/
|
|
36
|
+
get token(): Token;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new Amount instance based on the given value.
|
|
39
|
+
*
|
|
40
|
+
* This method accepts a value of type BigNumber or Decimal and returns a new Amount
|
|
41
|
+
* instance created from this value, associated with the wrapped Token.
|
|
42
|
+
*
|
|
43
|
+
* @param {BigNumber | Decimal | string | undefined} value - The amount in BigNumber, num.Decimal or string format.
|
|
44
|
+
*
|
|
45
|
+
* @returns {Amount} A new Amount instance based on the provided value and the wrapped Token.
|
|
46
|
+
*/
|
|
47
|
+
newAmountOf(value: BigNumber | Decimal | string | undefined): Amount;
|
|
48
|
+
isEqualTo(t2: Token | TokenWrapper): boolean;
|
|
49
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenWrapper = void 0;
|
|
4
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
|
+
const token_pb_1 = require("./token_pb");
|
|
6
|
+
const amount_1 = require("./amount");
|
|
7
|
+
const ledger_pb_1 = require("./ledger_pb");
|
|
8
|
+
/**
|
|
9
|
+
* Class representing a wrapper around a Token.
|
|
10
|
+
*
|
|
11
|
+
* The TokenWrapper class provides convenience methods to manipulate and retrieve the
|
|
12
|
+
* Token instance it wraps, along with its associated properties.
|
|
13
|
+
*/
|
|
14
|
+
class TokenWrapper {
|
|
15
|
+
/**
|
|
16
|
+
* Constructs an instance of the TokenWrapper class.
|
|
17
|
+
*
|
|
18
|
+
* This constructor initializes the TokenWrapper with a given Token.
|
|
19
|
+
* The token argument is set to option (i.e. could be undefined) as objects
|
|
20
|
+
* returned by protobuf types are typically optionally undefined.
|
|
21
|
+
*
|
|
22
|
+
* @param {Token} [token] - The token to be wrapped. Must be defined.
|
|
23
|
+
*/
|
|
24
|
+
constructor(token) {
|
|
25
|
+
this._token = (0, protobuf_1.create)(token_pb_1.TokenSchema, {
|
|
26
|
+
code: token?.code ?? "",
|
|
27
|
+
issuer: token?.issuer ?? "",
|
|
28
|
+
ledger: token?.ledger ?? ledger_pb_1.Ledger.UNSPECIFIED,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
get code() {
|
|
32
|
+
return this._token.code;
|
|
33
|
+
}
|
|
34
|
+
getCode() {
|
|
35
|
+
return this.code;
|
|
36
|
+
}
|
|
37
|
+
get issuer() {
|
|
38
|
+
return this._token.issuer;
|
|
39
|
+
}
|
|
40
|
+
getIssuer() {
|
|
41
|
+
return this.issuer;
|
|
42
|
+
}
|
|
43
|
+
get ledger() {
|
|
44
|
+
return this._token.ledger;
|
|
45
|
+
}
|
|
46
|
+
getLedger() {
|
|
47
|
+
return this.ledger;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the wrapped Token.
|
|
51
|
+
*
|
|
52
|
+
* This getter provides access to the Token instance that is wrapped by this class.
|
|
53
|
+
*
|
|
54
|
+
* @returns {Token} The wrapped Token.
|
|
55
|
+
*/
|
|
56
|
+
get token() {
|
|
57
|
+
return this._token;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates a new Amount instance based on the given value.
|
|
61
|
+
*
|
|
62
|
+
* This method accepts a value of type BigNumber or Decimal and returns a new Amount
|
|
63
|
+
* instance created from this value, associated with the wrapped Token.
|
|
64
|
+
*
|
|
65
|
+
* @param {BigNumber | Decimal | string | undefined} value - The amount in BigNumber, num.Decimal or string format.
|
|
66
|
+
*
|
|
67
|
+
* @returns {Amount} A new Amount instance based on the provided value and the wrapped Token.
|
|
68
|
+
*/
|
|
69
|
+
newAmountOf(value) {
|
|
70
|
+
return (0, amount_1.newAmountOfToken)(value, this._token);
|
|
71
|
+
}
|
|
72
|
+
isEqualTo(t2) {
|
|
73
|
+
let otherCode;
|
|
74
|
+
let otherIssuer;
|
|
75
|
+
let otherLedger;
|
|
76
|
+
if (t2 instanceof TokenWrapper) {
|
|
77
|
+
otherCode = t2.getCode();
|
|
78
|
+
otherIssuer = t2.getIssuer();
|
|
79
|
+
otherLedger = t2.getLedger();
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
// t2 is a Token (plain object)
|
|
83
|
+
otherCode = t2.code;
|
|
84
|
+
otherIssuer = t2.issuer;
|
|
85
|
+
otherLedger = t2.ledger;
|
|
86
|
+
}
|
|
87
|
+
return (this.code === otherCode &&
|
|
88
|
+
this.issuer === otherIssuer &&
|
|
89
|
+
this.ledger === otherLedger);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.TokenWrapper = TokenWrapper;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Ledger } from "./ledger_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file meshtrade/type/v1/token.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_meshtrade_type_v1_token: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* Token is Mesh's canonical model for uniquely and unambiguously identifying any
|
|
11
|
+
* digital asset across any supported ledger. It provides a powerful abstraction
|
|
12
|
+
* layer that resolves the complexities of multi-chain/ledger asset representation.
|
|
13
|
+
* This allows any part of the Mesh system to work with a single, universal
|
|
14
|
+
* concept of a token, regardless of the underlying ledger's specific
|
|
15
|
+
* implementation.
|
|
16
|
+
*
|
|
17
|
+
* @generated from message meshtrade.type.v1.Token
|
|
18
|
+
*/
|
|
19
|
+
export type Token = Message<"meshtrade.type.v1.Token"> & {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* The commonly accepted symbol, ticker, or code for the token (e.g., "BTC", "ETH", "USDC").
|
|
23
|
+
* It is not unique without the `issuer` and `ledger`.
|
|
24
|
+
* Required field.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string code = 1;
|
|
27
|
+
*/
|
|
28
|
+
code: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* Issuer is a reference to issuing entity of the token.
|
|
32
|
+
* For NATIVE assets on a ledger (e.g., ETH on Ethereum), the issuer is the ledger itself,
|
|
33
|
+
* represented by the reserved string __LEDGER__.
|
|
34
|
+
* For ALL other issued assets (e.g., ERC-20 tokens), this is the unique identifier of the issuing entity,
|
|
35
|
+
* such as a smart contract address on Ethereum or an issuance account public key on Stellar.
|
|
36
|
+
* Required field.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: string issuer = 2;
|
|
39
|
+
*/
|
|
40
|
+
issuer: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* The ledger ledger on which the token exists. This field disambiguates
|
|
44
|
+
* assets that may share a code and issuer across different chains
|
|
45
|
+
* (e.g., USDC on Ethereum vs. USDC on Polygon).
|
|
46
|
+
* Required field.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: meshtrade.type.v1.Ledger ledger = 3;
|
|
49
|
+
*/
|
|
50
|
+
ledger: Ledger;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message meshtrade.type.v1.Token.
|
|
54
|
+
* Use `create(TokenSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export declare const TokenSchema: GenMessage<Token>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/type/v1/token.proto (package meshtrade.type.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TokenSchema = exports.file_meshtrade_type_v1_token = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const ledger_pb_1 = require("./ledger_pb");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file meshtrade/type/v1/token.proto.
|
|
11
|
+
*/
|
|
12
|
+
exports.file_meshtrade_type_v1_token = (0, codegenv2_1.fileDesc)("Ch1tZXNodHJhZGUvdHlwZS92MS90b2tlbi5wcm90bxIRbWVzaHRyYWRlLnR5cGUudjEiUAoFVG9rZW4SDAoEY29kZRgBIAEoCRIOCgZpc3N1ZXIYAiABKAkSKQoGbGVkZ2VyGAMgASgOMhkubWVzaHRyYWRlLnR5cGUudjEuTGVkZ2VyQkcKGGNvLm1lc2h0cmFkZS5hcGkudHlwZS52MVorZ2l0aHViLmNvbS9tZXNodHJhZGUvYXBpL2dvL3R5cGUvdjE7dHlwZV92MWIGcHJvdG8z", [ledger_pb_1.file_meshtrade_type_v1_ledger]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message meshtrade.type.v1.Token.
|
|
15
|
+
* Use `create(TokenSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
exports.TokenSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_type_v1_token, 0);
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { InstrumentType } from "../../../studio/instrument/v1/instrument_type_pb";
|
|
4
|
+
import type { Unit } from "../../../studio/instrument/v1/unit_pb";
|
|
5
|
+
import type { Amount } from "../../../type/v1/amount_pb";
|
|
6
|
+
import type { Ledger } from "../../../type/v1/ledger_pb";
|
|
7
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file meshtrade/wallet/account/v1/account.proto.
|
|
10
|
+
*/
|
|
11
|
+
export declare const file_meshtrade_wallet_account_v1_account: GenFile;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* Account resource for holding and managing financial instruments on ledgers.
|
|
15
|
+
*
|
|
16
|
+
* Accounts provide the foundational wallet infrastructure for the Mesh platform, enabling
|
|
17
|
+
* secure storage and management of digital assets across multiple ledgers.
|
|
18
|
+
* Each account is tied to a specific ledger (Stellar, Solana, Bitcoin, Ethereum etc.) and
|
|
19
|
+
* can hold multiple instrument balances within that network's ecosystem.
|
|
20
|
+
*
|
|
21
|
+
* @generated from message meshtrade.wallet.account.v1.Account
|
|
22
|
+
*/
|
|
23
|
+
export type Account = Message<"meshtrade.wallet.account.v1.Account"> & {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* The unique resource name for the account.
|
|
27
|
+
* Format: accounts/{ULIDv2}.
|
|
28
|
+
* This field is system-generated and immutable upon creation.
|
|
29
|
+
* Any value provided on creation is ignored.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string name = 1;
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* The resource name of the parent group that owns this account.
|
|
37
|
+
* This field is required on creation and establishes the direct ownership link.
|
|
38
|
+
* Format: groups/{ULIDv2}.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string owner = 2;
|
|
41
|
+
*/
|
|
42
|
+
owner: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* The Unique Mesh Account Number for simplified account identification.
|
|
46
|
+
* Format: 7-digit number starting with 1 (e.g., 1234567).
|
|
47
|
+
* This field is system-generated and immutable.
|
|
48
|
+
* Any value provided on creation is ignored.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string number = 5;
|
|
51
|
+
*/
|
|
52
|
+
number: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* The account's ledger address on the specified ledger.
|
|
56
|
+
* Format varies by ledger e.g. Ed25519 public key for Stellar/Solana,
|
|
57
|
+
* secp256k1 address for Bitcoin/Ethereum.
|
|
58
|
+
* This field is system-generated and immutable.
|
|
59
|
+
* Any value provided on creation is ignored.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: string ledger_id = 6;
|
|
62
|
+
*/
|
|
63
|
+
ledgerId: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* The ledger on which the account exists (e.g., Stellar, Solana, Bitcoin, Ethereum, etc.).
|
|
67
|
+
* This field is required on creation to specify the target ledger for the account.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: meshtrade.type.v1.Ledger ledger = 7;
|
|
70
|
+
*/
|
|
71
|
+
ledger: Ledger;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* Human-readable name for organizational identification and display.
|
|
75
|
+
* User-configurable and non-unique across the system.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: string display_name = 8;
|
|
78
|
+
*/
|
|
79
|
+
displayName: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* Timestamp of the last live ledger data synchronization.
|
|
83
|
+
* Only populated when accounts are retrieved with populate_ledger_data=true.
|
|
84
|
+
* This timestamp indicates when balances and state were last fetched from the ledger.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: google.protobuf.Timestamp live_data_retrieved_at = 9;
|
|
87
|
+
*/
|
|
88
|
+
liveDataRetrievedAt?: Timestamp;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* Current operational state of the account on the ledger.
|
|
92
|
+
* Reflects whether the account is active and able to transact.
|
|
93
|
+
* NOTE: This is read only live ledger data that is only populated when retrieved with populate_ledger_data=true.
|
|
94
|
+
*
|
|
95
|
+
* @generated from field: meshtrade.wallet.account.v1.AccountState state = 10;
|
|
96
|
+
*/
|
|
97
|
+
state: AccountState;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* Current instrument balances held in this account.
|
|
101
|
+
* Each balance represents a specific financial instrument and its quantity.
|
|
102
|
+
* NOTE: This is read only live ledger data that is only populated when retrieved with populate_ledger_data=true.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: repeated meshtrade.wallet.account.v1.Balance balances = 11;
|
|
105
|
+
*/
|
|
106
|
+
balances: Balance[];
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* Current signatories authorized to sign transactions on this account.
|
|
110
|
+
* One or more of these signatories need to sign to authorize operations on the account.
|
|
111
|
+
* Implementation is dependent on the underlying ledger.
|
|
112
|
+
* NOTE: This is read only live ledger data that is only populated when retrieved with populate_ledger_data=true.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: repeated meshtrade.wallet.account.v1.Signatory signatories = 12;
|
|
115
|
+
*/
|
|
116
|
+
signatories: Signatory[];
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Describes the message meshtrade.wallet.account.v1.Account.
|
|
120
|
+
* Use `create(AccountSchema)` to create a new message.
|
|
121
|
+
*/
|
|
122
|
+
export declare const AccountSchema: GenMessage<Account>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* Metadata describing financial instruments held in account balances.
|
|
126
|
+
*
|
|
127
|
+
* Provides descriptive, non-quantifiable information about instruments to enable
|
|
128
|
+
* proper identification and categorization of holdings within an account.
|
|
129
|
+
*
|
|
130
|
+
* @generated from message meshtrade.wallet.account.v1.InstrumentMetaData
|
|
131
|
+
*/
|
|
132
|
+
export type InstrumentMetaData = Message<"meshtrade.wallet.account.v1.InstrumentMetaData"> & {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* The official or commonly recognized name of the instrument.
|
|
136
|
+
* Examples: "Apple Inc.", "Bitcoin", "US Dollar".
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: string name = 1;
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* Classification category of the financial instrument.
|
|
144
|
+
* Determines the instrument's fundamental nature and trading characteristics.
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: meshtrade.studio.instrument.v1.InstrumentType type = 2;
|
|
147
|
+
*/
|
|
148
|
+
type: InstrumentType;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* Standard unit of measurement for quantifying the instrument.
|
|
152
|
+
* Examples: SHARE for equities, OUNCE for precious metals, NOTE for bonds.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: meshtrade.studio.instrument.v1.Unit unit = 3;
|
|
155
|
+
*/
|
|
156
|
+
unit: Unit;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Describes the message meshtrade.wallet.account.v1.InstrumentMetaData.
|
|
160
|
+
* Use `create(InstrumentMetaDataSchema)` to create a new message.
|
|
161
|
+
*/
|
|
162
|
+
export declare const InstrumentMetaDataSchema: GenMessage<InstrumentMetaData>;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* Balance entry representing holdings of a specific financial instrument.
|
|
166
|
+
*
|
|
167
|
+
* Combines quantity information with instrument metadata to provide a complete
|
|
168
|
+
* view of each position held within an account.
|
|
169
|
+
*
|
|
170
|
+
* @generated from message meshtrade.wallet.account.v1.Balance
|
|
171
|
+
*/
|
|
172
|
+
export type Balance = Message<"meshtrade.wallet.account.v1.Balance"> & {
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* Quantity of the instrument held, expressed as a high-precision decimal amount.
|
|
176
|
+
* Includes both available and locked funds (e.g., in open orders or other obligations).
|
|
177
|
+
* The amount's token field indicates the instrument's ledger representation.
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: meshtrade.type.v1.Amount amount = 1;
|
|
180
|
+
*/
|
|
181
|
+
amount?: Amount;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* Descriptive metadata identifying and classifying the instrument.
|
|
185
|
+
* Provides context for interpreting the balance quantity.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: meshtrade.wallet.account.v1.InstrumentMetaData instrument_metadata = 2;
|
|
188
|
+
*/
|
|
189
|
+
instrumentMetadata?: InstrumentMetaData;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Describes the message meshtrade.wallet.account.v1.Balance.
|
|
193
|
+
* Use `create(BalanceSchema)` to create a new message.
|
|
194
|
+
*/
|
|
195
|
+
export declare const BalanceSchema: GenMessage<Balance>;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* Signatory authorized to sign transactions on an account.
|
|
199
|
+
*
|
|
200
|
+
* Represents an entity with signing authority for account operations.
|
|
201
|
+
* The underlying implementation and signing mechanism is ledger-dependent.
|
|
202
|
+
*
|
|
203
|
+
* @generated from message meshtrade.wallet.account.v1.Signatory
|
|
204
|
+
*/
|
|
205
|
+
export type Signatory = Message<"meshtrade.wallet.account.v1.Signatory"> & {
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* Human-readable display name identifying the signatory.
|
|
209
|
+
* Used for UI presentation and identification purposes.
|
|
210
|
+
*
|
|
211
|
+
* @generated from field: string display_name = 1;
|
|
212
|
+
*/
|
|
213
|
+
displayName: string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* The id of the signatory on the underlying ledger.
|
|
217
|
+
* Format varies by ledger e.g. Ed25519 public key for Stellar/Solana,
|
|
218
|
+
* secp256k1 address for Bitcoin/Ethereum.
|
|
219
|
+
*
|
|
220
|
+
* @generated from field: string ledger_id = 2;
|
|
221
|
+
*/
|
|
222
|
+
ledgerId: string;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Describes the message meshtrade.wallet.account.v1.Signatory.
|
|
226
|
+
* Use `create(SignatorySchema)` to create a new message.
|
|
227
|
+
*/
|
|
228
|
+
export declare const SignatorySchema: GenMessage<Signatory>;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* Operational state of an account on the ledger.
|
|
232
|
+
*
|
|
233
|
+
* @generated from enum meshtrade.wallet.account.v1.AccountState
|
|
234
|
+
*/
|
|
235
|
+
export declare enum AccountState {
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* Unknown or unspecified state.
|
|
239
|
+
* Default value to prevent accidental assignment - should not be used in practice.
|
|
240
|
+
*
|
|
241
|
+
* @generated from enum value: ACCOUNT_STATE_UNSPECIFIED = 0;
|
|
242
|
+
*/
|
|
243
|
+
UNSPECIFIED = 0,
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* Account is closed and cannot perform transactions.
|
|
247
|
+
* Closed accounts may still be queried for historical purposes.
|
|
248
|
+
*
|
|
249
|
+
* @generated from enum value: ACCOUNT_STATE_CLOSED = 1;
|
|
250
|
+
*/
|
|
251
|
+
CLOSED = 1,
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* Account is open and active for trading operations.
|
|
255
|
+
* Open accounts can receive deposits and execute transactions.
|
|
256
|
+
*
|
|
257
|
+
* @generated from enum value: ACCOUNT_STATE_OPEN = 2;
|
|
258
|
+
*/
|
|
259
|
+
OPEN = 2
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Describes the enum meshtrade.wallet.account.v1.AccountState.
|
|
263
|
+
*/
|
|
264
|
+
export declare const AccountStateSchema: GenEnum<AccountState>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/wallet/account/v1/account.proto (package meshtrade.wallet.account.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AccountStateSchema = exports.AccountState = exports.SignatorySchema = exports.BalanceSchema = exports.InstrumentMetaDataSchema = exports.AccountSchema = exports.file_meshtrade_wallet_account_v1_account = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
10
|
+
const instrument_type_pb_1 = require("../../../studio/instrument/v1/instrument_type_pb");
|
|
11
|
+
const unit_pb_1 = require("../../../studio/instrument/v1/unit_pb");
|
|
12
|
+
const amount_pb_1 = require("../../../type/v1/amount_pb");
|
|
13
|
+
const ledger_pb_1 = require("../../../type/v1/ledger_pb");
|
|
14
|
+
/**
|
|
15
|
+
* Describes the file meshtrade/wallet/account/v1/account.proto.
|
|
16
|
+
*/
|
|
17
|
+
exports.file_meshtrade_wallet_account_v1_account = (0, codegenv2_1.fileDesc)("CiltZXNodHJhZGUvd2FsbGV0L2FjY291bnQvdjEvYWNjb3VudC5wcm90bxIbbWVzaHRyYWRlLndhbGxldC5hY2NvdW50LnYxIqAGCgdBY2NvdW50EroBCgRuYW1lGAEgASgJQqsBukinAboBowEKFG5hbWUuZm9ybWF0Lm9wdGlvbmFsEjVuYW1lIG11c3QgYmUgZW1wdHkgb3IgaW4gdGhlIGZvcm1hdCBhY2NvdW50cy97VUxJRHYyfRpUc2l6ZSh0aGlzKSA9PSAwIHx8IHRoaXMubWF0Y2hlcygnXmFjY291bnRzL1swMTIzNDU2Nzg5QUJDREVGR0hKS01OUFFSU1RWV1hZWl17MjZ9JCcpEksKBW93bmVyGAIgASgJQjy6SDnIAQFyNDIvXmdyb3Vwcy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSSYASESowEKBm51bWJlchgFIAEoCUKSAbpIjgG6AYoBChZudW1iZXIuZm9ybWF0Lm9wdGlvbmFsEkBudW1iZXIgbXVzdCBiZSBlbXB0eSBvciBhIDctZGlnaXQgYWNjb3VudCBudW1iZXIgc3RhcnRpbmcgd2l0aCAxGi5zaXplKHRoaXMpID09IDAgfHwgdGhpcy5tYXRjaGVzKCdeMVswLTldezZ9JCcpEhsKCWxlZGdlcl9pZBgGIAEoCUIIukgFcgMY/wESOAoGbGVkZ2VyGAcgASgOMhkubWVzaHRyYWRlLnR5cGUudjEuTGVkZ2VyQg26SArIAQGCAQQQASAAEiMKDGRpc3BsYXlfbmFtZRgIIAEoCUINukgKyAEBcgUQARj/ARI6ChZsaXZlX2RhdGFfcmV0cmlldmVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI4CgVzdGF0ZRgKIAEoDjIpLm1lc2h0cmFkZS53YWxsZXQuYWNjb3VudC52MS5BY2NvdW50U3RhdGUSNgoIYmFsYW5jZXMYCyADKAsyJC5tZXNodHJhZGUud2FsbGV0LmFjY291bnQudjEuQmFsYW5jZRI7CgtzaWduYXRvcmllcxgMIAMoCzImLm1lc2h0cmFkZS53YWxsZXQuYWNjb3VudC52MS5TaWduYXRvcnkilAEKEkluc3RydW1lbnRNZXRhRGF0YRIMCgRuYW1lGAEgASgJEjwKBHR5cGUYAiABKA4yLi5tZXNodHJhZGUuc3R1ZGlvLmluc3RydW1lbnQudjEuSW5zdHJ1bWVudFR5cGUSMgoEdW5pdBgDIAEoDjIkLm1lc2h0cmFkZS5zdHVkaW8uaW5zdHJ1bWVudC52MS5Vbml0IoIBCgdCYWxhbmNlEikKBmFtb3VudBgBIAEoCzIZLm1lc2h0cmFkZS50eXBlLnYxLkFtb3VudBJMChNpbnN0cnVtZW50X21ldGFkYXRhGAIgASgLMi8ubWVzaHRyYWRlLndhbGxldC5hY2NvdW50LnYxLkluc3RydW1lbnRNZXRhRGF0YSI+CglTaWduYXRvcnkSFAoMZGlzcGxheV9uYW1lGAEgASgJEhsKCWxlZGdlcl9pZBgCIAEoCUIIukgFcgMY/wEqXwoMQWNjb3VudFN0YXRlEh0KGUFDQ09VTlRfU1RBVEVfVU5TUEVDSUZJRUQQABIYChRBQ0NPVU5UX1NUQVRFX0NMT1NFRBABEhYKEkFDQ09VTlRfU1RBVEVfT1BFThACQl4KImNvLm1lc2h0cmFkZS5hcGkud2FsbGV0LmFjY291bnQudjFaOGdpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby93YWxsZXQvYWNjb3VudC92MTthY2NvdW50X3YxYgZwcm90bzM", [validate_pb_1.file_buf_validate_validate, wkt_1.file_google_protobuf_timestamp, instrument_type_pb_1.file_meshtrade_studio_instrument_v1_instrument_type, unit_pb_1.file_meshtrade_studio_instrument_v1_unit, amount_pb_1.file_meshtrade_type_v1_amount, ledger_pb_1.file_meshtrade_type_v1_ledger]);
|
|
18
|
+
/**
|
|
19
|
+
* Describes the message meshtrade.wallet.account.v1.Account.
|
|
20
|
+
* Use `create(AccountSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
exports.AccountSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_wallet_account_v1_account, 0);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message meshtrade.wallet.account.v1.InstrumentMetaData.
|
|
25
|
+
* Use `create(InstrumentMetaDataSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.InstrumentMetaDataSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_wallet_account_v1_account, 1);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message meshtrade.wallet.account.v1.Balance.
|
|
30
|
+
* Use `create(BalanceSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
exports.BalanceSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_wallet_account_v1_account, 2);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message meshtrade.wallet.account.v1.Signatory.
|
|
35
|
+
* Use `create(SignatorySchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
exports.SignatorySchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_wallet_account_v1_account, 3);
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Operational state of an account on the ledger.
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum meshtrade.wallet.account.v1.AccountState
|
|
43
|
+
*/
|
|
44
|
+
var AccountState;
|
|
45
|
+
(function (AccountState) {
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* Unknown or unspecified state.
|
|
49
|
+
* Default value to prevent accidental assignment - should not be used in practice.
|
|
50
|
+
*
|
|
51
|
+
* @generated from enum value: ACCOUNT_STATE_UNSPECIFIED = 0;
|
|
52
|
+
*/
|
|
53
|
+
AccountState[AccountState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* Account is closed and cannot perform transactions.
|
|
57
|
+
* Closed accounts may still be queried for historical purposes.
|
|
58
|
+
*
|
|
59
|
+
* @generated from enum value: ACCOUNT_STATE_CLOSED = 1;
|
|
60
|
+
*/
|
|
61
|
+
AccountState[AccountState["CLOSED"] = 1] = "CLOSED";
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* Account is open and active for trading operations.
|
|
65
|
+
* Open accounts can receive deposits and execute transactions.
|
|
66
|
+
*
|
|
67
|
+
* @generated from enum value: ACCOUNT_STATE_OPEN = 2;
|
|
68
|
+
*/
|
|
69
|
+
AccountState[AccountState["OPEN"] = 2] = "OPEN";
|
|
70
|
+
})(AccountState || (exports.AccountState = AccountState = {}));
|
|
71
|
+
/**
|
|
72
|
+
* Describes the enum meshtrade.wallet.account.v1.AccountState.
|
|
73
|
+
*/
|
|
74
|
+
exports.AccountStateSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_wallet_account_v1_account, 0);
|