@fogo/sessions-sdk 0.1.1 → 0.1.2
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/cjs/index.js +1 -0
- package/esm/index.js +2 -1
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -606,6 +606,7 @@ const sendNativeTransfer = async (options) => {
|
|
|
606
606
|
feeMetadata: options.feeConfig.metadata,
|
|
607
607
|
feeMint: options.feeConfig.mint,
|
|
608
608
|
feeSource: (0, spl_token_1.getAssociatedTokenAddressSync)(options.feeConfig.mint, options.walletPublicKey),
|
|
609
|
+
feeDestination: sessions_idls_1.IntentTransferIdl.address,
|
|
609
610
|
source: options.walletPublicKey,
|
|
610
611
|
destination: options.recipient,
|
|
611
612
|
sponsor: options.context.internalPayer,
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnchorProvider, BorshAccountsCoder } from "@coral-xyz/anchor";
|
|
2
|
-
import { DomainRegistryIdl, IntentTransferProgram, SessionManagerIdl, SessionManagerProgram, } from "@fogo/sessions-idls";
|
|
2
|
+
import { DomainRegistryIdl, IntentTransferIdl, IntentTransferProgram, SessionManagerIdl, SessionManagerProgram, } from "@fogo/sessions-idls";
|
|
3
3
|
import { findMetadataPda, safeFetchMetadata, } from "@metaplex-foundation/mpl-token-metadata";
|
|
4
4
|
import { publicKey as metaplexPublicKey } from "@metaplex-foundation/umi";
|
|
5
5
|
import { createUmi } from "@metaplex-foundation/umi-bundle-defaults";
|
|
@@ -584,6 +584,7 @@ export const sendNativeTransfer = async (options) => {
|
|
|
584
584
|
feeMetadata: options.feeConfig.metadata,
|
|
585
585
|
feeMint: options.feeConfig.mint,
|
|
586
586
|
feeSource: getAssociatedTokenAddressSync(options.feeConfig.mint, options.walletPublicKey),
|
|
587
|
+
feeDestination: IntentTransferIdl.address,
|
|
587
588
|
source: options.walletPublicKey,
|
|
588
589
|
destination: options.recipient,
|
|
589
590
|
sponsor: options.context.internalPayer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fogo/sessions-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A set of utilities for integrating with Fogo sessions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"bn.js": "^5.1.2",
|
|
50
50
|
"bs58": "^6.0.0",
|
|
51
51
|
"zod": "3.25.67",
|
|
52
|
-
"@fogo/sessions-idls": "^0.1.
|
|
52
|
+
"@fogo/sessions-idls": "^0.1.1"
|
|
53
53
|
}
|
|
54
54
|
}
|