@canton-network/core-token-standard-service 2.1.0 → 2.2.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/index.cjs +12 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -22
- package/dist/index.js.map +1 -1
- package/dist/v2/allocation-service.d.ts.map +1 -1
- package/package.json +11 -15
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -20,7 +20,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
23
|
let _canton_network_core_token_standard = require("@canton-network/core-token-standard");
|
|
25
24
|
let _canton_network_core_ledger_client_types = require("@canton-network/core-ledger-client-types");
|
|
26
25
|
let _canton_network_core_tx_parser = require("@canton-network/core-tx-parser");
|
|
@@ -29,7 +28,7 @@ decimal_js = __toESM(decimal_js, 1);
|
|
|
29
28
|
let _canton_network_core_token_standard_v2 = require("@canton-network/core-token-standard-v2");
|
|
30
29
|
let _logtape_logtape = require("@logtape/logtape");
|
|
31
30
|
let _canton_network_core_acs_reader = require("@canton-network/core-acs-reader");
|
|
32
|
-
|
|
31
|
+
// src/types.ts
|
|
33
32
|
const REQUESTED_AT_SKEW_MS = 6e4;
|
|
34
33
|
const EMPTY_META = { values: {} };
|
|
35
34
|
const SUPPORTED_VERSIONS = ["v1", "v2"];
|
|
@@ -40,8 +39,7 @@ const KEY_MAPPING = {
|
|
|
40
39
|
"allocation-instruction": "allocationInstruction",
|
|
41
40
|
"allocation-request": "allocationRequest"
|
|
42
41
|
};
|
|
43
|
-
|
|
44
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
42
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
|
|
45
43
|
function _typeof(o) {
|
|
46
44
|
"@babel/helpers - typeof";
|
|
47
45
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -50,8 +48,7 @@ function _typeof(o) {
|
|
|
50
48
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
51
49
|
}, _typeof(o);
|
|
52
50
|
}
|
|
53
|
-
|
|
54
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
51
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
|
|
55
52
|
function toPrimitive(t, r) {
|
|
56
53
|
if ("object" != _typeof(t) || !t) return t;
|
|
57
54
|
var e = t[Symbol.toPrimitive];
|
|
@@ -62,14 +59,12 @@ function toPrimitive(t, r) {
|
|
|
62
59
|
}
|
|
63
60
|
return ("string" === r ? String : Number)(t);
|
|
64
61
|
}
|
|
65
|
-
|
|
66
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
62
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
|
|
67
63
|
function toPropertyKey(t) {
|
|
68
64
|
var i = toPrimitive(t, "string");
|
|
69
65
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
70
66
|
}
|
|
71
|
-
|
|
72
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
67
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
|
|
73
68
|
function _defineProperty(e, r, t) {
|
|
74
69
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
75
70
|
value: t,
|
|
@@ -78,8 +73,7 @@ function _defineProperty(e, r, t) {
|
|
|
78
73
|
writable: !0
|
|
79
74
|
}) : e[r] = t, e;
|
|
80
75
|
}
|
|
81
|
-
|
|
82
|
-
//#region src/v2/transfer-service.ts
|
|
76
|
+
// src/v2/transfer-service.ts
|
|
83
77
|
var TransferServiceV2 = class {
|
|
84
78
|
constructor(core) {
|
|
85
79
|
this.core = core;
|
|
@@ -189,8 +183,7 @@ var TransferServiceV2 = class {
|
|
|
189
183
|
}, ctx.disclosedContracts ?? []];
|
|
190
184
|
}
|
|
191
185
|
};
|
|
192
|
-
|
|
193
|
-
//#region src/v1/transfer-service.ts
|
|
186
|
+
// src/v1/transfer-service.ts
|
|
194
187
|
var TransferService = class {
|
|
195
188
|
constructor(core) {
|
|
196
189
|
this.core = core;
|
|
@@ -416,8 +409,7 @@ var TransferService = class {
|
|
|
416
409
|
}
|
|
417
410
|
}
|
|
418
411
|
};
|
|
419
|
-
|
|
420
|
-
//#region src/v1/allocation-service.ts
|
|
412
|
+
// src/v1/allocation-service.ts
|
|
421
413
|
var AllocationService$1 = class {
|
|
422
414
|
constructor(core) {
|
|
423
415
|
this.core = core;
|
|
@@ -570,8 +562,7 @@ var AllocationService$1 = class {
|
|
|
570
562
|
}, []];
|
|
571
563
|
}
|
|
572
564
|
};
|
|
573
|
-
|
|
574
|
-
//#region src/core-service.ts
|
|
565
|
+
// src/core-service.ts
|
|
575
566
|
var CoreService = class CoreService {
|
|
576
567
|
constructor(ledgerProvider, accessTokenProvider, isMasterUser) {
|
|
577
568
|
this.ledgerProvider = ledgerProvider;
|
|
@@ -729,8 +720,7 @@ var CoreService = class CoreService {
|
|
|
729
720
|
return /^(PAR|MED)::/.test(memberId) ? memberId : `PAR::${memberId}`;
|
|
730
721
|
}
|
|
731
722
|
};
|
|
732
|
-
|
|
733
|
-
//#region src/v2/allocation-service.ts
|
|
723
|
+
// src/v2/allocation-service.ts
|
|
734
724
|
const EMPTY_EXTRA_ARGS = () => ({
|
|
735
725
|
context: { values: {} },
|
|
736
726
|
meta: { values: {} }
|
|
@@ -893,8 +883,7 @@ var AllocationService = class AllocationService {
|
|
|
893
883
|
return [results.map(([c]) => c), [...dcs.values()]];
|
|
894
884
|
}
|
|
895
885
|
};
|
|
896
|
-
|
|
897
|
-
//#region src/token-standard-service.ts
|
|
886
|
+
// src/token-standard-service.ts
|
|
898
887
|
function isApiVersion(v) {
|
|
899
888
|
return SUPPORTED_VERSIONS.includes(v);
|
|
900
889
|
}
|
|
@@ -1149,7 +1138,6 @@ var TokenStandardService = class {
|
|
|
1149
1138
|
}
|
|
1150
1139
|
};
|
|
1151
1140
|
_defineProperty(TokenStandardService, "MEMO_KEY", "splice.lfdecentralizedtrust.org/reason");
|
|
1152
|
-
//#endregion
|
|
1153
1141
|
exports.EMPTY_META = EMPTY_META;
|
|
1154
1142
|
exports.KEY_MAPPING = KEY_MAPPING;
|
|
1155
1143
|
exports.REQUESTED_AT_SKEW_MS = REQUESTED_AT_SKEW_MS;
|