@fairmint/open-captable-protocol-daml-js 0.2.11 → 0.2.13
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 +154 -3
- package/generated/ocp-factory-contract-id.json +4 -4
- 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.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Document/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +2 -2
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +4 -4
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +2 -2
- 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 @@
|
|
|
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,35 @@
|
|
|
1
|
+
// Generated from Splice/AmuletTransferInstruction.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 pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281 from '@daml.js/splice-api-token-transfer-instruction-v1-1.0.0';
|
|
11
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../DA/Internal/Template';
|
|
12
|
+
|
|
13
|
+
import * as Splice_Amulet from '../../Splice/Amulet/module';
|
|
14
|
+
|
|
15
|
+
export declare type AmuletTransferInstruction = {
|
|
16
|
+
lockedAmulet: damlTypes.ContractId<Splice_Amulet.LockedAmulet>;
|
|
17
|
+
transfer: pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281.Splice.Api.Token.TransferInstructionV1.Transfer;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare interface AmuletTransferInstructionInterface {
|
|
21
|
+
Archive: damlTypes.Choice<AmuletTransferInstruction, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<AmuletTransferInstruction, undefined>>;
|
|
22
|
+
}
|
|
23
|
+
export declare const AmuletTransferInstruction:
|
|
24
|
+
damlTypes.Template<AmuletTransferInstruction, undefined, '#splice-amulet:Splice.AmuletTransferInstruction:AmuletTransferInstruction'> &
|
|
25
|
+
damlTypes.ToInterface<AmuletTransferInstruction, pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281.Splice.Api.Token.TransferInstructionV1.TransferInstruction> &
|
|
26
|
+
AmuletTransferInstructionInterface;
|
|
27
|
+
|
|
28
|
+
export declare namespace AmuletTransferInstruction {
|
|
29
|
+
export type CreateEvent = damlLedger.CreateEvent<AmuletTransferInstruction, undefined, typeof AmuletTransferInstruction.templateId>
|
|
30
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<AmuletTransferInstruction, typeof AmuletTransferInstruction.templateId>
|
|
31
|
+
export type Event = damlLedger.Event<AmuletTransferInstruction, undefined, typeof AmuletTransferInstruction.templateId>
|
|
32
|
+
export type QueryResult = damlLedger.QueryResult<AmuletTransferInstruction, undefined, typeof AmuletTransferInstruction.templateId>
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
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 pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281 = require('@daml.js/splice-api-token-transfer-instruction-v1-1.0.0');
|
|
16
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../DA/Internal/Template');
|
|
17
|
+
|
|
18
|
+
var Splice_Amulet = require('../../Splice/Amulet/module');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.AmuletTransferInstruction = damlTypes.assembleTemplate(
|
|
22
|
+
{
|
|
23
|
+
templateId: '#splice-amulet:Splice.AmuletTransferInstruction:AmuletTransferInstruction',
|
|
24
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
25
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
26
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({lockedAmulet: damlTypes.ContractId(Splice_Amulet.LockedAmulet).decoder, transfer: pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281.Splice.Api.Token.TransferInstructionV1.Transfer.decoder, }); }),
|
|
27
|
+
encode: function (__typed__) {
|
|
28
|
+
return {
|
|
29
|
+
lockedAmulet: damlTypes.ContractId(Splice_Amulet.LockedAmulet).encode(__typed__.lockedAmulet),
|
|
30
|
+
transfer: pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281.Splice.Api.Token.TransferInstructionV1.Transfer.encode(__typed__.transfer),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
,
|
|
34
|
+
Archive: {
|
|
35
|
+
template: function () { return exports.AmuletTransferInstruction; },
|
|
36
|
+
choiceName: 'Archive',
|
|
37
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
38
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
39
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
40
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
, pkg55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281.Splice.Api.Token.TransferInstructionV1.TransferInstruction
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
damlTypes.registerTemplate(exports.AmuletTransferInstruction, ['3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1', '#splice-amulet']);
|
|
49
|
+
|
|
@@ -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,149 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/AllocationInstructionV1.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 pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
|
|
11
|
+
import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
|
|
12
|
+
import * as pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d from '@daml.js/splice-api-token-allocation-v1-1.0.0';
|
|
13
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
|
|
14
|
+
|
|
15
|
+
export declare type AllocationFactory = damlTypes.Interface<'275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> & AllocationFactoryView;
|
|
16
|
+
export declare interface AllocationFactoryInterface {
|
|
17
|
+
Archive: damlTypes.Choice<AllocationFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
|
|
18
|
+
AllocationFactory_Allocate: damlTypes.Choice<AllocationFactory, AllocationFactory_Allocate, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
|
|
19
|
+
AllocationFactory_PublicFetch: damlTypes.Choice<AllocationFactory, AllocationFactory_PublicFetch, AllocationFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
|
|
20
|
+
}
|
|
21
|
+
export declare const AllocationFactory:
|
|
22
|
+
damlTypes.InterfaceCompanion<AllocationFactory, undefined, '275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> &
|
|
23
|
+
damlTypes.FromTemplate<AllocationFactory, unknown> &
|
|
24
|
+
AllocationFactoryInterface;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare type AllocationInstruction = damlTypes.Interface<'275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction'> & AllocationInstructionView;
|
|
28
|
+
export declare interface AllocationInstructionInterface {
|
|
29
|
+
Archive: damlTypes.Choice<AllocationInstruction, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
|
|
30
|
+
AllocationInstruction_Withdraw: damlTypes.Choice<AllocationInstruction, AllocationInstruction_Withdraw, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
|
|
31
|
+
AllocationInstruction_Update: damlTypes.Choice<AllocationInstruction, AllocationInstruction_Update, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
|
|
32
|
+
}
|
|
33
|
+
export declare const AllocationInstruction:
|
|
34
|
+
damlTypes.InterfaceCompanion<AllocationInstruction, undefined, '275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction'> &
|
|
35
|
+
damlTypes.FromTemplate<AllocationInstruction, unknown> &
|
|
36
|
+
AllocationInstructionInterface;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export declare type AllocationInstructionResult_Output =
|
|
40
|
+
| { tag: 'AllocationInstructionResult_Pending'; value: AllocationInstructionResult_Output.AllocationInstructionResult_Pending }
|
|
41
|
+
| { tag: 'AllocationInstructionResult_Completed'; value: AllocationInstructionResult_Output.AllocationInstructionResult_Completed }
|
|
42
|
+
| { tag: 'AllocationInstructionResult_Failed'; value: {} }
|
|
43
|
+
;
|
|
44
|
+
|
|
45
|
+
export declare const AllocationInstructionResult_Output:
|
|
46
|
+
damlTypes.Serializable<AllocationInstructionResult_Output> & {
|
|
47
|
+
AllocationInstructionResult_Pending: damlTypes.Serializable<AllocationInstructionResult_Output.AllocationInstructionResult_Pending>;
|
|
48
|
+
AllocationInstructionResult_Completed: damlTypes.Serializable<AllocationInstructionResult_Output.AllocationInstructionResult_Completed>;
|
|
49
|
+
}
|
|
50
|
+
;
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export namespace AllocationInstructionResult_Output {
|
|
54
|
+
type AllocationInstructionResult_Pending = {
|
|
55
|
+
allocationInstructionCid: damlTypes.ContractId<AllocationInstruction>;
|
|
56
|
+
};
|
|
57
|
+
} //namespace AllocationInstructionResult_Output
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export namespace AllocationInstructionResult_Output {
|
|
61
|
+
type AllocationInstructionResult_Completed = {
|
|
62
|
+
allocationCid: damlTypes.ContractId<pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.Allocation>;
|
|
63
|
+
};
|
|
64
|
+
} //namespace AllocationInstructionResult_Output
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
export declare type AllocationInstructionResult = {
|
|
68
|
+
output: AllocationInstructionResult_Output;
|
|
69
|
+
senderChangeCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
70
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export declare const AllocationInstructionResult:
|
|
74
|
+
damlTypes.Serializable<AllocationInstructionResult> & {
|
|
75
|
+
}
|
|
76
|
+
;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
export declare type AllocationFactory_PublicFetch = {
|
|
80
|
+
expectedAdmin: damlTypes.Party;
|
|
81
|
+
actor: damlTypes.Party;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export declare const AllocationFactory_PublicFetch:
|
|
85
|
+
damlTypes.Serializable<AllocationFactory_PublicFetch> & {
|
|
86
|
+
}
|
|
87
|
+
;
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
export declare type AllocationFactory_Allocate = {
|
|
91
|
+
expectedAdmin: damlTypes.Party;
|
|
92
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification;
|
|
93
|
+
requestedAt: damlTypes.Time;
|
|
94
|
+
inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
95
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export declare const AllocationFactory_Allocate:
|
|
99
|
+
damlTypes.Serializable<AllocationFactory_Allocate> & {
|
|
100
|
+
}
|
|
101
|
+
;
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
export declare type AllocationFactoryView = {
|
|
105
|
+
admin: damlTypes.Party;
|
|
106
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare const AllocationFactoryView:
|
|
110
|
+
damlTypes.Serializable<AllocationFactoryView> & {
|
|
111
|
+
}
|
|
112
|
+
;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
export declare type AllocationInstruction_Update = {
|
|
116
|
+
extraActors: damlTypes.Party[];
|
|
117
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export declare const AllocationInstruction_Update:
|
|
121
|
+
damlTypes.Serializable<AllocationInstruction_Update> & {
|
|
122
|
+
}
|
|
123
|
+
;
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
export declare type AllocationInstruction_Withdraw = {
|
|
127
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export declare const AllocationInstruction_Withdraw:
|
|
131
|
+
damlTypes.Serializable<AllocationInstruction_Withdraw> & {
|
|
132
|
+
}
|
|
133
|
+
;
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
export declare type AllocationInstructionView = {
|
|
137
|
+
originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<AllocationInstruction>>;
|
|
138
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification;
|
|
139
|
+
pendingActions: damlTypes.Map<damlTypes.Party, string>;
|
|
140
|
+
requestedAt: damlTypes.Time;
|
|
141
|
+
inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
142
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export declare const AllocationInstructionView:
|
|
146
|
+
damlTypes.Serializable<AllocationInstructionView> & {
|
|
147
|
+
}
|
|
148
|
+
;
|
|
149
|
+
|
|
@@ -0,0 +1,215 @@
|
|
|
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('../MetadataV1');
|
|
16
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
|
|
17
|
+
var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = require('@daml.js/splice-api-token-allocation-v1-1.0.0');
|
|
18
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
19
|
+
|
|
20
|
+
exports.AllocationFactory = damlTypes.assembleInterface(
|
|
21
|
+
'275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
22
|
+
function () { return exports.AllocationFactoryView; },
|
|
23
|
+
{
|
|
24
|
+
Archive: {
|
|
25
|
+
template: function () { return exports.AllocationFactory; },
|
|
26
|
+
choiceName: 'Archive',
|
|
27
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
28
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
29
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
30
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
31
|
+
},
|
|
32
|
+
AllocationFactory_Allocate: {
|
|
33
|
+
template: function () { return exports.AllocationFactory; },
|
|
34
|
+
choiceName: 'AllocationFactory_Allocate',
|
|
35
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_Allocate.decoder; }),
|
|
36
|
+
argumentEncode: function (__typed__) { return exports.AllocationFactory_Allocate.encode(__typed__); },
|
|
37
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
38
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
39
|
+
},
|
|
40
|
+
AllocationFactory_PublicFetch: {
|
|
41
|
+
template: function () { return exports.AllocationFactory; },
|
|
42
|
+
choiceName: 'AllocationFactory_PublicFetch',
|
|
43
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_PublicFetch.decoder; }),
|
|
44
|
+
argumentEncode: function (__typed__) { return exports.AllocationFactory_PublicFetch.encode(__typed__); },
|
|
45
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactoryView.decoder; }),
|
|
46
|
+
resultEncode: function (__typed__) { return exports.AllocationFactoryView.encode(__typed__); },
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
exports.AllocationInstruction = damlTypes.assembleInterface(
|
|
52
|
+
'275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
53
|
+
function () { return exports.AllocationInstructionView; },
|
|
54
|
+
{
|
|
55
|
+
Archive: {
|
|
56
|
+
template: function () { return exports.AllocationInstruction; },
|
|
57
|
+
choiceName: 'Archive',
|
|
58
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
59
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
60
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
61
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
62
|
+
},
|
|
63
|
+
AllocationInstruction_Withdraw: {
|
|
64
|
+
template: function () { return exports.AllocationInstruction; },
|
|
65
|
+
choiceName: 'AllocationInstruction_Withdraw',
|
|
66
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Withdraw.decoder; }),
|
|
67
|
+
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Withdraw.encode(__typed__); },
|
|
68
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
69
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
70
|
+
},
|
|
71
|
+
AllocationInstruction_Update: {
|
|
72
|
+
template: function () { return exports.AllocationInstruction; },
|
|
73
|
+
choiceName: 'AllocationInstruction_Update',
|
|
74
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Update.decoder; }),
|
|
75
|
+
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Update.encode(__typed__); },
|
|
76
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
77
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
exports.AllocationInstructionResult_Output = {
|
|
84
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AllocationInstructionResult_Pending'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Completed'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
85
|
+
encode: function (__typed__) {
|
|
86
|
+
switch(__typed__.tag) {
|
|
87
|
+
case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
|
|
88
|
+
case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
|
|
89
|
+
case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
90
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
,
|
|
94
|
+
AllocationInstructionResult_Pending:({
|
|
95
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).decoder, }); }),
|
|
96
|
+
encode: function (__typed__) {
|
|
97
|
+
return {
|
|
98
|
+
allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).encode(__typed__.allocationInstructionCid),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
,
|
|
102
|
+
}),
|
|
103
|
+
AllocationInstructionResult_Completed:({
|
|
104
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.Allocation).decoder, }); }),
|
|
105
|
+
encode: function (__typed__) {
|
|
106
|
+
return {
|
|
107
|
+
allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.Allocation).encode(__typed__.allocationCid),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
,
|
|
111
|
+
}),
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
exports.AllocationInstructionResult = {
|
|
121
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.AllocationInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
122
|
+
encode: function (__typed__) {
|
|
123
|
+
return {
|
|
124
|
+
output: exports.AllocationInstructionResult_Output.encode(__typed__.output),
|
|
125
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderChangeCids),
|
|
126
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
exports.AllocationFactory_PublicFetch = {
|
|
135
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
|
|
136
|
+
encode: function (__typed__) {
|
|
137
|
+
return {
|
|
138
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
139
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
,
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
exports.AllocationFactory_Allocate = {
|
|
148
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
149
|
+
encode: function (__typed__) {
|
|
150
|
+
return {
|
|
151
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
152
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.encode(__typed__.allocation),
|
|
153
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
154
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
155
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
,
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
exports.AllocationFactoryView = {
|
|
164
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
165
|
+
encode: function (__typed__) {
|
|
166
|
+
return {
|
|
167
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
168
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
,
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
exports.AllocationInstruction_Update = {
|
|
177
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
178
|
+
encode: function (__typed__) {
|
|
179
|
+
return {
|
|
180
|
+
extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
|
|
181
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
,
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
exports.AllocationInstruction_Withdraw = {
|
|
190
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
191
|
+
encode: function (__typed__) {
|
|
192
|
+
return {
|
|
193
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
,
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
exports.AllocationInstructionView = {
|
|
202
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).decoder), allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.decoder, pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
203
|
+
encode: function (__typed__) {
|
|
204
|
+
return {
|
|
205
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).encode(__typed__.originalInstructionCid),
|
|
206
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.encode(__typed__.allocation),
|
|
207
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
208
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
209
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
210
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
,
|
|
214
|
+
};
|
|
215
|
+
|
|
@@ -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,153 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/AllocationV1.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
|
|
11
|
+
import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
|
|
12
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
|
|
13
|
+
|
|
14
|
+
export declare type Allocation = damlTypes.Interface<'93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d:Splice.Api.Token.AllocationV1:Allocation'> & AllocationView;
|
|
15
|
+
export declare interface AllocationInterface {
|
|
16
|
+
Archive: damlTypes.Choice<Allocation, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
17
|
+
Allocation_Withdraw: damlTypes.Choice<Allocation, Allocation_Withdraw, Allocation_WithdrawResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
18
|
+
Allocation_Cancel: damlTypes.Choice<Allocation, Allocation_Cancel, Allocation_CancelResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
19
|
+
Allocation_ExecuteTransfer: damlTypes.Choice<Allocation, Allocation_ExecuteTransfer, Allocation_ExecuteTransferResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
20
|
+
}
|
|
21
|
+
export declare const Allocation:
|
|
22
|
+
damlTypes.InterfaceCompanion<Allocation, undefined, '93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d:Splice.Api.Token.AllocationV1:Allocation'> &
|
|
23
|
+
damlTypes.FromTemplate<Allocation, unknown> &
|
|
24
|
+
AllocationInterface;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare type Allocation_WithdrawResult = {
|
|
28
|
+
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
29
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export declare const Allocation_WithdrawResult:
|
|
33
|
+
damlTypes.Serializable<Allocation_WithdrawResult> & {
|
|
34
|
+
}
|
|
35
|
+
;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export declare type Allocation_CancelResult = {
|
|
39
|
+
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
40
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export declare const Allocation_CancelResult:
|
|
44
|
+
damlTypes.Serializable<Allocation_CancelResult> & {
|
|
45
|
+
}
|
|
46
|
+
;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export declare type Allocation_ExecuteTransferResult = {
|
|
50
|
+
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
51
|
+
receiverHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
52
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export declare const Allocation_ExecuteTransferResult:
|
|
56
|
+
damlTypes.Serializable<Allocation_ExecuteTransferResult> & {
|
|
57
|
+
}
|
|
58
|
+
;
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
export declare type Allocation_Withdraw = {
|
|
62
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare const Allocation_Withdraw:
|
|
66
|
+
damlTypes.Serializable<Allocation_Withdraw> & {
|
|
67
|
+
}
|
|
68
|
+
;
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
export declare type Allocation_Cancel = {
|
|
72
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export declare const Allocation_Cancel:
|
|
76
|
+
damlTypes.Serializable<Allocation_Cancel> & {
|
|
77
|
+
}
|
|
78
|
+
;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
export declare type Allocation_ExecuteTransfer = {
|
|
82
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export declare const Allocation_ExecuteTransfer:
|
|
86
|
+
damlTypes.Serializable<Allocation_ExecuteTransfer> & {
|
|
87
|
+
}
|
|
88
|
+
;
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
export declare type AllocationView = {
|
|
92
|
+
allocation: AllocationSpecification;
|
|
93
|
+
holdingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
94
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export declare const AllocationView:
|
|
98
|
+
damlTypes.Serializable<AllocationView> & {
|
|
99
|
+
}
|
|
100
|
+
;
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
export declare type AllocationSpecification = {
|
|
104
|
+
settlement: SettlementInfo;
|
|
105
|
+
transferLegId: string;
|
|
106
|
+
transferLeg: TransferLeg;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare const AllocationSpecification:
|
|
110
|
+
damlTypes.Serializable<AllocationSpecification> & {
|
|
111
|
+
}
|
|
112
|
+
;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
export declare type TransferLeg = {
|
|
116
|
+
sender: damlTypes.Party;
|
|
117
|
+
receiver: damlTypes.Party;
|
|
118
|
+
amount: damlTypes.Numeric;
|
|
119
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId;
|
|
120
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export declare const TransferLeg:
|
|
124
|
+
damlTypes.Serializable<TransferLeg> & {
|
|
125
|
+
}
|
|
126
|
+
;
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
export declare type SettlementInfo = {
|
|
130
|
+
executor: damlTypes.Party;
|
|
131
|
+
settlementRef: Reference;
|
|
132
|
+
requestedAt: damlTypes.Time;
|
|
133
|
+
allocateBefore: damlTypes.Time;
|
|
134
|
+
settleBefore: damlTypes.Time;
|
|
135
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export declare const SettlementInfo:
|
|
139
|
+
damlTypes.Serializable<SettlementInfo> & {
|
|
140
|
+
}
|
|
141
|
+
;
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
export declare type Reference = {
|
|
145
|
+
id: string;
|
|
146
|
+
cid: damlTypes.Optional<damlTypes.ContractId<pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.AnyContract>>;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export declare const Reference:
|
|
150
|
+
damlTypes.Serializable<Reference> & {
|
|
151
|
+
}
|
|
152
|
+
;
|
|
153
|
+
|