@fairmint/open-captable-protocol-daml-js 0.2.12 → 0.2.14
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 +152 -1
- package/generated/subscriptions-factory-contract-id.json +10 -0
- package/generated/subscriptions-factory-contract-id.json.d.ts +11 -0
- package/lib/DA/Date/Types/index.d.ts +1 -0
- package/lib/DA/Date/Types/index.js +8 -0
- package/lib/DA/Date/Types/module.d.ts +47 -0
- package/lib/DA/Date/Types/module.js +48 -0
- package/lib/DA/Date/index.d.ts +2 -0
- package/lib/DA/Date/index.js +9 -0
- package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
- package/lib/DA/Exception/ArithmeticError/index.js +8 -0
- package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
- package/lib/DA/Exception/ArithmeticError/module.js +25 -0
- package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
- package/lib/DA/Exception/AssertionFailed/index.js +8 -0
- package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
- package/lib/DA/Exception/AssertionFailed/module.js +25 -0
- package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
- package/lib/DA/Exception/GeneralError/index.js +8 -0
- package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
- package/lib/DA/Exception/GeneralError/module.js +25 -0
- package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
- package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
- package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
- package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
- package/lib/DA/Exception/index.d.ts +2 -0
- package/lib/DA/Exception/index.js +9 -0
- package/lib/DA/Internal/Down/index.d.ts +1 -0
- package/lib/DA/Internal/Down/index.js +8 -0
- package/lib/DA/Internal/Down/module.d.ts +17 -0
- package/lib/DA/Internal/Down/module.js +25 -0
- package/lib/DA/Logic/Types/index.d.ts +1 -0
- package/lib/DA/Logic/Types/index.js +8 -0
- package/lib/DA/Logic/Types/module.d.ts +20 -0
- package/lib/DA/Logic/Types/module.js +29 -0
- package/lib/DA/Logic/index.d.ts +2 -0
- package/lib/DA/Logic/index.js +9 -0
- package/lib/DA/Monoid/Types/index.d.ts +1 -0
- package/lib/DA/Monoid/Types/index.js +8 -0
- package/lib/DA/Monoid/Types/module.d.ts +46 -0
- package/lib/DA/Monoid/Types/module.js +61 -0
- package/lib/DA/Monoid/index.d.ts +2 -0
- package/lib/DA/Monoid/index.js +9 -0
- package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
- package/lib/DA/NonEmpty/Types/index.js +8 -0
- package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
- package/lib/DA/NonEmpty/Types/module.js +26 -0
- package/lib/DA/NonEmpty/index.d.ts +2 -0
- package/lib/DA/NonEmpty/index.js +9 -0
- package/lib/DA/Random/Types/index.d.ts +1 -0
- package/lib/DA/Random/Types/index.js +8 -0
- package/lib/DA/Random/Types/module.d.ts +18 -0
- package/lib/DA/Random/Types/module.js +26 -0
- package/lib/DA/Random/index.d.ts +2 -0
- package/lib/DA/Random/index.js +9 -0
- package/lib/DA/Semigroup/Types/index.d.ts +1 -0
- package/lib/DA/Semigroup/Types/index.js +8 -0
- package/lib/DA/Semigroup/Types/module.d.ts +26 -0
- package/lib/DA/Semigroup/Types/module.js +37 -0
- package/lib/DA/Semigroup/index.d.ts +2 -0
- package/lib/DA/Semigroup/index.js +9 -0
- package/lib/DA/Set/Types/index.d.ts +1 -0
- package/lib/DA/Set/Types/index.js +8 -0
- package/lib/DA/Set/Types/module.d.ts +17 -0
- package/lib/DA/Set/Types/module.js +25 -0
- package/lib/DA/Set/index.d.ts +2 -0
- package/lib/DA/Set/index.js +9 -0
- package/lib/DA/Stack/Types/index.d.ts +1 -0
- package/lib/DA/Stack/Types/index.js +8 -0
- package/lib/DA/Stack/Types/module.d.ts +24 -0
- package/lib/DA/Stack/Types/module.js +31 -0
- package/lib/DA/Stack/index.d.ts +2 -0
- package/lib/DA/Stack/index.js +9 -0
- package/lib/DA/Time/Types/index.d.ts +1 -0
- package/lib/DA/Time/Types/index.js +8 -0
- package/lib/DA/Time/Types/module.d.ts +18 -0
- package/lib/DA/Time/Types/module.js +25 -0
- package/lib/DA/Time/index.d.ts +2 -0
- package/lib/DA/Time/index.js +9 -0
- package/lib/DA/Types/index.d.ts +1 -0
- package/lib/DA/Types/index.js +8 -0
- package/lib/DA/Types/module.d.ts +379 -0
- package/lib/DA/Types/module.js +445 -0
- package/lib/DA/Validation/Types/index.d.ts +1 -0
- package/lib/DA/Validation/Types/index.js +8 -0
- package/lib/DA/Validation/Types/module.d.ts +20 -0
- package/lib/DA/Validation/Types/module.js +29 -0
- package/lib/DA/Validation/index.d.ts +2 -0
- package/lib/DA/Validation/index.js +9 -0
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +75 -0
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +124 -0
- package/lib/Fairmint/Subscriptions/Subscription/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Subscription/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +246 -0
- package/lib/Fairmint/Subscriptions/Subscription/module.js +400 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/index.js +8 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +59 -0
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +73 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/index.js +8 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +45 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +67 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +75 -0
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +124 -0
- package/lib/Fairmint/Subscriptions/index.d.ts +10 -0
- package/lib/Fairmint/Subscriptions/index.js +17 -0
- package/lib/Fairmint/index.d.ts +1 -0
- package/lib/Fairmint/index.js +2 -0
- package/lib/Splice/Amulet/TokenApiUtils/index.d.ts +1 -0
- package/lib/Splice/Amulet/TokenApiUtils/index.js +8 -0
- package/lib/Splice/Amulet/TokenApiUtils/module.d.ts +24 -0
- package/lib/Splice/Amulet/TokenApiUtils/module.js +27 -0
- package/lib/Splice/Amulet/TwoStepTransfer/index.d.ts +1 -0
- package/lib/Splice/Amulet/TwoStepTransfer/index.js +8 -0
- package/lib/Splice/Amulet/TwoStepTransfer/module.d.ts +26 -0
- package/lib/Splice/Amulet/TwoStepTransfer/module.js +33 -0
- package/lib/Splice/Amulet/index.d.ts +5 -0
- package/lib/Splice/Amulet/index.js +12 -0
- package/lib/Splice/Amulet/module.d.ts +588 -0
- package/lib/Splice/Amulet/module.js +814 -0
- package/lib/Splice/AmuletAllocation/index.d.ts +1 -0
- package/lib/Splice/AmuletAllocation/index.js +8 -0
- package/lib/Splice/AmuletAllocation/module.d.ts +35 -0
- package/lib/Splice/AmuletAllocation/module.js +49 -0
- package/lib/Splice/AmuletConfig/index.d.ts +1 -0
- package/lib/Splice/AmuletConfig/index.js +8 -0
- package/lib/Splice/AmuletConfig/module.d.ts +83 -0
- package/lib/Splice/AmuletConfig/module.js +92 -0
- package/lib/Splice/AmuletRules/index.d.ts +1 -0
- package/lib/Splice/AmuletRules/index.js +8 -0
- package/lib/Splice/AmuletRules/module.d.ts +1040 -0
- package/lib/Splice/AmuletRules/module.js +1441 -0
- package/lib/Splice/AmuletTransferInstruction/index.d.ts +1 -0
- package/lib/Splice/AmuletTransferInstruction/index.js +8 -0
- package/lib/Splice/AmuletTransferInstruction/module.d.ts +35 -0
- package/lib/Splice/AmuletTransferInstruction/module.js +49 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +149 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
- package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
- package/lib/Splice/Api/Token/AllocationV1/module.d.ts +153 -0
- package/lib/Splice/Api/Token/AllocationV1/module.js +206 -0
- package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
- package/lib/Splice/Api/Token/HoldingV1/module.d.ts +60 -0
- package/lib/Splice/Api/Token/HoldingV1/module.js +76 -0
- package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
- package/lib/Splice/Api/Token/MetadataV1/module.d.ts +91 -0
- package/lib/Splice/Api/Token/MetadataV1/module.js +114 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +202 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
- package/lib/Splice/Api/Token/index.d.ts +2 -0
- package/lib/Splice/Api/Token/index.js +9 -0
- package/lib/Splice/DecentralizedSynchronizer/index.d.ts +1 -0
- package/lib/Splice/DecentralizedSynchronizer/index.js +8 -0
- package/lib/Splice/DecentralizedSynchronizer/module.d.ts +89 -0
- package/lib/Splice/DecentralizedSynchronizer/module.js +110 -0
- package/lib/Splice/Expiry/index.d.ts +1 -0
- package/lib/Splice/Expiry/index.js +8 -0
- package/lib/Splice/Expiry/module.d.ts +30 -0
- package/lib/Splice/Expiry/module.js +41 -0
- package/lib/Splice/ExternalPartyAmuletRules/index.d.ts +1 -0
- package/lib/Splice/ExternalPartyAmuletRules/index.js +8 -0
- package/lib/Splice/ExternalPartyAmuletRules/module.d.ts +210 -0
- package/lib/Splice/ExternalPartyAmuletRules/module.js +294 -0
- package/lib/Splice/Fees/index.d.ts +1 -0
- package/lib/Splice/Fees/index.js +8 -0
- package/lib/Splice/Fees/module.d.ts +65 -0
- package/lib/Splice/Fees/module.js +80 -0
- package/lib/Splice/Issuance/index.d.ts +1 -0
- package/lib/Splice/Issuance/index.js +8 -0
- package/lib/Splice/Issuance/module.d.ts +67 -0
- package/lib/Splice/Issuance/module.js +80 -0
- package/lib/Splice/RelRound/index.d.ts +1 -0
- package/lib/Splice/RelRound/index.js +8 -0
- package/lib/Splice/RelRound/module.d.ts +18 -0
- package/lib/Splice/RelRound/module.js +25 -0
- package/lib/Splice/Round/index.d.ts +1 -0
- package/lib/Splice/Round/index.js +8 -0
- package/lib/Splice/Round/module.d.ts +136 -0
- package/lib/Splice/Round/module.js +182 -0
- package/lib/Splice/Schedule/index.d.ts +1 -0
- package/lib/Splice/Schedule/index.js +8 -0
- package/lib/Splice/Schedule/module.d.ts +20 -0
- package/lib/Splice/Schedule/module.js +28 -0
- package/lib/Splice/Types/index.d.ts +1 -0
- package/lib/Splice/Types/index.js +8 -0
- package/lib/Splice/Types/module.d.ts +50 -0
- package/lib/Splice/Types/module.js +63 -0
- package/lib/Splice/ValidatorLicense/index.d.ts +1 -0
- package/lib/Splice/ValidatorLicense/index.js +8 -0
- package/lib/Splice/ValidatorLicense/module.d.ts +283 -0
- package/lib/Splice/ValidatorLicense/module.js +388 -0
- package/package.json +15 -3
|
@@ -0,0 +1,294 @@
|
|
|
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
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520 = require('@daml.js/splice-api-token-allocation-instruction-v1-1.0.0');
|
|
16
|
+
var pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281 = require('@daml.js/splice-api-token-transfer-instruction-v1-1.0.0');
|
|
17
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../DA/Internal/Template');
|
|
18
|
+
|
|
19
|
+
var Splice_AmuletRules = require('../../Splice/AmuletRules/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.TransferCommand_ExpireResult = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, nonce: damlTypes.Int.decoder, }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
27
|
+
nonce: damlTypes.Int.encode(__typed__.nonce),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.TransferCommand_WithdrawResult = {
|
|
36
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, nonce: damlTypes.Int.decoder, }); }),
|
|
37
|
+
encode: function (__typed__) {
|
|
38
|
+
return {
|
|
39
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
40
|
+
nonce: damlTypes.Int.encode(__typed__.nonce),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
exports.TransferCommandResult = {
|
|
49
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferCommandResultFailure'), value: exports.TransferCommandResult.TransferCommandResultFailure.decoder, }), jtv.object({tag: jtv.constant('TransferCommandResultSuccess'), value: exports.TransferCommandResult.TransferCommandResultSuccess.decoder, })); }),
|
|
50
|
+
encode: function (__typed__) {
|
|
51
|
+
switch(__typed__.tag) {
|
|
52
|
+
case 'TransferCommandResultFailure': return {tag: __typed__.tag, value: exports.TransferCommandResult.TransferCommandResultFailure.encode(__typed__.value)};
|
|
53
|
+
case 'TransferCommandResultSuccess': return {tag: __typed__.tag, value: exports.TransferCommandResult.TransferCommandResultSuccess.encode(__typed__.value)};
|
|
54
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferCommandResult';
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
,
|
|
58
|
+
TransferCommandResultFailure:({
|
|
59
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({reason: Splice_AmuletRules.InvalidTransferReason.decoder, }); }),
|
|
60
|
+
encode: function (__typed__) {
|
|
61
|
+
return {
|
|
62
|
+
reason: Splice_AmuletRules.InvalidTransferReason.encode(__typed__.reason),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
,
|
|
66
|
+
}),
|
|
67
|
+
TransferCommandResultSuccess:({
|
|
68
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({result: Splice_AmuletRules.TransferResult.decoder, }); }),
|
|
69
|
+
encode: function (__typed__) {
|
|
70
|
+
return {
|
|
71
|
+
result: Splice_AmuletRules.TransferResult.encode(__typed__.result),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
,
|
|
75
|
+
}),
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
exports.TransferCommand_SendResult = {
|
|
85
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({result: exports.TransferCommandResult.decoder, sender: damlTypes.Party.decoder, nonce: damlTypes.Int.decoder, }); }),
|
|
86
|
+
encode: function (__typed__) {
|
|
87
|
+
return {
|
|
88
|
+
result: exports.TransferCommandResult.encode(__typed__.result),
|
|
89
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
90
|
+
nonce: damlTypes.Int.encode(__typed__.nonce),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
exports.TransferCommand_Expire = {
|
|
99
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({p: damlTypes.Party.decoder, }); }),
|
|
100
|
+
encode: function (__typed__) {
|
|
101
|
+
return {
|
|
102
|
+
p: damlTypes.Party.encode(__typed__.p),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
,
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
exports.TransferCommand_Withdraw = {
|
|
111
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
112
|
+
encode: function (__typed__) {
|
|
113
|
+
return {
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
,
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
exports.TransferCommand_Send = {
|
|
122
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Splice_AmuletRules.PaymentTransferContext.decoder, inputs: damlTypes.List(Splice_AmuletRules.TransferInput).decoder, transferPreapprovalCidO: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(Splice_AmuletRules.TransferPreapproval)).decoder), transferCounterCid: damlTypes.ContractId(exports.TransferCommandCounter).decoder, }); }),
|
|
123
|
+
encode: function (__typed__) {
|
|
124
|
+
return {
|
|
125
|
+
context: Splice_AmuletRules.PaymentTransferContext.encode(__typed__.context),
|
|
126
|
+
inputs: damlTypes.List(Splice_AmuletRules.TransferInput).encode(__typed__.inputs),
|
|
127
|
+
transferPreapprovalCidO: damlTypes.Optional(damlTypes.ContractId(Splice_AmuletRules.TransferPreapproval)).encode(__typed__.transferPreapprovalCidO),
|
|
128
|
+
transferCounterCid: damlTypes.ContractId(exports.TransferCommandCounter).encode(__typed__.transferCounterCid),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
,
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
exports.TransferCommand = damlTypes.assembleTemplate(
|
|
137
|
+
{
|
|
138
|
+
templateId: '#splice-amulet:Splice.ExternalPartyAmuletRules:TransferCommand',
|
|
139
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
140
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
141
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, delegate: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, expiresAt: damlTypes.Time.decoder, nonce: damlTypes.Int.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
142
|
+
encode: function (__typed__) {
|
|
143
|
+
return {
|
|
144
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
145
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
146
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
147
|
+
delegate: damlTypes.Party.encode(__typed__.delegate),
|
|
148
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
149
|
+
expiresAt: damlTypes.Time.encode(__typed__.expiresAt),
|
|
150
|
+
nonce: damlTypes.Int.encode(__typed__.nonce),
|
|
151
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
,
|
|
155
|
+
TransferCommand_Expire: {
|
|
156
|
+
template: function () { return exports.TransferCommand; },
|
|
157
|
+
choiceName: 'TransferCommand_Expire',
|
|
158
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferCommand_Expire.decoder; }),
|
|
159
|
+
argumentEncode: function (__typed__) { return exports.TransferCommand_Expire.encode(__typed__); },
|
|
160
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferCommand_ExpireResult.decoder; }),
|
|
161
|
+
resultEncode: function (__typed__) { return exports.TransferCommand_ExpireResult.encode(__typed__); },
|
|
162
|
+
},
|
|
163
|
+
TransferCommand_Send: {
|
|
164
|
+
template: function () { return exports.TransferCommand; },
|
|
165
|
+
choiceName: 'TransferCommand_Send',
|
|
166
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferCommand_Send.decoder; }),
|
|
167
|
+
argumentEncode: function (__typed__) { return exports.TransferCommand_Send.encode(__typed__); },
|
|
168
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferCommand_SendResult.decoder; }),
|
|
169
|
+
resultEncode: function (__typed__) { return exports.TransferCommand_SendResult.encode(__typed__); },
|
|
170
|
+
},
|
|
171
|
+
Archive: {
|
|
172
|
+
template: function () { return exports.TransferCommand; },
|
|
173
|
+
choiceName: 'Archive',
|
|
174
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
175
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
176
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
177
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
178
|
+
},
|
|
179
|
+
TransferCommand_Withdraw: {
|
|
180
|
+
template: function () { return exports.TransferCommand; },
|
|
181
|
+
choiceName: 'TransferCommand_Withdraw',
|
|
182
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferCommand_Withdraw.decoder; }),
|
|
183
|
+
argumentEncode: function (__typed__) { return exports.TransferCommand_Withdraw.encode(__typed__); },
|
|
184
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferCommand_WithdrawResult.decoder; }),
|
|
185
|
+
resultEncode: function (__typed__) { return exports.TransferCommand_WithdrawResult.encode(__typed__); },
|
|
186
|
+
},
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
damlTypes.registerTemplate(exports.TransferCommand, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
exports.TransferCommandCounter = damlTypes.assembleTemplate(
|
|
197
|
+
{
|
|
198
|
+
templateId: '#splice-amulet:Splice.ExternalPartyAmuletRules:TransferCommandCounter',
|
|
199
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
200
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
201
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, sender: damlTypes.Party.decoder, nextNonce: damlTypes.Int.decoder, }); }),
|
|
202
|
+
encode: function (__typed__) {
|
|
203
|
+
return {
|
|
204
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
205
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
206
|
+
nextNonce: damlTypes.Int.encode(__typed__.nextNonce),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
,
|
|
210
|
+
Archive: {
|
|
211
|
+
template: function () { return exports.TransferCommandCounter; },
|
|
212
|
+
choiceName: 'Archive',
|
|
213
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
214
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
215
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
216
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
217
|
+
},
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
damlTypes.registerTemplate(exports.TransferCommandCounter, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
exports.ExternalPartyAmuletRules_CreateTransferCommandResult = {
|
|
228
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferCommandCid: damlTypes.ContractId(exports.TransferCommand).decoder, }); }),
|
|
229
|
+
encode: function (__typed__) {
|
|
230
|
+
return {
|
|
231
|
+
transferCommandCid: damlTypes.ContractId(exports.TransferCommand).encode(__typed__.transferCommandCid),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
,
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
exports.ExternalPartyAmuletRules_CreateTransferCommand = {
|
|
240
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, delegate: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, expiresAt: damlTypes.Time.decoder, nonce: damlTypes.Int.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), expectedDso: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), }); }),
|
|
241
|
+
encode: function (__typed__) {
|
|
242
|
+
return {
|
|
243
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
244
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
245
|
+
delegate: damlTypes.Party.encode(__typed__.delegate),
|
|
246
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
247
|
+
expiresAt: damlTypes.Time.encode(__typed__.expiresAt),
|
|
248
|
+
nonce: damlTypes.Int.encode(__typed__.nonce),
|
|
249
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
250
|
+
expectedDso: damlTypes.Optional(damlTypes.Party).encode(__typed__.expectedDso),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
,
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
exports.ExternalPartyAmuletRules = damlTypes.assembleTemplate(
|
|
259
|
+
{
|
|
260
|
+
templateId: '#splice-amulet:Splice.ExternalPartyAmuletRules:ExternalPartyAmuletRules',
|
|
261
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
262
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
263
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, }); }),
|
|
264
|
+
encode: function (__typed__) {
|
|
265
|
+
return {
|
|
266
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
,
|
|
270
|
+
ExternalPartyAmuletRules_CreateTransferCommand: {
|
|
271
|
+
template: function () { return exports.ExternalPartyAmuletRules; },
|
|
272
|
+
choiceName: 'ExternalPartyAmuletRules_CreateTransferCommand',
|
|
273
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ExternalPartyAmuletRules_CreateTransferCommand.decoder; }),
|
|
274
|
+
argumentEncode: function (__typed__) { return exports.ExternalPartyAmuletRules_CreateTransferCommand.encode(__typed__); },
|
|
275
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.ExternalPartyAmuletRules_CreateTransferCommandResult.decoder; }),
|
|
276
|
+
resultEncode: function (__typed__) { return exports.ExternalPartyAmuletRules_CreateTransferCommandResult.encode(__typed__); },
|
|
277
|
+
},
|
|
278
|
+
Archive: {
|
|
279
|
+
template: function () { return exports.ExternalPartyAmuletRules; },
|
|
280
|
+
choiceName: 'Archive',
|
|
281
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
282
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
283
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
284
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
285
|
+
},
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
, pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281.Splice.Api.Token.TransferInstructionV1.TransferFactory
|
|
289
|
+
, pkg275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520.Splice.Api.Token.AllocationInstructionV1.AllocationFactory
|
|
290
|
+
);
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
damlTypes.registerTemplate(exports.ExternalPartyAmuletRules, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
294
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
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'));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Generated from Splice/Fees.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
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../DA/Types';
|
|
11
|
+
|
|
12
|
+
import * as Splice_Types from '../../Splice/Types/module';
|
|
13
|
+
|
|
14
|
+
export declare type RatePerDay = {
|
|
15
|
+
rate: damlTypes.Numeric;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export declare const RatePerDay:
|
|
19
|
+
damlTypes.Serializable<RatePerDay> & {
|
|
20
|
+
}
|
|
21
|
+
;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export declare type ExpiringAmount = {
|
|
25
|
+
initialAmount: damlTypes.Numeric;
|
|
26
|
+
createdAt: Splice_Types.Round;
|
|
27
|
+
ratePerRound: RatePerRound;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const ExpiringAmount:
|
|
31
|
+
damlTypes.Serializable<ExpiringAmount> & {
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export declare type SteppedRate = {
|
|
37
|
+
initialRate: damlTypes.Numeric;
|
|
38
|
+
steps: pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.Numeric, damlTypes.Numeric>[];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export declare const SteppedRate:
|
|
42
|
+
damlTypes.Serializable<SteppedRate> & {
|
|
43
|
+
}
|
|
44
|
+
;
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export declare type FixedFee = {
|
|
48
|
+
fee: damlTypes.Numeric;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export declare const FixedFee:
|
|
52
|
+
damlTypes.Serializable<FixedFee> & {
|
|
53
|
+
}
|
|
54
|
+
;
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export declare type RatePerRound = {
|
|
58
|
+
rate: damlTypes.Numeric;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare const RatePerRound:
|
|
62
|
+
damlTypes.Serializable<RatePerRound> & {
|
|
63
|
+
}
|
|
64
|
+
;
|
|
65
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../DA/Types');
|
|
16
|
+
|
|
17
|
+
var Splice_Types = require('../../Splice/Types/module');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.RatePerDay = {
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({rate: damlTypes.Numeric(10).decoder, }); }),
|
|
22
|
+
encode: function (__typed__) {
|
|
23
|
+
return {
|
|
24
|
+
rate: damlTypes.Numeric(10).encode(__typed__.rate),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.ExpiringAmount = {
|
|
33
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({initialAmount: damlTypes.Numeric(10).decoder, createdAt: Splice_Types.Round.decoder, ratePerRound: exports.RatePerRound.decoder, }); }),
|
|
34
|
+
encode: function (__typed__) {
|
|
35
|
+
return {
|
|
36
|
+
initialAmount: damlTypes.Numeric(10).encode(__typed__.initialAmount),
|
|
37
|
+
createdAt: Splice_Types.Round.encode(__typed__.createdAt),
|
|
38
|
+
ratePerRound: exports.RatePerRound.encode(__typed__.ratePerRound),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.SteppedRate = {
|
|
47
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({initialRate: damlTypes.Numeric(10).decoder, steps: damlTypes.List(pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Numeric(10), damlTypes.Numeric(10))).decoder, }); }),
|
|
48
|
+
encode: function (__typed__) {
|
|
49
|
+
return {
|
|
50
|
+
initialRate: damlTypes.Numeric(10).encode(__typed__.initialRate),
|
|
51
|
+
steps: damlTypes.List(pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Numeric(10), damlTypes.Numeric(10))).encode(__typed__.steps),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
,
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
exports.FixedFee = {
|
|
60
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({fee: damlTypes.Numeric(10).decoder, }); }),
|
|
61
|
+
encode: function (__typed__) {
|
|
62
|
+
return {
|
|
63
|
+
fee: damlTypes.Numeric(10).encode(__typed__.fee),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
,
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
exports.RatePerRound = {
|
|
72
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({rate: damlTypes.Numeric(10).decoder, }); }),
|
|
73
|
+
encode: function (__typed__) {
|
|
74
|
+
return {
|
|
75
|
+
rate: damlTypes.Numeric(10).encode(__typed__.rate),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
,
|
|
79
|
+
};
|
|
80
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
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'));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Generated from Splice/Issuance.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
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
export declare type IssuanceTranche = {
|
|
11
|
+
rewardsToIssue: damlTypes.Numeric;
|
|
12
|
+
issuancePerCoupon: damlTypes.Numeric;
|
|
13
|
+
unclaimedRewards: damlTypes.Numeric;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare const IssuanceTranche:
|
|
17
|
+
damlTypes.Serializable<IssuanceTranche> & {
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export declare type IssuingRoundParameters = {
|
|
23
|
+
issuancePerValidatorRewardCoupon: damlTypes.Numeric;
|
|
24
|
+
issuancePerFeaturedAppRewardCoupon: damlTypes.Numeric;
|
|
25
|
+
issuancePerUnfeaturedAppRewardCoupon: damlTypes.Numeric;
|
|
26
|
+
issuancePerSvRewardCoupon: damlTypes.Numeric;
|
|
27
|
+
unclaimedAppRewards: damlTypes.Numeric;
|
|
28
|
+
unclaimedValidatorRewards: damlTypes.Numeric;
|
|
29
|
+
unclaimedSvRewards: damlTypes.Numeric;
|
|
30
|
+
issuancePerValidatorFaucetCoupon: damlTypes.Numeric;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export declare const IssuingRoundParameters:
|
|
34
|
+
damlTypes.Serializable<IssuingRoundParameters> & {
|
|
35
|
+
}
|
|
36
|
+
;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export declare type OpenMiningRoundSummary = {
|
|
40
|
+
totalValidatorRewardCoupons: damlTypes.Numeric;
|
|
41
|
+
totalFeaturedAppRewardCoupons: damlTypes.Numeric;
|
|
42
|
+
totalUnfeaturedAppRewardCoupons: damlTypes.Numeric;
|
|
43
|
+
totalSvRewardWeight: damlTypes.Int;
|
|
44
|
+
optTotalValidatorFaucetCoupons: damlTypes.Optional<damlTypes.Int>;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export declare const OpenMiningRoundSummary:
|
|
48
|
+
damlTypes.Serializable<OpenMiningRoundSummary> & {
|
|
49
|
+
}
|
|
50
|
+
;
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export declare type IssuanceConfig = {
|
|
54
|
+
amuletToIssuePerYear: damlTypes.Numeric;
|
|
55
|
+
validatorRewardPercentage: damlTypes.Numeric;
|
|
56
|
+
appRewardPercentage: damlTypes.Numeric;
|
|
57
|
+
validatorRewardCap: damlTypes.Numeric;
|
|
58
|
+
featuredAppRewardCap: damlTypes.Numeric;
|
|
59
|
+
unfeaturedAppRewardCap: damlTypes.Numeric;
|
|
60
|
+
optValidatorFaucetCap: damlTypes.Optional<damlTypes.Numeric>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare const IssuanceConfig:
|
|
64
|
+
damlTypes.Serializable<IssuanceConfig> & {
|
|
65
|
+
}
|
|
66
|
+
;
|
|
67
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.IssuanceTranche = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({rewardsToIssue: damlTypes.Numeric(10).decoder, issuancePerCoupon: damlTypes.Numeric(10).decoder, unclaimedRewards: damlTypes.Numeric(10).decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
rewardsToIssue: damlTypes.Numeric(10).encode(__typed__.rewardsToIssue),
|
|
21
|
+
issuancePerCoupon: damlTypes.Numeric(10).encode(__typed__.issuancePerCoupon),
|
|
22
|
+
unclaimedRewards: damlTypes.Numeric(10).encode(__typed__.unclaimedRewards),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.IssuingRoundParameters = {
|
|
31
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuancePerValidatorRewardCoupon: damlTypes.Numeric(10).decoder, issuancePerFeaturedAppRewardCoupon: damlTypes.Numeric(10).decoder, issuancePerUnfeaturedAppRewardCoupon: damlTypes.Numeric(10).decoder, issuancePerSvRewardCoupon: damlTypes.Numeric(10).decoder, unclaimedAppRewards: damlTypes.Numeric(10).decoder, unclaimedValidatorRewards: damlTypes.Numeric(10).decoder, unclaimedSvRewards: damlTypes.Numeric(10).decoder, issuancePerValidatorFaucetCoupon: damlTypes.Numeric(10).decoder, }); }),
|
|
32
|
+
encode: function (__typed__) {
|
|
33
|
+
return {
|
|
34
|
+
issuancePerValidatorRewardCoupon: damlTypes.Numeric(10).encode(__typed__.issuancePerValidatorRewardCoupon),
|
|
35
|
+
issuancePerFeaturedAppRewardCoupon: damlTypes.Numeric(10).encode(__typed__.issuancePerFeaturedAppRewardCoupon),
|
|
36
|
+
issuancePerUnfeaturedAppRewardCoupon: damlTypes.Numeric(10).encode(__typed__.issuancePerUnfeaturedAppRewardCoupon),
|
|
37
|
+
issuancePerSvRewardCoupon: damlTypes.Numeric(10).encode(__typed__.issuancePerSvRewardCoupon),
|
|
38
|
+
unclaimedAppRewards: damlTypes.Numeric(10).encode(__typed__.unclaimedAppRewards),
|
|
39
|
+
unclaimedValidatorRewards: damlTypes.Numeric(10).encode(__typed__.unclaimedValidatorRewards),
|
|
40
|
+
unclaimedSvRewards: damlTypes.Numeric(10).encode(__typed__.unclaimedSvRewards),
|
|
41
|
+
issuancePerValidatorFaucetCoupon: damlTypes.Numeric(10).encode(__typed__.issuancePerValidatorFaucetCoupon),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.OpenMiningRoundSummary = {
|
|
50
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({totalValidatorRewardCoupons: damlTypes.Numeric(10).decoder, totalFeaturedAppRewardCoupons: damlTypes.Numeric(10).decoder, totalUnfeaturedAppRewardCoupons: damlTypes.Numeric(10).decoder, totalSvRewardWeight: damlTypes.Int.decoder, optTotalValidatorFaucetCoupons: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Int).decoder), }); }),
|
|
51
|
+
encode: function (__typed__) {
|
|
52
|
+
return {
|
|
53
|
+
totalValidatorRewardCoupons: damlTypes.Numeric(10).encode(__typed__.totalValidatorRewardCoupons),
|
|
54
|
+
totalFeaturedAppRewardCoupons: damlTypes.Numeric(10).encode(__typed__.totalFeaturedAppRewardCoupons),
|
|
55
|
+
totalUnfeaturedAppRewardCoupons: damlTypes.Numeric(10).encode(__typed__.totalUnfeaturedAppRewardCoupons),
|
|
56
|
+
totalSvRewardWeight: damlTypes.Int.encode(__typed__.totalSvRewardWeight),
|
|
57
|
+
optTotalValidatorFaucetCoupons: damlTypes.Optional(damlTypes.Int).encode(__typed__.optTotalValidatorFaucetCoupons),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
exports.IssuanceConfig = {
|
|
66
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletToIssuePerYear: damlTypes.Numeric(10).decoder, validatorRewardPercentage: damlTypes.Numeric(10).decoder, appRewardPercentage: damlTypes.Numeric(10).decoder, validatorRewardCap: damlTypes.Numeric(10).decoder, featuredAppRewardCap: damlTypes.Numeric(10).decoder, unfeaturedAppRewardCap: damlTypes.Numeric(10).decoder, optValidatorFaucetCap: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), }); }),
|
|
67
|
+
encode: function (__typed__) {
|
|
68
|
+
return {
|
|
69
|
+
amuletToIssuePerYear: damlTypes.Numeric(10).encode(__typed__.amuletToIssuePerYear),
|
|
70
|
+
validatorRewardPercentage: damlTypes.Numeric(10).encode(__typed__.validatorRewardPercentage),
|
|
71
|
+
appRewardPercentage: damlTypes.Numeric(10).encode(__typed__.appRewardPercentage),
|
|
72
|
+
validatorRewardCap: damlTypes.Numeric(10).encode(__typed__.validatorRewardCap),
|
|
73
|
+
featuredAppRewardCap: damlTypes.Numeric(10).encode(__typed__.featuredAppRewardCap),
|
|
74
|
+
unfeaturedAppRewardCap: damlTypes.Numeric(10).encode(__typed__.unfeaturedAppRewardCap),
|
|
75
|
+
optValidatorFaucetCap: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.optValidatorFaucetCap),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
,
|
|
79
|
+
};
|
|
80
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
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'));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Generated from Splice/RelRound.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
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
export declare type RelRound = {
|
|
11
|
+
diff: damlTypes.Int;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const RelRound:
|
|
15
|
+
damlTypes.Serializable<RelRound> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.RelRound = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({diff: damlTypes.Int.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
diff: damlTypes.Int.encode(__typed__.diff),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|