@dstoken-solana/rwa-rbac 0.0.1-rc15 → 0.0.1-rc16
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 +2 -2
- package/dist/client/AssetController.js +2 -2
- package/dist/client/IdentityMetadataRegistry.d.ts +3 -3
- package/dist/client/IdentityMetadataRegistry.js +2 -2
- package/dist/client/IdentityRegistry.d.ts +2 -2
- package/dist/client/IdentityRegistry.js +1 -1
- package/dist/client/PolicyEngine.d.ts +1 -1
- package/dist/client/RwaRbacClient.d.ts +7 -7
- package/dist/client/RwaRbacClient.js +6 -6
- package/dist/client/TokenLocks.d.ts +3 -3
- package/dist/client/TokenLocks.js +2 -2
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +6 -6
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/pdas.js +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +3 -3
- package/dist/utils.d.ts +1 -1
- package/package.json +4 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Program } from "@coral-xyz/anchor";
|
|
2
2
|
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
|
-
import { IssueTokensWithLockArgs, UpdateInterestBearingMintRateArgs } from "../types/instructions";
|
|
4
|
-
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
3
|
+
import { IssueTokensWithLockArgs, UpdateInterestBearingMintRateArgs } from "../types/instructions.js";
|
|
4
|
+
import { RwaRbac } from "../types/generated/rwa_rbac.js";
|
|
5
5
|
import { CloseMintArgs, CreateAssetControllerIx, FreezeTokenArgs, RevokeTokensArgs, RwaClient, SeizeTokensArgs, TransferTokensArgs, UpdateAssetMetadataArgs, VoidTokensArgs } from "@dstoken-solana/rwa-token-sdk";
|
|
6
6
|
/**
|
|
7
7
|
* Represents the role-based access client for Asset Controller for an RWA.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PublicKey, SystemProgram, } from "@solana/web3.js";
|
|
2
2
|
import { ASSOCIATED_TOKEN_PROGRAM_ID, createAssociatedTokenAccountInstruction, getAssociatedTokenAddressSync, TOKEN_2022_PROGRAM_ID, } from "@solana/spl-token";
|
|
3
3
|
import { assetControllerProgramId, getAssetControllerEventAuthority, getAssetControllerPda, getCloseMintIx, getCreateAssetControllerIx, getExtraMetasListPda, getFreezeTokenIx, getIdentityAccountPda, getIdentityRegistryPda, getPolicyEnginePda, getRevokeTokensIx, getSeizeTokensIx, getThawTokenIx, getTrackerAccountPda, getUpdateInterestBearingMintRateIx, getWalletIdentityAccountPda, identityRegistryProgramId, policyEngineProgramId, } from "@dstoken-solana/rwa-token-sdk";
|
|
4
|
-
import { TL_PROGRAM } from "../constants";
|
|
5
|
-
import { deriveInvestorLocks, deriveControllerAuthorityPda, deriveInvestorPda, deriveLockedTokenAccount, } from "../pdas";
|
|
4
|
+
import { TL_PROGRAM } from "../constants.js";
|
|
5
|
+
import { deriveInvestorLocks, deriveControllerAuthorityPda, deriveInvestorPda, deriveLockedTokenAccount, } from "../pdas.js";
|
|
6
6
|
/**
|
|
7
7
|
* Represents the role-based access client for Asset Controller for an RWA.
|
|
8
8
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Program } from "@coral-xyz/anchor";
|
|
2
2
|
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
|
-
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
4
|
-
import { RwaImr } from "../types/generated/rwa_imr";
|
|
3
|
+
import { RwaRbac } from "../types/generated/rwa_rbac.js";
|
|
4
|
+
import { RwaImr } from "../types/generated/rwa_imr.js";
|
|
5
5
|
import { IxReturn, RwaClient } from "@dstoken-solana/rwa-token-sdk";
|
|
6
|
-
import { AddLevelsArgs, AttachWalletByInvestorArgs, ChangeCountryArgs, RemoveInvestorArgs, RemoveLevelsArgs, SetupInvestorArgs } from "../types/instructions";
|
|
6
|
+
import { AddLevelsArgs, AttachWalletByInvestorArgs, ChangeCountryArgs, RemoveInvestorArgs, RemoveLevelsArgs, SetupInvestorArgs } from "../types/instructions.js";
|
|
7
7
|
/**
|
|
8
8
|
* Role-based access client for accessing Identity Metadata Registry.
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicKey, SystemProgram, } from "@solana/web3.js";
|
|
2
|
-
import { deriveControllerAuthorityPda, deriveInvestorPda } from "../pdas";
|
|
2
|
+
import { deriveControllerAuthorityPda, deriveInvestorPda } from "../pdas.js";
|
|
3
3
|
import { getIdentityAccountPda, getIdentityRegistryPda, getPolicyEnginePda, getPolicyEngineProgram, getPolicyEnginerEventAuthority, getTrackerAccountPda, getWalletIdentityAccountPda, identityRegistryProgramId, policyEngineProgramId, } from "@dstoken-solana/rwa-token-sdk";
|
|
4
|
-
import { IMR_PROGRAM } from "../constants";
|
|
4
|
+
import { IMR_PROGRAM } from "../constants.js";
|
|
5
5
|
/**
|
|
6
6
|
* Role-based access client for accessing Identity Metadata Registry.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Program } from "@coral-xyz/anchor";
|
|
2
2
|
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
|
-
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
4
|
-
import { AttachDetachWalletArgs, RefreshLevelArgs } from "../types/instructions";
|
|
3
|
+
import { RwaRbac } from "../types/generated/rwa_rbac.js";
|
|
4
|
+
import { AttachDetachWalletArgs, RefreshLevelArgs } from "../types/instructions.js";
|
|
5
5
|
import { AddLevelToIdentityAccountArgs, IxReturn, RemoveLevelFromIdentityAccountArgs, RwaClient, SetupUserArgs } from "@dstoken-solana/rwa-token-sdk";
|
|
6
6
|
/**
|
|
7
7
|
* Represents the role-based access client for Identity Registry for an RWA.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey } from "@solana/web3.js";
|
|
2
2
|
import { getIdentityAccountPda, getIdentityRegistryPda, getIdentityRegistryProgram, getPolicyEnginePda, getRemoveLevelFromIdentityAccount, getTrackerAccountPda, getWalletIdentityAccountPda, identityRegistryProgramId, policyEngineProgramId, } from "@dstoken-solana/rwa-token-sdk";
|
|
3
|
-
import { deriveControllerAuthorityPda } from "../pdas";
|
|
3
|
+
import { deriveControllerAuthorityPda } from "../pdas.js";
|
|
4
4
|
import { SystemProgram } from "@solana/web3.js";
|
|
5
5
|
/**
|
|
6
6
|
* Represents the role-based access client for Identity Registry for an RWA.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Program } from "@coral-xyz/anchor";
|
|
2
2
|
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
|
-
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
3
|
+
import { RwaRbac } from "../types/generated/rwa_rbac.js";
|
|
4
4
|
import { AttachPolicyArgs, DetachPolicyArgs, ChangeCountersArgs, ChangeCounterLimitsArgs, RwaClient, ChangeMappingArgs, ChangeIssuancePoliciesArgs, SetCountersArgs } from "@dstoken-solana/rwa-token-sdk";
|
|
5
5
|
/**
|
|
6
6
|
* Represents the role-based access client for Policy Engine for an RWA.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Program, Provider } from "@coral-xyz/anchor";
|
|
2
|
-
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
3
|
-
import { AssetController } from "./AssetController";
|
|
4
|
-
import { PolicyEngine } from "./PolicyEngine";
|
|
5
|
-
import { IdentityRegistry } from "./IdentityRegistry";
|
|
6
|
-
import { AssignUserRoleArgs, CreateControllerArgs, DeleteUserRoleArgs, ModifyUserRoleArgs, RemoveUserRoleArgs, SetupUserRoleArgs, UpdateControllerAdminArgs, WithdrawExcessRentArgs } from "../types/instructions";
|
|
2
|
+
import { RwaRbac } from "../types/generated/rwa_rbac.js";
|
|
3
|
+
import { AssetController } from "./AssetController.js";
|
|
4
|
+
import { PolicyEngine } from "./PolicyEngine.js";
|
|
5
|
+
import { IdentityRegistry } from "./IdentityRegistry.js";
|
|
6
|
+
import { AssignUserRoleArgs, CreateControllerArgs, DeleteUserRoleArgs, ModifyUserRoleArgs, RemoveUserRoleArgs, SetupUserRoleArgs, UpdateControllerAdminArgs, WithdrawExcessRentArgs } from "../types/instructions.js";
|
|
7
7
|
import { RwaClient } from "@dstoken-solana/rwa-token-sdk";
|
|
8
8
|
import { Config } from "@dstoken-solana/rwa-token-sdk";
|
|
9
|
-
import { IdentityMetadataRegistry } from "./IdentityMetadataRegistry";
|
|
10
|
-
import { TokenLocks } from "./TokenLocks";
|
|
9
|
+
import { IdentityMetadataRegistry } from "./IdentityMetadataRegistry.js";
|
|
10
|
+
import { TokenLocks } from "./TokenLocks.js";
|
|
11
11
|
export declare class RwaRbacClient {
|
|
12
12
|
rbacProgram: Program<RwaRbac>;
|
|
13
13
|
rwaClient: RwaClient;
|
|
@@ -3,13 +3,13 @@ import { SystemProgram } from "@solana/web3.js";
|
|
|
3
3
|
import * as rbacIDL from "../types/generated/rwa_rbac.json";
|
|
4
4
|
import * as imrIDL from "../types/generated/rwa_imr.json";
|
|
5
5
|
import * as tokenLocksIdl from "../types/generated/token_locks.json";
|
|
6
|
-
import { AssetController } from "./AssetController";
|
|
7
|
-
import { PolicyEngine } from "./PolicyEngine";
|
|
8
|
-
import { IdentityRegistry } from "./IdentityRegistry";
|
|
9
|
-
import { deriveAssetAccessControllerPda, deriveUserRolePda } from "../pdas";
|
|
6
|
+
import { AssetController } from "./AssetController.js";
|
|
7
|
+
import { PolicyEngine } from "./PolicyEngine.js";
|
|
8
|
+
import { IdentityRegistry } from "./IdentityRegistry.js";
|
|
9
|
+
import { deriveAssetAccessControllerPda, deriveUserRolePda } from "../pdas.js";
|
|
10
10
|
import { RwaClient } from "@dstoken-solana/rwa-token-sdk";
|
|
11
|
-
import { IdentityMetadataRegistry } from "./IdentityMetadataRegistry";
|
|
12
|
-
import { TokenLocks } from "./TokenLocks";
|
|
11
|
+
import { IdentityMetadataRegistry } from "./IdentityMetadataRegistry.js";
|
|
12
|
+
import { TokenLocks } from "./TokenLocks.js";
|
|
13
13
|
export class RwaRbacClient {
|
|
14
14
|
rbacProgram;
|
|
15
15
|
rwaClient;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Program } from "@coral-xyz/anchor";
|
|
2
2
|
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
3
|
-
import { RwaRbac } from "../types/generated/rwa_rbac";
|
|
4
|
-
import { TokenLocks as TokenLocksType } from "../types/generated/token_locks";
|
|
3
|
+
import { RwaRbac } from "../types/generated/rwa_rbac.js";
|
|
4
|
+
import { TokenLocks as TokenLocksType } from "../types/generated/token_locks.js";
|
|
5
5
|
import { RwaClient } from "@dstoken-solana/rwa-token-sdk";
|
|
6
|
-
import { AddTokenLockArgs, CreateOrCloseInvestorLocksArgs, RemoveTokenLockArgs } from "../types/instructions";
|
|
6
|
+
import { AddTokenLockArgs, CreateOrCloseInvestorLocksArgs, RemoveTokenLockArgs } from "../types/instructions.js";
|
|
7
7
|
import { Commitment } from "@solana/web3.js";
|
|
8
8
|
/**
|
|
9
9
|
* Role-based access client for accessing Token Locks
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PublicKey, SystemProgram, } from "@solana/web3.js";
|
|
2
2
|
import { getAssociatedTokenAddressSync, TOKEN_2022_PROGRAM_ID, getAccount, } from "@solana/spl-token";
|
|
3
|
-
import { deriveControllerAuthorityPda, deriveInvestorLocks, deriveInvestorPda, deriveLockedTokenAccount, } from "../pdas";
|
|
3
|
+
import { deriveControllerAuthorityPda, deriveInvestorLocks, deriveInvestorPda, deriveLockedTokenAccount, } from "../pdas.js";
|
|
4
4
|
import { assetControllerProgramId, getAssetControllerPda, getExtraMetasListPda, getIdentityAccountPda, getIdentityRegistryPda, getPolicyEnginePda, getTrackerAccountPda, getWalletIdentityAccountPda, identityRegistryProgramId, policyEngineProgramId, } from "@dstoken-solana/rwa-token-sdk";
|
|
5
|
-
import { TL_PROGRAM } from "../constants";
|
|
5
|
+
import { TL_PROGRAM } from "../constants.js";
|
|
6
6
|
/**
|
|
7
7
|
* Role-based access client for accessing Token Locks
|
|
8
8
|
*/
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./RwaRbacClient";
|
|
2
|
-
export * from "./AssetController";
|
|
3
|
-
export * from "./IdentityRegistry";
|
|
4
|
-
export * from "./IdentityMetadataRegistry";
|
|
5
|
-
export * from "./PolicyEngine";
|
|
6
|
-
export * from "./TokenLocks";
|
|
1
|
+
export * from "./RwaRbacClient.js";
|
|
2
|
+
export * from "./AssetController.js";
|
|
3
|
+
export * from "./IdentityRegistry.js";
|
|
4
|
+
export * from "./IdentityMetadataRegistry.js";
|
|
5
|
+
export * from "./PolicyEngine.js";
|
|
6
|
+
export * from "./TokenLocks.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/client/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./RwaRbacClient";
|
|
2
|
-
export * from "./AssetController";
|
|
3
|
-
export * from "./IdentityRegistry";
|
|
4
|
-
export * from "./IdentityMetadataRegistry";
|
|
5
|
-
export * from "./PolicyEngine";
|
|
6
|
-
export * from "./TokenLocks";
|
|
1
|
+
export * from "./RwaRbacClient.js";
|
|
2
|
+
export * from "./AssetController.js";
|
|
3
|
+
export * from "./IdentityRegistry.js";
|
|
4
|
+
export * from "./IdentityMetadataRegistry.js";
|
|
5
|
+
export * from "./PolicyEngine.js";
|
|
6
|
+
export * from "./TokenLocks.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./pdas";
|
|
2
|
-
export * from "./types";
|
|
3
|
-
export * from "./client";
|
|
4
|
-
export * from "./constants";
|
|
5
|
-
export * from "./utils";
|
|
1
|
+
export * from "./pdas.js";
|
|
2
|
+
export * from "./types/index.js";
|
|
3
|
+
export * from "./client/index.js";
|
|
4
|
+
export * from "./constants.js";
|
|
5
|
+
export * from "./utils.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./pdas";
|
|
2
|
-
export * from "./types";
|
|
3
|
-
export * from "./client";
|
|
4
|
-
export * from "./constants";
|
|
5
|
-
export * from "./utils";
|
|
1
|
+
export * from "./pdas.js";
|
|
2
|
+
export * from "./types/index.js";
|
|
3
|
+
export * from "./client/index.js";
|
|
4
|
+
export * from "./constants.js";
|
|
5
|
+
export * from "./utils.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/pdas.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicKey } from "@solana/web3.js";
|
|
2
|
-
import { IMR_PROGRAM, RBAC_PROGRAM, TL_PROGRAM } from "./constants";
|
|
2
|
+
import { IMR_PROGRAM, RBAC_PROGRAM, TL_PROGRAM } from "./constants.js";
|
|
3
3
|
export const deriveInvestorLocks = (investorId, identityRegistry, programId = TL_PROGRAM) => {
|
|
4
4
|
return PublicKey.findProgramAddressSync([
|
|
5
5
|
Buffer.from(investorId),
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./generated";
|
|
2
|
-
export * from "./flags";
|
|
3
|
-
export * from "./instructions";
|
|
1
|
+
export * from "./generated/index.js";
|
|
2
|
+
export * from "./flags.js";
|
|
3
|
+
export * from "./instructions.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./generated";
|
|
2
|
-
export * from "./flags";
|
|
3
|
-
export * from "./instructions";
|
|
1
|
+
export * from "./generated/index.js";
|
|
2
|
+
export * from "./flags.js";
|
|
3
|
+
export * from "./instructions.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dstoken-solana/rwa-rbac",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-rc16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type-check": "tsc --noEmit",
|
|
19
19
|
"prepublish": "yarn build:package",
|
|
20
20
|
"build:pack": "yarn build:package && yarn pack",
|
|
21
|
-
"build": "tsc"
|
|
21
|
+
"build": "tsc && tsc-alias"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
"rollup": "^2.56.3",
|
|
28
28
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
29
29
|
"ts-jest": "^29.1.0",
|
|
30
|
+
"tsc-alias": "1.8.10",
|
|
30
31
|
"typescript": ">=5.0.0"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@coral-xyz/anchor": "^0.30.1",
|
|
34
|
-
"@dstoken-solana/rwa-token-sdk": "0.0.
|
|
35
|
+
"@dstoken-solana/rwa-token-sdk": "0.0.42",
|
|
35
36
|
"@solana/spl-token": "^0.3.11",
|
|
36
37
|
"@solana/web3.js": "^1.95.4",
|
|
37
38
|
"bs58": "^6.0.0"
|