@polymeshassociation/polymesh-sdk 24.2.0-alpha.1 → 24.2.0
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/CHANGELOG.md +2 -2
- package/api/client/Identities.d.ts +2 -2
- package/api/client/Identities.d.ts.map +1 -1
- package/api/client/Identities.js.map +1 -1
- package/api/client/types.d.ts +192 -0
- package/api/client/types.d.ts.map +1 -0
- package/api/client/types.js +81 -0
- package/api/client/types.js.map +1 -0
- package/api/entities/Account/index.d.ts +1 -8
- package/api/entities/Account/index.d.ts.map +1 -1
- package/api/entities/Account/index.js +0 -18
- package/api/entities/Account/index.js.map +1 -1
- package/api/entities/Account/types.d.ts +15 -4
- package/api/entities/Account/types.d.ts.map +1 -1
- package/api/entities/Account/types.js.map +1 -1
- package/api/entities/Asset/types.d.ts +172 -1
- package/api/entities/Asset/types.d.ts.map +1 -1
- package/api/entities/Asset/types.js +130 -0
- package/api/entities/Asset/types.js.map +1 -1
- package/api/entities/Instruction/types.d.ts +33 -1
- package/api/entities/Instruction/types.d.ts.map +1 -1
- package/api/entities/Instruction/types.js.map +1 -1
- package/api/entities/MultiSigProposal/types.d.ts +7 -1
- package/api/entities/MultiSigProposal/types.d.ts.map +1 -1
- package/api/entities/MultiSigProposal/types.js.map +1 -1
- package/api/entities/types.d.ts +594 -1
- package/api/entities/types.d.ts.map +1 -1
- package/api/entities/types.js +110 -0
- package/api/entities/types.js.map +1 -1
- package/api/procedures/allowIdentityToCreatePortfolios.d.ts +1 -7
- package/api/procedures/allowIdentityToCreatePortfolios.d.ts.map +1 -1
- package/api/procedures/allowIdentityToCreatePortfolios.js.map +1 -1
- package/api/procedures/revokeIdentityToCreatePortfolios.d.ts +1 -7
- package/api/procedures/revokeIdentityToCreatePortfolios.d.ts.map +1 -1
- package/api/procedures/revokeIdentityToCreatePortfolios.js.map +1 -1
- package/api/procedures/types.d.ts +257 -5
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js +98 -1
- package/api/procedures/types.js.map +1 -1
- package/base/Context.d.ts +1 -0
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +10 -4
- package/base/Context.js.map +1 -1
- package/base/types.d.ts +132 -1
- package/base/types.d.ts.map +1 -1
- package/base/types.js +70 -0
- package/base/types.js.map +1 -1
- package/internal.d.ts +2 -2
- package/internal.d.ts.map +1 -1
- package/internal.js +1 -1
- package/internal.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-24.2.0.tgz +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +2 -1410
- package/types/index.d.ts.map +1 -1
- package/types/index.js +7 -493
- package/types/index.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-24.2.0-alpha.1.tgz +0 -0
package/api/entities/types.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { Account as AccountClass, AuthorizationRequest as AuthorizationRequestClass, BaseAsset, Checkpoint as CheckpointClass, CheckpointSchedule as CheckpointScheduleClass, ChildIdentity as ChildIdentityClass, CorporateAction as CorporateActionClass, CustomPermissionGroup as CustomPermissionGroupClass, DefaultPortfolio as DefaultPortfolioClass, DefaultTrustedClaimIssuer as DefaultTrustedClaimIssuerClass, DividendDistribution as DividendDistributionClass, FungibleAsset as FungibleAssetClass, Identity as IdentityClass, Instruction as InstructionClass, KnownPermissionGroup as KnownPermissionGroupClass, MetadataEntry as MetadataEntryClass, MultiSig as MultiSigClass, Nft as NftClass, NftCollection as NftCollectionClass, NumberedPortfolio as NumberedPortfolioClass, Offering as OfferingClass, Subsidy as SubsidyClass, TickerReservation as TickerReservationClass, Venue as VenueClass } from "../../internal";
|
|
3
|
+
import { CountryCode, DividendDistributionDetails, ModuleName, OfferingDetails, Role, ScheduleDetails, SubsidyData, TxGroup, TxTag } from "../../types";
|
|
4
|
+
import { Modify } from "../../types/utils";
|
|
2
5
|
export declare type Account = AccountClass;
|
|
3
6
|
export declare type MultiSig = MultiSigClass;
|
|
4
7
|
export declare type AuthorizationRequest = AuthorizationRequestClass;
|
|
@@ -32,7 +35,597 @@ export * from './Offering/types';
|
|
|
32
35
|
export * from './TickerReservation/types';
|
|
33
36
|
export * from './Venue/types';
|
|
34
37
|
export * from './Subsidy/types';
|
|
38
|
+
export * from './Account/types';
|
|
35
39
|
export * from './Account/MultiSig/types';
|
|
36
40
|
export * from './MultiSigProposal/types';
|
|
37
41
|
export * from './MetadataEntry/types';
|
|
42
|
+
export declare type SubCallback<T> = (result: T) => void | Promise<void>;
|
|
43
|
+
export declare type UnsubCallback = () => void;
|
|
44
|
+
export interface PaginationOptions {
|
|
45
|
+
size: BigNumber;
|
|
46
|
+
start?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare type NextKey = string | BigNumber | null;
|
|
49
|
+
export interface ResultSet<T> {
|
|
50
|
+
data: T[];
|
|
51
|
+
next: NextKey;
|
|
52
|
+
/**
|
|
53
|
+
* @note methods will have `count` defined when middleware is configured, but be undefined otherwise. This happens when the chain node is queried directly
|
|
54
|
+
*/
|
|
55
|
+
count?: BigNumber;
|
|
56
|
+
}
|
|
57
|
+
export declare enum SignerType {
|
|
58
|
+
Identity = "Identity",
|
|
59
|
+
Account = "Account"
|
|
60
|
+
}
|
|
61
|
+
export interface SignerValue {
|
|
62
|
+
/**
|
|
63
|
+
* whether the signer is an Account or Identity
|
|
64
|
+
*/
|
|
65
|
+
type: SignerType;
|
|
66
|
+
/**
|
|
67
|
+
* address or DID (depending on whether the signer is an Account or Identity)
|
|
68
|
+
*/
|
|
69
|
+
value: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Type of Authorization Request
|
|
73
|
+
*/
|
|
74
|
+
export declare enum AuthorizationType {
|
|
75
|
+
AttestPrimaryKeyRotation = "AttestPrimaryKeyRotation",
|
|
76
|
+
RotatePrimaryKey = "RotatePrimaryKey",
|
|
77
|
+
TransferTicker = "TransferTicker",
|
|
78
|
+
AddMultiSigSigner = "AddMultiSigSigner",
|
|
79
|
+
TransferAssetOwnership = "TransferAssetOwnership",
|
|
80
|
+
JoinIdentity = "JoinIdentity",
|
|
81
|
+
PortfolioCustody = "PortfolioCustody",
|
|
82
|
+
BecomeAgent = "BecomeAgent",
|
|
83
|
+
AddRelayerPayingKey = "AddRelayerPayingKey",
|
|
84
|
+
RotatePrimaryKeyToSecondary = "RotatePrimaryKeyToSecondary"
|
|
85
|
+
}
|
|
86
|
+
export declare enum ConditionTarget {
|
|
87
|
+
Sender = "Sender",
|
|
88
|
+
Receiver = "Receiver",
|
|
89
|
+
Both = "Both"
|
|
90
|
+
}
|
|
91
|
+
export declare enum ScopeType {
|
|
92
|
+
Identity = "Identity",
|
|
93
|
+
Ticker = "Ticker",
|
|
94
|
+
Custom = "Custom"
|
|
95
|
+
}
|
|
96
|
+
export interface Scope {
|
|
97
|
+
type: ScopeType;
|
|
98
|
+
value: string;
|
|
99
|
+
}
|
|
100
|
+
export declare enum ClaimType {
|
|
101
|
+
Accredited = "Accredited",
|
|
102
|
+
Affiliate = "Affiliate",
|
|
103
|
+
BuyLockup = "BuyLockup",
|
|
104
|
+
SellLockup = "SellLockup",
|
|
105
|
+
CustomerDueDiligence = "CustomerDueDiligence",
|
|
106
|
+
KnowYourCustomer = "KnowYourCustomer",
|
|
107
|
+
Jurisdiction = "Jurisdiction",
|
|
108
|
+
Exempted = "Exempted",
|
|
109
|
+
Blocked = "Blocked",
|
|
110
|
+
Custom = "Custom"
|
|
111
|
+
}
|
|
112
|
+
export interface AccreditedClaim {
|
|
113
|
+
type: ClaimType.Accredited;
|
|
114
|
+
scope: Scope;
|
|
115
|
+
}
|
|
116
|
+
export interface AffiliateClaim {
|
|
117
|
+
type: ClaimType.Affiliate;
|
|
118
|
+
scope: Scope;
|
|
119
|
+
}
|
|
120
|
+
export interface BuyLockupClaim {
|
|
121
|
+
type: ClaimType.BuyLockup;
|
|
122
|
+
scope: Scope;
|
|
123
|
+
}
|
|
124
|
+
export interface SellLockupClaim {
|
|
125
|
+
type: ClaimType.SellLockup;
|
|
126
|
+
scope: Scope;
|
|
127
|
+
}
|
|
128
|
+
export interface CddClaim {
|
|
129
|
+
type: ClaimType.CustomerDueDiligence;
|
|
130
|
+
id: string;
|
|
131
|
+
}
|
|
132
|
+
export interface KycClaim {
|
|
133
|
+
type: ClaimType.KnowYourCustomer;
|
|
134
|
+
scope: Scope;
|
|
135
|
+
}
|
|
136
|
+
export interface JurisdictionClaim {
|
|
137
|
+
type: ClaimType.Jurisdiction;
|
|
138
|
+
code: CountryCode;
|
|
139
|
+
scope: Scope;
|
|
140
|
+
}
|
|
141
|
+
export interface ExemptedClaim {
|
|
142
|
+
type: ClaimType.Exempted;
|
|
143
|
+
scope: Scope;
|
|
144
|
+
}
|
|
145
|
+
export interface CustomClaim {
|
|
146
|
+
type: ClaimType.Custom;
|
|
147
|
+
scope: Scope;
|
|
148
|
+
customClaimTypeId: BigNumber;
|
|
149
|
+
}
|
|
150
|
+
export interface BlockedClaim {
|
|
151
|
+
type: ClaimType.Blocked;
|
|
152
|
+
scope: Scope;
|
|
153
|
+
}
|
|
154
|
+
export declare type ScopedClaim = JurisdictionClaim | AccreditedClaim | AffiliateClaim | BuyLockupClaim | SellLockupClaim | KycClaim | ExemptedClaim | BlockedClaim | CustomClaim;
|
|
155
|
+
export declare type UnscopedClaim = CddClaim;
|
|
156
|
+
export declare type Claim = ScopedClaim | UnscopedClaim;
|
|
157
|
+
export interface ClaimData<ClaimType = Claim> {
|
|
158
|
+
target: Identity;
|
|
159
|
+
issuer: Identity;
|
|
160
|
+
issuedAt: Date;
|
|
161
|
+
lastUpdatedAt: Date;
|
|
162
|
+
expiry: Date | null;
|
|
163
|
+
claim: ClaimType;
|
|
164
|
+
}
|
|
165
|
+
export declare type StatClaimType = ClaimType.Accredited | ClaimType.Affiliate | ClaimType.Jurisdiction;
|
|
166
|
+
export interface StatJurisdictionClaimInput {
|
|
167
|
+
type: ClaimType.Jurisdiction;
|
|
168
|
+
countryCode?: CountryCode;
|
|
169
|
+
}
|
|
170
|
+
export interface StatAccreditedClaimInput {
|
|
171
|
+
type: ClaimType.Accredited;
|
|
172
|
+
accredited: boolean;
|
|
173
|
+
}
|
|
174
|
+
export interface StatAffiliateClaimInput {
|
|
175
|
+
type: ClaimType.Affiliate;
|
|
176
|
+
affiliate: boolean;
|
|
177
|
+
}
|
|
178
|
+
export declare type InputStatClaim = StatJurisdictionClaimInput | StatAccreditedClaimInput | StatAffiliateClaimInput;
|
|
179
|
+
export declare type InputStatType = {
|
|
180
|
+
type: StatType.Count | StatType.Balance;
|
|
181
|
+
} | {
|
|
182
|
+
type: StatType.ScopedCount | StatType.ScopedBalance;
|
|
183
|
+
claimIssuer: StatClaimIssuer;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Represents the StatType from the `statistics` module.
|
|
187
|
+
*
|
|
188
|
+
* @note the chain doesn't use "Scoped" types, but they are needed here to discriminate the input instead of having an optional input
|
|
189
|
+
*/
|
|
190
|
+
export declare enum StatType {
|
|
191
|
+
Count = "Count",
|
|
192
|
+
Balance = "Balance",
|
|
193
|
+
/**
|
|
194
|
+
* ScopedCount is an SDK only type, on chain it is `Count` with a claimType option present
|
|
195
|
+
*/
|
|
196
|
+
ScopedCount = "ScopedCount",
|
|
197
|
+
/**
|
|
198
|
+
* ScopedPercentage is an SDK only type, on chain it is `Balance` with a claimType option present
|
|
199
|
+
*/
|
|
200
|
+
ScopedBalance = "ScopedBalance"
|
|
201
|
+
}
|
|
202
|
+
export interface IdentityWithClaims {
|
|
203
|
+
identity: Identity;
|
|
204
|
+
claims: ClaimData[];
|
|
205
|
+
}
|
|
206
|
+
export interface ClaimScope {
|
|
207
|
+
scope: Scope | null;
|
|
208
|
+
ticker?: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @param IsDefault - whether the Identity is a default trusted claim issuer for an asset or just
|
|
212
|
+
* for a specific compliance condition. Defaults to false
|
|
213
|
+
*/
|
|
214
|
+
export interface TrustedClaimIssuer<IsDefault extends boolean = false> {
|
|
215
|
+
identity: IsDefault extends true ? DefaultTrustedClaimIssuer : Identity;
|
|
216
|
+
/**
|
|
217
|
+
* a null value means that the issuer is trusted for all claim types
|
|
218
|
+
*/
|
|
219
|
+
trustedFor: ClaimType[] | null;
|
|
220
|
+
}
|
|
221
|
+
export declare type InputTrustedClaimIssuer = Modify<TrustedClaimIssuer, {
|
|
222
|
+
identity: string | Identity;
|
|
223
|
+
}>;
|
|
224
|
+
export declare enum ConditionType {
|
|
225
|
+
IsPresent = "IsPresent",
|
|
226
|
+
IsAbsent = "IsAbsent",
|
|
227
|
+
IsAnyOf = "IsAnyOf",
|
|
228
|
+
IsNoneOf = "IsNoneOf",
|
|
229
|
+
IsExternalAgent = "IsExternalAgent",
|
|
230
|
+
IsIdentity = "IsIdentity"
|
|
231
|
+
}
|
|
232
|
+
export interface ConditionBase {
|
|
233
|
+
target: ConditionTarget;
|
|
234
|
+
/**
|
|
235
|
+
* if undefined, the default trusted claim issuers for the Asset are used
|
|
236
|
+
*/
|
|
237
|
+
trustedClaimIssuers?: TrustedClaimIssuer[];
|
|
238
|
+
}
|
|
239
|
+
export declare type InputConditionBase = Modify<ConditionBase, {
|
|
240
|
+
/**
|
|
241
|
+
* if undefined, the default trusted claim issuers for the Asset are used
|
|
242
|
+
*/
|
|
243
|
+
trustedClaimIssuers?: InputTrustedClaimIssuer[];
|
|
244
|
+
}>;
|
|
245
|
+
export interface SingleClaimCondition {
|
|
246
|
+
type: ConditionType.IsPresent | ConditionType.IsAbsent;
|
|
247
|
+
claim: Claim;
|
|
248
|
+
}
|
|
249
|
+
export interface MultiClaimCondition {
|
|
250
|
+
type: ConditionType.IsAnyOf | ConditionType.IsNoneOf;
|
|
251
|
+
claims: Claim[];
|
|
252
|
+
}
|
|
253
|
+
export interface IdentityCondition {
|
|
254
|
+
type: ConditionType.IsIdentity;
|
|
255
|
+
identity: Identity;
|
|
256
|
+
}
|
|
257
|
+
export interface ExternalAgentCondition {
|
|
258
|
+
type: ConditionType.IsExternalAgent;
|
|
259
|
+
}
|
|
260
|
+
export declare type Condition = (SingleClaimCondition | MultiClaimCondition | IdentityCondition | ExternalAgentCondition) & ConditionBase;
|
|
261
|
+
export declare type InputCondition = (SingleClaimCondition | MultiClaimCondition | Modify<IdentityCondition, {
|
|
262
|
+
identity: string | Identity;
|
|
263
|
+
}> | ExternalAgentCondition) & InputConditionBase;
|
|
264
|
+
export interface Requirement {
|
|
265
|
+
id: BigNumber;
|
|
266
|
+
conditions: Condition[];
|
|
267
|
+
}
|
|
268
|
+
export interface ComplianceRequirements {
|
|
269
|
+
requirements: Requirement[];
|
|
270
|
+
/**
|
|
271
|
+
* used for conditions where no trusted claim issuers were specified
|
|
272
|
+
*/
|
|
273
|
+
defaultTrustedClaimIssuers: TrustedClaimIssuer[];
|
|
274
|
+
}
|
|
275
|
+
export declare type InputRequirement = Modify<Requirement, {
|
|
276
|
+
conditions: InputCondition[];
|
|
277
|
+
}>;
|
|
278
|
+
export interface ConditionCompliance {
|
|
279
|
+
condition: Condition;
|
|
280
|
+
complies: boolean;
|
|
281
|
+
}
|
|
282
|
+
export interface RequirementCompliance {
|
|
283
|
+
id: BigNumber;
|
|
284
|
+
conditions: ConditionCompliance[];
|
|
285
|
+
complies: boolean;
|
|
286
|
+
}
|
|
287
|
+
export interface Compliance {
|
|
288
|
+
requirements: RequirementCompliance[];
|
|
289
|
+
complies: boolean;
|
|
290
|
+
}
|
|
291
|
+
export interface ClaimTarget {
|
|
292
|
+
target: string | Identity;
|
|
293
|
+
claim: Claim;
|
|
294
|
+
expiry?: Date;
|
|
295
|
+
}
|
|
296
|
+
export declare type AttestPrimaryKeyRotationAuthorizationData = {
|
|
297
|
+
type: AuthorizationType.AttestPrimaryKeyRotation;
|
|
298
|
+
value: Identity;
|
|
299
|
+
};
|
|
300
|
+
export declare type RotatePrimaryKeyAuthorizationData = {
|
|
301
|
+
type: AuthorizationType.RotatePrimaryKey;
|
|
302
|
+
};
|
|
303
|
+
export declare type RotatePrimaryKeyToSecondaryData = {
|
|
304
|
+
type: AuthorizationType.RotatePrimaryKeyToSecondary;
|
|
305
|
+
value: Permissions;
|
|
306
|
+
};
|
|
307
|
+
export declare type JoinIdentityAuthorizationData = {
|
|
308
|
+
type: AuthorizationType.JoinIdentity;
|
|
309
|
+
value: Permissions;
|
|
310
|
+
};
|
|
311
|
+
export declare type PortfolioCustodyAuthorizationData = {
|
|
312
|
+
type: AuthorizationType.PortfolioCustody;
|
|
313
|
+
value: NumberedPortfolio | DefaultPortfolio;
|
|
314
|
+
};
|
|
315
|
+
export declare type BecomeAgentAuthorizationData = {
|
|
316
|
+
type: AuthorizationType.BecomeAgent;
|
|
317
|
+
value: KnownPermissionGroup | CustomPermissionGroup;
|
|
318
|
+
};
|
|
319
|
+
export declare type AddRelayerPayingKeyAuthorizationData = {
|
|
320
|
+
type: AuthorizationType.AddRelayerPayingKey;
|
|
321
|
+
value: SubsidyData;
|
|
322
|
+
};
|
|
323
|
+
export declare type GenericAuthorizationData = {
|
|
324
|
+
type: Exclude<AuthorizationType, AuthorizationType.RotatePrimaryKey | AuthorizationType.JoinIdentity | AuthorizationType.PortfolioCustody | AuthorizationType.BecomeAgent | AuthorizationType.AddRelayerPayingKey | AuthorizationType.RotatePrimaryKeyToSecondary | AuthorizationType.AttestPrimaryKeyRotation>;
|
|
325
|
+
value: string;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* Authorization request data corresponding to type
|
|
329
|
+
*/
|
|
330
|
+
export declare type Authorization = AttestPrimaryKeyRotationAuthorizationData | RotatePrimaryKeyAuthorizationData | JoinIdentityAuthorizationData | PortfolioCustodyAuthorizationData | BecomeAgentAuthorizationData | AddRelayerPayingKeyAuthorizationData | RotatePrimaryKeyToSecondaryData | GenericAuthorizationData;
|
|
331
|
+
interface TransferRestrictionBase {
|
|
332
|
+
/**
|
|
333
|
+
* array of Identity IDs that are exempted from the Restriction
|
|
334
|
+
*/
|
|
335
|
+
exemptedIds?: string[];
|
|
336
|
+
}
|
|
337
|
+
export interface CountTransferRestriction extends TransferRestrictionBase {
|
|
338
|
+
count: BigNumber;
|
|
339
|
+
}
|
|
340
|
+
export interface PercentageTransferRestriction extends TransferRestrictionBase {
|
|
341
|
+
/**
|
|
342
|
+
* maximum percentage (0-100) of the total supply of the Asset that can be held by a single investor at once
|
|
343
|
+
*/
|
|
344
|
+
percentage: BigNumber;
|
|
345
|
+
}
|
|
346
|
+
export interface ClaimCountTransferRestriction extends TransferRestrictionBase {
|
|
347
|
+
/**
|
|
348
|
+
* The type of investors this restriction applies to. e.g. non-accredited
|
|
349
|
+
*/
|
|
350
|
+
claim: InputStatClaim;
|
|
351
|
+
/**
|
|
352
|
+
* The minimum amount of investors the must meet the Claim criteria
|
|
353
|
+
*/
|
|
354
|
+
min: BigNumber;
|
|
355
|
+
/**
|
|
356
|
+
* The maximum amount of investors that must meet the Claim criteria
|
|
357
|
+
*/
|
|
358
|
+
max?: BigNumber;
|
|
359
|
+
issuer: Identity;
|
|
360
|
+
}
|
|
361
|
+
export interface ClaimPercentageTransferRestriction extends TransferRestrictionBase {
|
|
362
|
+
/**
|
|
363
|
+
* The type of investors this restriction applies to. e.g. Canadian investor
|
|
364
|
+
*/
|
|
365
|
+
claim: InputStatClaim;
|
|
366
|
+
/**
|
|
367
|
+
* The minimum percentage of the total supply that investors meeting the Claim criteria must hold
|
|
368
|
+
*/
|
|
369
|
+
min: BigNumber;
|
|
370
|
+
/**
|
|
371
|
+
* The maximum percentage of the total supply that investors meeting the Claim criteria must hold
|
|
372
|
+
*/
|
|
373
|
+
max: BigNumber;
|
|
374
|
+
issuer: Identity;
|
|
375
|
+
}
|
|
376
|
+
export interface ActiveTransferRestrictions<Restriction extends CountTransferRestriction | PercentageTransferRestriction | ClaimCountTransferRestriction | ClaimPercentageTransferRestriction> {
|
|
377
|
+
restrictions: Restriction[];
|
|
378
|
+
/**
|
|
379
|
+
* amount of restrictions that can be added before reaching the shared limit
|
|
380
|
+
*/
|
|
381
|
+
availableSlots: BigNumber;
|
|
382
|
+
}
|
|
383
|
+
export interface AddCountStatInput {
|
|
384
|
+
count: BigNumber;
|
|
385
|
+
}
|
|
386
|
+
export interface StatClaimIssuer {
|
|
387
|
+
issuer: Identity;
|
|
388
|
+
claimType: StatClaimType;
|
|
389
|
+
}
|
|
390
|
+
export declare type ClaimCountStatInput = {
|
|
391
|
+
issuer: Identity;
|
|
392
|
+
claimType: ClaimType.Accredited;
|
|
393
|
+
value: {
|
|
394
|
+
accredited: BigNumber;
|
|
395
|
+
nonAccredited: BigNumber;
|
|
396
|
+
};
|
|
397
|
+
} | {
|
|
398
|
+
issuer: Identity;
|
|
399
|
+
claimType: ClaimType.Affiliate;
|
|
400
|
+
value: {
|
|
401
|
+
affiliate: BigNumber;
|
|
402
|
+
nonAffiliate: BigNumber;
|
|
403
|
+
};
|
|
404
|
+
} | {
|
|
405
|
+
issuer: Identity;
|
|
406
|
+
claimType: ClaimType.Jurisdiction;
|
|
407
|
+
value: {
|
|
408
|
+
countryCode: CountryCode;
|
|
409
|
+
count: BigNumber;
|
|
410
|
+
}[];
|
|
411
|
+
};
|
|
412
|
+
export interface ScheduleWithDetails {
|
|
413
|
+
schedule: CheckpointSchedule;
|
|
414
|
+
details: ScheduleDetails;
|
|
415
|
+
}
|
|
416
|
+
export interface DistributionWithDetails {
|
|
417
|
+
distribution: DividendDistribution;
|
|
418
|
+
details: DividendDistributionDetails;
|
|
419
|
+
}
|
|
420
|
+
export interface DistributionPayment {
|
|
421
|
+
blockNumber: BigNumber;
|
|
422
|
+
blockHash: string;
|
|
423
|
+
date: Date;
|
|
424
|
+
target: Identity;
|
|
425
|
+
amount: BigNumber;
|
|
426
|
+
/**
|
|
427
|
+
* percentage (0-100) of tax withholding for the `target` identity
|
|
428
|
+
*/
|
|
429
|
+
withheldTax: BigNumber;
|
|
430
|
+
}
|
|
431
|
+
export declare enum PermissionType {
|
|
432
|
+
Include = "Include",
|
|
433
|
+
Exclude = "Exclude"
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Signer/agent permissions for a specific type
|
|
437
|
+
*
|
|
438
|
+
* @param T - type of Permissions (Asset, Transaction, Portfolio, etc)
|
|
439
|
+
*/
|
|
440
|
+
export interface SectionPermissions<T> {
|
|
441
|
+
/**
|
|
442
|
+
* Values to be included/excluded
|
|
443
|
+
*/
|
|
444
|
+
values: T[];
|
|
445
|
+
/**
|
|
446
|
+
* Whether the permissions are inclusive or exclusive
|
|
447
|
+
*/
|
|
448
|
+
type: PermissionType;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Permissions related to Transactions. Can include/exclude individual transactions or entire modules
|
|
452
|
+
*/
|
|
453
|
+
export interface TransactionPermissions extends SectionPermissions<TxTag | ModuleName> {
|
|
454
|
+
/**
|
|
455
|
+
* Transactions to be exempted from inclusion/exclusion. This allows more granularity when
|
|
456
|
+
* setting permissions. For example, let's say we want to include only the `asset` and `staking` modules,
|
|
457
|
+
* but exclude the `asset.registerTicker` transaction. We could add both modules to `values`, and add
|
|
458
|
+
* `TxTags.asset.registerTicker` to `exceptions`
|
|
459
|
+
*/
|
|
460
|
+
exceptions?: TxTag[];
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Permissions a Secondary Key has over the Identity. A null value means the key has
|
|
464
|
+
* all permissions of that type (e.g. if `assets` is null, the key has permissions over all
|
|
465
|
+
* of the Identity's Assets)
|
|
466
|
+
*/
|
|
467
|
+
export interface Permissions {
|
|
468
|
+
/**
|
|
469
|
+
* Assets over which this key has permissions
|
|
470
|
+
*/
|
|
471
|
+
assets: SectionPermissions<FungibleAsset> | null;
|
|
472
|
+
/**
|
|
473
|
+
* Transactions this key can execute
|
|
474
|
+
*/
|
|
475
|
+
transactions: TransactionPermissions | null;
|
|
476
|
+
/**
|
|
477
|
+
* list of Transaction Groups this key can execute. Having permissions over a TxGroup
|
|
478
|
+
* means having permissions over every TxTag in said group. Partial group permissions are not
|
|
479
|
+
* covered by this value. For a full picture of transaction permissions, see the `transactions` property
|
|
480
|
+
*
|
|
481
|
+
* NOTE: If transactions is null, ignore this value
|
|
482
|
+
*/
|
|
483
|
+
transactionGroups: TxGroup[];
|
|
484
|
+
portfolios: SectionPermissions<DefaultPortfolio | NumberedPortfolio> | null;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Asset permissions shared by agents in a group
|
|
488
|
+
*/
|
|
489
|
+
export declare type GroupPermissions = Pick<Permissions, 'transactions' | 'transactionGroups'>;
|
|
490
|
+
/**
|
|
491
|
+
* All Permission Groups of a specific Asset, separated by `known` and `custom`
|
|
492
|
+
*/
|
|
493
|
+
export interface PermissionGroups {
|
|
494
|
+
known: KnownPermissionGroup[];
|
|
495
|
+
custom: CustomPermissionGroup[];
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* This represents positive permissions (i.e. only "includes"). It is used
|
|
499
|
+
* for specifying procedure requirements and querying if an Account has certain
|
|
500
|
+
* permissions. Null values represent full permissions in that category
|
|
501
|
+
*/
|
|
502
|
+
export interface SimplePermissions {
|
|
503
|
+
/**
|
|
504
|
+
* list of required Asset permissions
|
|
505
|
+
*/
|
|
506
|
+
assets?: BaseAsset[] | null;
|
|
507
|
+
/**
|
|
508
|
+
* list of required Transaction permissions
|
|
509
|
+
*/
|
|
510
|
+
transactions?: TxTag[] | null;
|
|
511
|
+
portfolios?: (DefaultPortfolio | NumberedPortfolio)[] | null;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Result of a `checkRoles` call
|
|
515
|
+
*/
|
|
516
|
+
export interface CheckRolesResult {
|
|
517
|
+
/**
|
|
518
|
+
* required roles which the Identity *DOESN'T* have. Only present if `result` is `false`
|
|
519
|
+
*/
|
|
520
|
+
missingRoles?: Role[];
|
|
521
|
+
/**
|
|
522
|
+
* whether the signer possesses all the required roles or not
|
|
523
|
+
*/
|
|
524
|
+
result: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* optional message explaining the reason for failure in special cases
|
|
527
|
+
*/
|
|
528
|
+
message?: string;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Result of a `checkPermissions` call. If `Type` is `Account`, represents whether the Account
|
|
532
|
+
* has all the necessary secondary key Permissions. If `Type` is `Identity`, represents whether the
|
|
533
|
+
* Identity has all the necessary external agent Permissions
|
|
534
|
+
*/
|
|
535
|
+
export interface CheckPermissionsResult<Type extends SignerType> {
|
|
536
|
+
/**
|
|
537
|
+
* required permissions which the signer *DOESN'T* have. Only present if `result` is `false`
|
|
538
|
+
*/
|
|
539
|
+
missingPermissions?: Type extends SignerType.Account ? SimplePermissions : TxTag[] | null;
|
|
540
|
+
/**
|
|
541
|
+
* whether the signer complies with the required permissions or not
|
|
542
|
+
*/
|
|
543
|
+
result: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* optional message explaining the reason for failure in special cases
|
|
546
|
+
*/
|
|
547
|
+
message?: string;
|
|
548
|
+
}
|
|
549
|
+
export declare enum PermissionGroupType {
|
|
550
|
+
/**
|
|
551
|
+
* all transactions authorized
|
|
552
|
+
*/
|
|
553
|
+
Full = "Full",
|
|
554
|
+
/**
|
|
555
|
+
* not authorized:
|
|
556
|
+
* - externalAgents
|
|
557
|
+
*/
|
|
558
|
+
ExceptMeta = "ExceptMeta",
|
|
559
|
+
/**
|
|
560
|
+
* authorized:
|
|
561
|
+
* - corporateAction
|
|
562
|
+
* - corporateBallot
|
|
563
|
+
* - capitalDistribution
|
|
564
|
+
*/
|
|
565
|
+
PolymeshV1Caa = "PolymeshV1Caa",
|
|
566
|
+
/**
|
|
567
|
+
* authorized:
|
|
568
|
+
* - asset.issue
|
|
569
|
+
* - asset.redeem
|
|
570
|
+
* - asset.controllerTransfer
|
|
571
|
+
* - sto (except for sto.invest)
|
|
572
|
+
*/
|
|
573
|
+
PolymeshV1Pia = "PolymeshV1Pia"
|
|
574
|
+
}
|
|
575
|
+
export declare type Signer = Identity | Account;
|
|
576
|
+
export interface OfferingWithDetails {
|
|
577
|
+
offering: Offering;
|
|
578
|
+
details: OfferingDetails;
|
|
579
|
+
}
|
|
580
|
+
export interface CheckpointWithData {
|
|
581
|
+
checkpoint: Checkpoint;
|
|
582
|
+
createdAt: Date;
|
|
583
|
+
totalSupply: BigNumber;
|
|
584
|
+
}
|
|
585
|
+
export interface PermissionedAccount {
|
|
586
|
+
account: Account;
|
|
587
|
+
permissions: Permissions;
|
|
588
|
+
}
|
|
589
|
+
export declare type PortfolioLike = string | Identity | NumberedPortfolio | DefaultPortfolio | {
|
|
590
|
+
identity: string | Identity;
|
|
591
|
+
id: BigNumber;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* Permissions to grant to a Signer over an Identity
|
|
595
|
+
*
|
|
596
|
+
* {@link Permissions}
|
|
597
|
+
*
|
|
598
|
+
* @note TxGroups in the `transactionGroups` array will be transformed into their corresponding `TxTag`s
|
|
599
|
+
*/
|
|
600
|
+
export declare type PermissionsLike = {
|
|
601
|
+
/**
|
|
602
|
+
* Assets on which to grant permissions. A null value represents full permissions
|
|
603
|
+
*/
|
|
604
|
+
assets?: SectionPermissions<string | FungibleAsset> | null;
|
|
605
|
+
/**
|
|
606
|
+
* Portfolios on which to grant permissions. A null value represents full permissions
|
|
607
|
+
*/
|
|
608
|
+
portfolios?: SectionPermissions<PortfolioLike> | null;
|
|
609
|
+
} & ({
|
|
610
|
+
transactions?: TransactionPermissions | null;
|
|
611
|
+
} | {
|
|
612
|
+
transactionGroups?: TxGroup[];
|
|
613
|
+
});
|
|
614
|
+
export interface FungiblePortfolioMovement {
|
|
615
|
+
asset: string | FungibleAsset;
|
|
616
|
+
amount: BigNumber;
|
|
617
|
+
/**
|
|
618
|
+
* identifier string to help differentiate transfers
|
|
619
|
+
*/
|
|
620
|
+
memo?: string;
|
|
621
|
+
}
|
|
622
|
+
export declare type NonFungiblePortfolioMovement = {
|
|
623
|
+
asset: NftCollection | string;
|
|
624
|
+
nfts: (Nft | BigNumber)[];
|
|
625
|
+
/**
|
|
626
|
+
* identifier string to help differentiate transfers
|
|
627
|
+
*/
|
|
628
|
+
memo?: string;
|
|
629
|
+
};
|
|
630
|
+
export declare type PortfolioMovement = FungiblePortfolioMovement | NonFungiblePortfolioMovement;
|
|
38
631
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/entities/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,oBAAoB,IAAI,yBAAyB,EACjD,UAAU,IAAI,eAAe,EAC7B,kBAAkB,IAAI,uBAAuB,EAC7C,aAAa,IAAI,kBAAkB,EACnC,eAAe,IAAI,oBAAoB,EACvC,qBAAqB,IAAI,0BAA0B,EACnD,gBAAgB,IAAI,qBAAqB,EACzC,yBAAyB,IAAI,8BAA8B,EAC3D,oBAAoB,IAAI,yBAAyB,EACjD,aAAa,IAAI,kBAAkB,EACnC,QAAQ,IAAI,aAAa,EACzB,WAAW,IAAI,gBAAgB,EAC/B,oBAAoB,IAAI,yBAAyB,EACjD,aAAa,IAAI,kBAAkB,EACnC,QAAQ,IAAI,aAAa,EACzB,GAAG,IAAI,QAAQ,EACf,aAAa,IAAI,kBAAkB,EACnC,iBAAiB,IAAI,sBAAsB,EAC3C,QAAQ,IAAI,aAAa,EACzB,OAAO,IAAI,YAAY,EACvB,iBAAiB,IAAI,sBAAsB,EAC3C,KAAK,IAAI,UAAU,EACpB,uBAAmB;AAEpB,oBAAY,OAAO,GAAG,YAAY,CAAC;AACnC,oBAAY,QAAQ,GAAG,aAAa,CAAC;AACrC,oBAAY,oBAAoB,GAAG,yBAAyB,CAAC;AAC7D,oBAAY,UAAU,GAAG,eAAe,CAAC;AACzC,oBAAY,kBAAkB,GAAG,uBAAuB,CAAC;AACzD,oBAAY,eAAe,GAAG,oBAAoB,CAAC;AACnD,oBAAY,qBAAqB,GAA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