@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,202 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/TransferInstructionV1.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* 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 TransferFactory = damlTypes.Interface<'55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferFactory'> & TransferFactoryView;
|
|
15
|
+
export declare interface TransferFactoryInterface {
|
|
16
|
+
Archive: damlTypes.Choice<TransferFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
17
|
+
TransferFactory_Transfer: damlTypes.Choice<TransferFactory, TransferFactory_Transfer, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
18
|
+
TransferFactory_PublicFetch: damlTypes.Choice<TransferFactory, TransferFactory_PublicFetch, TransferFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
19
|
+
}
|
|
20
|
+
export declare const TransferFactory:
|
|
21
|
+
damlTypes.InterfaceCompanion<TransferFactory, undefined, '55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferFactory'> &
|
|
22
|
+
damlTypes.FromTemplate<TransferFactory, unknown> &
|
|
23
|
+
TransferFactoryInterface;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export declare type TransferInstruction = damlTypes.Interface<'55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> & TransferInstructionView;
|
|
27
|
+
export declare interface TransferInstructionInterface {
|
|
28
|
+
Archive: damlTypes.Choice<TransferInstruction, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
29
|
+
TransferInstruction_Accept: damlTypes.Choice<TransferInstruction, TransferInstruction_Accept, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
30
|
+
TransferInstruction_Reject: damlTypes.Choice<TransferInstruction, TransferInstruction_Reject, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
31
|
+
TransferInstruction_Withdraw: damlTypes.Choice<TransferInstruction, TransferInstruction_Withdraw, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
32
|
+
TransferInstruction_Update: damlTypes.Choice<TransferInstruction, TransferInstruction_Update, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
33
|
+
}
|
|
34
|
+
export declare const TransferInstruction:
|
|
35
|
+
damlTypes.InterfaceCompanion<TransferInstruction, undefined, '55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> &
|
|
36
|
+
damlTypes.FromTemplate<TransferInstruction, unknown> &
|
|
37
|
+
TransferInstructionInterface;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
export declare type TransferFactoryView = {
|
|
41
|
+
admin: damlTypes.Party;
|
|
42
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export declare const TransferFactoryView:
|
|
46
|
+
damlTypes.Serializable<TransferFactoryView> & {
|
|
47
|
+
}
|
|
48
|
+
;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export declare type TransferFactory_PublicFetch = {
|
|
52
|
+
expectedAdmin: damlTypes.Party;
|
|
53
|
+
actor: damlTypes.Party;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export declare const TransferFactory_PublicFetch:
|
|
57
|
+
damlTypes.Serializable<TransferFactory_PublicFetch> & {
|
|
58
|
+
}
|
|
59
|
+
;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export declare type TransferFactory_Transfer = {
|
|
63
|
+
expectedAdmin: damlTypes.Party;
|
|
64
|
+
transfer: Transfer;
|
|
65
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export declare const TransferFactory_Transfer:
|
|
69
|
+
damlTypes.Serializable<TransferFactory_Transfer> & {
|
|
70
|
+
}
|
|
71
|
+
;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
export declare type TransferInstruction_Update = {
|
|
75
|
+
extraActors: damlTypes.Party[];
|
|
76
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export declare const TransferInstruction_Update:
|
|
80
|
+
damlTypes.Serializable<TransferInstruction_Update> & {
|
|
81
|
+
}
|
|
82
|
+
;
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
export declare type TransferInstruction_Withdraw = {
|
|
86
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export declare const TransferInstruction_Withdraw:
|
|
90
|
+
damlTypes.Serializable<TransferInstruction_Withdraw> & {
|
|
91
|
+
}
|
|
92
|
+
;
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
export declare type TransferInstruction_Reject = {
|
|
96
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export declare const TransferInstruction_Reject:
|
|
100
|
+
damlTypes.Serializable<TransferInstruction_Reject> & {
|
|
101
|
+
}
|
|
102
|
+
;
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
export declare type TransferInstruction_Accept = {
|
|
106
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare const TransferInstruction_Accept:
|
|
110
|
+
damlTypes.Serializable<TransferInstruction_Accept> & {
|
|
111
|
+
}
|
|
112
|
+
;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
export declare type TransferInstructionView = {
|
|
116
|
+
originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<TransferInstruction>>;
|
|
117
|
+
transfer: Transfer;
|
|
118
|
+
status: TransferInstructionStatus;
|
|
119
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export declare const TransferInstructionView:
|
|
123
|
+
damlTypes.Serializable<TransferInstructionView> & {
|
|
124
|
+
}
|
|
125
|
+
;
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
export declare type TransferInstructionStatus =
|
|
129
|
+
| { tag: 'TransferPendingReceiverAcceptance'; value: {} }
|
|
130
|
+
| { tag: 'TransferPendingInternalWorkflow'; value: TransferInstructionStatus.TransferPendingInternalWorkflow }
|
|
131
|
+
;
|
|
132
|
+
|
|
133
|
+
export declare const TransferInstructionStatus:
|
|
134
|
+
damlTypes.Serializable<TransferInstructionStatus> & {
|
|
135
|
+
TransferPendingInternalWorkflow: damlTypes.Serializable<TransferInstructionStatus.TransferPendingInternalWorkflow>;
|
|
136
|
+
}
|
|
137
|
+
;
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
export namespace TransferInstructionStatus {
|
|
141
|
+
type TransferPendingInternalWorkflow = {
|
|
142
|
+
pendingActions: damlTypes.Map<damlTypes.Party, string>;
|
|
143
|
+
};
|
|
144
|
+
} //namespace TransferInstructionStatus
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
export declare type TransferInstructionResult_Output =
|
|
148
|
+
| { tag: 'TransferInstructionResult_Pending'; value: TransferInstructionResult_Output.TransferInstructionResult_Pending }
|
|
149
|
+
| { tag: 'TransferInstructionResult_Completed'; value: TransferInstructionResult_Output.TransferInstructionResult_Completed }
|
|
150
|
+
| { tag: 'TransferInstructionResult_Failed'; value: {} }
|
|
151
|
+
;
|
|
152
|
+
|
|
153
|
+
export declare const TransferInstructionResult_Output:
|
|
154
|
+
damlTypes.Serializable<TransferInstructionResult_Output> & {
|
|
155
|
+
TransferInstructionResult_Pending: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Pending>;
|
|
156
|
+
TransferInstructionResult_Completed: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Completed>;
|
|
157
|
+
}
|
|
158
|
+
;
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
export namespace TransferInstructionResult_Output {
|
|
162
|
+
type TransferInstructionResult_Pending = {
|
|
163
|
+
transferInstructionCid: damlTypes.ContractId<TransferInstruction>;
|
|
164
|
+
};
|
|
165
|
+
} //namespace TransferInstructionResult_Output
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
export namespace TransferInstructionResult_Output {
|
|
169
|
+
type TransferInstructionResult_Completed = {
|
|
170
|
+
receiverHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
171
|
+
};
|
|
172
|
+
} //namespace TransferInstructionResult_Output
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
export declare type TransferInstructionResult = {
|
|
176
|
+
output: TransferInstructionResult_Output;
|
|
177
|
+
senderChangeCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
178
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export declare const TransferInstructionResult:
|
|
182
|
+
damlTypes.Serializable<TransferInstructionResult> & {
|
|
183
|
+
}
|
|
184
|
+
;
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
export declare type Transfer = {
|
|
188
|
+
sender: damlTypes.Party;
|
|
189
|
+
receiver: damlTypes.Party;
|
|
190
|
+
amount: damlTypes.Numeric;
|
|
191
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId;
|
|
192
|
+
requestedAt: damlTypes.Time;
|
|
193
|
+
executeBefore: damlTypes.Time;
|
|
194
|
+
inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
195
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export declare const Transfer:
|
|
199
|
+
damlTypes.Serializable<Transfer> & {
|
|
200
|
+
}
|
|
201
|
+
;
|
|
202
|
+
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
|
|
16
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
|
|
17
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
18
|
+
|
|
19
|
+
exports.TransferFactory = damlTypes.assembleInterface(
|
|
20
|
+
'55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
21
|
+
function () { return exports.TransferFactoryView; },
|
|
22
|
+
{
|
|
23
|
+
Archive: {
|
|
24
|
+
template: function () { return exports.TransferFactory; },
|
|
25
|
+
choiceName: 'Archive',
|
|
26
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
27
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
28
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
29
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
30
|
+
},
|
|
31
|
+
TransferFactory_Transfer: {
|
|
32
|
+
template: function () { return exports.TransferFactory; },
|
|
33
|
+
choiceName: 'TransferFactory_Transfer',
|
|
34
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_Transfer.decoder; }),
|
|
35
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_Transfer.encode(__typed__); },
|
|
36
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
37
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
38
|
+
},
|
|
39
|
+
TransferFactory_PublicFetch: {
|
|
40
|
+
template: function () { return exports.TransferFactory; },
|
|
41
|
+
choiceName: 'TransferFactory_PublicFetch',
|
|
42
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_PublicFetch.decoder; }),
|
|
43
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_PublicFetch.encode(__typed__); },
|
|
44
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactoryView.decoder; }),
|
|
45
|
+
resultEncode: function (__typed__) { return exports.TransferFactoryView.encode(__typed__); },
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
exports.TransferInstruction = damlTypes.assembleInterface(
|
|
51
|
+
'55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
52
|
+
function () { return exports.TransferInstructionView; },
|
|
53
|
+
{
|
|
54
|
+
Archive: {
|
|
55
|
+
template: function () { return exports.TransferInstruction; },
|
|
56
|
+
choiceName: 'Archive',
|
|
57
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
58
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
59
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
60
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
61
|
+
},
|
|
62
|
+
TransferInstruction_Accept: {
|
|
63
|
+
template: function () { return exports.TransferInstruction; },
|
|
64
|
+
choiceName: 'TransferInstruction_Accept',
|
|
65
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Accept.decoder; }),
|
|
66
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Accept.encode(__typed__); },
|
|
67
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
68
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
69
|
+
},
|
|
70
|
+
TransferInstruction_Reject: {
|
|
71
|
+
template: function () { return exports.TransferInstruction; },
|
|
72
|
+
choiceName: 'TransferInstruction_Reject',
|
|
73
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Reject.decoder; }),
|
|
74
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Reject.encode(__typed__); },
|
|
75
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
76
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
77
|
+
},
|
|
78
|
+
TransferInstruction_Withdraw: {
|
|
79
|
+
template: function () { return exports.TransferInstruction; },
|
|
80
|
+
choiceName: 'TransferInstruction_Withdraw',
|
|
81
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Withdraw.decoder; }),
|
|
82
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Withdraw.encode(__typed__); },
|
|
83
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
84
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
85
|
+
},
|
|
86
|
+
TransferInstruction_Update: {
|
|
87
|
+
template: function () { return exports.TransferInstruction; },
|
|
88
|
+
choiceName: 'TransferInstruction_Update',
|
|
89
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Update.decoder; }),
|
|
90
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Update.encode(__typed__); },
|
|
91
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
92
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
exports.TransferFactoryView = {
|
|
99
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
100
|
+
encode: function (__typed__) {
|
|
101
|
+
return {
|
|
102
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
103
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
,
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
exports.TransferFactory_PublicFetch = {
|
|
112
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
|
|
113
|
+
encode: function (__typed__) {
|
|
114
|
+
return {
|
|
115
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
116
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
,
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
exports.TransferFactory_Transfer = {
|
|
125
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, transfer: exports.Transfer.decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
126
|
+
encode: function (__typed__) {
|
|
127
|
+
return {
|
|
128
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
129
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
130
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
,
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
exports.TransferInstruction_Update = {
|
|
139
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
140
|
+
encode: function (__typed__) {
|
|
141
|
+
return {
|
|
142
|
+
extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
|
|
143
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
,
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
exports.TransferInstruction_Withdraw = {
|
|
152
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
153
|
+
encode: function (__typed__) {
|
|
154
|
+
return {
|
|
155
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
,
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
exports.TransferInstruction_Reject = {
|
|
164
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
165
|
+
encode: function (__typed__) {
|
|
166
|
+
return {
|
|
167
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
,
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
exports.TransferInstruction_Accept = {
|
|
176
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder, }); }),
|
|
177
|
+
encode: function (__typed__) {
|
|
178
|
+
return {
|
|
179
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
,
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
exports.TransferInstructionView = {
|
|
188
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).decoder), transfer: exports.Transfer.decoder, status: exports.TransferInstructionStatus.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
189
|
+
encode: function (__typed__) {
|
|
190
|
+
return {
|
|
191
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).encode(__typed__.originalInstructionCid),
|
|
192
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
193
|
+
status: exports.TransferInstructionStatus.encode(__typed__.status),
|
|
194
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
,
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
exports.TransferInstructionStatus = {
|
|
203
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferPendingReceiverAcceptance'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('TransferPendingInternalWorkflow'), value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.decoder, })); }),
|
|
204
|
+
encode: function (__typed__) {
|
|
205
|
+
switch(__typed__.tag) {
|
|
206
|
+
case 'TransferPendingReceiverAcceptance': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
207
|
+
case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(__typed__.value)};
|
|
208
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionStatus';
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
,
|
|
212
|
+
TransferPendingInternalWorkflow:({
|
|
213
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, }); }),
|
|
214
|
+
encode: function (__typed__) {
|
|
215
|
+
return {
|
|
216
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
,
|
|
220
|
+
}),
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
exports.TransferInstructionResult_Output = {
|
|
228
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferInstructionResult_Pending'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Completed'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
229
|
+
encode: function (__typed__) {
|
|
230
|
+
switch(__typed__.tag) {
|
|
231
|
+
case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(__typed__.value)};
|
|
232
|
+
case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(__typed__.value)};
|
|
233
|
+
case 'TransferInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
234
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionResult_Output';
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
,
|
|
238
|
+
TransferInstructionResult_Pending:({
|
|
239
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).decoder, }); }),
|
|
240
|
+
encode: function (__typed__) {
|
|
241
|
+
return {
|
|
242
|
+
transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).encode(__typed__.transferInstructionCid),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
,
|
|
246
|
+
}),
|
|
247
|
+
TransferInstructionResult_Completed:({
|
|
248
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder, }); }),
|
|
249
|
+
encode: function (__typed__) {
|
|
250
|
+
return {
|
|
251
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.receiverHoldingCids),
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
,
|
|
255
|
+
}),
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
exports.TransferInstructionResult = {
|
|
265
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.TransferInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
266
|
+
encode: function (__typed__) {
|
|
267
|
+
return {
|
|
268
|
+
output: exports.TransferInstructionResult_Output.encode(__typed__.output),
|
|
269
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderChangeCids),
|
|
270
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
,
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
exports.Transfer = {
|
|
279
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId.decoder, requestedAt: damlTypes.Time.decoder, executeBefore: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder, }); }),
|
|
280
|
+
encode: function (__typed__) {
|
|
281
|
+
return {
|
|
282
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
283
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
284
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
285
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId.encode(__typed__.instrumentId),
|
|
286
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
287
|
+
executeBefore: damlTypes.Time.encode(__typed__.executeBefore),
|
|
288
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
289
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
,
|
|
293
|
+
};
|
|
294
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var TransferInstructionV1 = require('./TransferInstructionV1');
|
|
9
|
+
exports.TransferInstructionV1 = TransferInstructionV1;
|
|
@@ -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,89 @@
|
|
|
1
|
+
// Generated from Splice/DecentralizedSynchronizer.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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../DA/Internal/Template';
|
|
11
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../DA/Time/Types';
|
|
12
|
+
import * as pkgc3bb0c5d04799b3f11bad7c3c102963e115cf53da3e4afcbcfd9f06ebd82b4ff from '../../DA/Set/Types';
|
|
13
|
+
|
|
14
|
+
export declare type ForMemberTraffic = {
|
|
15
|
+
dso: damlTypes.Party;
|
|
16
|
+
memberId: string;
|
|
17
|
+
synchronizerId: string;
|
|
18
|
+
migrationId: damlTypes.Int;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export declare const ForMemberTraffic:
|
|
22
|
+
damlTypes.Serializable<ForMemberTraffic> & {
|
|
23
|
+
}
|
|
24
|
+
;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare type MemberTraffic = {
|
|
28
|
+
dso: damlTypes.Party;
|
|
29
|
+
memberId: string;
|
|
30
|
+
synchronizerId: string;
|
|
31
|
+
migrationId: damlTypes.Int;
|
|
32
|
+
totalPurchased: damlTypes.Int;
|
|
33
|
+
numPurchases: damlTypes.Int;
|
|
34
|
+
amuletSpent: damlTypes.Numeric;
|
|
35
|
+
usdSpent: damlTypes.Numeric;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export declare interface MemberTrafficInterface {
|
|
39
|
+
Archive: damlTypes.Choice<MemberTraffic, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<MemberTraffic, undefined>>;
|
|
40
|
+
}
|
|
41
|
+
export declare const MemberTraffic:
|
|
42
|
+
damlTypes.Template<MemberTraffic, undefined, '#splice-amulet:Splice.DecentralizedSynchronizer:MemberTraffic'> &
|
|
43
|
+
damlTypes.ToInterface<MemberTraffic, never> &
|
|
44
|
+
MemberTrafficInterface;
|
|
45
|
+
|
|
46
|
+
export declare namespace MemberTraffic {
|
|
47
|
+
export type CreateEvent = damlLedger.CreateEvent<MemberTraffic, undefined, typeof MemberTraffic.templateId>
|
|
48
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<MemberTraffic, typeof MemberTraffic.templateId>
|
|
49
|
+
export type Event = damlLedger.Event<MemberTraffic, undefined, typeof MemberTraffic.templateId>
|
|
50
|
+
export type QueryResult = damlLedger.QueryResult<MemberTraffic, undefined, typeof MemberTraffic.templateId>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
export declare type SynchronizerFeesConfig = {
|
|
56
|
+
baseRateTrafficLimits: BaseRateTrafficLimits;
|
|
57
|
+
extraTrafficPrice: damlTypes.Numeric;
|
|
58
|
+
readVsWriteScalingFactor: damlTypes.Int;
|
|
59
|
+
minTopupAmount: damlTypes.Int;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export declare const SynchronizerFeesConfig:
|
|
63
|
+
damlTypes.Serializable<SynchronizerFeesConfig> & {
|
|
64
|
+
}
|
|
65
|
+
;
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export declare type BaseRateTrafficLimits = {
|
|
69
|
+
burstAmount: damlTypes.Int;
|
|
70
|
+
burstWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export declare const BaseRateTrafficLimits:
|
|
74
|
+
damlTypes.Serializable<BaseRateTrafficLimits> & {
|
|
75
|
+
}
|
|
76
|
+
;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
export declare type AmuletDecentralizedSynchronizerConfig = {
|
|
80
|
+
requiredSynchronizers: pkgc3bb0c5d04799b3f11bad7c3c102963e115cf53da3e4afcbcfd9f06ebd82b4ff.DA.Set.Types.Set<string>;
|
|
81
|
+
activeSynchronizer: string;
|
|
82
|
+
fees: SynchronizerFeesConfig;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export declare const AmuletDecentralizedSynchronizerConfig:
|
|
86
|
+
damlTypes.Serializable<AmuletDecentralizedSynchronizerConfig> & {
|
|
87
|
+
}
|
|
88
|
+
;
|
|
89
|
+
|