@dstoken-solana/rwa-rbac 0.4.4 → 0.4.5
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/index.es.js +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3758,7 +3758,7 @@ class AssetController {
|
|
|
3758
3758
|
}, this.rwaClient.provider);
|
|
3759
3759
|
const trackerAccount = getTrackerAccountPda(args.assetMint, investorPda.toString());
|
|
3760
3760
|
const ixData = issueTokensIxs[0].data;
|
|
3761
|
-
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.wallet),
|
|
3761
|
+
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.wallet), true, TOKEN_2022_PROGRAM_ID);
|
|
3762
3762
|
return yield this.rbacProgram.methods
|
|
3763
3763
|
.issueTokens(ixData)
|
|
3764
3764
|
.accountsStrict({
|
|
@@ -3807,7 +3807,7 @@ class AssetController {
|
|
|
3807
3807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3808
3808
|
const freezeIx = yield getFreezeTokenIx(args, this.rwaClient.provider);
|
|
3809
3809
|
const ixData = freezeIx.data;
|
|
3810
|
-
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.owner),
|
|
3810
|
+
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.owner), true, TOKEN_2022_PROGRAM_ID);
|
|
3811
3811
|
return this.rbacProgram.methods
|
|
3812
3812
|
.freezeTokenAccount(ixData)
|
|
3813
3813
|
.accountsStrict({
|
|
@@ -3835,7 +3835,7 @@ class AssetController {
|
|
|
3835
3835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3836
3836
|
const thawIx = yield getThawTokenIx(args, this.rwaClient.provider);
|
|
3837
3837
|
const ixData = thawIx.data;
|
|
3838
|
-
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.owner),
|
|
3838
|
+
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.owner), true, TOKEN_2022_PROGRAM_ID);
|
|
3839
3839
|
return this.rbacProgram.methods
|
|
3840
3840
|
.thawTokenAccount(ixData)
|
|
3841
3841
|
.accountsStrict({
|
|
@@ -3875,7 +3875,7 @@ class AssetController {
|
|
|
3875
3875
|
: null;
|
|
3876
3876
|
const ixData = revokeIx.data;
|
|
3877
3877
|
const assetController = getAssetControllerPda(args.assetMint);
|
|
3878
|
-
const revokeTokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.wallet),
|
|
3878
|
+
const revokeTokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.wallet), true, TOKEN_2022_PROGRAM_ID);
|
|
3879
3879
|
return yield this.rbacProgram.methods
|
|
3880
3880
|
.revokeTokens(ixData)
|
|
3881
3881
|
.accountsStrict({
|
|
@@ -3924,7 +3924,7 @@ class AssetController {
|
|
|
3924
3924
|
assetControllerProgram: assetControllerProgramId,
|
|
3925
3925
|
assetMint: args.assetMint,
|
|
3926
3926
|
assetController: getAssetControllerPda(args.assetMint),
|
|
3927
|
-
sourceTokenAccount: getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.from),
|
|
3927
|
+
sourceTokenAccount: getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.from), true, TOKEN_2022_PROGRAM_ID),
|
|
3928
3928
|
destinationTokenAccount: getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.to), true, TOKEN_2022_PROGRAM_ID),
|
|
3929
3929
|
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
3930
3930
|
eventAuthority: getAssetControllerEventAuthority(),
|
|
@@ -4390,7 +4390,7 @@ class IdentityRegistry {
|
|
|
4390
4390
|
const identityRegistry = getIdentityRegistryPda(args.assetMint);
|
|
4391
4391
|
const identityAccount = getIdentityAccountPda(args.assetMint, args.owner);
|
|
4392
4392
|
const walletIdentity = getWalletIdentityAccountPda(args.assetMint, args.wallet.toString());
|
|
4393
|
-
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.wallet),
|
|
4393
|
+
const tokenAccount = getAssociatedTokenAddressSync(new PublicKey(args.assetMint), new PublicKey(args.wallet), true, TOKEN_2022_PROGRAM_ID);
|
|
4394
4394
|
const ix = yield identityProgram.methods
|
|
4395
4395
|
.detachWalletFromIdentity()
|
|
4396
4396
|
.accountsStrict({
|
package/dist/index.js
CHANGED
|
@@ -3762,7 +3762,7 @@ class AssetController {
|
|
|
3762
3762
|
}, this.rwaClient.provider);
|
|
3763
3763
|
const trackerAccount = rwaTokenSdk.getTrackerAccountPda(args.assetMint, investorPda.toString());
|
|
3764
3764
|
const ixData = issueTokensIxs[0].data;
|
|
3765
|
-
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.wallet),
|
|
3765
|
+
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.wallet), true, splToken.TOKEN_2022_PROGRAM_ID);
|
|
3766
3766
|
return yield this.rbacProgram.methods
|
|
3767
3767
|
.issueTokens(ixData)
|
|
3768
3768
|
.accountsStrict({
|
|
@@ -3811,7 +3811,7 @@ class AssetController {
|
|
|
3811
3811
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3812
3812
|
const freezeIx = yield rwaTokenSdk.getFreezeTokenIx(args, this.rwaClient.provider);
|
|
3813
3813
|
const ixData = freezeIx.data;
|
|
3814
|
-
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.owner),
|
|
3814
|
+
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.owner), true, splToken.TOKEN_2022_PROGRAM_ID);
|
|
3815
3815
|
return this.rbacProgram.methods
|
|
3816
3816
|
.freezeTokenAccount(ixData)
|
|
3817
3817
|
.accountsStrict({
|
|
@@ -3839,7 +3839,7 @@ class AssetController {
|
|
|
3839
3839
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3840
3840
|
const thawIx = yield rwaTokenSdk.getThawTokenIx(args, this.rwaClient.provider);
|
|
3841
3841
|
const ixData = thawIx.data;
|
|
3842
|
-
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.owner),
|
|
3842
|
+
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.owner), true, splToken.TOKEN_2022_PROGRAM_ID);
|
|
3843
3843
|
return this.rbacProgram.methods
|
|
3844
3844
|
.thawTokenAccount(ixData)
|
|
3845
3845
|
.accountsStrict({
|
|
@@ -3879,7 +3879,7 @@ class AssetController {
|
|
|
3879
3879
|
: null;
|
|
3880
3880
|
const ixData = revokeIx.data;
|
|
3881
3881
|
const assetController = rwaTokenSdk.getAssetControllerPda(args.assetMint);
|
|
3882
|
-
const revokeTokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.wallet),
|
|
3882
|
+
const revokeTokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.wallet), true, splToken.TOKEN_2022_PROGRAM_ID);
|
|
3883
3883
|
return yield this.rbacProgram.methods
|
|
3884
3884
|
.revokeTokens(ixData)
|
|
3885
3885
|
.accountsStrict({
|
|
@@ -3928,7 +3928,7 @@ class AssetController {
|
|
|
3928
3928
|
assetControllerProgram: rwaTokenSdk.assetControllerProgramId,
|
|
3929
3929
|
assetMint: args.assetMint,
|
|
3930
3930
|
assetController: rwaTokenSdk.getAssetControllerPda(args.assetMint),
|
|
3931
|
-
sourceTokenAccount: splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.from),
|
|
3931
|
+
sourceTokenAccount: splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.from), true, splToken.TOKEN_2022_PROGRAM_ID),
|
|
3932
3932
|
destinationTokenAccount: splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.to), true, splToken.TOKEN_2022_PROGRAM_ID),
|
|
3933
3933
|
tokenProgram: splToken.TOKEN_2022_PROGRAM_ID,
|
|
3934
3934
|
eventAuthority: rwaTokenSdk.getAssetControllerEventAuthority(),
|
|
@@ -4394,7 +4394,7 @@ class IdentityRegistry {
|
|
|
4394
4394
|
const identityRegistry = rwaTokenSdk.getIdentityRegistryPda(args.assetMint);
|
|
4395
4395
|
const identityAccount = rwaTokenSdk.getIdentityAccountPda(args.assetMint, args.owner);
|
|
4396
4396
|
const walletIdentity = rwaTokenSdk.getWalletIdentityAccountPda(args.assetMint, args.wallet.toString());
|
|
4397
|
-
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.wallet),
|
|
4397
|
+
const tokenAccount = splToken.getAssociatedTokenAddressSync(new web3_js.PublicKey(args.assetMint), new web3_js.PublicKey(args.wallet), true, splToken.TOKEN_2022_PROGRAM_ID);
|
|
4398
4398
|
const ix = yield identityProgram.methods
|
|
4399
4399
|
.detachWalletFromIdentity()
|
|
4400
4400
|
.accountsStrict({
|