@dstoken-solana/rwa-rbac 0.3.0 → 0.4.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/dist/client/AssetController.d.ts +15 -23
- package/dist/client/AssetController.d.ts.map +1 -1
- package/dist/client/IdentityMetadataRegistry.d.ts +5 -5
- package/dist/client/IdentityMetadataRegistry.d.ts.map +1 -1
- package/dist/client/IdentityRegistry.d.ts +4 -4
- package/dist/client/IdentityRegistry.d.ts.map +1 -1
- package/dist/client/PolicyEngine.d.ts +7 -7
- package/dist/client/RwaRbacClient.d.ts.map +1 -1
- package/dist/index.es.js +262 -213
- package/dist/index.js +261 -212
- package/dist/pdas.d.ts.map +1 -1
- package/dist/types/flags.d.ts +26 -27
- package/dist/types/flags.d.ts.map +1 -1
- package/dist/types/generated/rwa_imr.d.ts +13 -0
- package/dist/types/generated/rwa_imr.d.ts.map +1 -1
- package/dist/types/generated/rwa_rbac.d.ts +132 -90
- package/dist/types/generated/rwa_rbac.d.ts.map +1 -1
- package/dist/types/instructions.d.ts +7 -1
- package/dist/types/instructions.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -2,7 +2,7 @@ import { Program } from "@coral-xyz/anchor";
|
|
|
2
2
|
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
3
|
import { IssueTokensArgs, UpdateInterestBearingMintRateArgs } from "../types/instructions";
|
|
4
4
|
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
5
|
-
import {
|
|
5
|
+
import { CreateAssetControllerIx, FreezeTokenArgs, RevokeTokensArgs, RwaClient, SeizeTokensArgs, TransferTokensArgs, UpdateAssetMetadataArgs } from "@dstoken-solana/rwa-token-sdk";
|
|
6
6
|
/**
|
|
7
7
|
* Represents the role-based access client for Asset Controller for an RWA.
|
|
8
8
|
*/
|
|
@@ -20,17 +20,17 @@ export declare class AssetController {
|
|
|
20
20
|
* Update the asset controller's metadata.
|
|
21
21
|
* @param args - {@link UpdateAssetMetadataArgs}
|
|
22
22
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
23
|
-
* @param authorizedUserRole -
|
|
23
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
24
24
|
* @returns A Promise that resolves to the instructions to update the asset controller's metadata.
|
|
25
25
|
* */
|
|
26
|
-
updateAssetMetadata(args: UpdateAssetMetadataArgs, assetAccessController: PublicKey, authorizedUserRole
|
|
26
|
+
updateAssetMetadata(args: UpdateAssetMetadataArgs, assetAccessController: PublicKey, authorizedUserRole: PublicKey): Promise<TransactionInstruction>;
|
|
27
27
|
/**
|
|
28
28
|
* Asynchronously generates instructions to issue tokens and lock tokens according to issuance policy.
|
|
29
29
|
* @param args - {@link IssueTokensWithLockArgs}
|
|
30
30
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
31
|
-
* @param authorizedUserRole -
|
|
31
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
32
32
|
*/
|
|
33
|
-
issueTokenIxns(args: IssueTokensArgs, assetAccessController: PublicKey, authorizedUserRole
|
|
33
|
+
issueTokenIxns(args: IssueTokensArgs, assetAccessController: PublicKey, authorizedUserRole: PublicKey): Promise<TransactionInstruction>;
|
|
34
34
|
/**
|
|
35
35
|
* Executes a token transfer.
|
|
36
36
|
* @param args - {@link TransferTokensArgs}
|
|
@@ -41,52 +41,44 @@ export declare class AssetController {
|
|
|
41
41
|
* Asynchronously generates instruction to freeze a token account.
|
|
42
42
|
* @param args - {@link FreezeTokenArgs}
|
|
43
43
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
44
|
-
* @param authorizedUserRole -
|
|
44
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
45
45
|
* @returns A Promise that resolves to the instruction to freeze.
|
|
46
46
|
*/
|
|
47
|
-
freezeTokenIxn(args: FreezeTokenArgs, assetAccessController: PublicKey, authorizedUserRole
|
|
47
|
+
freezeTokenIxn(args: FreezeTokenArgs, assetAccessController: PublicKey, authorizedUserRole: PublicKey): Promise<TransactionInstruction>;
|
|
48
48
|
/**
|
|
49
49
|
* Asynchronously generates instruction to thaw a token account.
|
|
50
50
|
* @param args - {@link FreezeTokenArgs}
|
|
51
51
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
52
|
-
* @param authorizedUserRole -
|
|
52
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
53
53
|
* @returns A Promise that resolves to the instruction to thaw.
|
|
54
54
|
*/
|
|
55
|
-
thawTokenIxn(args: FreezeTokenArgs, assetAccessController: PublicKey, authorizedUserRole
|
|
55
|
+
thawTokenIxn(args: FreezeTokenArgs, assetAccessController: PublicKey, authorizedUserRole: PublicKey): Promise<TransactionInstruction>;
|
|
56
56
|
/**
|
|
57
57
|
* Asynchronously generates instructions to revoke tokens from a user.
|
|
58
58
|
* @param args - {@link RevokeTokensArgs}
|
|
59
59
|
* @param signer - User signer public key.
|
|
60
60
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
61
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
61
62
|
* @param investorId - Optional investorId. Required if user is not an investor.
|
|
62
|
-
* @param authorizedUserRole - Optional UserRole account. Required if user is not an admin.
|
|
63
63
|
* @returns A Promise that resolves to the instructions to revoke.
|
|
64
64
|
*/
|
|
65
|
-
revokeTokenIxn(args: RevokeTokensArgs, signer: PublicKey, assetAccessController: PublicKey,
|
|
66
|
-
/**
|
|
67
|
-
* Asynchronously generates instruction to close mint.
|
|
68
|
-
* @param args - {@link CloseMintArgs}
|
|
69
|
-
* @param assetAccessController - RBAC AssetAccessController account.
|
|
70
|
-
* @param authorizedUserRole - Optional UserRole account. Required if user is not an admin.
|
|
71
|
-
* @returns A Promise that resolves to the instruction to close mint.
|
|
72
|
-
*/
|
|
73
|
-
closeMintIxn(args: CloseMintArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
65
|
+
revokeTokenIxn(args: RevokeTokensArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole: PublicKey, investorId?: string): Promise<TransactionInstruction>;
|
|
74
66
|
/**
|
|
75
67
|
* Asynchronously generates instruction to update mint interest rate.
|
|
76
68
|
* @param args - {@link UpdateInterestBearingMintRateArgs}
|
|
77
69
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
78
|
-
* @param authorizedUserRole -
|
|
70
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
79
71
|
* @returns A Promise that resolves to the instruction to update mint interest rate.
|
|
80
72
|
*/
|
|
81
|
-
updateInterestBearingMintRateIxn(args: UpdateInterestBearingMintRateArgs, assetAccessController: PublicKey, authorizedUserRole
|
|
73
|
+
updateInterestBearingMintRateIxn(args: UpdateInterestBearingMintRateArgs, assetAccessController: PublicKey, authorizedUserRole: PublicKey): Promise<TransactionInstruction>;
|
|
82
74
|
/**
|
|
83
75
|
* Asynchronously generates instruction to seize tokens.
|
|
84
76
|
* @param args - {@link SeizeTokensArgs}
|
|
85
77
|
* @param signer - User signer public key.
|
|
86
78
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
87
|
-
* @param authorizedUserRole -
|
|
79
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
88
80
|
* @returns A Promise that resolves to the instruction to seize.
|
|
89
81
|
*/
|
|
90
|
-
seizeTokensIxn(args: SeizeTokensArgs, investorId: string, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole
|
|
82
|
+
seizeTokensIxn(args: SeizeTokensArgs, investorId: string, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole: PublicKey): Promise<TransactionInstruction>;
|
|
91
83
|
}
|
|
92
84
|
//# sourceMappingURL=AssetController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetController.d.ts","sourceRoot":"","sources":["../../src/client/AssetController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"AssetController.d.ts","sourceRoot":"","sources":["../../src/client/AssetController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,SAAS,EAET,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAOzB,OAAO,EACL,eAAe,EAEf,iCAAiC,EAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAEL,uBAAuB,EACvB,eAAe,EAkBf,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AAMvC;;GAEG;AACH,qBAAa,eAAe;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;gBAElB,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC;IAK/D;;;;OAIG;IACG,gBAAgB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAItF;;;;;;SAMK;IACC,mBAAmB,CACvB,IAAI,EAAE,uBAAuB,EAC7B,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,GAC5B,OAAO,CAAC,sBAAsB,CAAC;IAuBlC;;;;;OAKG;IACG,cAAc,CAClB,IAAI,EAAE,eAAe,EACrB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,GAC5B,OAAO,CAAC,sBAAsB,CAAC;IAkElC;;;;OAIG;IACG,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAI3E;;;;;;OAMG;IACG,cAAc,CAClB,IAAI,EAAE,eAAe,EACrB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,GAC5B,OAAO,CAAC,sBAAsB,CAAC;IAyBlC;;;;;;OAMG;IACG,YAAY,CAChB,IAAI,EAAE,eAAe,EACrB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,GAC5B,OAAO,CAAC,sBAAsB,CAAC;IA0BlC;;;;;;;;OAQG;IACG,cAAc,CAClB,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,SAAS,EACjB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,EAC7B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,sBAAsB,CAAC;IAuDlC;;;;;;OAMG;IACG,gCAAgC,CACpC,IAAI,EAAE,iCAAiC,EACvC,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,GAC5B,OAAO,CAAC,sBAAsB,CAAC;IAsBlC;;;;;;;OAOG;IACG,cAAc,CAClB,IAAI,EAAE,eAAe,EACrB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,SAAS,EACjB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,EAAE,SAAS,GAC5B,OAAO,CAAC,sBAAsB,CAAC;CA2FnC"}
|
|
@@ -23,7 +23,7 @@ export declare class IdentityMetadataRegistry {
|
|
|
23
23
|
* @param args - {@link SetupInvestorArgs}
|
|
24
24
|
* @param authority - RBAC AssetAccessController ControllerAuthority.
|
|
25
25
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
26
|
-
* @param authorizedUserRole -
|
|
26
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
27
27
|
* @returns A Promise that resolves to the instructions to setup an investor.
|
|
28
28
|
*
|
|
29
29
|
* It is required for at least a single user to be setup before issuing tokens.
|
|
@@ -33,7 +33,7 @@ export declare class IdentityMetadataRegistry {
|
|
|
33
33
|
* Asynchronously add levels to investor.
|
|
34
34
|
* @param args - {@link AddLevelsArgs}
|
|
35
35
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
36
|
-
* @param authorizedUserRole -
|
|
36
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
37
37
|
* @returns A Promise that resolves to the instructions to add levels.
|
|
38
38
|
* */
|
|
39
39
|
addLevels(args: AddLevelsArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -41,7 +41,7 @@ export declare class IdentityMetadataRegistry {
|
|
|
41
41
|
* Asynchronously change country for the Investor.
|
|
42
42
|
* @param args - {@link ChangeCountryArgs}
|
|
43
43
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
44
|
-
* @param authorizedUserRole -
|
|
44
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
45
45
|
* @returns A Promise that resolves to the instructions to change the country.
|
|
46
46
|
* */
|
|
47
47
|
changeCountry(args: ChangeCountryArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -49,7 +49,7 @@ export declare class IdentityMetadataRegistry {
|
|
|
49
49
|
* Asynchronously remove levels from an investor.
|
|
50
50
|
* @param args - {@link RemoveLevelsArgs}
|
|
51
51
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
52
|
-
* @param authorizedUserRole -
|
|
52
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
53
53
|
* @returns A Promise that resolves to the instructions to remove levels.
|
|
54
54
|
* */
|
|
55
55
|
removeLevels(args: RemoveLevelsArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -57,7 +57,7 @@ export declare class IdentityMetadataRegistry {
|
|
|
57
57
|
* Asynchronously remove an investor.
|
|
58
58
|
* @param args - {@link RemoveLevelsArgs}
|
|
59
59
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
60
|
-
* @param authorizedUserRole -
|
|
60
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
61
61
|
* @returns A Promise that resolves to the instructions to remove an investor.
|
|
62
62
|
* */
|
|
63
63
|
removeInvestor(args: RemoveInvestorArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityMetadataRegistry.d.ts","sourceRoot":"","sources":["../../src/client/IdentityMetadataRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACL,mBAAmB,EACnB,SAAS,EAET,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAMpD,OAAO,EASL,QAAQ,EAER,SAAS,EAEV,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,qBAAa,wBAAwB;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;gBAG1B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,EAC7B,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC;IAO7B;;;;SAIK;IACL,WAAW,CAAC,GAAG,EAAE,mBAAmB,EAAE;IAkBtC;;;;;;;;;OASG;IACG,aAAa,CACjB,IAAI,EAAE,iBAAiB,EACvB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"IdentityMetadataRegistry.d.ts","sourceRoot":"","sources":["../../src/client/IdentityMetadataRegistry.ts"],"names":[],"mappings":"AAAA,O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,EAAE,gBAAgB,EACtB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAwDlC;;;;;;SAMK;IACC,cAAc,CAClB,IAAI,EAAE,kBAAkB,EACxB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAwClC;;;SAGK;IACC,sBAAsB,CAC1B,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,sBAAsB,CAAC;CA8BnC"}
|
|
@@ -15,7 +15,7 @@ export declare class IdentityRegistry {
|
|
|
15
15
|
* @param args - {@link SetupUserArgs}
|
|
16
16
|
* @param authority - RBAC AssetAccessController ControllerAuthority.
|
|
17
17
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
18
|
-
* @param authorizedUserRole -
|
|
18
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
19
19
|
* @returns A Promise that resolves to the instructions to setup a user.
|
|
20
20
|
*
|
|
21
21
|
* It is required for at least a single user to be setup before issuing tokens.
|
|
@@ -26,7 +26,7 @@ export declare class IdentityRegistry {
|
|
|
26
26
|
* @param args - {@link SetupUserArgs}
|
|
27
27
|
* @param authority - RBAC AssetAccessController ControllerAuthority.
|
|
28
28
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
29
|
-
* @param authorizedUserRole -
|
|
29
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
30
30
|
* @returns A Promise that resolves to the instructions to setup a user.
|
|
31
31
|
*
|
|
32
32
|
* It is required for at least a single user to be setup before issuing tokens.
|
|
@@ -36,7 +36,7 @@ export declare class IdentityRegistry {
|
|
|
36
36
|
* Asynchronously generates instruction to attach wallet to identity.
|
|
37
37
|
* @param args - {@link AttachDetachWalletArgs}
|
|
38
38
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
39
|
-
* @param authorizedUserRole -
|
|
39
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
40
40
|
* @returns A Promise that resolves to attach wallet.
|
|
41
41
|
* */
|
|
42
42
|
attachWalletToIdentityIxn(args: AttachDetachWalletArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -44,7 +44,7 @@ export declare class IdentityRegistry {
|
|
|
44
44
|
* Asynchronously generates instruction to detach wallet from identity.
|
|
45
45
|
* @param args - {@link AttachDetachWalletArgs}
|
|
46
46
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
47
|
-
* @param authorizedUserRole -
|
|
47
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
48
48
|
* @returns A Promise that resolves to detach wallet.
|
|
49
49
|
* */
|
|
50
50
|
detachWalletFromIdentityIxn(args: AttachDetachWalletArgs, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityRegistry.d.ts","sourceRoot":"","sources":["../../src/client/IdentityRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"IdentityRegistry.d.ts","sourceRoot":"","sources":["../../src/client/IdentityRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EASL,QAAQ,EAER,SAAS,EACT,aAAa,EACd,MAAM,+BAA+B,CAAC;AAQvC;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;gBAElB,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC;IAK/D;;;;;;;;;OASG;IACG,aAAa,CACjB,IAAI,EAAE,aAAa,EACnB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,QAAQ,CAAC;IAwCpB;;;;;;;;;OASG;IACG,aAAa,CACjB,IAAI,EAAE,kBAAkB,EACxB,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IA0ClC;;;;;;SAMK;IACC,yBAAyB,CAC7B,IAAI,EAAE,sBAAsB,EAC5B,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAiDlC;;;;;;SAMK;IACC,2BAA2B,CAC/B,IAAI,EAAE,sBAAsB,EAC5B,qBAAqB,EAAE,SAAS,EAChC,kBAAkB,CAAC,EAAE,SAAS,GAC7B,OAAO,CAAC,sBAAsB,CAAC;CAmDnC"}
|
|
@@ -14,7 +14,7 @@ export declare class PolicyEngine {
|
|
|
14
14
|
* @param args - {@link AttachPolicyArgs}
|
|
15
15
|
* @param signer - User signer public key.
|
|
16
16
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
17
|
-
* @param authorizedUserRole -
|
|
17
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
18
18
|
* @returns A Promise that resolves to the instructions to attach a policy.
|
|
19
19
|
* */
|
|
20
20
|
attachPolicy(args: AttachPolicyArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -23,7 +23,7 @@ export declare class PolicyEngine {
|
|
|
23
23
|
* @param args - {@link DetachPolicyArgs}
|
|
24
24
|
* @param signer - User signer public key.
|
|
25
25
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
26
|
-
* @param authorizedUserRole -
|
|
26
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
27
27
|
* @returns A Promise that resolves to the instructions to detach a policy.
|
|
28
28
|
* */
|
|
29
29
|
detachPolicy(args: DetachPolicyArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -32,7 +32,7 @@ export declare class PolicyEngine {
|
|
|
32
32
|
* @param args - {@link ChangeCountersArgs}
|
|
33
33
|
* @param signer - User signer public key.
|
|
34
34
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
35
|
-
* @param authorizedUserRole -
|
|
35
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
36
36
|
* @returns A Promise that resolves to the instructions to change the counters.
|
|
37
37
|
* */
|
|
38
38
|
changeCounters(args: ChangeCountersArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -41,7 +41,7 @@ export declare class PolicyEngine {
|
|
|
41
41
|
* @param args - {@link SetCountersArgs}
|
|
42
42
|
* @param signer - User signer public key.
|
|
43
43
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
44
|
-
* @param authorizedUserRole -
|
|
44
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
45
45
|
* @returns A Promise that resolves to the instructions to set the counter values.
|
|
46
46
|
* */
|
|
47
47
|
setCounters(args: SetCountersArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -50,7 +50,7 @@ export declare class PolicyEngine {
|
|
|
50
50
|
* @param args - {@link ChangeCounterLimitsArgs}
|
|
51
51
|
* @param signer - User signer public key.
|
|
52
52
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
53
|
-
* @param authorizedUserRole -
|
|
53
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
54
54
|
* @returns A Promise that resolves to the instructions to change the counters limits.
|
|
55
55
|
* */
|
|
56
56
|
changeCounterLimits(args: ChangeCounterLimitsArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -59,7 +59,7 @@ export declare class PolicyEngine {
|
|
|
59
59
|
* @param args - {@link ChangeMappingArgs}
|
|
60
60
|
* @param signer - User signer public key.
|
|
61
61
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
62
|
-
* @param authorizedUserRole -
|
|
62
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
63
63
|
* */
|
|
64
64
|
changeMapping(args: ChangeMappingArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
65
65
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class PolicyEngine {
|
|
|
67
67
|
* @param args - {@link ChangeIssuancePoliciesArgs}
|
|
68
68
|
* @param signer - User signer public key.
|
|
69
69
|
* @param assetAccessController - RBAC AssetAccessController account.
|
|
70
|
-
* @param authorizedUserRole -
|
|
70
|
+
* @param authorizedUserRole - UserRole authorized to invoke instruction.
|
|
71
71
|
* */
|
|
72
72
|
changeIssuancePolicies(args: ChangeIssuancePoliciesArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
73
73
|
addLock(args: AddLockArgs, signer: PublicKey, assetAccessController: PublicKey, authorizedUserRole?: PublicKey): Promise<TransactionInstruction>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RwaRbacClient.d.ts","sourceRoot":"","sources":["../../src/client/RwaRbacClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,OAAO,EAAE,QAAQ,EAAS,MA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