@deriverse/kit 1.0.38 → 1.0.39
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.js +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2886,9 +2886,6 @@ class Engine {
|
|
|
2886
2886
|
*/
|
|
2887
2887
|
swapInstruction(args) {
|
|
2888
2888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2889
|
-
if (!(yield this.checkClient())) {
|
|
2890
|
-
throw new Error("Client account not found");
|
|
2891
|
-
}
|
|
2892
2889
|
const assetTokenId = yield this.getTokenId(args.assetMint);
|
|
2893
2890
|
const crncyTokenId = yield this.getTokenId(args.crncyMint);
|
|
2894
2891
|
const assetTokenAccount = this.tokens.get(assetTokenId);
|
|
@@ -2921,9 +2918,6 @@ class Engine {
|
|
|
2921
2918
|
address: yield this.getAccountByTag(types_1.AccountType.COMMUNITY),
|
|
2922
2919
|
role: kit_1.AccountRole.READONLY
|
|
2923
2920
|
},
|
|
2924
|
-
{ address: SYSTEM_PROGRAM_ID, role: kit_1.AccountRole.READONLY },
|
|
2925
|
-
{ address: assetTokenProgramId, role: kit_1.AccountRole.READONLY },
|
|
2926
|
-
{ address: crncyTokenProgramId, role: kit_1.AccountRole.READONLY },
|
|
2927
2921
|
{ address: assetTokenAccount.programAddress, role: kit_1.AccountRole.WRITABLE },
|
|
2928
2922
|
{ address: crncyTokenAccount.programAddress, role: kit_1.AccountRole.WRITABLE },
|
|
2929
2923
|
{ address: args.assetMint, role: kit_1.AccountRole.READONLY },
|
|
@@ -2933,6 +2927,10 @@ class Engine {
|
|
|
2933
2927
|
{ address: clientAssetTokenAccount, role: kit_1.AccountRole.WRITABLE },
|
|
2934
2928
|
{ address: clientCrncyTokenAccount, role: kit_1.AccountRole.WRITABLE },
|
|
2935
2929
|
{ address: this.drvsAuthority, role: kit_1.AccountRole.READONLY },
|
|
2930
|
+
{ address: SYSTEM_PROGRAM_ID, role: kit_1.AccountRole.READONLY },
|
|
2931
|
+
{ address: assetTokenProgramId, role: kit_1.AccountRole.READONLY },
|
|
2932
|
+
{ address: crncyTokenProgramId, role: kit_1.AccountRole.READONLY },
|
|
2933
|
+
{ address: ASSOCIATED_TOKEN_PROGRAM_ID, role: kit_1.AccountRole.READONLY },
|
|
2936
2934
|
];
|
|
2937
2935
|
return {
|
|
2938
2936
|
accounts: keys, programAddress: this.programId, data: buf
|