@fairmint/open-captable-protocol-daml-js 0.2.143 → 0.2.146

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.
Files changed (174) hide show
  1. package/OpenCapTable-v34/.daml/dist/OpenCapTable-v34-0.0.1.dar +0 -0
  2. package/generated/ocp-factory-contract-id.json +4 -8
  3. package/lib/CantonPayments/Airdrop/Airdrop/module.js +2 -2
  4. package/lib/CantonPayments/Airdrop/AirdropFactory/module.js +2 -2
  5. package/lib/CantonPayments/Airdrop/PersonalAirdrop/module.js +2 -2
  6. package/lib/CantonPayments/Airdrop/SimpleAirdrop/module.js +2 -2
  7. package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +4 -4
  8. package/lib/CantonPayments/PaymentStream/PartyMigrationProposal/module.js +2 -2
  9. package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +2 -2
  10. package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +2 -2
  11. package/lib/DA/Internal/index.d.ts +1 -1
  12. package/lib/DA/index.d.ts +3 -1
  13. package/lib/DA/index.js +4 -0
  14. package/lib/Fairmint/OpenCapTable/CapTable/module.d.ts +1 -1
  15. package/lib/Fairmint/OpenCapTable/CapTable/module.js +3 -3
  16. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
  17. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +3 -3
  18. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.d.ts +1 -1
  19. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +3 -3
  20. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.d.ts +1 -1
  21. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +3 -3
  22. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.d.ts +1 -1
  23. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +3 -3
  24. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.d.ts +1 -1
  25. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +3 -3
  26. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.d.ts +1 -1
  27. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +3 -3
  28. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.d.ts +1 -1
  29. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +3 -3
  30. package/lib/Fairmint/OpenCapTable/OCF/Document/module.d.ts +1 -1
  31. package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +3 -3
  32. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.d.ts +1 -1
  33. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +3 -3
  34. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.d.ts +1 -1
  35. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +3 -3
  36. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.d.ts +1 -1
  37. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +3 -3
  38. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.d.ts +1 -1
  39. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +3 -3
  40. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.d.ts +1 -1
  41. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +3 -3
  42. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.d.ts +1 -1
  43. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +3 -3
  44. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.d.ts +1 -1
  45. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +3 -3
  46. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.d.ts +1 -1
  47. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +3 -3
  48. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.d.ts +1 -1
  49. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +3 -3
  50. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.d.ts +1 -1
  51. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +3 -3
  52. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.d.ts +1 -1
  53. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +3 -3
  54. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.d.ts +1 -1
  55. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +3 -3
  56. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.d.ts +1 -1
  57. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +3 -3
  58. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.d.ts +1 -1
  59. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +3 -3
  60. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.d.ts +1 -1
  61. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +3 -3
  62. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.d.ts +1 -1
  63. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +3 -3
  64. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.d.ts +1 -1
  65. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +3 -3
  66. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.d.ts +1 -1
  67. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +3 -3
  68. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.d.ts +1 -1
  69. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +3 -3
  70. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.d.ts +1 -1
  71. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +3 -3
  72. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.d.ts +1 -1
  73. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +3 -3
  74. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.d.ts +1 -1
  75. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +3 -3
  76. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.d.ts +1 -1
  77. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +3 -3
  78. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.d.ts +1 -1
  79. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +3 -3
  80. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.d.ts +1 -1
  81. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +3 -3
  82. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.d.ts +1 -1
  83. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +3 -3
  84. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.d.ts +1 -1
  85. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +3 -3
  86. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.d.ts +1 -1
  87. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +3 -3
  88. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.d.ts +1 -1
  89. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +3 -3
  90. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.d.ts +1 -1
  91. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +3 -3
  92. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.d.ts +1 -1
  93. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +3 -3
  94. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.d.ts +1 -1
  95. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +3 -3
  96. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.d.ts +1 -1
  97. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +3 -3
  98. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.d.ts +1 -1
  99. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +3 -3
  100. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.d.ts +1 -1
  101. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +3 -3
  102. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.d.ts +1 -1
  103. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +3 -3
  104. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.d.ts +1 -1
  105. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +3 -3
  106. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.d.ts +1 -1
  107. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +3 -3
  108. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.d.ts +1 -1
  109. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +3 -3
  110. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.d.ts +1 -1
  111. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +3 -3
  112. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.d.ts +1 -1
  113. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +3 -3
  114. package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
  115. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +3 -3
  116. package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +2 -2
  117. package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +2 -2
  118. package/lib/Nft/Api/V1/Nft/module.d.ts +20 -0
  119. package/lib/Nft/Api/V1/Nft/module.js +31 -0
  120. package/lib/Nft/Api/V1/Types/module.d.ts +179 -0
  121. package/lib/Nft/Api/V1/Types/module.js +218 -0
  122. package/lib/{DA/Set → Nft/Api/V1}/index.d.ts +2 -0
  123. package/lib/{DA/Set → Nft/Api/V1}/index.js +2 -0
  124. package/lib/Nft/Api/index.d.ts +2 -0
  125. package/lib/Nft/Api/index.js +9 -0
  126. package/lib/Nft/Reference/V1/NftAsset/module.d.ts +105 -0
  127. package/lib/Nft/Reference/V1/NftAsset/module.js +183 -0
  128. package/lib/Nft/Reference/V1/NftRegistry/module.d.ts +97 -0
  129. package/lib/Nft/Reference/V1/NftRegistry/module.js +150 -0
  130. package/lib/Nft/Reference/V1/ReceiveAuthorization/module.d.ts +41 -0
  131. package/lib/Nft/Reference/V1/ReceiveAuthorization/module.js +68 -0
  132. package/lib/Nft/Reference/V1/index.d.ts +6 -0
  133. package/lib/Nft/Reference/V1/index.js +13 -0
  134. package/lib/Nft/Reference/index.d.ts +2 -0
  135. package/lib/Nft/Reference/index.js +9 -0
  136. package/lib/Nft/index.d.ts +2 -0
  137. package/lib/Nft/index.js +6 -0
  138. package/lib/Splice/Api/index.d.ts +1 -1
  139. package/lib/Splice/index.d.ts +16 -30
  140. package/lib/Splice/index.js +2 -0
  141. package/lib/index.d.ts +2 -1
  142. package/lib/index.js +2 -0
  143. package/package.json +34 -30
  144. package/types/ocp-factory-contract-id-json.d.ts +12 -0
  145. package/types/paymentStreams-factory-contract-id-json.d.ts +24 -0
  146. package/types/reports-factory-contract-id-json.d.ts +12 -0
  147. package/OpenCapTable-v33/.daml/dist/OpenCapTable-v33-0.0.1.dar +0 -0
  148. package/generated/ocp-factory-contract-id.json.d.ts +0 -11
  149. package/generated/paymentStreams-factory-contract-id.json.d.ts +0 -23
  150. package/generated/reports-factory-contract-id.json.d.ts +0 -11
  151. package/lib/DA/Set/Types/module.d.ts +0 -15
  152. package/lib/DA/Set/Types/module.js +0 -23
  153. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +0 -147
  154. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +0 -215
  155. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +0 -151
  156. package/lib/Splice/Api/Token/AllocationV1/module.js +0 -205
  157. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +0 -58
  158. package/lib/Splice/Api/Token/HoldingV1/module.js +0 -75
  159. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +0 -89
  160. package/lib/Splice/Api/Token/MetadataV1/module.js +0 -113
  161. package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +0 -1
  162. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +0 -8
  163. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +0 -200
  164. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +0 -294
  165. /package/lib/{DA/Set/Types → Nft/Api/V1/Nft}/index.d.ts +0 -0
  166. /package/lib/{DA/Set/Types → Nft/Api/V1/Nft}/index.js +0 -0
  167. /package/lib/{Splice/Api/Token/AllocationInstructionV1 → Nft/Api/V1/Types}/index.d.ts +0 -0
  168. /package/lib/{Splice/Api/Token/AllocationInstructionV1 → Nft/Api/V1/Types}/index.js +0 -0
  169. /package/lib/{Splice/Api/Token/AllocationV1 → Nft/Reference/V1/NftAsset}/index.d.ts +0 -0
  170. /package/lib/{Splice/Api/Token/AllocationV1 → Nft/Reference/V1/NftAsset}/index.js +0 -0
  171. /package/lib/{Splice/Api/Token/HoldingV1 → Nft/Reference/V1/NftRegistry}/index.d.ts +0 -0
  172. /package/lib/{Splice/Api/Token/HoldingV1 → Nft/Reference/V1/NftRegistry}/index.js +0 -0
  173. /package/lib/{Splice/Api/Token/MetadataV1 → Nft/Reference/V1/ReceiveAuthorization}/index.d.ts +0 -0
  174. /package/lib/{Splice/Api/Token/MetadataV1 → Nft/Reference/V1/ReceiveAuthorization}/index.js +0 -0
@@ -1,75 +0,0 @@
1
- "use strict";
2
- /* eslint-disable-next-line no-unused-vars */
3
- function __export(m) {
4
- /* eslint-disable-next-line no-prototype-builtins */
5
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
- }
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- /* eslint-disable-next-line no-unused-vars */
9
- var jtv = require('@mojotech/json-type-validation');
10
- /* eslint-disable-next-line no-unused-vars */
11
- var damlTypes = require('@daml/types');
12
-
13
- var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
14
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
15
- var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
16
-
17
- exports.Holding = damlTypes.assembleInterface(
18
- '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding',
19
- '718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b:Splice.Api.Token.HoldingV1:Holding',
20
- function () { return exports.HoldingView; },
21
- {
22
- Archive: {
23
- template: function () { return exports.Holding; },
24
- choiceName: 'Archive',
25
- argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
26
- argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
27
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
28
- resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
29
- },
30
- });
31
-
32
-
33
-
34
- exports.HoldingView = {
35
- decoder: damlTypes.lazyMemo(function () { return jtv.object({owner: damlTypes.Party.decoder, instrumentId: exports.InstrumentId.decoder, amount: damlTypes.Numeric(10).decoder, lock: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.Lock).decoder), meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
36
- encode: function (__typed__) {
37
- return {
38
- owner: damlTypes.Party.encode(__typed__.owner),
39
- instrumentId: exports.InstrumentId.encode(__typed__.instrumentId),
40
- amount: damlTypes.Numeric(10).encode(__typed__.amount),
41
- lock: damlTypes.Optional(exports.Lock).encode(__typed__.lock),
42
- meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
43
- };
44
- }
45
- ,
46
- };
47
-
48
-
49
-
50
- exports.Lock = {
51
- decoder: damlTypes.lazyMemo(function () { return jtv.object({holders: damlTypes.List(damlTypes.Party).decoder, expiresAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), expiresAfter: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), context: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
52
- encode: function (__typed__) {
53
- return {
54
- holders: damlTypes.List(damlTypes.Party).encode(__typed__.holders),
55
- expiresAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.expiresAt),
56
- expiresAfter: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.expiresAfter),
57
- context: damlTypes.Optional(damlTypes.Text).encode(__typed__.context),
58
- };
59
- }
60
- ,
61
- };
62
-
63
-
64
-
65
- exports.InstrumentId = {
66
- decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, id: damlTypes.Text.decoder, }); }),
67
- encode: function (__typed__) {
68
- return {
69
- admin: damlTypes.Party.encode(__typed__.admin),
70
- id: damlTypes.Text.encode(__typed__.id),
71
- };
72
- }
73
- ,
74
- };
75
-
@@ -1,89 +0,0 @@
1
- // Generated from Splice/Api/Token/MetadataV1.daml
2
- /* eslint-disable @typescript-eslint/camelcase */
3
- /* eslint-disable @typescript-eslint/no-namespace */
4
- /* eslint-disable @typescript-eslint/no-use-before-define */
5
- import * as jtv from '@mojotech/json-type-validation';
6
- import * as damlTypes from '@daml/types';
7
-
8
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
9
- import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
10
-
11
- export declare type AnyContract = damlTypes.Interface<'#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> & AnyContractView;
12
- export declare interface AnyContractInterface {
13
- Archive: damlTypes.Choice<AnyContract, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AnyContract, undefined>>;
14
- }
15
- export declare const AnyContract:
16
- damlTypes.InterfaceCompanion<AnyContract, undefined, '#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> &
17
- damlTypes.FromTemplate<AnyContract, unknown> &
18
- AnyContractInterface;
19
-
20
-
21
- export declare type ChoiceExecutionMetadata = {
22
- meta: Metadata;
23
- };
24
-
25
- export declare const ChoiceExecutionMetadata:
26
- damlTypes.Serializable<ChoiceExecutionMetadata> & {
27
- }
28
- ;
29
-
30
-
31
- export declare type ExtraArgs = {
32
- context: ChoiceContext;
33
- meta: Metadata;
34
- };
35
-
36
- export declare const ExtraArgs:
37
- damlTypes.Serializable<ExtraArgs> & {
38
- }
39
- ;
40
-
41
-
42
- export declare type Metadata = {
43
- values: { [key: string]: string };
44
- };
45
-
46
- export declare const Metadata:
47
- damlTypes.Serializable<Metadata> & {
48
- }
49
- ;
50
-
51
-
52
- export declare type ChoiceContext = {
53
- values: { [key: string]: AnyValue };
54
- };
55
-
56
- export declare const ChoiceContext:
57
- damlTypes.Serializable<ChoiceContext> & {
58
- }
59
- ;
60
-
61
-
62
- export declare type AnyContractView = {
63
- };
64
-
65
- export declare const AnyContractView:
66
- damlTypes.Serializable<AnyContractView> & {
67
- }
68
- ;
69
-
70
-
71
- export declare type AnyValue =
72
- | { tag: 'AV_Text'; value: string }
73
- | { tag: 'AV_Int'; value: damlTypes.Int }
74
- | { tag: 'AV_Decimal'; value: damlTypes.Numeric }
75
- | { tag: 'AV_Bool'; value: boolean }
76
- | { tag: 'AV_Date'; value: damlTypes.Date }
77
- | { tag: 'AV_Time'; value: damlTypes.Time }
78
- | { tag: 'AV_RelTime'; value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime }
79
- | { tag: 'AV_Party'; value: damlTypes.Party }
80
- | { tag: 'AV_ContractId'; value: damlTypes.ContractId<AnyContract> }
81
- | { tag: 'AV_List'; value: AnyValue[] }
82
- | { tag: 'AV_Map'; value: { [key: string]: AnyValue } }
83
- ;
84
-
85
- export declare const AnyValue:
86
- damlTypes.Serializable<AnyValue> & {
87
- }
88
- ;
89
-
@@ -1,113 +0,0 @@
1
- "use strict";
2
- /* eslint-disable-next-line no-unused-vars */
3
- function __export(m) {
4
- /* eslint-disable-next-line no-prototype-builtins */
5
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
- }
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- /* eslint-disable-next-line no-unused-vars */
9
- var jtv = require('@mojotech/json-type-validation');
10
- /* eslint-disable-next-line no-unused-vars */
11
- var damlTypes = require('@daml/types');
12
-
13
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
14
- var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
15
-
16
- exports.AnyContract = damlTypes.assembleInterface(
17
- '#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract',
18
- '4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f:Splice.Api.Token.MetadataV1:AnyContract',
19
- function () { return exports.AnyContractView; },
20
- {
21
- Archive: {
22
- template: function () { return exports.AnyContract; },
23
- choiceName: 'Archive',
24
- argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
25
- argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
26
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
27
- resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
28
- },
29
- });
30
-
31
-
32
-
33
- exports.ChoiceExecutionMetadata = {
34
- decoder: damlTypes.lazyMemo(function () { return jtv.object({meta: exports.Metadata.decoder, }); }),
35
- encode: function (__typed__) {
36
- return {
37
- meta: exports.Metadata.encode(__typed__.meta),
38
- };
39
- }
40
- ,
41
- };
42
-
43
-
44
-
45
- exports.ExtraArgs = {
46
- decoder: damlTypes.lazyMemo(function () { return jtv.object({context: exports.ChoiceContext.decoder, meta: exports.Metadata.decoder, }); }),
47
- encode: function (__typed__) {
48
- return {
49
- context: exports.ChoiceContext.encode(__typed__.context),
50
- meta: exports.Metadata.encode(__typed__.meta),
51
- };
52
- }
53
- ,
54
- };
55
-
56
-
57
-
58
- exports.Metadata = {
59
- decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(damlTypes.Text).decoder, }); }),
60
- encode: function (__typed__) {
61
- return {
62
- values: damlTypes.TextMap(damlTypes.Text).encode(__typed__.values),
63
- };
64
- }
65
- ,
66
- };
67
-
68
-
69
-
70
- exports.ChoiceContext = {
71
- decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(exports.AnyValue).decoder, }); }),
72
- encode: function (__typed__) {
73
- return {
74
- values: damlTypes.TextMap(exports.AnyValue).encode(__typed__.values),
75
- };
76
- }
77
- ,
78
- };
79
-
80
-
81
-
82
- exports.AnyContractView = {
83
- decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
84
- encode: function (__typed__) {
85
- return {
86
- };
87
- }
88
- ,
89
- };
90
-
91
-
92
-
93
- exports.AnyValue = {
94
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AV_Text'), value: damlTypes.Text.decoder, }), jtv.object({tag: jtv.constant('AV_Int'), value: damlTypes.Int.decoder, }), jtv.object({tag: jtv.constant('AV_Decimal'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('AV_Bool'), value: damlTypes.Bool.decoder, }), jtv.object({tag: jtv.constant('AV_Date'), value: damlTypes.Date.decoder, }), jtv.object({tag: jtv.constant('AV_Time'), value: damlTypes.Time.decoder, }), jtv.object({tag: jtv.constant('AV_RelTime'), value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, }), jtv.object({tag: jtv.constant('AV_Party'), value: damlTypes.Party.decoder, }), jtv.object({tag: jtv.constant('AV_ContractId'), value: damlTypes.ContractId(exports.AnyContract).decoder, }), jtv.object({tag: jtv.constant('AV_List'), value: damlTypes.List(exports.AnyValue).decoder, }), jtv.object({tag: jtv.constant('AV_Map'), value: damlTypes.TextMap(exports.AnyValue).decoder, })); }),
95
- encode: function (__typed__) {
96
- switch(__typed__.tag) {
97
- case 'AV_Text': return {tag: __typed__.tag, value: damlTypes.Text.encode(__typed__.value)};
98
- case 'AV_Int': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
99
- case 'AV_Decimal': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
100
- case 'AV_Bool': return {tag: __typed__.tag, value: damlTypes.Bool.encode(__typed__.value)};
101
- case 'AV_Date': return {tag: __typed__.tag, value: damlTypes.Date.encode(__typed__.value)};
102
- case 'AV_Time': return {tag: __typed__.tag, value: damlTypes.Time.encode(__typed__.value)};
103
- case 'AV_RelTime': return {tag: __typed__.tag, value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.value)};
104
- case 'AV_Party': return {tag: __typed__.tag, value: damlTypes.Party.encode(__typed__.value)};
105
- case 'AV_ContractId': return {tag: __typed__.tag, value: damlTypes.ContractId(exports.AnyContract).encode(__typed__.value)};
106
- case 'AV_List': return {tag: __typed__.tag, value: damlTypes.List(exports.AnyValue).encode(__typed__.value)};
107
- case 'AV_Map': return {tag: __typed__.tag, value: damlTypes.TextMap(exports.AnyValue).encode(__typed__.value)};
108
- default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AnyValue';
109
- }
110
- }
111
- ,
112
- };
113
-
@@ -1 +0,0 @@
1
- export * from './module';
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /* eslint-disable-next-line no-unused-vars */
3
- function __export(m) {
4
- /* eslint-disable-next-line no-prototype-builtins */
5
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
- }
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- __export(require('./module'));
@@ -1,200 +0,0 @@
1
- // Generated from Splice/Api/Token/TransferInstructionV1.daml
2
- /* eslint-disable @typescript-eslint/camelcase */
3
- /* eslint-disable @typescript-eslint/no-namespace */
4
- /* eslint-disable @typescript-eslint/no-use-before-define */
5
- import * as jtv from '@mojotech/json-type-validation';
6
- import * as damlTypes from '@daml/types';
7
-
8
- import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
9
- import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
10
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
11
-
12
- export declare type TransferFactory = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> & TransferFactoryView;
13
- export declare interface TransferFactoryInterface {
14
- Archive: damlTypes.Choice<TransferFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
15
- TransferFactory_Transfer: damlTypes.Choice<TransferFactory, TransferFactory_Transfer, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
16
- TransferFactory_PublicFetch: damlTypes.Choice<TransferFactory, TransferFactory_PublicFetch, TransferFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
17
- }
18
- export declare const TransferFactory:
19
- damlTypes.InterfaceCompanion<TransferFactory, undefined, '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> &
20
- damlTypes.FromTemplate<TransferFactory, unknown> &
21
- TransferFactoryInterface;
22
-
23
-
24
- export declare type TransferInstruction = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> & TransferInstructionView;
25
- export declare interface TransferInstructionInterface {
26
- Archive: damlTypes.Choice<TransferInstruction, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
27
- TransferInstruction_Accept: damlTypes.Choice<TransferInstruction, TransferInstruction_Accept, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
28
- TransferInstruction_Reject: damlTypes.Choice<TransferInstruction, TransferInstruction_Reject, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
29
- TransferInstruction_Withdraw: damlTypes.Choice<TransferInstruction, TransferInstruction_Withdraw, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
30
- TransferInstruction_Update: damlTypes.Choice<TransferInstruction, TransferInstruction_Update, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
31
- }
32
- export declare const TransferInstruction:
33
- damlTypes.InterfaceCompanion<TransferInstruction, undefined, '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> &
34
- damlTypes.FromTemplate<TransferInstruction, unknown> &
35
- TransferInstructionInterface;
36
-
37
-
38
- export declare type TransferFactoryView = {
39
- admin: damlTypes.Party;
40
- meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
41
- };
42
-
43
- export declare const TransferFactoryView:
44
- damlTypes.Serializable<TransferFactoryView> & {
45
- }
46
- ;
47
-
48
-
49
- export declare type TransferFactory_PublicFetch = {
50
- expectedAdmin: damlTypes.Party;
51
- actor: damlTypes.Party;
52
- };
53
-
54
- export declare const TransferFactory_PublicFetch:
55
- damlTypes.Serializable<TransferFactory_PublicFetch> & {
56
- }
57
- ;
58
-
59
-
60
- export declare type TransferFactory_Transfer = {
61
- expectedAdmin: damlTypes.Party;
62
- transfer: Transfer;
63
- extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
64
- };
65
-
66
- export declare const TransferFactory_Transfer:
67
- damlTypes.Serializable<TransferFactory_Transfer> & {
68
- }
69
- ;
70
-
71
-
72
- export declare type TransferInstruction_Update = {
73
- extraActors: damlTypes.Party[];
74
- extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
75
- };
76
-
77
- export declare const TransferInstruction_Update:
78
- damlTypes.Serializable<TransferInstruction_Update> & {
79
- }
80
- ;
81
-
82
-
83
- export declare type TransferInstruction_Withdraw = {
84
- extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
85
- };
86
-
87
- export declare const TransferInstruction_Withdraw:
88
- damlTypes.Serializable<TransferInstruction_Withdraw> & {
89
- }
90
- ;
91
-
92
-
93
- export declare type TransferInstruction_Reject = {
94
- extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
95
- };
96
-
97
- export declare const TransferInstruction_Reject:
98
- damlTypes.Serializable<TransferInstruction_Reject> & {
99
- }
100
- ;
101
-
102
-
103
- export declare type TransferInstruction_Accept = {
104
- extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
105
- };
106
-
107
- export declare const TransferInstruction_Accept:
108
- damlTypes.Serializable<TransferInstruction_Accept> & {
109
- }
110
- ;
111
-
112
-
113
- export declare type TransferInstructionView = {
114
- originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<TransferInstruction>>;
115
- transfer: Transfer;
116
- status: TransferInstructionStatus;
117
- meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
118
- };
119
-
120
- export declare const TransferInstructionView:
121
- damlTypes.Serializable<TransferInstructionView> & {
122
- }
123
- ;
124
-
125
-
126
- export declare type TransferInstructionStatus =
127
- | { tag: 'TransferPendingReceiverAcceptance'; value: {} }
128
- | { tag: 'TransferPendingInternalWorkflow'; value: TransferInstructionStatus.TransferPendingInternalWorkflow }
129
- ;
130
-
131
- export declare const TransferInstructionStatus:
132
- damlTypes.Serializable<TransferInstructionStatus> & {
133
- TransferPendingInternalWorkflow: damlTypes.Serializable<TransferInstructionStatus.TransferPendingInternalWorkflow>;
134
- }
135
- ;
136
-
137
-
138
- export namespace TransferInstructionStatus {
139
- type TransferPendingInternalWorkflow = {
140
- pendingActions: damlTypes.Map<damlTypes.Party, string>;
141
- };
142
- } //namespace TransferInstructionStatus
143
-
144
-
145
- export declare type TransferInstructionResult_Output =
146
- | { tag: 'TransferInstructionResult_Pending'; value: TransferInstructionResult_Output.TransferInstructionResult_Pending }
147
- | { tag: 'TransferInstructionResult_Completed'; value: TransferInstructionResult_Output.TransferInstructionResult_Completed }
148
- | { tag: 'TransferInstructionResult_Failed'; value: {} }
149
- ;
150
-
151
- export declare const TransferInstructionResult_Output:
152
- damlTypes.Serializable<TransferInstructionResult_Output> & {
153
- TransferInstructionResult_Pending: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Pending>;
154
- TransferInstructionResult_Completed: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Completed>;
155
- }
156
- ;
157
-
158
-
159
- export namespace TransferInstructionResult_Output {
160
- type TransferInstructionResult_Pending = {
161
- transferInstructionCid: damlTypes.ContractId<TransferInstruction>;
162
- };
163
- } //namespace TransferInstructionResult_Output
164
-
165
-
166
- export namespace TransferInstructionResult_Output {
167
- type TransferInstructionResult_Completed = {
168
- receiverHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
169
- };
170
- } //namespace TransferInstructionResult_Output
171
-
172
-
173
- export declare type TransferInstructionResult = {
174
- output: TransferInstructionResult_Output;
175
- senderChangeCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
176
- meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
177
- };
178
-
179
- export declare const TransferInstructionResult:
180
- damlTypes.Serializable<TransferInstructionResult> & {
181
- }
182
- ;
183
-
184
-
185
- export declare type Transfer = {
186
- sender: damlTypes.Party;
187
- receiver: damlTypes.Party;
188
- amount: damlTypes.Numeric;
189
- instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId;
190
- requestedAt: damlTypes.Time;
191
- executeBefore: damlTypes.Time;
192
- inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
193
- meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
194
- };
195
-
196
- export declare const Transfer:
197
- damlTypes.Serializable<Transfer> & {
198
- }
199
- ;
200
-