@fairmint/open-captable-protocol-daml-js 0.2.144 → 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.
- package/OpenCapTable-v34/.daml/dist/OpenCapTable-v34-0.0.1.dar +0 -0
- package/generated/ocp-factory-contract-id.json +4 -8
- package/lib/CantonPayments/Airdrop/Airdrop/module.js +2 -2
- package/lib/CantonPayments/Airdrop/AirdropFactory/module.js +2 -2
- package/lib/CantonPayments/Airdrop/PersonalAirdrop/module.js +2 -2
- package/lib/CantonPayments/Airdrop/SimpleAirdrop/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +4 -4
- package/lib/CantonPayments/PaymentStream/PartyMigrationProposal/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +2 -2
- package/lib/DA/Internal/index.d.ts +1 -1
- package/lib/DA/index.d.ts +3 -1
- package/lib/DA/index.js +4 -0
- package/lib/Fairmint/OpenCapTable/CapTable/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +2 -2
- package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +2 -2
- package/lib/Nft/Api/V1/Nft/module.d.ts +20 -0
- package/lib/Nft/Api/V1/Nft/module.js +31 -0
- package/lib/Nft/Api/V1/Types/module.d.ts +179 -0
- package/lib/Nft/Api/V1/Types/module.js +218 -0
- package/lib/{DA/Set → Nft/Api/V1}/index.d.ts +2 -0
- package/lib/{DA/Set → Nft/Api/V1}/index.js +2 -0
- package/lib/Nft/Api/index.d.ts +2 -0
- package/lib/Nft/Api/index.js +9 -0
- package/lib/Nft/Reference/V1/NftAsset/module.d.ts +105 -0
- package/lib/Nft/Reference/V1/NftAsset/module.js +183 -0
- package/lib/Nft/Reference/V1/NftRegistry/module.d.ts +97 -0
- package/lib/Nft/Reference/V1/NftRegistry/module.js +150 -0
- package/lib/Nft/Reference/V1/ReceiveAuthorization/module.d.ts +41 -0
- package/lib/Nft/Reference/V1/ReceiveAuthorization/module.js +68 -0
- package/lib/Nft/Reference/V1/index.d.ts +6 -0
- package/lib/Nft/Reference/V1/index.js +13 -0
- package/lib/Nft/Reference/index.d.ts +2 -0
- package/lib/Nft/Reference/index.js +9 -0
- package/lib/Nft/index.d.ts +2 -0
- package/lib/Nft/index.js +6 -0
- package/lib/Splice/Api/index.d.ts +1 -1
- package/lib/Splice/index.d.ts +16 -30
- package/lib/Splice/index.js +2 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -0
- package/package.json +33 -29
- package/types/ocp-factory-contract-id-json.d.ts +12 -0
- package/types/paymentStreams-factory-contract-id-json.d.ts +24 -0
- package/types/reports-factory-contract-id-json.d.ts +12 -0
- package/generated/ocp-factory-contract-id.json.d.ts +0 -11
- package/generated/paymentStreams-factory-contract-id.json.d.ts +0 -23
- package/generated/reports-factory-contract-id.json.d.ts +0 -11
- package/lib/DA/Set/Types/module.d.ts +0 -15
- package/lib/DA/Set/Types/module.js +0 -23
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +0 -147
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +0 -215
- package/lib/Splice/Api/Token/AllocationV1/module.d.ts +0 -151
- package/lib/Splice/Api/Token/AllocationV1/module.js +0 -205
- package/lib/Splice/Api/Token/HoldingV1/module.d.ts +0 -58
- package/lib/Splice/Api/Token/HoldingV1/module.js +0 -75
- package/lib/Splice/Api/Token/MetadataV1/module.d.ts +0 -89
- package/lib/Splice/Api/Token/MetadataV1/module.js +0 -113
- package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +0 -1
- package/lib/Splice/Api/Token/TransferInstructionV1/index.js +0 -8
- package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +0 -200
- package/lib/Splice/Api/Token/TransferInstructionV1/module.js +0 -294
- /package/lib/{DA/Set/Types → Nft/Api/V1/Nft}/index.d.ts +0 -0
- /package/lib/{DA/Set/Types → Nft/Api/V1/Nft}/index.js +0 -0
- /package/lib/{Splice/Api/Token/AllocationInstructionV1 → Nft/Api/V1/Types}/index.d.ts +0 -0
- /package/lib/{Splice/Api/Token/AllocationInstructionV1 → Nft/Api/V1/Types}/index.js +0 -0
- /package/lib/{Splice/Api/Token/AllocationV1 → Nft/Reference/V1/NftAsset}/index.d.ts +0 -0
- /package/lib/{Splice/Api/Token/AllocationV1 → Nft/Reference/V1/NftAsset}/index.js +0 -0
- /package/lib/{Splice/Api/Token/HoldingV1 → Nft/Reference/V1/NftRegistry}/index.d.ts +0 -0
- /package/lib/{Splice/Api/Token/HoldingV1 → Nft/Reference/V1/NftRegistry}/index.js +0 -0
- /package/lib/{Splice/Api/Token/MetadataV1 → Nft/Reference/V1/ReceiveAuthorization}/index.d.ts +0 -0
- /package/lib/{Splice/Api/Token/MetadataV1 → Nft/Reference/V1/ReceiveAuthorization}/index.js +0 -0
|
@@ -1,215 +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 pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
|
|
15
|
-
var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = require('../AllocationV1');
|
|
16
|
-
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
17
|
-
|
|
18
|
-
exports.AllocationFactory = damlTypes.assembleInterface(
|
|
19
|
-
'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
20
|
-
'275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
21
|
-
function () { return exports.AllocationFactoryView; },
|
|
22
|
-
{
|
|
23
|
-
Archive: {
|
|
24
|
-
template: function () { return exports.AllocationFactory; },
|
|
25
|
-
choiceName: 'Archive',
|
|
26
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
27
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
28
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
29
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
30
|
-
},
|
|
31
|
-
AllocationFactory_Allocate: {
|
|
32
|
-
template: function () { return exports.AllocationFactory; },
|
|
33
|
-
choiceName: 'AllocationFactory_Allocate',
|
|
34
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_Allocate.decoder; }),
|
|
35
|
-
argumentEncode: function (__typed__) { return exports.AllocationFactory_Allocate.encode(__typed__); },
|
|
36
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
37
|
-
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
38
|
-
},
|
|
39
|
-
AllocationFactory_PublicFetch: {
|
|
40
|
-
template: function () { return exports.AllocationFactory; },
|
|
41
|
-
choiceName: 'AllocationFactory_PublicFetch',
|
|
42
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_PublicFetch.decoder; }),
|
|
43
|
-
argumentEncode: function (__typed__) { return exports.AllocationFactory_PublicFetch.encode(__typed__); },
|
|
44
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactoryView.decoder; }),
|
|
45
|
-
resultEncode: function (__typed__) { return exports.AllocationFactoryView.encode(__typed__); },
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
exports.AllocationInstruction = damlTypes.assembleInterface(
|
|
51
|
-
'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
52
|
-
'275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
53
|
-
function () { return exports.AllocationInstructionView; },
|
|
54
|
-
{
|
|
55
|
-
Archive: {
|
|
56
|
-
template: function () { return exports.AllocationInstruction; },
|
|
57
|
-
choiceName: 'Archive',
|
|
58
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
59
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
60
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
61
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
62
|
-
},
|
|
63
|
-
AllocationInstruction_Withdraw: {
|
|
64
|
-
template: function () { return exports.AllocationInstruction; },
|
|
65
|
-
choiceName: 'AllocationInstruction_Withdraw',
|
|
66
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Withdraw.decoder; }),
|
|
67
|
-
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Withdraw.encode(__typed__); },
|
|
68
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
69
|
-
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
70
|
-
},
|
|
71
|
-
AllocationInstruction_Update: {
|
|
72
|
-
template: function () { return exports.AllocationInstruction; },
|
|
73
|
-
choiceName: 'AllocationInstruction_Update',
|
|
74
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Update.decoder; }),
|
|
75
|
-
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Update.encode(__typed__); },
|
|
76
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
77
|
-
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
exports.AllocationInstructionResult_Output = {
|
|
84
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AllocationInstructionResult_Pending'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Completed'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
85
|
-
encode: function (__typed__) {
|
|
86
|
-
switch(__typed__.tag) {
|
|
87
|
-
case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
|
|
88
|
-
case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
|
|
89
|
-
case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
90
|
-
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
,
|
|
94
|
-
AllocationInstructionResult_Pending:({
|
|
95
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).decoder, }); }),
|
|
96
|
-
encode: function (__typed__) {
|
|
97
|
-
return {
|
|
98
|
-
allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).encode(__typed__.allocationInstructionCid),
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
,
|
|
102
|
-
}),
|
|
103
|
-
AllocationInstructionResult_Completed:({
|
|
104
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Allocation).decoder, }); }),
|
|
105
|
-
encode: function (__typed__) {
|
|
106
|
-
return {
|
|
107
|
-
allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Allocation).encode(__typed__.allocationCid),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
,
|
|
111
|
-
}),
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
exports.AllocationInstructionResult = {
|
|
121
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.AllocationInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
122
|
-
encode: function (__typed__) {
|
|
123
|
-
return {
|
|
124
|
-
output: exports.AllocationInstructionResult_Output.encode(__typed__.output),
|
|
125
|
-
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderChangeCids),
|
|
126
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
,
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
exports.AllocationFactory_PublicFetch = {
|
|
135
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
|
|
136
|
-
encode: function (__typed__) {
|
|
137
|
-
return {
|
|
138
|
-
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
139
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
,
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
exports.AllocationFactory_Allocate = {
|
|
148
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
149
|
-
encode: function (__typed__) {
|
|
150
|
-
return {
|
|
151
|
-
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
152
|
-
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.encode(__typed__.allocation),
|
|
153
|
-
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
154
|
-
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.inputHoldingCids),
|
|
155
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
,
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
exports.AllocationFactoryView = {
|
|
164
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
165
|
-
encode: function (__typed__) {
|
|
166
|
-
return {
|
|
167
|
-
admin: damlTypes.Party.encode(__typed__.admin),
|
|
168
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
,
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
exports.AllocationInstruction_Update = {
|
|
177
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
178
|
-
encode: function (__typed__) {
|
|
179
|
-
return {
|
|
180
|
-
extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
|
|
181
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
,
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
exports.AllocationInstruction_Withdraw = {
|
|
190
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
191
|
-
encode: function (__typed__) {
|
|
192
|
-
return {
|
|
193
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
,
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
exports.AllocationInstructionView = {
|
|
202
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).decoder), allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.decoder, pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
203
|
-
encode: function (__typed__) {
|
|
204
|
-
return {
|
|
205
|
-
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).encode(__typed__.originalInstructionCid),
|
|
206
|
-
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.encode(__typed__.allocation),
|
|
207
|
-
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
208
|
-
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
209
|
-
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.inputHoldingCids),
|
|
210
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
,
|
|
214
|
-
};
|
|
215
|
-
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
// Generated from Splice/Api/Token/AllocationV1.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 Allocation = damlTypes.Interface<'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> & AllocationView;
|
|
13
|
-
export declare interface AllocationInterface {
|
|
14
|
-
Archive: damlTypes.Choice<Allocation, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
15
|
-
Allocation_Withdraw: damlTypes.Choice<Allocation, Allocation_Withdraw, Allocation_WithdrawResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
16
|
-
Allocation_Cancel: damlTypes.Choice<Allocation, Allocation_Cancel, Allocation_CancelResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
17
|
-
Allocation_ExecuteTransfer: damlTypes.Choice<Allocation, Allocation_ExecuteTransfer, Allocation_ExecuteTransferResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
18
|
-
}
|
|
19
|
-
export declare const Allocation:
|
|
20
|
-
damlTypes.InterfaceCompanion<Allocation, undefined, '#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> &
|
|
21
|
-
damlTypes.FromTemplate<Allocation, unknown> &
|
|
22
|
-
AllocationInterface;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare type Allocation_WithdrawResult = {
|
|
26
|
-
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
27
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export declare const Allocation_WithdrawResult:
|
|
31
|
-
damlTypes.Serializable<Allocation_WithdrawResult> & {
|
|
32
|
-
}
|
|
33
|
-
;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare type Allocation_CancelResult = {
|
|
37
|
-
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
38
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export declare const Allocation_CancelResult:
|
|
42
|
-
damlTypes.Serializable<Allocation_CancelResult> & {
|
|
43
|
-
}
|
|
44
|
-
;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export declare type Allocation_ExecuteTransferResult = {
|
|
48
|
-
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
49
|
-
receiverHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
50
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export declare const Allocation_ExecuteTransferResult:
|
|
54
|
-
damlTypes.Serializable<Allocation_ExecuteTransferResult> & {
|
|
55
|
-
}
|
|
56
|
-
;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export declare type Allocation_Withdraw = {
|
|
60
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export declare const Allocation_Withdraw:
|
|
64
|
-
damlTypes.Serializable<Allocation_Withdraw> & {
|
|
65
|
-
}
|
|
66
|
-
;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export declare type Allocation_Cancel = {
|
|
70
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export declare const Allocation_Cancel:
|
|
74
|
-
damlTypes.Serializable<Allocation_Cancel> & {
|
|
75
|
-
}
|
|
76
|
-
;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
export declare type Allocation_ExecuteTransfer = {
|
|
80
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export declare const Allocation_ExecuteTransfer:
|
|
84
|
-
damlTypes.Serializable<Allocation_ExecuteTransfer> & {
|
|
85
|
-
}
|
|
86
|
-
;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
export declare type AllocationView = {
|
|
90
|
-
allocation: AllocationSpecification;
|
|
91
|
-
holdingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
92
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export declare const AllocationView:
|
|
96
|
-
damlTypes.Serializable<AllocationView> & {
|
|
97
|
-
}
|
|
98
|
-
;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
export declare type AllocationSpecification = {
|
|
102
|
-
settlement: SettlementInfo;
|
|
103
|
-
transferLegId: string;
|
|
104
|
-
transferLeg: TransferLeg;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export declare const AllocationSpecification:
|
|
108
|
-
damlTypes.Serializable<AllocationSpecification> & {
|
|
109
|
-
}
|
|
110
|
-
;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
export declare type TransferLeg = {
|
|
114
|
-
sender: damlTypes.Party;
|
|
115
|
-
receiver: damlTypes.Party;
|
|
116
|
-
amount: damlTypes.Numeric;
|
|
117
|
-
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId;
|
|
118
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export declare const TransferLeg:
|
|
122
|
-
damlTypes.Serializable<TransferLeg> & {
|
|
123
|
-
}
|
|
124
|
-
;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export declare type SettlementInfo = {
|
|
128
|
-
executor: damlTypes.Party;
|
|
129
|
-
settlementRef: Reference;
|
|
130
|
-
requestedAt: damlTypes.Time;
|
|
131
|
-
allocateBefore: damlTypes.Time;
|
|
132
|
-
settleBefore: damlTypes.Time;
|
|
133
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export declare const SettlementInfo:
|
|
137
|
-
damlTypes.Serializable<SettlementInfo> & {
|
|
138
|
-
}
|
|
139
|
-
;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
export declare type Reference = {
|
|
143
|
-
id: string;
|
|
144
|
-
cid: damlTypes.Optional<damlTypes.ContractId<pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.AnyContract>>;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export declare const Reference:
|
|
148
|
-
damlTypes.Serializable<Reference> & {
|
|
149
|
-
}
|
|
150
|
-
;
|
|
151
|
-
|
|
@@ -1,205 +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 pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
|
|
15
|
-
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
16
|
-
|
|
17
|
-
exports.Allocation = damlTypes.assembleInterface(
|
|
18
|
-
'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation',
|
|
19
|
-
'93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d:Splice.Api.Token.AllocationV1:Allocation',
|
|
20
|
-
function () { return exports.AllocationView; },
|
|
21
|
-
{
|
|
22
|
-
Archive: {
|
|
23
|
-
template: function () { return exports.Allocation; },
|
|
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
|
-
Allocation_Withdraw: {
|
|
31
|
-
template: function () { return exports.Allocation; },
|
|
32
|
-
choiceName: 'Allocation_Withdraw',
|
|
33
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_Withdraw.decoder; }),
|
|
34
|
-
argumentEncode: function (__typed__) { return exports.Allocation_Withdraw.encode(__typed__); },
|
|
35
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_WithdrawResult.decoder; }),
|
|
36
|
-
resultEncode: function (__typed__) { return exports.Allocation_WithdrawResult.encode(__typed__); },
|
|
37
|
-
},
|
|
38
|
-
Allocation_Cancel: {
|
|
39
|
-
template: function () { return exports.Allocation; },
|
|
40
|
-
choiceName: 'Allocation_Cancel',
|
|
41
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_Cancel.decoder; }),
|
|
42
|
-
argumentEncode: function (__typed__) { return exports.Allocation_Cancel.encode(__typed__); },
|
|
43
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_CancelResult.decoder; }),
|
|
44
|
-
resultEncode: function (__typed__) { return exports.Allocation_CancelResult.encode(__typed__); },
|
|
45
|
-
},
|
|
46
|
-
Allocation_ExecuteTransfer: {
|
|
47
|
-
template: function () { return exports.Allocation; },
|
|
48
|
-
choiceName: 'Allocation_ExecuteTransfer',
|
|
49
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_ExecuteTransfer.decoder; }),
|
|
50
|
-
argumentEncode: function (__typed__) { return exports.Allocation_ExecuteTransfer.encode(__typed__); },
|
|
51
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_ExecuteTransferResult.decoder; }),
|
|
52
|
-
resultEncode: function (__typed__) { return exports.Allocation_ExecuteTransferResult.encode(__typed__); },
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
exports.Allocation_WithdrawResult = {
|
|
59
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
60
|
-
encode: function (__typed__) {
|
|
61
|
-
return {
|
|
62
|
-
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderHoldingCids),
|
|
63
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
,
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
exports.Allocation_CancelResult = {
|
|
72
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
73
|
-
encode: function (__typed__) {
|
|
74
|
-
return {
|
|
75
|
-
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderHoldingCids),
|
|
76
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
,
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
exports.Allocation_ExecuteTransferResult = {
|
|
85
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
86
|
-
encode: function (__typed__) {
|
|
87
|
-
return {
|
|
88
|
-
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderHoldingCids),
|
|
89
|
-
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.receiverHoldingCids),
|
|
90
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
,
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
exports.Allocation_Withdraw = {
|
|
99
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
100
|
-
encode: function (__typed__) {
|
|
101
|
-
return {
|
|
102
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
,
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
exports.Allocation_Cancel = {
|
|
111
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
112
|
-
encode: function (__typed__) {
|
|
113
|
-
return {
|
|
114
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
,
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
exports.Allocation_ExecuteTransfer = {
|
|
123
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
124
|
-
encode: function (__typed__) {
|
|
125
|
-
return {
|
|
126
|
-
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
,
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
exports.AllocationView = {
|
|
135
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocation: exports.AllocationSpecification.decoder, holdingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
136
|
-
encode: function (__typed__) {
|
|
137
|
-
return {
|
|
138
|
-
allocation: exports.AllocationSpecification.encode(__typed__.allocation),
|
|
139
|
-
holdingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.holdingCids),
|
|
140
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
,
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
exports.AllocationSpecification = {
|
|
149
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: exports.SettlementInfo.decoder, transferLegId: damlTypes.Text.decoder, transferLeg: exports.TransferLeg.decoder, }); }),
|
|
150
|
-
encode: function (__typed__) {
|
|
151
|
-
return {
|
|
152
|
-
settlement: exports.SettlementInfo.encode(__typed__.settlement),
|
|
153
|
-
transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
|
|
154
|
-
transferLeg: exports.TransferLeg.encode(__typed__.transferLeg),
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
,
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
exports.TransferLeg = {
|
|
163
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.InstrumentId.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
164
|
-
encode: function (__typed__) {
|
|
165
|
-
return {
|
|
166
|
-
sender: damlTypes.Party.encode(__typed__.sender),
|
|
167
|
-
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
168
|
-
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
169
|
-
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.InstrumentId.encode(__typed__.instrumentId),
|
|
170
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
,
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
exports.SettlementInfo = {
|
|
179
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({executor: damlTypes.Party.decoder, settlementRef: exports.Reference.decoder, requestedAt: damlTypes.Time.decoder, allocateBefore: damlTypes.Time.decoder, settleBefore: damlTypes.Time.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
180
|
-
encode: function (__typed__) {
|
|
181
|
-
return {
|
|
182
|
-
executor: damlTypes.Party.encode(__typed__.executor),
|
|
183
|
-
settlementRef: exports.Reference.encode(__typed__.settlementRef),
|
|
184
|
-
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
185
|
-
allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
|
|
186
|
-
settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
|
|
187
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
,
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
exports.Reference = {
|
|
196
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, cid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.AnyContract)).decoder), }); }),
|
|
197
|
-
encode: function (__typed__) {
|
|
198
|
-
return {
|
|
199
|
-
id: damlTypes.Text.encode(__typed__.id),
|
|
200
|
-
cid: damlTypes.Optional(damlTypes.ContractId(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.AnyContract)).encode(__typed__.cid),
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
,
|
|
204
|
-
};
|
|
205
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Generated from Splice/Api/Token/HoldingV1.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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
|
|
10
|
-
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
11
|
-
|
|
12
|
-
export declare type Holding = damlTypes.Interface<'#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> & HoldingView;
|
|
13
|
-
export declare interface HoldingInterface {
|
|
14
|
-
Archive: damlTypes.Choice<Holding, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Holding, undefined>>;
|
|
15
|
-
}
|
|
16
|
-
export declare const Holding:
|
|
17
|
-
damlTypes.InterfaceCompanion<Holding, undefined, '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> &
|
|
18
|
-
damlTypes.FromTemplate<Holding, unknown> &
|
|
19
|
-
HoldingInterface;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare type HoldingView = {
|
|
23
|
-
owner: damlTypes.Party;
|
|
24
|
-
instrumentId: InstrumentId;
|
|
25
|
-
amount: damlTypes.Numeric;
|
|
26
|
-
lock: damlTypes.Optional<Lock>;
|
|
27
|
-
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export declare const HoldingView:
|
|
31
|
-
damlTypes.Serializable<HoldingView> & {
|
|
32
|
-
}
|
|
33
|
-
;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare type Lock = {
|
|
37
|
-
holders: damlTypes.Party[];
|
|
38
|
-
expiresAt: damlTypes.Optional<damlTypes.Time>;
|
|
39
|
-
expiresAfter: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
40
|
-
context: damlTypes.Optional<string>;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export declare const Lock:
|
|
44
|
-
damlTypes.Serializable<Lock> & {
|
|
45
|
-
}
|
|
46
|
-
;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export declare type InstrumentId = {
|
|
50
|
-
admin: damlTypes.Party;
|
|
51
|
-
id: string;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export declare const InstrumentId:
|
|
55
|
-
damlTypes.Serializable<InstrumentId> & {
|
|
56
|
-
}
|
|
57
|
-
;
|
|
58
|
-
|