@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,814 @@
|
|
|
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 pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../Api/Token/MetadataV1');
|
|
16
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../Api/Token/HoldingV1');
|
|
17
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('..');
|
|
18
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../DA/Internal/Template');
|
|
19
|
+
|
|
20
|
+
var Splice_Expiry = require('../../Splice/Expiry/module');
|
|
21
|
+
var Splice_Fees = require('../../Splice/Fees/module');
|
|
22
|
+
var Splice_Round = require('../../Splice/Round/module');
|
|
23
|
+
var Splice_Types = require('../../Splice/Types/module');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.UnclaimedActivityRecord_DsoExpire = {
|
|
27
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
28
|
+
encode: function (__typed__) {
|
|
29
|
+
return {
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.UnclaimedActivityRecord = damlTypes.assembleTemplate(
|
|
38
|
+
{
|
|
39
|
+
templateId: '#splice-amulet:Splice.Amulet:UnclaimedActivityRecord',
|
|
40
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
41
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
42
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, beneficiary: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, reason: damlTypes.Text.decoder, expiresAt: damlTypes.Time.decoder, }); }),
|
|
43
|
+
encode: function (__typed__) {
|
|
44
|
+
return {
|
|
45
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
46
|
+
beneficiary: damlTypes.Party.encode(__typed__.beneficiary),
|
|
47
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
48
|
+
reason: damlTypes.Text.encode(__typed__.reason),
|
|
49
|
+
expiresAt: damlTypes.Time.encode(__typed__.expiresAt),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
,
|
|
53
|
+
UnclaimedActivityRecord_DsoExpire: {
|
|
54
|
+
template: function () { return exports.UnclaimedActivityRecord; },
|
|
55
|
+
choiceName: 'UnclaimedActivityRecord_DsoExpire',
|
|
56
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.UnclaimedActivityRecord_DsoExpire.decoder; }),
|
|
57
|
+
argumentEncode: function (__typed__) { return exports.UnclaimedActivityRecord_DsoExpire.encode(__typed__); },
|
|
58
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.UnclaimedActivityRecord_DsoExpireResult.decoder; }),
|
|
59
|
+
resultEncode: function (__typed__) { return exports.UnclaimedActivityRecord_DsoExpireResult.encode(__typed__); },
|
|
60
|
+
},
|
|
61
|
+
Archive: {
|
|
62
|
+
template: function () { return exports.UnclaimedActivityRecord; },
|
|
63
|
+
choiceName: 'Archive',
|
|
64
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
65
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
66
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
67
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
damlTypes.registerTemplate(exports.UnclaimedActivityRecord, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
exports.UnclaimedReward = damlTypes.assembleTemplate(
|
|
79
|
+
{
|
|
80
|
+
templateId: '#splice-amulet:Splice.Amulet:UnclaimedReward',
|
|
81
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
82
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
83
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, }); }),
|
|
84
|
+
encode: function (__typed__) {
|
|
85
|
+
return {
|
|
86
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
87
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
,
|
|
91
|
+
Archive: {
|
|
92
|
+
template: function () { return exports.UnclaimedReward; },
|
|
93
|
+
choiceName: 'Archive',
|
|
94
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
95
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
96
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
97
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
damlTypes.registerTemplate(exports.UnclaimedReward, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
exports.SvRewardCoupon_ArchiveAsBeneficiary = {
|
|
109
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
110
|
+
encode: function (__typed__) {
|
|
111
|
+
return {
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
,
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
exports.SvRewardCoupon_DsoExpire = {
|
|
120
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).decoder, }); }),
|
|
121
|
+
encode: function (__typed__) {
|
|
122
|
+
return {
|
|
123
|
+
closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).encode(__typed__.closedRoundCid),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
,
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
exports.SvRewardCoupon = damlTypes.assembleTemplate(
|
|
132
|
+
{
|
|
133
|
+
templateId: '#splice-amulet:Splice.Amulet:SvRewardCoupon',
|
|
134
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
135
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
136
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, sv: damlTypes.Party.decoder, beneficiary: damlTypes.Party.decoder, round: Splice_Types.Round.decoder, weight: damlTypes.Int.decoder, }); }),
|
|
137
|
+
encode: function (__typed__) {
|
|
138
|
+
return {
|
|
139
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
140
|
+
sv: damlTypes.Party.encode(__typed__.sv),
|
|
141
|
+
beneficiary: damlTypes.Party.encode(__typed__.beneficiary),
|
|
142
|
+
round: Splice_Types.Round.encode(__typed__.round),
|
|
143
|
+
weight: damlTypes.Int.encode(__typed__.weight),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
,
|
|
147
|
+
SvRewardCoupon_DsoExpire: {
|
|
148
|
+
template: function () { return exports.SvRewardCoupon; },
|
|
149
|
+
choiceName: 'SvRewardCoupon_DsoExpire',
|
|
150
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.SvRewardCoupon_DsoExpire.decoder; }),
|
|
151
|
+
argumentEncode: function (__typed__) { return exports.SvRewardCoupon_DsoExpire.encode(__typed__); },
|
|
152
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.SvRewardCoupon_DsoExpireResult.decoder; }),
|
|
153
|
+
resultEncode: function (__typed__) { return exports.SvRewardCoupon_DsoExpireResult.encode(__typed__); },
|
|
154
|
+
},
|
|
155
|
+
SvRewardCoupon_ArchiveAsBeneficiary: {
|
|
156
|
+
template: function () { return exports.SvRewardCoupon; },
|
|
157
|
+
choiceName: 'SvRewardCoupon_ArchiveAsBeneficiary',
|
|
158
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.SvRewardCoupon_ArchiveAsBeneficiary.decoder; }),
|
|
159
|
+
argumentEncode: function (__typed__) { return exports.SvRewardCoupon_ArchiveAsBeneficiary.encode(__typed__); },
|
|
160
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.SvRewardCoupon_ArchiveAsBeneficiaryResult.decoder; }),
|
|
161
|
+
resultEncode: function (__typed__) { return exports.SvRewardCoupon_ArchiveAsBeneficiaryResult.encode(__typed__); },
|
|
162
|
+
},
|
|
163
|
+
Archive: {
|
|
164
|
+
template: function () { return exports.SvRewardCoupon; },
|
|
165
|
+
choiceName: 'Archive',
|
|
166
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
167
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
168
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
169
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
170
|
+
},
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
damlTypes.registerTemplate(exports.SvRewardCoupon, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
exports.ValidatorRewardCoupon_ArchiveAsValidator = {
|
|
181
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({validator: damlTypes.Party.decoder, rightCid: damlTypes.ContractId(exports.ValidatorRight).decoder, }); }),
|
|
182
|
+
encode: function (__typed__) {
|
|
183
|
+
return {
|
|
184
|
+
validator: damlTypes.Party.encode(__typed__.validator),
|
|
185
|
+
rightCid: damlTypes.ContractId(exports.ValidatorRight).encode(__typed__.rightCid),
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
,
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
exports.ValidatorRewardCoupon_DsoExpire = {
|
|
194
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).decoder, }); }),
|
|
195
|
+
encode: function (__typed__) {
|
|
196
|
+
return {
|
|
197
|
+
closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).encode(__typed__.closedRoundCid),
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
,
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
exports.ValidatorRewardCoupon = damlTypes.assembleTemplate(
|
|
206
|
+
{
|
|
207
|
+
templateId: '#splice-amulet:Splice.Amulet:ValidatorRewardCoupon',
|
|
208
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
209
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
210
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, user: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, round: Splice_Types.Round.decoder, }); }),
|
|
211
|
+
encode: function (__typed__) {
|
|
212
|
+
return {
|
|
213
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
214
|
+
user: damlTypes.Party.encode(__typed__.user),
|
|
215
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
216
|
+
round: Splice_Types.Round.encode(__typed__.round),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
,
|
|
220
|
+
ValidatorRewardCoupon_DsoExpire: {
|
|
221
|
+
template: function () { return exports.ValidatorRewardCoupon; },
|
|
222
|
+
choiceName: 'ValidatorRewardCoupon_DsoExpire',
|
|
223
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRewardCoupon_DsoExpire.decoder; }),
|
|
224
|
+
argumentEncode: function (__typed__) { return exports.ValidatorRewardCoupon_DsoExpire.encode(__typed__); },
|
|
225
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRewardCoupon_DsoExpireResult.decoder; }),
|
|
226
|
+
resultEncode: function (__typed__) { return exports.ValidatorRewardCoupon_DsoExpireResult.encode(__typed__); },
|
|
227
|
+
},
|
|
228
|
+
ValidatorRewardCoupon_ArchiveAsValidator: {
|
|
229
|
+
template: function () { return exports.ValidatorRewardCoupon; },
|
|
230
|
+
choiceName: 'ValidatorRewardCoupon_ArchiveAsValidator',
|
|
231
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRewardCoupon_ArchiveAsValidator.decoder; }),
|
|
232
|
+
argumentEncode: function (__typed__) { return exports.ValidatorRewardCoupon_ArchiveAsValidator.encode(__typed__); },
|
|
233
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRewardCoupon_ArchiveAsValidatorResult.decoder; }),
|
|
234
|
+
resultEncode: function (__typed__) { return exports.ValidatorRewardCoupon_ArchiveAsValidatorResult.encode(__typed__); },
|
|
235
|
+
},
|
|
236
|
+
Archive: {
|
|
237
|
+
template: function () { return exports.ValidatorRewardCoupon; },
|
|
238
|
+
choiceName: 'Archive',
|
|
239
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
240
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
241
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
242
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
243
|
+
},
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
damlTypes.registerTemplate(exports.ValidatorRewardCoupon, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
exports.AppRewardCoupon_DsoExpire = {
|
|
254
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).decoder, }); }),
|
|
255
|
+
encode: function (__typed__) {
|
|
256
|
+
return {
|
|
257
|
+
closedRoundCid: damlTypes.ContractId(Splice_Round.ClosedMiningRound).encode(__typed__.closedRoundCid),
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
,
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
exports.AppRewardCoupon = damlTypes.assembleTemplate(
|
|
266
|
+
{
|
|
267
|
+
templateId: '#splice-amulet:Splice.Amulet:AppRewardCoupon',
|
|
268
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
269
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
270
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, provider: damlTypes.Party.decoder, featured: damlTypes.Bool.decoder, amount: damlTypes.Numeric(10).decoder, round: Splice_Types.Round.decoder, beneficiary: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), }); }),
|
|
271
|
+
encode: function (__typed__) {
|
|
272
|
+
return {
|
|
273
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
274
|
+
provider: damlTypes.Party.encode(__typed__.provider),
|
|
275
|
+
featured: damlTypes.Bool.encode(__typed__.featured),
|
|
276
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
277
|
+
round: Splice_Types.Round.encode(__typed__.round),
|
|
278
|
+
beneficiary: damlTypes.Optional(damlTypes.Party).encode(__typed__.beneficiary),
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
,
|
|
282
|
+
AppRewardCoupon_DsoExpire: {
|
|
283
|
+
template: function () { return exports.AppRewardCoupon; },
|
|
284
|
+
choiceName: 'AppRewardCoupon_DsoExpire',
|
|
285
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AppRewardCoupon_DsoExpire.decoder; }),
|
|
286
|
+
argumentEncode: function (__typed__) { return exports.AppRewardCoupon_DsoExpire.encode(__typed__); },
|
|
287
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AppRewardCoupon_DsoExpireResult.decoder; }),
|
|
288
|
+
resultEncode: function (__typed__) { return exports.AppRewardCoupon_DsoExpireResult.encode(__typed__); },
|
|
289
|
+
},
|
|
290
|
+
Archive: {
|
|
291
|
+
template: function () { return exports.AppRewardCoupon; },
|
|
292
|
+
choiceName: 'Archive',
|
|
293
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
294
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
295
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
296
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
297
|
+
},
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
);
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
damlTypes.registerTemplate(exports.AppRewardCoupon, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
exports.FeaturedAppActivityMarker = damlTypes.assembleTemplate(
|
|
308
|
+
{
|
|
309
|
+
templateId: '#splice-amulet:Splice.Amulet:FeaturedAppActivityMarker',
|
|
310
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
311
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
312
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, provider: damlTypes.Party.decoder, beneficiary: damlTypes.Party.decoder, weight: damlTypes.Numeric(10).decoder, }); }),
|
|
313
|
+
encode: function (__typed__) {
|
|
314
|
+
return {
|
|
315
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
316
|
+
provider: damlTypes.Party.encode(__typed__.provider),
|
|
317
|
+
beneficiary: damlTypes.Party.encode(__typed__.beneficiary),
|
|
318
|
+
weight: damlTypes.Numeric(10).encode(__typed__.weight),
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
,
|
|
322
|
+
Archive: {
|
|
323
|
+
template: function () { return exports.FeaturedAppActivityMarker; },
|
|
324
|
+
choiceName: 'Archive',
|
|
325
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
326
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
327
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
328
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
329
|
+
},
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
, pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker
|
|
333
|
+
);
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
damlTypes.registerTemplate(exports.FeaturedAppActivityMarker, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
exports.FeaturedAppRight_Cancel = {
|
|
341
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
342
|
+
encode: function (__typed__) {
|
|
343
|
+
return {
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
,
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
exports.FeaturedAppRight_Withdraw = {
|
|
352
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({reason: damlTypes.Text.decoder, }); }),
|
|
353
|
+
encode: function (__typed__) {
|
|
354
|
+
return {
|
|
355
|
+
reason: damlTypes.Text.encode(__typed__.reason),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
,
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
exports.FeaturedAppRight = damlTypes.assembleTemplate(
|
|
364
|
+
{
|
|
365
|
+
templateId: '#splice-amulet:Splice.Amulet:FeaturedAppRight',
|
|
366
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
367
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
368
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, provider: damlTypes.Party.decoder, }); }),
|
|
369
|
+
encode: function (__typed__) {
|
|
370
|
+
return {
|
|
371
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
372
|
+
provider: damlTypes.Party.encode(__typed__.provider),
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
,
|
|
376
|
+
FeaturedAppRight_Withdraw: {
|
|
377
|
+
template: function () { return exports.FeaturedAppRight; },
|
|
378
|
+
choiceName: 'FeaturedAppRight_Withdraw',
|
|
379
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.FeaturedAppRight_Withdraw.decoder; }),
|
|
380
|
+
argumentEncode: function (__typed__) { return exports.FeaturedAppRight_Withdraw.encode(__typed__); },
|
|
381
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.FeaturedAppRight_WithdrawResult.decoder; }),
|
|
382
|
+
resultEncode: function (__typed__) { return exports.FeaturedAppRight_WithdrawResult.encode(__typed__); },
|
|
383
|
+
},
|
|
384
|
+
FeaturedAppRight_Cancel: {
|
|
385
|
+
template: function () { return exports.FeaturedAppRight; },
|
|
386
|
+
choiceName: 'FeaturedAppRight_Cancel',
|
|
387
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.FeaturedAppRight_Cancel.decoder; }),
|
|
388
|
+
argumentEncode: function (__typed__) { return exports.FeaturedAppRight_Cancel.encode(__typed__); },
|
|
389
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.FeaturedAppRight_CancelResult.decoder; }),
|
|
390
|
+
resultEncode: function (__typed__) { return exports.FeaturedAppRight_CancelResult.encode(__typed__); },
|
|
391
|
+
},
|
|
392
|
+
Archive: {
|
|
393
|
+
template: function () { return exports.FeaturedAppRight; },
|
|
394
|
+
choiceName: 'Archive',
|
|
395
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
396
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
397
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
398
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
399
|
+
},
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
, pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight
|
|
403
|
+
);
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
damlTypes.registerTemplate(exports.FeaturedAppRight, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
exports.ValidatorRight_ArchiveAsUser = {
|
|
411
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
412
|
+
encode: function (__typed__) {
|
|
413
|
+
return {
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
,
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
exports.ValidatorRight_ArchiveAsValidator = {
|
|
422
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
423
|
+
encode: function (__typed__) {
|
|
424
|
+
return {
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
,
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
exports.ValidatorRight = damlTypes.assembleTemplate(
|
|
433
|
+
{
|
|
434
|
+
templateId: '#splice-amulet:Splice.Amulet:ValidatorRight',
|
|
435
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
436
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
437
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, user: damlTypes.Party.decoder, validator: damlTypes.Party.decoder, }); }),
|
|
438
|
+
encode: function (__typed__) {
|
|
439
|
+
return {
|
|
440
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
441
|
+
user: damlTypes.Party.encode(__typed__.user),
|
|
442
|
+
validator: damlTypes.Party.encode(__typed__.validator),
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
,
|
|
446
|
+
ValidatorRight_ArchiveAsValidator: {
|
|
447
|
+
template: function () { return exports.ValidatorRight; },
|
|
448
|
+
choiceName: 'ValidatorRight_ArchiveAsValidator',
|
|
449
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRight_ArchiveAsValidator.decoder; }),
|
|
450
|
+
argumentEncode: function (__typed__) { return exports.ValidatorRight_ArchiveAsValidator.encode(__typed__); },
|
|
451
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRight_ArchiveAsValidatorResult.decoder; }),
|
|
452
|
+
resultEncode: function (__typed__) { return exports.ValidatorRight_ArchiveAsValidatorResult.encode(__typed__); },
|
|
453
|
+
},
|
|
454
|
+
ValidatorRight_ArchiveAsUser: {
|
|
455
|
+
template: function () { return exports.ValidatorRight; },
|
|
456
|
+
choiceName: 'ValidatorRight_ArchiveAsUser',
|
|
457
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRight_ArchiveAsUser.decoder; }),
|
|
458
|
+
argumentEncode: function (__typed__) { return exports.ValidatorRight_ArchiveAsUser.encode(__typed__); },
|
|
459
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.ValidatorRight_ArchiveAsUserResult.decoder; }),
|
|
460
|
+
resultEncode: function (__typed__) { return exports.ValidatorRight_ArchiveAsUserResult.encode(__typed__); },
|
|
461
|
+
},
|
|
462
|
+
Archive: {
|
|
463
|
+
template: function () { return exports.ValidatorRight; },
|
|
464
|
+
choiceName: 'Archive',
|
|
465
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
466
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
467
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
468
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
469
|
+
},
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
);
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
damlTypes.registerTemplate(exports.ValidatorRight, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
exports.LockedAmulet_ExpireAmulet = {
|
|
480
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({roundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).decoder, }); }),
|
|
481
|
+
encode: function (__typed__) {
|
|
482
|
+
return {
|
|
483
|
+
roundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).encode(__typed__.roundCid),
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
,
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
exports.LockedAmulet_OwnerExpireLock = {
|
|
492
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).decoder, }); }),
|
|
493
|
+
encode: function (__typed__) {
|
|
494
|
+
return {
|
|
495
|
+
openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).encode(__typed__.openRoundCid),
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
,
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
exports.LockedAmulet_Unlock = {
|
|
504
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).decoder, }); }),
|
|
505
|
+
encode: function (__typed__) {
|
|
506
|
+
return {
|
|
507
|
+
openRoundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).encode(__typed__.openRoundCid),
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
,
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
exports.LockedAmulet = damlTypes.assembleTemplate(
|
|
516
|
+
{
|
|
517
|
+
templateId: '#splice-amulet:Splice.Amulet:LockedAmulet',
|
|
518
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
519
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
520
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amulet: exports.Amulet.decoder, lock: Splice_Expiry.TimeLock.decoder, }); }),
|
|
521
|
+
encode: function (__typed__) {
|
|
522
|
+
return {
|
|
523
|
+
amulet: exports.Amulet.encode(__typed__.amulet),
|
|
524
|
+
lock: Splice_Expiry.TimeLock.encode(__typed__.lock),
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
,
|
|
528
|
+
LockedAmulet_Unlock: {
|
|
529
|
+
template: function () { return exports.LockedAmulet; },
|
|
530
|
+
choiceName: 'LockedAmulet_Unlock',
|
|
531
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.LockedAmulet_Unlock.decoder; }),
|
|
532
|
+
argumentEncode: function (__typed__) { return exports.LockedAmulet_Unlock.encode(__typed__); },
|
|
533
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.LockedAmulet_UnlockResult.decoder; }),
|
|
534
|
+
resultEncode: function (__typed__) { return exports.LockedAmulet_UnlockResult.encode(__typed__); },
|
|
535
|
+
},
|
|
536
|
+
LockedAmulet_OwnerExpireLock: {
|
|
537
|
+
template: function () { return exports.LockedAmulet; },
|
|
538
|
+
choiceName: 'LockedAmulet_OwnerExpireLock',
|
|
539
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.LockedAmulet_OwnerExpireLock.decoder; }),
|
|
540
|
+
argumentEncode: function (__typed__) { return exports.LockedAmulet_OwnerExpireLock.encode(__typed__); },
|
|
541
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.LockedAmulet_OwnerExpireLockResult.decoder; }),
|
|
542
|
+
resultEncode: function (__typed__) { return exports.LockedAmulet_OwnerExpireLockResult.encode(__typed__); },
|
|
543
|
+
},
|
|
544
|
+
LockedAmulet_ExpireAmulet: {
|
|
545
|
+
template: function () { return exports.LockedAmulet; },
|
|
546
|
+
choiceName: 'LockedAmulet_ExpireAmulet',
|
|
547
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.LockedAmulet_ExpireAmulet.decoder; }),
|
|
548
|
+
argumentEncode: function (__typed__) { return exports.LockedAmulet_ExpireAmulet.encode(__typed__); },
|
|
549
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.LockedAmulet_ExpireAmuletResult.decoder; }),
|
|
550
|
+
resultEncode: function (__typed__) { return exports.LockedAmulet_ExpireAmuletResult.encode(__typed__); },
|
|
551
|
+
},
|
|
552
|
+
Archive: {
|
|
553
|
+
template: function () { return exports.LockedAmulet; },
|
|
554
|
+
choiceName: 'Archive',
|
|
555
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
556
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
557
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
558
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
559
|
+
},
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
, pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding
|
|
563
|
+
);
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
damlTypes.registerTemplate(exports.LockedAmulet, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
exports.Amulet_Expire = {
|
|
571
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({roundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).decoder, }); }),
|
|
572
|
+
encode: function (__typed__) {
|
|
573
|
+
return {
|
|
574
|
+
roundCid: damlTypes.ContractId(Splice_Round.OpenMiningRound).encode(__typed__.roundCid),
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
,
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
exports.Amulet = damlTypes.assembleTemplate(
|
|
583
|
+
{
|
|
584
|
+
templateId: '#splice-amulet:Splice.Amulet:Amulet',
|
|
585
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
586
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
587
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({dso: damlTypes.Party.decoder, owner: damlTypes.Party.decoder, amount: Splice_Fees.ExpiringAmount.decoder, }); }),
|
|
588
|
+
encode: function (__typed__) {
|
|
589
|
+
return {
|
|
590
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
591
|
+
owner: damlTypes.Party.encode(__typed__.owner),
|
|
592
|
+
amount: Splice_Fees.ExpiringAmount.encode(__typed__.amount),
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
,
|
|
596
|
+
Amulet_Expire: {
|
|
597
|
+
template: function () { return exports.Amulet; },
|
|
598
|
+
choiceName: 'Amulet_Expire',
|
|
599
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Amulet_Expire.decoder; }),
|
|
600
|
+
argumentEncode: function (__typed__) { return exports.Amulet_Expire.encode(__typed__); },
|
|
601
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Amulet_ExpireResult.decoder; }),
|
|
602
|
+
resultEncode: function (__typed__) { return exports.Amulet_ExpireResult.encode(__typed__); },
|
|
603
|
+
},
|
|
604
|
+
Archive: {
|
|
605
|
+
template: function () { return exports.Amulet; },
|
|
606
|
+
choiceName: 'Archive',
|
|
607
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
608
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
609
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
610
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
611
|
+
},
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
, pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
damlTypes.registerTemplate(exports.Amulet, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
exports.UnclaimedActivityRecord_DsoExpireResult = {
|
|
623
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({unclaimedRewardCid: damlTypes.ContractId(exports.UnclaimedReward).decoder, }); }),
|
|
624
|
+
encode: function (__typed__) {
|
|
625
|
+
return {
|
|
626
|
+
unclaimedRewardCid: damlTypes.ContractId(exports.UnclaimedReward).encode(__typed__.unclaimedRewardCid),
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
,
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
exports.UnclaimedActivityRecord_ArchiveAsBeneficiaryResult = {
|
|
635
|
+
UnclaimedActivityRecord_ArchiveAsBeneficiaryResult: 'UnclaimedActivityRecord_ArchiveAsBeneficiaryResult',
|
|
636
|
+
keys: ['UnclaimedActivityRecord_ArchiveAsBeneficiaryResult',],
|
|
637
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.UnclaimedActivityRecord_ArchiveAsBeneficiaryResult.UnclaimedActivityRecord_ArchiveAsBeneficiaryResult)); }),
|
|
638
|
+
encode: function (__typed__) { return __typed__; },
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
exports.SvRewardCoupon_ArchiveAsBeneficiaryResult = {
|
|
644
|
+
SvRewardCoupon_ArchiveAsBeneficiaryResult: 'SvRewardCoupon_ArchiveAsBeneficiaryResult',
|
|
645
|
+
keys: ['SvRewardCoupon_ArchiveAsBeneficiaryResult',],
|
|
646
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.SvRewardCoupon_ArchiveAsBeneficiaryResult.SvRewardCoupon_ArchiveAsBeneficiaryResult)); }),
|
|
647
|
+
encode: function (__typed__) { return __typed__; },
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
exports.SvRewardCoupon_DsoExpireResult = {
|
|
653
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({weight: damlTypes.Int.decoder, }); }),
|
|
654
|
+
encode: function (__typed__) {
|
|
655
|
+
return {
|
|
656
|
+
weight: damlTypes.Int.encode(__typed__.weight),
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
,
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
exports.ValidatorRewardCoupon_ArchiveAsValidatorResult = {
|
|
665
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
666
|
+
encode: function (__typed__) {
|
|
667
|
+
return {
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
,
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
exports.ValidatorRewardCoupon_DsoExpireResult = {
|
|
676
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amount: damlTypes.Numeric(10).decoder, }); }),
|
|
677
|
+
encode: function (__typed__) {
|
|
678
|
+
return {
|
|
679
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
,
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
exports.AppRewardCoupon_DsoExpireResult = {
|
|
688
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({featured: damlTypes.Bool.decoder, amount: damlTypes.Numeric(10).decoder, }); }),
|
|
689
|
+
encode: function (__typed__) {
|
|
690
|
+
return {
|
|
691
|
+
featured: damlTypes.Bool.encode(__typed__.featured),
|
|
692
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
,
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
exports.FeaturedAppRight_CancelResult = {
|
|
701
|
+
FeaturedAppRight_CancelResult: 'FeaturedAppRight_CancelResult',
|
|
702
|
+
keys: ['FeaturedAppRight_CancelResult',],
|
|
703
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.FeaturedAppRight_CancelResult.FeaturedAppRight_CancelResult)); }),
|
|
704
|
+
encode: function (__typed__) { return __typed__; },
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
exports.FeaturedAppRight_WithdrawResult = {
|
|
710
|
+
FeaturedAppRight_WithdrawResult: 'FeaturedAppRight_WithdrawResult',
|
|
711
|
+
keys: ['FeaturedAppRight_WithdrawResult',],
|
|
712
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.FeaturedAppRight_WithdrawResult.FeaturedAppRight_WithdrawResult)); }),
|
|
713
|
+
encode: function (__typed__) { return __typed__; },
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
exports.ValidatorRight_ArchiveAsUserResult = {
|
|
719
|
+
ValidatorRight_ArchiveAsUserResult: 'ValidatorRight_ArchiveAsUserResult',
|
|
720
|
+
keys: ['ValidatorRight_ArchiveAsUserResult',],
|
|
721
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.ValidatorRight_ArchiveAsUserResult.ValidatorRight_ArchiveAsUserResult)); }),
|
|
722
|
+
encode: function (__typed__) { return __typed__; },
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
exports.ValidatorRight_ArchiveAsValidatorResult = {
|
|
728
|
+
ValidatorRight_ArchiveAsValidatorResult: 'ValidatorRight_ArchiveAsValidatorResult',
|
|
729
|
+
keys: ['ValidatorRight_ArchiveAsValidatorResult',],
|
|
730
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.ValidatorRight_ArchiveAsValidatorResult.ValidatorRight_ArchiveAsValidatorResult)); }),
|
|
731
|
+
encode: function (__typed__) { return __typed__; },
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
exports.LockedAmulet_ExpireAmuletResult = {
|
|
737
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expireSum: exports.AmuletExpireSummary.decoder, meta: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).decoder), }); }),
|
|
738
|
+
encode: function (__typed__) {
|
|
739
|
+
return {
|
|
740
|
+
expireSum: exports.AmuletExpireSummary.encode(__typed__.expireSum),
|
|
741
|
+
meta: damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).encode(__typed__.meta),
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
,
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
exports.LockedAmulet_OwnerExpireLockResult = {
|
|
750
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletSum: exports.AmuletCreateSummary(damlTypes.ContractId(exports.Amulet)).decoder, meta: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).decoder), }); }),
|
|
751
|
+
encode: function (__typed__) {
|
|
752
|
+
return {
|
|
753
|
+
amuletSum: exports.AmuletCreateSummary(damlTypes.ContractId(exports.Amulet)).encode(__typed__.amuletSum),
|
|
754
|
+
meta: damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).encode(__typed__.meta),
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
,
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
exports.LockedAmulet_UnlockResult = {
|
|
763
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletSum: exports.AmuletCreateSummary(damlTypes.ContractId(exports.Amulet)).decoder, meta: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).decoder), }); }),
|
|
764
|
+
encode: function (__typed__) {
|
|
765
|
+
return {
|
|
766
|
+
amuletSum: exports.AmuletCreateSummary(damlTypes.ContractId(exports.Amulet)).encode(__typed__.amuletSum),
|
|
767
|
+
meta: damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).encode(__typed__.meta),
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
,
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
exports.Amulet_ExpireResult = {
|
|
776
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expireSum: exports.AmuletExpireSummary.decoder, meta: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).decoder), }); }),
|
|
777
|
+
encode: function (__typed__) {
|
|
778
|
+
return {
|
|
779
|
+
expireSum: exports.AmuletExpireSummary.encode(__typed__.expireSum),
|
|
780
|
+
meta: damlTypes.Optional(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata).encode(__typed__.meta),
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
,
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
exports.AmuletCreateSummary = function (amuletContractId) { return ({
|
|
789
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amulet: amuletContractId.decoder, amuletPrice: damlTypes.Numeric(10).decoder, round: Splice_Types.Round.decoder, }); }),
|
|
790
|
+
encode: function (__typed__) {
|
|
791
|
+
return {
|
|
792
|
+
amulet: amuletContractId.encode(__typed__.amulet),
|
|
793
|
+
amuletPrice: damlTypes.Numeric(10).encode(__typed__.amuletPrice),
|
|
794
|
+
round: Splice_Types.Round.encode(__typed__.round),
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
,
|
|
798
|
+
}); };
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
exports.AmuletExpireSummary = {
|
|
803
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({owner: damlTypes.Party.decoder, round: Splice_Types.Round.decoder, changeToInitialAmountAsOfRoundZero: damlTypes.Numeric(10).decoder, changeToHoldingFeesRate: damlTypes.Numeric(10).decoder, }); }),
|
|
804
|
+
encode: function (__typed__) {
|
|
805
|
+
return {
|
|
806
|
+
owner: damlTypes.Party.encode(__typed__.owner),
|
|
807
|
+
round: Splice_Types.Round.encode(__typed__.round),
|
|
808
|
+
changeToInitialAmountAsOfRoundZero: damlTypes.Numeric(10).encode(__typed__.changeToInitialAmountAsOfRoundZero),
|
|
809
|
+
changeToHoldingFeesRate: damlTypes.Numeric(10).encode(__typed__.changeToHoldingFeesRate),
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
,
|
|
813
|
+
};
|
|
814
|
+
|