@smithii_io/mixoor 0.0.16 → 0.0.17
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/src/index.js +6 -26
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +6 -26
- package/dist/src/index.mjs.map +1 -1
- package/dist/test/_setup.js +35 -20
- package/dist/test/_setup.js.map +1 -1
- package/dist/test/{transfer.test.js → _transferSol.test.js} +19 -15
- package/dist/test/_transferSol.test.js.map +1 -0
- package/dist/test/transferSpl.test.js +111 -0
- package/dist/test/transferSpl.test.js.map +1 -0
- package/dist/types/src/generated/instructions/transfer.d.ts.map +1 -1
- package/dist/types/test/_setup.d.ts +12 -4
- package/dist/types/test/_setup.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/test/transfer.test.js.map +0 -1
package/dist/src/index.js
CHANGED
|
@@ -950,35 +950,15 @@ async function getTransferInstructionAsync(input, config) {
|
|
|
950
950
|
]
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
if (!accounts.tokenProgram.value) {
|
|
954
|
-
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
955
|
-
}
|
|
956
|
-
if (!accounts.recipientTokenAccount.value) {
|
|
957
|
-
accounts.recipientTokenAccount.value = await kit.getProgramDerivedAddress({
|
|
958
|
-
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
959
|
-
seeds: [
|
|
960
|
-
kit.getAddressEncoder().encode(expectAddress(accounts.recipient.value)),
|
|
961
|
-
kit.getAddressEncoder().encode(expectAddress(accounts.tokenProgram.value)),
|
|
962
|
-
kit.getAddressEncoder().encode(expectAddress(accounts.mint.value))
|
|
963
|
-
]
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
953
|
if (!accounts.feeCollector.value) {
|
|
967
954
|
accounts.feeCollector.value = "9qX97Bd8dvHAknHVjCxz4uEJcPSE3NGjjgniMVdDBu6d";
|
|
968
955
|
}
|
|
969
|
-
if (!accounts.feeCollectorTokenAccount.value) {
|
|
970
|
-
accounts.feeCollectorTokenAccount.value = await kit.getProgramDerivedAddress({
|
|
971
|
-
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
972
|
-
seeds: [
|
|
973
|
-
kit.getAddressEncoder().encode(expectAddress(accounts.feeCollector.value)),
|
|
974
|
-
kit.getAddressEncoder().encode(expectAddress(accounts.tokenProgram.value)),
|
|
975
|
-
kit.getAddressEncoder().encode(expectAddress(accounts.mint.value))
|
|
976
|
-
]
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
956
|
if (!accounts.systemProgram.value) {
|
|
980
957
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
981
958
|
}
|
|
959
|
+
if (!accounts.tokenProgram.value) {
|
|
960
|
+
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
961
|
+
}
|
|
982
962
|
if (!accounts.associatedTokenProgram.value) {
|
|
983
963
|
accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
984
964
|
}
|
|
@@ -1036,15 +1016,15 @@ function getTransferInstruction(input, config) {
|
|
|
1036
1016
|
};
|
|
1037
1017
|
const accounts = originalAccounts;
|
|
1038
1018
|
const args = { ...input };
|
|
1039
|
-
if (!accounts.tokenProgram.value) {
|
|
1040
|
-
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1041
|
-
}
|
|
1042
1019
|
if (!accounts.feeCollector.value) {
|
|
1043
1020
|
accounts.feeCollector.value = "9qX97Bd8dvHAknHVjCxz4uEJcPSE3NGjjgniMVdDBu6d";
|
|
1044
1021
|
}
|
|
1045
1022
|
if (!accounts.systemProgram.value) {
|
|
1046
1023
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
1047
1024
|
}
|
|
1025
|
+
if (!accounts.tokenProgram.value) {
|
|
1026
|
+
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1027
|
+
}
|
|
1048
1028
|
if (!accounts.associatedTokenProgram.value) {
|
|
1049
1029
|
accounts.associatedTokenProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1050
1030
|
}
|