@oobe-protocol-labs/synapse-client-sdk 1.0.7 → 1.2.0
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/CHANGELOG.md +114 -0
- package/dist/cjs/ai/gateway/index.d.ts +5 -5
- package/dist/cjs/ai/gateway/index.d.ts.map +1 -1
- package/dist/cjs/ai/gateway/index.js +2 -2
- package/dist/cjs/ai/gateway/index.js.map +1 -1
- package/dist/cjs/ai/index.d.ts +1 -1
- package/dist/cjs/ai/index.d.ts.map +1 -1
- package/dist/cjs/ai/index.js +5 -2
- package/dist/cjs/ai/index.js.map +1 -1
- package/dist/cjs/ai/tools/index.d.ts +4 -4
- package/dist/cjs/ai/tools/index.d.ts.map +1 -1
- package/dist/cjs/ai/tools/index.js +5 -2
- package/dist/cjs/ai/tools/index.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/index.d.ts +9 -3
- package/dist/cjs/ai/tools/protocols/index.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/index.js +16 -2
- package/dist/cjs/ai/tools/protocols/index.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.d.ts +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.js +126 -28
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter/tools.d.ts +4 -3
- package/dist/cjs/ai/tools/protocols/jupiter/tools.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter/tools.js +91 -9
- package/dist/cjs/ai/tools/protocols/jupiter/tools.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter-onchain/tools.d.ts +4 -4
- package/dist/cjs/ai/tools/protocols/jupiter-onchain/tools.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter-onchain/tools.js +1 -1
- package/dist/cjs/ai/tools/protocols/jupiter-onchain/tools.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/metaplex/tools.d.ts +7 -4
- package/dist/cjs/ai/tools/protocols/metaplex/tools.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/metaplex/tools.js +4 -1
- package/dist/cjs/ai/tools/protocols/metaplex/tools.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/raydium-onchain/tools.d.ts +4 -4
- package/dist/cjs/ai/tools/protocols/raydium-onchain/tools.d.ts.map +1 -1
- package/dist/cjs/ai/tools/protocols/raydium-onchain/tools.js +1 -1
- package/dist/cjs/ai/tools/protocols/raydium-onchain/tools.js.map +1 -1
- package/dist/cjs/ai/tools/protocols/solana-programs/index.d.ts +7 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/index.js +13 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/index.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/schemas.d.ts +11 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/schemas.js +160 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/schemas.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/tools.d.ts +57 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/tools.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/tools.js +226 -0
- package/dist/cjs/ai/tools/protocols/solana-programs/tools.js.map +1 -0
- package/dist/cjs/context/container.d.ts +341 -0
- package/dist/cjs/context/container.d.ts.map +1 -0
- package/dist/cjs/context/container.js +670 -0
- package/dist/cjs/context/container.js.map +1 -0
- package/dist/cjs/context/hooks.d.ts +357 -0
- package/dist/cjs/context/hooks.d.ts.map +1 -0
- package/dist/cjs/context/hooks.js +451 -0
- package/dist/cjs/context/hooks.js.map +1 -0
- package/dist/cjs/context/index.d.ts +81 -0
- package/dist/cjs/context/index.d.ts.map +1 -0
- package/dist/cjs/context/index.js +125 -0
- package/dist/cjs/context/index.js.map +1 -0
- package/dist/cjs/context/providers.d.ts +176 -0
- package/dist/cjs/context/providers.d.ts.map +1 -0
- package/dist/cjs/context/providers.js +184 -0
- package/dist/cjs/context/providers.js.map +1 -0
- package/dist/cjs/context/refs.d.ts +491 -0
- package/dist/cjs/context/refs.d.ts.map +1 -0
- package/dist/cjs/context/refs.js +673 -0
- package/dist/cjs/context/refs.js.map +1 -0
- package/dist/cjs/context/types.d.ts +251 -0
- package/dist/cjs/context/types.d.ts.map +1 -0
- package/dist/cjs/context/types.js +87 -0
- package/dist/cjs/context/types.js.map +1 -0
- package/dist/cjs/core/client.d.ts +31 -1
- package/dist/cjs/core/client.d.ts.map +1 -1
- package/dist/cjs/core/client.js.map +1 -1
- package/dist/cjs/index.d.ts +4 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/programs/associated-token.d.ts +97 -0
- package/dist/cjs/programs/associated-token.d.ts.map +1 -0
- package/dist/cjs/programs/associated-token.js +113 -0
- package/dist/cjs/programs/associated-token.js.map +1 -0
- package/dist/cjs/programs/compute-budget.d.ts +105 -0
- package/dist/cjs/programs/compute-budget.d.ts.map +1 -0
- package/dist/cjs/programs/compute-budget.js +99 -0
- package/dist/cjs/programs/compute-budget.js.map +1 -0
- package/dist/cjs/programs/index.d.ts +74 -0
- package/dist/cjs/programs/index.d.ts.map +1 -0
- package/dist/cjs/programs/index.js +112 -0
- package/dist/cjs/programs/index.js.map +1 -0
- package/dist/cjs/programs/memo.d.ts +70 -0
- package/dist/cjs/programs/memo.d.ts.map +1 -0
- package/dist/cjs/programs/memo.js +74 -0
- package/dist/cjs/programs/memo.js.map +1 -0
- package/dist/cjs/programs/spl-token.d.ts +373 -0
- package/dist/cjs/programs/spl-token.d.ts.map +1 -0
- package/dist/cjs/programs/spl-token.js +358 -0
- package/dist/cjs/programs/spl-token.js.map +1 -0
- package/dist/cjs/programs/system.d.ts +231 -0
- package/dist/cjs/programs/system.d.ts.map +1 -0
- package/dist/cjs/programs/system.js +231 -0
- package/dist/cjs/programs/system.js.map +1 -0
- package/dist/cjs/programs/types.d.ts +111 -0
- package/dist/cjs/programs/types.d.ts.map +1 -0
- package/dist/cjs/programs/types.js +166 -0
- package/dist/cjs/programs/types.js.map +1 -0
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/classes/AccountReader.html +18 -18
- package/dist/docs/classes/AccountsClient.html +10 -10
- package/dist/docs/classes/AsyncProviderError.html +39 -0
- package/dist/docs/classes/CircularDependencyError.html +39 -0
- package/dist/docs/classes/DasClient.html +13 -13
- package/dist/docs/classes/GeyserParser.html +17 -17
- package/dist/docs/classes/GrpcTransport.html +6 -6
- package/dist/docs/classes/HttpTransport.html +4 -4
- package/dist/docs/classes/InstructionWriter.html +37 -0
- package/dist/docs/classes/MemoryGuard.html +27 -0
- package/dist/docs/classes/NetworkError.html +5 -5
- package/dist/docs/classes/RefRegistry.html +40 -0
- package/dist/docs/classes/RefReleasedError.html +39 -0
- package/dist/docs/classes/RpcMethodNotFoundError.html +4 -4
- package/dist/docs/classes/ServiceNotFoundError.html +39 -0
- package/dist/docs/classes/ServiceRef.html +60 -0
- package/dist/docs/classes/SolanaRpc.html +55 -55
- package/dist/docs/classes/SynapseClient.html +39 -27
- package/dist/docs/classes/SynapseContext.html +151 -0
- package/dist/docs/classes/SynapseError.html +4 -4
- package/dist/docs/classes/TimeoutError.html +4 -4
- package/dist/docs/classes/UpstreamError.html +6 -6
- package/dist/docs/classes/WeakServiceRef.html +17 -0
- package/dist/docs/classes/WsClient.html +10 -10
- package/dist/docs/enums/SynapseNetwork.html +2 -2
- package/dist/docs/enums/SynapseRegion.html +2 -2
- package/dist/docs/enums/TokenExtensionType.html +2 -2
- package/dist/docs/functions/Epoch-1.html +1 -1
- package/dist/docs/functions/Lamports-2.html +1 -1
- package/dist/docs/functions/Pubkey-1.html +1 -1
- package/dist/docs/functions/Sig.html +1 -1
- package/dist/docs/functions/Slot-1.html +1 -1
- package/dist/docs/functions/UnixTs.html +1 -1
- package/dist/docs/functions/autoSelectRegion.html +1 -1
- package/dist/docs/functions/autoWire.html +11 -0
- package/dist/docs/functions/base58Encode.html +1 -1
- package/dist/docs/functions/base64ToBytes.html +1 -1
- package/dist/docs/functions/chunk.html +1 -1
- package/dist/docs/functions/computeBalanceChanges.html +1 -1
- package/dist/docs/functions/computeTokenBalanceChanges.html +1 -1
- package/dist/docs/functions/createBareContext.html +6 -0
- package/dist/docs/functions/createBinding.html +11 -0
- package/dist/docs/functions/createBoundHook.html +8 -0
- package/dist/docs/functions/createReactAdapter.html +11 -0
- package/dist/docs/functions/createRefHook.html +10 -0
- package/dist/docs/functions/createServerMiddleware.html +11 -0
- package/dist/docs/functions/createServiceHook.html +10 -0
- package/dist/docs/functions/createSynapse.html +1 -1
- package/dist/docs/functions/createSynapseContext.html +12 -0
- package/dist/docs/functions/createToken.html +9 -0
- package/dist/docs/functions/decodeBase58.html +2 -0
- package/dist/docs/functions/decodeLookupTable.html +1 -1
- package/dist/docs/functions/decodeMint.html +1 -1
- package/dist/docs/functions/decodeMultisig.html +1 -1
- package/dist/docs/functions/decodeNonceAccount.html +1 -1
- package/dist/docs/functions/decodeStakeAccount.html +1 -1
- package/dist/docs/functions/decodeToken2022Account.html +1 -1
- package/dist/docs/functions/decodeToken2022Mint.html +1 -1
- package/dist/docs/functions/decodeTokenAccount.html +1 -1
- package/dist/docs/functions/encodeBase58.html +1 -1
- package/dist/docs/functions/fetchLookupTable.html +1 -1
- package/dist/docs/functions/fetchMint.html +1 -1
- package/dist/docs/functions/fetchNonceAccount.html +1 -1
- package/dist/docs/functions/fetchStakeAccount.html +1 -1
- package/dist/docs/functions/fetchTokenAccount.html +1 -1
- package/dist/docs/functions/fetchTokenAccountsByOwner.html +1 -1
- package/dist/docs/functions/fromKitAddress.html +1 -1
- package/dist/docs/functions/getAccountInfo.html +1 -1
- package/dist/docs/functions/getAsset.html +1 -1
- package/dist/docs/functions/getAssetBatch.html +1 -1
- package/dist/docs/functions/getAssetProof.html +1 -1
- package/dist/docs/functions/getAssetProofBatch.html +1 -1
- package/dist/docs/functions/getAssetsByAuthority.html +1 -1
- package/dist/docs/functions/getAssetsByCreator.html +1 -1
- package/dist/docs/functions/getAssetsByGroup.html +1 -1
- package/dist/docs/functions/getAssetsByOwner.html +1 -1
- package/dist/docs/functions/getBalance.html +1 -1
- package/dist/docs/functions/getBlock.html +1 -1
- package/dist/docs/functions/getBlockCommitment.html +1 -1
- package/dist/docs/functions/getBlockHeight.html +1 -1
- package/dist/docs/functions/getBlockProduction.html +1 -1
- package/dist/docs/functions/getBlockTime.html +1 -1
- package/dist/docs/functions/getBlocks.html +1 -1
- package/dist/docs/functions/getBlocksWithLimit.html +1 -1
- package/dist/docs/functions/getClusterNodes.html +1 -1
- package/dist/docs/functions/getContext.html +4 -0
- package/dist/docs/functions/getDecodedAccount.html +1 -1
- package/dist/docs/functions/getDecodedAccounts.html +1 -1
- package/dist/docs/functions/getEnvironment.html +1 -1
- package/dist/docs/functions/getEpochInfo.html +1 -1
- package/dist/docs/functions/getEpochSchedule.html +1 -1
- package/dist/docs/functions/getFeeForMessage.html +1 -1
- package/dist/docs/functions/getFirstAvailableBlock.html +1 -1
- package/dist/docs/functions/getGenesisHash.html +1 -1
- package/dist/docs/functions/getHealth.html +1 -1
- package/dist/docs/functions/getHighestSnapshotSlot.html +1 -1
- package/dist/docs/functions/getIdentity.html +1 -1
- package/dist/docs/functions/getInflationGovernor.html +1 -1
- package/dist/docs/functions/getInflationRate.html +1 -1
- package/dist/docs/functions/getInflationReward.html +1 -1
- package/dist/docs/functions/getLargestAccounts.html +1 -1
- package/dist/docs/functions/getLatestBlockhash.html +1 -1
- package/dist/docs/functions/getLeaderSchedule.html +1 -1
- package/dist/docs/functions/getMaxRetransmitSlot.html +1 -1
- package/dist/docs/functions/getMaxShredInsertSlot.html +1 -1
- package/dist/docs/functions/getMinimumBalanceForRentExemption.html +1 -1
- package/dist/docs/functions/getMultipleAccounts.html +1 -1
- package/dist/docs/functions/getProgramAccounts.html +1 -1
- package/dist/docs/functions/getProgramCategory.html +1 -1
- package/dist/docs/functions/getRecentPerformanceSamples.html +1 -1
- package/dist/docs/functions/getRecentPrioritizationFees.html +1 -1
- package/dist/docs/functions/getSignatureStatuses.html +1 -1
- package/dist/docs/functions/getSignaturesForAddress.html +1 -1
- package/dist/docs/functions/getSignaturesForAsset.html +1 -1
- package/dist/docs/functions/getSlot.html +1 -1
- package/dist/docs/functions/getSlotLeader.html +1 -1
- package/dist/docs/functions/getSlotLeaders.html +1 -1
- package/dist/docs/functions/getStakeActivation.html +1 -1
- package/dist/docs/functions/getStakeMinimumDelegation.html +1 -1
- package/dist/docs/functions/getSupply.html +1 -1
- package/dist/docs/functions/getTokenAccountBalance.html +1 -1
- package/dist/docs/functions/getTokenAccounts.html +1 -1
- package/dist/docs/functions/getTokenAccountsByDelegate.html +1 -1
- package/dist/docs/functions/getTokenAccountsByOwner.html +1 -1
- package/dist/docs/functions/getTokenLargestAccounts.html +1 -1
- package/dist/docs/functions/getTokenSupply.html +1 -1
- package/dist/docs/functions/getTransaction.html +1 -1
- package/dist/docs/functions/getTransactionCount.html +1 -1
- package/dist/docs/functions/getVersion.html +1 -1
- package/dist/docs/functions/getVoteAccounts.html +1 -1
- package/dist/docs/functions/isBlockhashValid.html +1 -1
- package/dist/docs/functions/isBrowser.html +1 -1
- package/dist/docs/functions/isDisposable.html +3 -0
- package/dist/docs/functions/isProgramInCategory.html +1 -1
- package/dist/docs/functions/isServer.html +1 -1
- package/dist/docs/functions/isValidPubkey.html +1 -1
- package/dist/docs/functions/isValidSignature.html +1 -1
- package/dist/docs/functions/lamportsToSol.html +1 -1
- package/dist/docs/functions/listEndpoints.html +1 -1
- package/dist/docs/functions/listNetworks.html +1 -1
- package/dist/docs/functions/listRegions.html +1 -1
- package/dist/docs/functions/minimumLedgerSlot.html +1 -1
- package/dist/docs/functions/parseAccountUpdate.html +1 -1
- package/dist/docs/functions/parseBlockMeta.html +1 -1
- package/dist/docs/functions/parseEntry.html +1 -1
- package/dist/docs/functions/parseGeyserUpdate.html +1 -1
- package/dist/docs/functions/parseSlotUpdate.html +1 -1
- package/dist/docs/functions/parseTimestamp.html +1 -1
- package/dist/docs/functions/parseTransaction.html +1 -1
- package/dist/docs/functions/probeLatency.html +1 -1
- package/dist/docs/functions/rawBufferToBase58.html +1 -1
- package/dist/docs/functions/rawBufferToBase64.html +1 -1
- package/dist/docs/functions/rawBufferToBytes.html +1 -1
- package/dist/docs/functions/rawBufferToHex.html +1 -1
- package/dist/docs/functions/readonly.html +3 -0
- package/dist/docs/functions/readonlySigner.html +3 -0
- package/dist/docs/functions/requestAirdrop.html +1 -1
- package/dist/docs/functions/resolveEndpoint.html +1 -1
- package/dist/docs/functions/resolveProgram.html +1 -1
- package/dist/docs/functions/resolveProgramBatch.html +1 -1
- package/dist/docs/functions/retry.html +1 -1
- package/dist/docs/functions/searchAssets.html +1 -1
- package/dist/docs/functions/sendTransaction.html +1 -1
- package/dist/docs/functions/setGlobalContext.html +9 -0
- package/dist/docs/functions/simulateTransaction.html +1 -1
- package/dist/docs/functions/sleep.html +1 -1
- package/dist/docs/functions/solToLamports.html +1 -1
- package/dist/docs/functions/toClientConfig.html +1 -1
- package/dist/docs/functions/toKitAddress.html +1 -1
- package/dist/docs/functions/toKitInstruction.html +9 -0
- package/dist/docs/functions/toKitLamports.html +1 -1
- package/dist/docs/functions/toKitSignatureString.html +1 -1
- package/dist/docs/functions/tryGetContext.html +3 -0
- package/dist/docs/functions/tryUseService.html +4 -0
- package/dist/docs/functions/useBoundServices.html +10 -0
- package/dist/docs/functions/useService.html +13 -0
- package/dist/docs/functions/useSharedRef.html +14 -0
- package/dist/docs/functions/withRef.html +14 -0
- package/dist/docs/functions/withRefAsync.html +12 -0
- package/dist/docs/functions/writable.html +3 -0
- package/dist/docs/functions/writableSigner.html +3 -0
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/interfaces/AccountInfo.html +7 -7
- package/dist/docs/interfaces/AccountMeta.html +9 -0
- package/dist/docs/interfaces/AccountNotification.html +2 -2
- package/dist/docs/interfaces/AccountSubParams.html +2 -2
- package/dist/docs/interfaces/AddMemoParams.html +11 -0
- package/dist/docs/interfaces/AdvanceNonceParams.html +7 -0
- package/dist/docs/interfaces/AliasProvider.html +6 -0
- package/dist/docs/interfaces/AllocateParams.html +7 -0
- package/dist/docs/interfaces/ApproveCheckedParams.html +19 -0
- package/dist/docs/interfaces/ApproveParams.html +15 -0
- package/dist/docs/interfaces/AssetSignatureInfo.html +2 -2
- package/dist/docs/interfaces/AssetSignaturesPage.html +2 -2
- package/dist/docs/interfaces/AssignParams.html +7 -0
- package/dist/docs/interfaces/AsyncFactoryProvider.html +7 -0
- package/dist/docs/interfaces/AuthorizeNonceParams.html +9 -0
- package/dist/docs/interfaces/BalanceChange.html +6 -6
- package/dist/docs/interfaces/BlockProduction.html +3 -3
- package/dist/docs/interfaces/BlockResult.html +2 -2
- package/dist/docs/interfaces/BlockReward.html +2 -2
- package/dist/docs/interfaces/BlockhashResult.html +2 -2
- package/dist/docs/interfaces/BurnCheckedParams.html +17 -0
- package/dist/docs/interfaces/BurnParams.html +15 -0
- package/dist/docs/interfaces/CallOptions.html +6 -6
- package/dist/docs/interfaces/ClassProvider.html +6 -0
- package/dist/docs/interfaces/CloseAccountParams.html +13 -0
- package/dist/docs/interfaces/ConfirmedTransaction.html +6 -6
- package/dist/docs/interfaces/ContactInfo.html +2 -2
- package/dist/docs/interfaces/ContextAdapter.html +15 -0
- package/dist/docs/interfaces/ContextEvents.html +13 -0
- package/dist/docs/interfaces/ContextModule.html +12 -0
- package/dist/docs/interfaces/CreateATAParams.html +13 -0
- package/dist/docs/interfaces/CreateAccountParams.html +13 -0
- package/dist/docs/interfaces/CreateAccountWithSeedParams.html +17 -0
- package/dist/docs/interfaces/CreateSynapseContextOpts.html +18 -0
- package/dist/docs/interfaces/DasAsset.html +2 -2
- package/dist/docs/interfaces/DasAssetProof.html +2 -2
- package/dist/docs/interfaces/DasAuthority.html +2 -2
- package/dist/docs/interfaces/DasCompression.html +2 -2
- package/dist/docs/interfaces/DasContent.html +2 -2
- package/dist/docs/interfaces/DasCreator.html +2 -2
- package/dist/docs/interfaces/DasFile.html +2 -2
- package/dist/docs/interfaces/DasGrouping.html +2 -2
- package/dist/docs/interfaces/DasOpts.html +2 -2
- package/dist/docs/interfaces/DasOwnership.html +2 -2
- package/dist/docs/interfaces/DasPage.html +2 -2
- package/dist/docs/interfaces/DasRoyalty.html +2 -2
- package/dist/docs/interfaces/DasSearchParams.html +2 -2
- package/dist/docs/interfaces/DasSupply.html +2 -2
- package/dist/docs/interfaces/DataSlice.html +3 -3
- package/dist/docs/interfaces/DecodedAccountResult.html +4 -4
- package/dist/docs/interfaces/DecodedLookupTable.html +8 -8
- package/dist/docs/interfaces/DecodedMint.html +6 -6
- package/dist/docs/interfaces/DecodedMultisig.html +5 -5
- package/dist/docs/interfaces/DecodedNonceAccount.html +6 -6
- package/dist/docs/interfaces/DecodedStakeAccount.html +2 -2
- package/dist/docs/interfaces/DecodedToken2022Account.html +9 -9
- package/dist/docs/interfaces/DecodedToken2022Mint.html +6 -6
- package/dist/docs/interfaces/DecodedTokenAccount.html +9 -9
- package/dist/docs/interfaces/DefaultAccountStateExt.html +2 -2
- package/dist/docs/interfaces/Disposable.html +5 -0
- package/dist/docs/interfaces/EndpointConnectConfig.html +5 -5
- package/dist/docs/interfaces/EpochInfo.html +7 -7
- package/dist/docs/interfaces/EpochSchedule.html +2 -2
- package/dist/docs/interfaces/FactoryProvider.html +7 -0
- package/dist/docs/interfaces/FetchedMint.html +6 -6
- package/dist/docs/interfaces/FetchedTokenAccount.html +6 -6
- package/dist/docs/interfaces/FreezeThawParams.html +13 -0
- package/dist/docs/interfaces/GetAccountInfoOpts.html +6 -6
- package/dist/docs/interfaces/GetAssetsByAuthorityParams.html +2 -2
- package/dist/docs/interfaces/GetAssetsByCreatorParams.html +2 -2
- package/dist/docs/interfaces/GetAssetsByGroupParams.html +2 -2
- package/dist/docs/interfaces/GetAssetsByOwnerParams.html +2 -2
- package/dist/docs/interfaces/GetBlockOpts.html +6 -6
- package/dist/docs/interfaces/GetBlockProductionOpts.html +6 -6
- package/dist/docs/interfaces/GetMultipleAccountsOpts.html +6 -6
- package/dist/docs/interfaces/GetProgramAccountsOpts.html +6 -6
- package/dist/docs/interfaces/GetSignatureStatusesOpts.html +6 -6
- package/dist/docs/interfaces/GetSignaturesOpts.html +7 -7
- package/dist/docs/interfaces/GetTokenAccountsParams.html +2 -2
- package/dist/docs/interfaces/GetTransactionOpts.html +6 -6
- package/dist/docs/interfaces/GeyserParserConfig.html +6 -6
- package/dist/docs/interfaces/GeyserParserEvents.html +9 -9
- package/dist/docs/interfaces/GeyserParserStats.html +2 -2
- package/dist/docs/interfaces/GrpcCallOptions.html +2 -2
- package/dist/docs/interfaces/GrpcTransportConfig.html +6 -6
- package/dist/docs/interfaces/ImmutableOwnerExt.html +2 -2
- package/dist/docs/interfaces/InflationGovernor.html +2 -2
- package/dist/docs/interfaces/InflationRate.html +2 -2
- package/dist/docs/interfaces/InflationReward.html +2 -2
- package/dist/docs/interfaces/InitializeAccountParams.html +11 -0
- package/dist/docs/interfaces/InitializeMintParams.html +13 -0
- package/dist/docs/interfaces/InitializeNonceParams.html +7 -0
- package/dist/docs/interfaces/InterestBearingConfigExt.html +2 -2
- package/dist/docs/interfaces/LatencyProbeResult.html +2 -2
- package/dist/docs/interfaces/LeakReport.html +12 -0
- package/dist/docs/interfaces/LogsNotification.html +2 -2
- package/dist/docs/interfaces/LogsSubParams.html +2 -2
- package/dist/docs/interfaces/MemoTransferExt.html +2 -2
- package/dist/docs/interfaces/MemoryGuardConfig.html +20 -0
- package/dist/docs/interfaces/MetadataPointerExt.html +2 -2
- package/dist/docs/interfaces/MintCloseAuthorityExt.html +2 -2
- package/dist/docs/interfaces/MintToCheckedParams.html +17 -0
- package/dist/docs/interfaces/MintToParams.html +15 -0
- package/dist/docs/interfaces/NonTransferableExt.html +2 -2
- package/dist/docs/interfaces/PaginationOpts.html +2 -2
- package/dist/docs/interfaces/ParsedAccountUpdate.html +16 -16
- package/dist/docs/interfaces/ParsedBlockMeta.html +2 -2
- package/dist/docs/interfaces/ParsedEntry.html +2 -2
- package/dist/docs/interfaces/ParsedInstruction.html +9 -9
- package/dist/docs/interfaces/ParsedSlotUpdate.html +3 -3
- package/dist/docs/interfaces/ParsedTransaction.html +19 -19
- package/dist/docs/interfaces/PerfSample.html +2 -2
- package/dist/docs/interfaces/PermanentDelegateExt.html +2 -2
- package/dist/docs/interfaces/ProgramAccount.html +2 -2
- package/dist/docs/interfaces/ProgramNotification.html +2 -2
- package/dist/docs/interfaces/ProgramSubParams.html +2 -2
- package/dist/docs/interfaces/ProgramsBundle.html +108 -0
- package/dist/docs/interfaces/RawAccountInfo.html +2 -2
- package/dist/docs/interfaces/RawBlockMeta.html +2 -2
- package/dist/docs/interfaces/RawBuffer.html +2 -2
- package/dist/docs/interfaces/RawCompiledInstruction.html +2 -2
- package/dist/docs/interfaces/RawEntry.html +2 -2
- package/dist/docs/interfaces/RawGeyserUpdate.html +2 -2
- package/dist/docs/interfaces/RawInnerInstruction.html +2 -2
- package/dist/docs/interfaces/RawSlotInfo.html +2 -2
- package/dist/docs/interfaces/RawTimestamp.html +2 -2
- package/dist/docs/interfaces/RawTokenBalance.html +2 -2
- package/dist/docs/interfaces/RawTransactionInfo.html +2 -2
- package/dist/docs/interfaces/ReactAdapterConfig.html +8 -0
- package/dist/docs/interfaces/RecoverNestedParams.html +15 -0
- package/dist/docs/interfaces/RefRegistryConfig.html +9 -0
- package/dist/docs/interfaces/RefStats.html +15 -0
- package/dist/docs/interfaces/RequestHeapFrameParams.html +5 -0
- package/dist/docs/interfaces/ResolveMiddleware.html +8 -0
- package/dist/docs/interfaces/RevokeParams.html +11 -0
- package/dist/docs/interfaces/RootNotification.html +2 -2
- package/dist/docs/interfaces/RootSubParams.html +1 -1
- package/dist/docs/interfaces/RpcContext.html +2 -2
- package/dist/docs/interfaces/RpcError.html +4 -4
- package/dist/docs/interfaces/RpcRequest.html +2 -2
- package/dist/docs/interfaces/RpcResponse.html +2 -2
- package/dist/docs/interfaces/SendTransactionOpts.html +6 -6
- package/dist/docs/interfaces/ServerAdapterConfig.html +13 -0
- package/dist/docs/interfaces/ServiceBinding.html +17 -0
- package/dist/docs/interfaces/ServiceRegistration.html +7 -0
- package/dist/docs/interfaces/ServiceResolver.html +16 -0
- package/dist/docs/interfaces/ServiceToken.html +13 -0
- package/dist/docs/interfaces/SetComputeUnitLimitParams.html +5 -0
- package/dist/docs/interfaces/SetComputeUnitPriceParams.html +5 -0
- package/dist/docs/interfaces/SetLoadedAccountsDataSizeLimitParams.html +5 -0
- package/dist/docs/interfaces/SignatureInfo.html +7 -7
- package/dist/docs/interfaces/SignatureNotification.html +2 -2
- package/dist/docs/interfaces/SignatureStatus.html +5 -5
- package/dist/docs/interfaces/SignatureSubParams.html +2 -2
- package/dist/docs/interfaces/SignaturesForAssetParams.html +2 -2
- package/dist/docs/interfaces/SimulateResult.html +2 -2
- package/dist/docs/interfaces/SimulateTransactionOpts.html +7 -7
- package/dist/docs/interfaces/SlotNotification.html +2 -2
- package/dist/docs/interfaces/SlotSubParams.html +1 -1
- package/dist/docs/interfaces/SortOpts.html +2 -2
- package/dist/docs/interfaces/StakeAuthorized.html +2 -2
- package/dist/docs/interfaces/StakeDelegation.html +3 -3
- package/dist/docs/interfaces/StakeLockup.html +4 -4
- package/dist/docs/interfaces/StakeMeta.html +2 -2
- package/dist/docs/interfaces/Supply.html +5 -5
- package/dist/docs/interfaces/SynapseClientConfig.html +9 -9
- package/dist/docs/interfaces/SynapseClientLike.html +14 -0
- package/dist/docs/interfaces/SynapseEndpoint.html +7 -7
- package/dist/docs/interfaces/SyncNativeParams.html +7 -0
- package/dist/docs/interfaces/SystemTransferParams.html +9 -0
- package/dist/docs/interfaces/TokenAccount.html +3 -3
- package/dist/docs/interfaces/TokenAccountsByOwnerResult.html +2 -2
- package/dist/docs/interfaces/TokenAmount.html +5 -5
- package/dist/docs/interfaces/TokenBalanceChange.html +2 -2
- package/dist/docs/interfaces/TokenTransferParams.html +15 -0
- package/dist/docs/interfaces/TransactionInstruction.html +11 -0
- package/dist/docs/interfaces/TransactionMeta.html +11 -11
- package/dist/docs/interfaces/TransferCheckedParams.html +19 -0
- package/dist/docs/interfaces/TransferFeeAmount.html +2 -2
- package/dist/docs/interfaces/TransferFeeConfig.html +2 -2
- package/dist/docs/interfaces/TransportConfig.html +7 -7
- package/dist/docs/interfaces/UnknownExtension.html +2 -2
- package/dist/docs/interfaces/ValueProvider.html +4 -0
- package/dist/docs/interfaces/VoteAccount.html +9 -9
- package/dist/docs/interfaces/VoteAccountsResult.html +3 -3
- package/dist/docs/interfaces/WithdrawNonceParams.html +11 -0
- package/dist/docs/interfaces/WsConfig.html +6 -6
- package/dist/docs/media/CHANGELOG.md +114 -0
- package/dist/docs/modules.html +107 -1
- package/dist/docs/types/AccountFetchOpts.html +1 -1
- package/dist/docs/types/AccountFilter.html +1 -1
- package/dist/docs/types/Base58.html +1 -1
- package/dist/docs/types/Brand.html +1 -1
- package/dist/docs/types/Commitment.html +1 -1
- package/dist/docs/types/DasSortBy.html +1 -1
- package/dist/docs/types/DasSortDirection.html +1 -1
- package/dist/docs/types/DataSizeFilter.html +1 -1
- package/dist/docs/types/DecodedExtension.html +1 -1
- package/dist/docs/types/Encoding.html +1 -1
- package/dist/docs/types/Epoch.html +1 -1
- package/dist/docs/types/Lamports.html +1 -1
- package/dist/docs/types/LogsFilter.html +1 -1
- package/dist/docs/types/MemcmpFilter.html +1 -1
- package/dist/docs/types/NonceState.html +1 -1
- package/dist/docs/types/ParsedGeyserUpdate.html +1 -1
- package/dist/docs/types/Pubkey.html +1 -1
- package/dist/docs/types/RuntimeEnv.html +1 -1
- package/dist/docs/types/ServiceLifecycle.html +25 -0
- package/dist/docs/types/ServiceProvider.html +3 -0
- package/dist/docs/types/Signature.html +1 -1
- package/dist/docs/types/Slot.html +1 -1
- package/dist/docs/types/StakeAccountType.html +1 -1
- package/dist/docs/types/SubscriptionId.html +1 -1
- package/dist/docs/types/TokenAccountState.html +1 -1
- package/dist/docs/types/TransactionDetail.html +1 -1
- package/dist/docs/types/UnaryMethod.html +1 -1
- package/dist/docs/types/UnixTimestamp.html +1 -1
- package/dist/docs/types/WsNotification.html +1 -1
- package/dist/docs/variables/ASSOCIATED_TOKEN_PROGRAM.html +3 -0
- package/dist/docs/variables/AssociatedToken.html +13 -0
- package/dist/docs/variables/COMPUTE_BUDGET_PROGRAM.html +3 -0
- package/dist/docs/variables/ComputeBudget.html +19 -0
- package/dist/docs/variables/JUPITER_PROGRAMS.html +1 -1
- package/dist/docs/variables/KNOWN_PROGRAMS.html +1 -1
- package/dist/docs/variables/KNOWN_PROGRAMS_COUNT.html +1 -1
- package/dist/docs/variables/LOOKUP_TABLE_HEADER_SIZE.html +1 -1
- package/dist/docs/variables/LOOKUP_TABLE_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/MARINADE_PROGRAMS.html +1 -1
- package/dist/docs/variables/MAX_MULTISIG_SIGNERS.html +1 -1
- package/dist/docs/variables/MEMO_PROGRAM_V1.html +3 -0
- package/dist/docs/variables/MEMO_PROGRAM_V2.html +3 -0
- package/dist/docs/variables/METAPLEX_PROGRAMS.html +1 -1
- package/dist/docs/variables/METEORA_PROGRAMS.html +1 -1
- package/dist/docs/variables/MINT_SIZE.html +1 -1
- package/dist/docs/variables/MULTISIG_SIZE.html +1 -1
- package/dist/docs/variables/Memo.html +9 -0
- package/dist/docs/variables/NONCE_ACCOUNT_SIZE.html +1 -1
- package/dist/docs/variables/ORCA_PROGRAMS.html +1 -1
- package/dist/docs/variables/OTHER_PROGRAMS.html +1 -1
- package/dist/docs/variables/RAYDIUM_PROGRAMS.html +1 -1
- package/dist/docs/variables/SDK_USER_AGENT.html +1 -1
- package/dist/docs/variables/SPL_PROGRAMS.html +1 -1
- package/dist/docs/variables/STAKE_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/SYNAPSE_DEVNET_EU.html +1 -1
- package/dist/docs/variables/SYNAPSE_DEVNET_US.html +1 -1
- package/dist/docs/variables/SYNAPSE_ENDPOINTS.html +1 -1
- package/dist/docs/variables/SYNAPSE_MAINNET_EU.html +1 -1
- package/dist/docs/variables/SYNAPSE_MAINNET_US.html +1 -1
- package/dist/docs/variables/SYSTEM_PROGRAM.html +3 -0
- package/dist/docs/variables/SYSTEM_PROGRAMS.html +1 -1
- package/dist/docs/variables/SYSTEM_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/SplToken.html +38 -0
- package/dist/docs/variables/SystemProgram.html +42 -0
- package/dist/docs/variables/TOKEN_2022_PROGRAM.html +3 -0
- package/dist/docs/variables/TOKEN_2022_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/TOKEN_ACCOUNT_SIZE.html +1 -1
- package/dist/docs/variables/TOKEN_PROGRAM.html +3 -0
- package/dist/docs/variables/TOKEN_PROGRAM_ID.html +1 -1
- package/dist/docs/variables/Tokens.html +16 -0
- package/dist/esm/ai/gateway/index.d.ts +5 -5
- package/dist/esm/ai/gateway/index.d.ts.map +1 -1
- package/dist/esm/ai/gateway/index.js +2 -2
- package/dist/esm/ai/gateway/index.js.map +1 -1
- package/dist/esm/ai/index.d.ts +1 -1
- package/dist/esm/ai/index.d.ts.map +1 -1
- package/dist/esm/ai/index.js +2 -2
- package/dist/esm/ai/index.js.map +1 -1
- package/dist/esm/ai/tools/index.d.ts +4 -4
- package/dist/esm/ai/tools/index.d.ts.map +1 -1
- package/dist/esm/ai/tools/index.js +3 -3
- package/dist/esm/ai/tools/index.js.map +1 -1
- package/dist/esm/ai/tools/protocols/index.d.ts +9 -3
- package/dist/esm/ai/tools/protocols/index.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/index.js +12 -1
- package/dist/esm/ai/tools/protocols/index.js.map +1 -1
- package/dist/esm/ai/tools/protocols/jupiter/schemas.d.ts +1 -1
- package/dist/esm/ai/tools/protocols/jupiter/schemas.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/jupiter/schemas.js +126 -28
- package/dist/esm/ai/tools/protocols/jupiter/schemas.js.map +1 -1
- package/dist/esm/ai/tools/protocols/jupiter/tools.d.ts +4 -3
- package/dist/esm/ai/tools/protocols/jupiter/tools.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/jupiter/tools.js +91 -9
- package/dist/esm/ai/tools/protocols/jupiter/tools.js.map +1 -1
- package/dist/esm/ai/tools/protocols/jupiter-onchain/tools.d.ts +4 -4
- package/dist/esm/ai/tools/protocols/jupiter-onchain/tools.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/jupiter-onchain/tools.js +1 -1
- package/dist/esm/ai/tools/protocols/jupiter-onchain/tools.js.map +1 -1
- package/dist/esm/ai/tools/protocols/metaplex/tools.d.ts +7 -4
- package/dist/esm/ai/tools/protocols/metaplex/tools.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/metaplex/tools.js +4 -1
- package/dist/esm/ai/tools/protocols/metaplex/tools.js.map +1 -1
- package/dist/esm/ai/tools/protocols/raydium-onchain/tools.d.ts +4 -4
- package/dist/esm/ai/tools/protocols/raydium-onchain/tools.d.ts.map +1 -1
- package/dist/esm/ai/tools/protocols/raydium-onchain/tools.js +1 -1
- package/dist/esm/ai/tools/protocols/raydium-onchain/tools.js.map +1 -1
- package/dist/esm/ai/tools/protocols/solana-programs/index.d.ts +7 -0
- package/dist/esm/ai/tools/protocols/solana-programs/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/solana-programs/index.js +7 -0
- package/dist/esm/ai/tools/protocols/solana-programs/index.js.map +1 -0
- package/dist/esm/ai/tools/protocols/solana-programs/schemas.d.ts +11 -0
- package/dist/esm/ai/tools/protocols/solana-programs/schemas.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/solana-programs/schemas.js +157 -0
- package/dist/esm/ai/tools/protocols/solana-programs/schemas.js.map +1 -0
- package/dist/esm/ai/tools/protocols/solana-programs/tools.d.ts +57 -0
- package/dist/esm/ai/tools/protocols/solana-programs/tools.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/solana-programs/tools.js +220 -0
- package/dist/esm/ai/tools/protocols/solana-programs/tools.js.map +1 -0
- package/dist/esm/context/container.d.ts +341 -0
- package/dist/esm/context/container.d.ts.map +1 -0
- package/dist/esm/context/container.js +666 -0
- package/dist/esm/context/container.js.map +1 -0
- package/dist/esm/context/hooks.d.ts +357 -0
- package/dist/esm/context/hooks.d.ts.map +1 -0
- package/dist/esm/context/hooks.js +434 -0
- package/dist/esm/context/hooks.js.map +1 -0
- package/dist/esm/context/index.d.ts +81 -0
- package/dist/esm/context/index.d.ts.map +1 -0
- package/dist/esm/context/index.js +98 -0
- package/dist/esm/context/index.js.map +1 -0
- package/dist/esm/context/providers.d.ts +176 -0
- package/dist/esm/context/providers.d.ts.map +1 -0
- package/dist/esm/context/providers.js +179 -0
- package/dist/esm/context/providers.js.map +1 -0
- package/dist/esm/context/refs.d.ts +491 -0
- package/dist/esm/context/refs.d.ts.map +1 -0
- package/dist/esm/context/refs.js +664 -0
- package/dist/esm/context/refs.js.map +1 -0
- package/dist/esm/context/types.d.ts +251 -0
- package/dist/esm/context/types.d.ts.map +1 -0
- package/dist/esm/context/types.js +79 -0
- package/dist/esm/context/types.js.map +1 -0
- package/dist/esm/core/client.d.ts +31 -1
- package/dist/esm/core/client.d.ts.map +1 -1
- package/dist/esm/core/client.js.map +1 -1
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/programs/associated-token.d.ts +97 -0
- package/dist/esm/programs/associated-token.d.ts.map +1 -0
- package/dist/esm/programs/associated-token.js +110 -0
- package/dist/esm/programs/associated-token.js.map +1 -0
- package/dist/esm/programs/compute-budget.d.ts +105 -0
- package/dist/esm/programs/compute-budget.d.ts.map +1 -0
- package/dist/esm/programs/compute-budget.js +96 -0
- package/dist/esm/programs/compute-budget.js.map +1 -0
- package/dist/esm/programs/index.d.ts +74 -0
- package/dist/esm/programs/index.d.ts.map +1 -0
- package/dist/esm/programs/index.js +90 -0
- package/dist/esm/programs/index.js.map +1 -0
- package/dist/esm/programs/memo.d.ts +70 -0
- package/dist/esm/programs/memo.d.ts.map +1 -0
- package/dist/esm/programs/memo.js +71 -0
- package/dist/esm/programs/memo.js.map +1 -0
- package/dist/esm/programs/spl-token.d.ts +373 -0
- package/dist/esm/programs/spl-token.d.ts.map +1 -0
- package/dist/esm/programs/spl-token.js +355 -0
- package/dist/esm/programs/spl-token.js.map +1 -0
- package/dist/esm/programs/system.d.ts +231 -0
- package/dist/esm/programs/system.d.ts.map +1 -0
- package/dist/esm/programs/system.js +228 -0
- package/dist/esm/programs/system.js.map +1 -0
- package/dist/esm/programs/types.d.ts +111 -0
- package/dist/esm/programs/types.d.ts.map +1 -0
- package/dist/esm/programs/types.js +157 -0
- package/dist/esm/programs/types.js.map +1 -0
- package/package.json +41 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Associated Token Account Program instruction encoders.
|
|
4
|
+
*
|
|
5
|
+
* Encodes the instructions for creating Associated Token Accounts (ATAs),
|
|
6
|
+
* which are deterministically derived from the owner wallet and token mint.
|
|
7
|
+
*
|
|
8
|
+
* Program ID: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`
|
|
9
|
+
*
|
|
10
|
+
* @module programs/associated-token
|
|
11
|
+
* @since 1.1.0
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { AssociatedToken } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
16
|
+
* import { Pubkey } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
17
|
+
*
|
|
18
|
+
* const ix = AssociatedToken.create({
|
|
19
|
+
* payer: Pubkey('PayerWallet...'),
|
|
20
|
+
* owner: Pubkey('OwnerWallet...'),
|
|
21
|
+
* mint: Pubkey('TokenMint...'),
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.AssociatedToken = exports.ASSOCIATED_TOKEN_PROGRAM = void 0;
|
|
27
|
+
const types_1 = require("../core/types");
|
|
28
|
+
const types_2 = require("./types");
|
|
29
|
+
const spl_token_1 = require("./spl-token");
|
|
30
|
+
// ── Program ID ─────────────────────────────────────────────────
|
|
31
|
+
/**
|
|
32
|
+
* Associated Token Account Program address.
|
|
33
|
+
* @since 1.1.0
|
|
34
|
+
*/
|
|
35
|
+
exports.ASSOCIATED_TOKEN_PROGRAM = (0, types_1.Pubkey)('ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL');
|
|
36
|
+
/** @internal System Program for account creation. */
|
|
37
|
+
const SYSTEM_PROGRAM = (0, types_1.Pubkey)('11111111111111111111111111111111');
|
|
38
|
+
// ── AssociatedToken namespace ──────────────────────────────────
|
|
39
|
+
/**
|
|
40
|
+
* Associated Token Account Program instruction encoders.
|
|
41
|
+
*
|
|
42
|
+
* @since 1.1.0
|
|
43
|
+
*/
|
|
44
|
+
exports.AssociatedToken = {
|
|
45
|
+
/** ATA Program address. */
|
|
46
|
+
programId: exports.ASSOCIATED_TOKEN_PROGRAM,
|
|
47
|
+
/**
|
|
48
|
+
* Create a new Associated Token Account.
|
|
49
|
+
*
|
|
50
|
+
* Fails if the ATA already exists. For an idempotent version that
|
|
51
|
+
* succeeds even if the ATA exists, use {@link createIdempotent}.
|
|
52
|
+
*
|
|
53
|
+
* @since 1.1.0
|
|
54
|
+
*/
|
|
55
|
+
create(p) {
|
|
56
|
+
const tokenPid = p.tokenProgramId ?? spl_token_1.TOKEN_PROGRAM;
|
|
57
|
+
return {
|
|
58
|
+
programId: exports.ASSOCIATED_TOKEN_PROGRAM,
|
|
59
|
+
keys: [
|
|
60
|
+
(0, types_2.writableSigner)(p.payer),
|
|
61
|
+
(0, types_2.writable)(p.associatedToken),
|
|
62
|
+
(0, types_2.readonly)(p.owner),
|
|
63
|
+
(0, types_2.readonly)(p.mint),
|
|
64
|
+
(0, types_2.readonly)(SYSTEM_PROGRAM),
|
|
65
|
+
(0, types_2.readonly)(tokenPid),
|
|
66
|
+
],
|
|
67
|
+
data: new Uint8Array([0 /* AtaIx.Create */]),
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* Create an ATA idempotently — succeeds even if the account already exists.
|
|
72
|
+
*
|
|
73
|
+
* This is the recommended way to create ATAs in production.
|
|
74
|
+
*
|
|
75
|
+
* @since 1.1.0
|
|
76
|
+
*/
|
|
77
|
+
createIdempotent(p) {
|
|
78
|
+
const tokenPid = p.tokenProgramId ?? spl_token_1.TOKEN_PROGRAM;
|
|
79
|
+
return {
|
|
80
|
+
programId: exports.ASSOCIATED_TOKEN_PROGRAM,
|
|
81
|
+
keys: [
|
|
82
|
+
(0, types_2.writableSigner)(p.payer),
|
|
83
|
+
(0, types_2.writable)(p.associatedToken),
|
|
84
|
+
(0, types_2.readonly)(p.owner),
|
|
85
|
+
(0, types_2.readonly)(p.mint),
|
|
86
|
+
(0, types_2.readonly)(SYSTEM_PROGRAM),
|
|
87
|
+
(0, types_2.readonly)(tokenPid),
|
|
88
|
+
],
|
|
89
|
+
data: new Uint8Array([1 /* AtaIx.CreateIdempotent */]),
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Recover tokens from a nested associated token account.
|
|
94
|
+
*
|
|
95
|
+
* @since 1.1.0
|
|
96
|
+
*/
|
|
97
|
+
recoverNested(p) {
|
|
98
|
+
const tokenPid = p.tokenProgramId ?? spl_token_1.TOKEN_PROGRAM;
|
|
99
|
+
return {
|
|
100
|
+
programId: exports.ASSOCIATED_TOKEN_PROGRAM,
|
|
101
|
+
keys: [
|
|
102
|
+
(0, types_2.writable)(p.nestedAssociatedToken),
|
|
103
|
+
(0, types_2.readonly)(p.nestedMint),
|
|
104
|
+
(0, types_2.writable)(p.destinationAssociatedToken),
|
|
105
|
+
(0, types_2.readonly)(p.ownerMint),
|
|
106
|
+
(0, types_2.writableSigner)(p.owner),
|
|
107
|
+
(0, types_2.readonly)(tokenPid),
|
|
108
|
+
],
|
|
109
|
+
data: new Uint8Array([2 /* AtaIx.RecoverNested */]),
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=associated-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"associated-token.js","sourceRoot":"","sources":["../../../src/programs/associated-token.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;AAEH,yCAAuC;AAEvC,mCAA6D;AAC7D,2CAA4C;AAE5C,kEAAkE;AAElE;;;GAGG;AACU,QAAA,wBAAwB,GAAG,IAAA,cAAM,EAAC,8CAA8C,CAAC,CAAC;AAE/F,qDAAqD;AACrD,MAAM,cAAc,GAAG,IAAA,cAAM,EAAC,kCAAkC,CAAC,CAAC;AAiDlE,kEAAkE;AAElE;;;;GAIG;AACU,QAAA,eAAe,GAAG;IAC7B,2BAA2B;IAC3B,SAAS,EAAE,gCAAwB;IAEnC;;;;;;;OAOG;IACH,MAAM,CAAC,CAAkB;QACvB,MAAM,QAAQ,GAAG,CAAC,CAAC,cAAc,IAAI,yBAAa,CAAC;QACnD,OAAO;YACL,SAAS,EAAE,gCAAwB;YACnC,IAAI,EAAE;gBACJ,IAAA,sBAAc,EAAC,CAAC,CAAC,KAAK,CAAC;gBACvB,IAAA,gBAAQ,EAAC,CAAC,CAAC,eAAe,CAAC;gBAC3B,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC;gBACjB,IAAA,gBAAQ,EAAC,CAAC,CAAC,IAAI,CAAC;gBAChB,IAAA,gBAAQ,EAAC,cAAc,CAAC;gBACxB,IAAA,gBAAQ,EAAC,QAAQ,CAAC;aACnB;YACD,IAAI,EAAE,IAAI,UAAU,CAAC,sBAAc,CAAC;SACrC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAkB;QACjC,MAAM,QAAQ,GAAG,CAAC,CAAC,cAAc,IAAI,yBAAa,CAAC;QACnD,OAAO;YACL,SAAS,EAAE,gCAAwB;YACnC,IAAI,EAAE;gBACJ,IAAA,sBAAc,EAAC,CAAC,CAAC,KAAK,CAAC;gBACvB,IAAA,gBAAQ,EAAC,CAAC,CAAC,eAAe,CAAC;gBAC3B,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC;gBACjB,IAAA,gBAAQ,EAAC,CAAC,CAAC,IAAI,CAAC;gBAChB,IAAA,gBAAQ,EAAC,cAAc,CAAC;gBACxB,IAAA,gBAAQ,EAAC,QAAQ,CAAC;aACnB;YACD,IAAI,EAAE,IAAI,UAAU,CAAC,gCAAwB,CAAC;SAC/C,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,CAAsB;QAClC,MAAM,QAAQ,GAAG,CAAC,CAAC,cAAc,IAAI,yBAAa,CAAC;QACnD,OAAO;YACL,SAAS,EAAE,gCAAwB;YACnC,IAAI,EAAE;gBACJ,IAAA,gBAAQ,EAAC,CAAC,CAAC,qBAAqB,CAAC;gBACjC,IAAA,gBAAQ,EAAC,CAAC,CAAC,UAAU,CAAC;gBACtB,IAAA,gBAAQ,EAAC,CAAC,CAAC,0BAA0B,CAAC;gBACtC,IAAA,gBAAQ,EAAC,CAAC,CAAC,SAAS,CAAC;gBACrB,IAAA,sBAAc,EAAC,CAAC,CAAC,KAAK,CAAC;gBACvB,IAAA,gBAAQ,EAAC,QAAQ,CAAC;aACnB;YACD,IAAI,EAAE,IAAI,UAAU,CAAC,6BAAqB,CAAC;SAC5C,CAAC;IACJ,CAAC;CACO,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compute Budget Program instruction encoders.
|
|
3
|
+
*
|
|
4
|
+
* Encodes priority fee and compute unit instructions that control
|
|
5
|
+
* transaction scheduling and resource allocation.
|
|
6
|
+
*
|
|
7
|
+
* Program ID: `ComputeBudget111111111111111111111111111111`
|
|
8
|
+
*
|
|
9
|
+
* @module programs/compute-budget
|
|
10
|
+
* @since 1.1.0
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { ComputeBudget } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
15
|
+
*
|
|
16
|
+
* // Set priority fee (micro-lamports per CU)
|
|
17
|
+
* const priorityIx = ComputeBudget.setComputeUnitPrice({ microLamports: 50_000n });
|
|
18
|
+
*
|
|
19
|
+
* // Set compute unit limit
|
|
20
|
+
* const limitIx = ComputeBudget.setComputeUnitLimit({ units: 400_000 });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
import type { TransactionInstruction } from './types';
|
|
24
|
+
/**
|
|
25
|
+
* Compute Budget Program address.
|
|
26
|
+
* @since 1.1.0
|
|
27
|
+
*/
|
|
28
|
+
export declare const COMPUTE_BUDGET_PROGRAM: never;
|
|
29
|
+
/**
|
|
30
|
+
* Params for {@link ComputeBudget.setComputeUnitLimit}.
|
|
31
|
+
* @since 1.1.0
|
|
32
|
+
*/
|
|
33
|
+
export interface SetComputeUnitLimitParams {
|
|
34
|
+
/** Maximum compute units for the transaction (max 1_400_000). */
|
|
35
|
+
units: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Params for {@link ComputeBudget.setComputeUnitPrice}.
|
|
39
|
+
* @since 1.1.0
|
|
40
|
+
*/
|
|
41
|
+
export interface SetComputeUnitPriceParams {
|
|
42
|
+
/** Priority fee in micro-lamports per compute unit. */
|
|
43
|
+
microLamports: bigint;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Params for {@link ComputeBudget.requestHeapFrame}.
|
|
47
|
+
* @since 1.1.0
|
|
48
|
+
*/
|
|
49
|
+
export interface RequestHeapFrameParams {
|
|
50
|
+
/** Heap size in bytes (must be multiple of 1024, max 256 KiB). */
|
|
51
|
+
bytes: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Params for {@link ComputeBudget.setLoadedAccountsDataSizeLimit}.
|
|
55
|
+
* @since 1.1.0
|
|
56
|
+
*/
|
|
57
|
+
export interface SetLoadedAccountsDataSizeLimitParams {
|
|
58
|
+
/** Maximum total loaded accounts data size in bytes. */
|
|
59
|
+
bytes: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Compute Budget Program instruction encoders.
|
|
63
|
+
*
|
|
64
|
+
* These instructions must be included at the **beginning** of a
|
|
65
|
+
* transaction to take effect.
|
|
66
|
+
*
|
|
67
|
+
* @since 1.1.0
|
|
68
|
+
*/
|
|
69
|
+
export declare const ComputeBudget: {
|
|
70
|
+
/** Compute Budget Program address. */
|
|
71
|
+
readonly programId: never;
|
|
72
|
+
/**
|
|
73
|
+
* Set the compute unit limit for the transaction.
|
|
74
|
+
*
|
|
75
|
+
* Default is 200_000 CU. Max is 1_400_000 CU.
|
|
76
|
+
* Setting a lower limit can reduce priority fees.
|
|
77
|
+
*
|
|
78
|
+
* @since 1.1.0
|
|
79
|
+
*/
|
|
80
|
+
readonly setComputeUnitLimit: (p: SetComputeUnitLimitParams) => TransactionInstruction;
|
|
81
|
+
/**
|
|
82
|
+
* Set the priority fee (price per compute unit).
|
|
83
|
+
*
|
|
84
|
+
* Priority fee = `microLamports × computeUnitsUsed`.
|
|
85
|
+
* A value of 50_000 micro-lamports ≈ 0.05 lamports/CU.
|
|
86
|
+
*
|
|
87
|
+
* @since 1.1.0
|
|
88
|
+
*/
|
|
89
|
+
readonly setComputeUnitPrice: (p: SetComputeUnitPriceParams) => TransactionInstruction;
|
|
90
|
+
/**
|
|
91
|
+
* Request a larger heap frame for the transaction.
|
|
92
|
+
*
|
|
93
|
+
* Default heap is 32 KiB. Max is 256 KiB. Must be a multiple of 1024.
|
|
94
|
+
*
|
|
95
|
+
* @since 1.1.0
|
|
96
|
+
*/
|
|
97
|
+
readonly requestHeapFrame: (p: RequestHeapFrameParams) => TransactionInstruction;
|
|
98
|
+
/**
|
|
99
|
+
* Set the maximum total size of loaded accounts data.
|
|
100
|
+
*
|
|
101
|
+
* @since 1.1.0
|
|
102
|
+
*/
|
|
103
|
+
readonly setLoadedAccountsDataSizeLimit: (p: SetLoadedAccountsDataSizeLimitParams) => TransactionInstruction;
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=compute-budget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-budget.d.ts","sourceRoot":"","sources":["../../../src/programs/compute-budget.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKtD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,OAAwD,CAAC;AAc5F;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,oCAAoC;IACnD,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;IACxB,sCAAsC;;IAGtC;;;;;;;OAOG;sCACoB,yBAAyB,KAAG,sBAAsB;IAOzE;;;;;;;OAOG;sCACoB,yBAAyB,KAAG,sBAAsB;IAOzE;;;;;;OAMG;mCACiB,sBAAsB,KAAG,sBAAsB;IAOnE;;;;OAIG;iDAC+B,oCAAoC,KAAG,sBAAsB;CAMvF,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Compute Budget Program instruction encoders.
|
|
4
|
+
*
|
|
5
|
+
* Encodes priority fee and compute unit instructions that control
|
|
6
|
+
* transaction scheduling and resource allocation.
|
|
7
|
+
*
|
|
8
|
+
* Program ID: `ComputeBudget111111111111111111111111111111`
|
|
9
|
+
*
|
|
10
|
+
* @module programs/compute-budget
|
|
11
|
+
* @since 1.1.0
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { ComputeBudget } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
16
|
+
*
|
|
17
|
+
* // Set priority fee (micro-lamports per CU)
|
|
18
|
+
* const priorityIx = ComputeBudget.setComputeUnitPrice({ microLamports: 50_000n });
|
|
19
|
+
*
|
|
20
|
+
* // Set compute unit limit
|
|
21
|
+
* const limitIx = ComputeBudget.setComputeUnitLimit({ units: 400_000 });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ComputeBudget = exports.COMPUTE_BUDGET_PROGRAM = void 0;
|
|
26
|
+
const types_1 = require("../core/types");
|
|
27
|
+
const types_2 = require("./types");
|
|
28
|
+
// ── Program ID ─────────────────────────────────────────────────
|
|
29
|
+
/**
|
|
30
|
+
* Compute Budget Program address.
|
|
31
|
+
* @since 1.1.0
|
|
32
|
+
*/
|
|
33
|
+
exports.COMPUTE_BUDGET_PROGRAM = (0, types_1.Pubkey)('ComputeBudget111111111111111111111111111111');
|
|
34
|
+
// ── ComputeBudget namespace ────────────────────────────────────
|
|
35
|
+
/**
|
|
36
|
+
* Compute Budget Program instruction encoders.
|
|
37
|
+
*
|
|
38
|
+
* These instructions must be included at the **beginning** of a
|
|
39
|
+
* transaction to take effect.
|
|
40
|
+
*
|
|
41
|
+
* @since 1.1.0
|
|
42
|
+
*/
|
|
43
|
+
exports.ComputeBudget = {
|
|
44
|
+
/** Compute Budget Program address. */
|
|
45
|
+
programId: exports.COMPUTE_BUDGET_PROGRAM,
|
|
46
|
+
/**
|
|
47
|
+
* Set the compute unit limit for the transaction.
|
|
48
|
+
*
|
|
49
|
+
* Default is 200_000 CU. Max is 1_400_000 CU.
|
|
50
|
+
* Setting a lower limit can reduce priority fees.
|
|
51
|
+
*
|
|
52
|
+
* @since 1.1.0
|
|
53
|
+
*/
|
|
54
|
+
setComputeUnitLimit(p) {
|
|
55
|
+
const w = new types_2.InstructionWriter(5);
|
|
56
|
+
w.u8(2 /* CbIx.SetComputeUnitLimit */);
|
|
57
|
+
w.u32(p.units);
|
|
58
|
+
return { programId: exports.COMPUTE_BUDGET_PROGRAM, keys: [], data: w.toBytes() };
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* Set the priority fee (price per compute unit).
|
|
62
|
+
*
|
|
63
|
+
* Priority fee = `microLamports × computeUnitsUsed`.
|
|
64
|
+
* A value of 50_000 micro-lamports ≈ 0.05 lamports/CU.
|
|
65
|
+
*
|
|
66
|
+
* @since 1.1.0
|
|
67
|
+
*/
|
|
68
|
+
setComputeUnitPrice(p) {
|
|
69
|
+
const w = new types_2.InstructionWriter(9);
|
|
70
|
+
w.u8(3 /* CbIx.SetComputeUnitPrice */);
|
|
71
|
+
w.u64(p.microLamports);
|
|
72
|
+
return { programId: exports.COMPUTE_BUDGET_PROGRAM, keys: [], data: w.toBytes() };
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Request a larger heap frame for the transaction.
|
|
76
|
+
*
|
|
77
|
+
* Default heap is 32 KiB. Max is 256 KiB. Must be a multiple of 1024.
|
|
78
|
+
*
|
|
79
|
+
* @since 1.1.0
|
|
80
|
+
*/
|
|
81
|
+
requestHeapFrame(p) {
|
|
82
|
+
const w = new types_2.InstructionWriter(5);
|
|
83
|
+
w.u8(1 /* CbIx.RequestHeapFrame */);
|
|
84
|
+
w.u32(p.bytes);
|
|
85
|
+
return { programId: exports.COMPUTE_BUDGET_PROGRAM, keys: [], data: w.toBytes() };
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Set the maximum total size of loaded accounts data.
|
|
89
|
+
*
|
|
90
|
+
* @since 1.1.0
|
|
91
|
+
*/
|
|
92
|
+
setLoadedAccountsDataSizeLimit(p) {
|
|
93
|
+
const w = new types_2.InstructionWriter(5);
|
|
94
|
+
w.u8(4 /* CbIx.SetLoadedAccountsDataSizeLimit */);
|
|
95
|
+
w.u32(p.bytes);
|
|
96
|
+
return { programId: exports.COMPUTE_BUDGET_PROGRAM, keys: [], data: w.toBytes() };
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=compute-budget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-budget.js","sourceRoot":"","sources":["../../../src/programs/compute-budget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAEH,yCAAuC;AAEvC,mCAA4C;AAE5C,kEAAkE;AAElE;;;GAGG;AACU,QAAA,sBAAsB,GAAG,IAAA,cAAM,EAAC,6CAA6C,CAAC,CAAC;AAkD5F,kEAAkE;AAElE;;;;;;;GAOG;AACU,QAAA,aAAa,GAAG;IAC3B,sCAAsC;IACtC,SAAS,EAAE,8BAAsB;IAEjC;;;;;;;OAOG;IACH,mBAAmB,CAAC,CAA4B;QAC9C,MAAM,CAAC,GAAG,IAAI,yBAAiB,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,EAAE,kCAA0B,CAAC;QAC/B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACf,OAAO,EAAE,SAAS,EAAE,8BAAsB,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;IAC5E,CAAC;IAED;;;;;;;OAOG;IACH,mBAAmB,CAAC,CAA4B;QAC9C,MAAM,CAAC,GAAG,IAAI,yBAAiB,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,EAAE,kCAA0B,CAAC;QAC/B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;QACvB,OAAO,EAAE,SAAS,EAAE,8BAAsB,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAyB;QACxC,MAAM,CAAC,GAAG,IAAI,yBAAiB,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,EAAE,+BAAuB,CAAC;QAC5B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACf,OAAO,EAAE,SAAS,EAAE,8BAAsB,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,8BAA8B,CAAC,CAAuC;QACpE,MAAM,CAAC,GAAG,IAAI,yBAAiB,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,EAAE,6CAAqC,CAAC;QAC1C,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACf,OAAO,EAAE,SAAS,EAAE,8BAAsB,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;IAC5E,CAAC;CACO,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native Solana instruction encoders.
|
|
3
|
+
*
|
|
4
|
+
* Zero-dependency encoders for the core Solana programs: System, SPL Token,
|
|
5
|
+
* Associated Token Account, Memo, and Compute Budget.
|
|
6
|
+
*
|
|
7
|
+
* Each encoder produces a {@link TransactionInstruction} that can be used
|
|
8
|
+
* with the SDK's transaction building utilities or converted to a
|
|
9
|
+
* `@solana/kit` instruction via {@link toKitInstruction}.
|
|
10
|
+
*
|
|
11
|
+
* @module programs
|
|
12
|
+
* @since 1.1.0
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import {
|
|
17
|
+
* SystemProgram, SplToken, AssociatedToken,
|
|
18
|
+
* ComputeBudget, Memo,
|
|
19
|
+
* } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
20
|
+
* import { Pubkey, Lamports } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
21
|
+
*
|
|
22
|
+
* // SOL transfer
|
|
23
|
+
* const transferIx = SystemProgram.transfer({
|
|
24
|
+
* from: Pubkey('Sender...'),
|
|
25
|
+
* to: Pubkey('Receiver...'),
|
|
26
|
+
* lamports: Lamports(1_000_000_000n),
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* // SPL Token transfer
|
|
30
|
+
* const tokenIx = SplToken.transferChecked({
|
|
31
|
+
* source: Pubkey('SrcTokenAcct...'),
|
|
32
|
+
* mint: Pubkey('Mint...'),
|
|
33
|
+
* destination: Pubkey('DstTokenAcct...'),
|
|
34
|
+
* owner: Pubkey('Wallet...'),
|
|
35
|
+
* amount: 1_000_000n,
|
|
36
|
+
* decimals: 6,
|
|
37
|
+
* });
|
|
38
|
+
*
|
|
39
|
+
* // Priority fee
|
|
40
|
+
* const feeIx = ComputeBudget.setComputeUnitPrice({ microLamports: 50_000n });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export { type AccountMeta, type TransactionInstruction, InstructionWriter, decodeBase58, writableSigner, writable, readonlySigner, readonly, } from './types';
|
|
44
|
+
export { SystemProgram, SYSTEM_PROGRAM, type TransferParams as SystemTransferParams, type CreateAccountParams, type AssignParams, type AllocateParams, type CreateAccountWithSeedParams, type AdvanceNonceParams, type WithdrawNonceParams, type InitializeNonceParams, type AuthorizeNonceParams, } from './system';
|
|
45
|
+
export { SplToken, TOKEN_PROGRAM, TOKEN_2022_PROGRAM, type InitializeMintParams, type InitializeAccountParams, type TransferParams as TokenTransferParams, type TransferCheckedParams, type ApproveParams, type ApproveCheckedParams, type RevokeParams, type MintToParams, type MintToCheckedParams, type BurnParams, type BurnCheckedParams, type CloseAccountParams, type FreezeThawParams, type SyncNativeParams, } from './spl-token';
|
|
46
|
+
export { AssociatedToken, ASSOCIATED_TOKEN_PROGRAM, type CreateATAParams, type RecoverNestedParams, } from './associated-token';
|
|
47
|
+
export { Memo, MEMO_PROGRAM_V2, MEMO_PROGRAM_V1, type AddMemoParams, } from './memo';
|
|
48
|
+
export { ComputeBudget, COMPUTE_BUDGET_PROGRAM, type SetComputeUnitLimitParams, type SetComputeUnitPriceParams, type RequestHeapFrameParams, type SetLoadedAccountsDataSizeLimitParams, } from './compute-budget';
|
|
49
|
+
import type { TransactionInstruction } from './types';
|
|
50
|
+
import type { Instruction } from '@solana/kit';
|
|
51
|
+
/**
|
|
52
|
+
* Convert a Synapse {@link TransactionInstruction} to a `@solana/kit`
|
|
53
|
+
* `IInstruction` for use with Kit's transaction builder.
|
|
54
|
+
*
|
|
55
|
+
* @param ix - Synapse instruction to convert.
|
|
56
|
+
* @returns Kit-compatible instruction.
|
|
57
|
+
* @since 1.1.0
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* import { SystemProgram, toKitInstruction } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
62
|
+
* import { pipe, createTransactionMessage, appendTransactionMessageInstruction } from '@oobe-protocol-labs/synapse-client-sdk/kit';
|
|
63
|
+
*
|
|
64
|
+
* const ix = SystemProgram.transfer({ from, to, lamports: 1_000_000_000n });
|
|
65
|
+
* const kitIx = toKitInstruction(ix);
|
|
66
|
+
*
|
|
67
|
+
* const msg = pipe(
|
|
68
|
+
* createTransactionMessage({ version: 0 }),
|
|
69
|
+
* m => appendTransactionMessageInstruction(kitIx, m),
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function toKitInstruction(ix: TransactionInstruction): Instruction;
|
|
74
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/programs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,cAAc,EACd,QAAQ,GACT,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,cAAc,IAAI,oBAAoB,EAC3C,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,IAAI,mBAAmB,EAC1C,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,IAAI,EACJ,eAAe,EACf,eAAe,EACf,KAAK,aAAa,GACnB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,oCAAoC,GAC1C,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAW,WAAW,EAAiC,MAAM,aAAa,CAAC;AAGvF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,sBAAsB,GAAG,WAAW,CAWxE"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Native Solana instruction encoders.
|
|
4
|
+
*
|
|
5
|
+
* Zero-dependency encoders for the core Solana programs: System, SPL Token,
|
|
6
|
+
* Associated Token Account, Memo, and Compute Budget.
|
|
7
|
+
*
|
|
8
|
+
* Each encoder produces a {@link TransactionInstruction} that can be used
|
|
9
|
+
* with the SDK's transaction building utilities or converted to a
|
|
10
|
+
* `@solana/kit` instruction via {@link toKitInstruction}.
|
|
11
|
+
*
|
|
12
|
+
* @module programs
|
|
13
|
+
* @since 1.1.0
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import {
|
|
18
|
+
* SystemProgram, SplToken, AssociatedToken,
|
|
19
|
+
* ComputeBudget, Memo,
|
|
20
|
+
* } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
21
|
+
* import { Pubkey, Lamports } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
22
|
+
*
|
|
23
|
+
* // SOL transfer
|
|
24
|
+
* const transferIx = SystemProgram.transfer({
|
|
25
|
+
* from: Pubkey('Sender...'),
|
|
26
|
+
* to: Pubkey('Receiver...'),
|
|
27
|
+
* lamports: Lamports(1_000_000_000n),
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* // SPL Token transfer
|
|
31
|
+
* const tokenIx = SplToken.transferChecked({
|
|
32
|
+
* source: Pubkey('SrcTokenAcct...'),
|
|
33
|
+
* mint: Pubkey('Mint...'),
|
|
34
|
+
* destination: Pubkey('DstTokenAcct...'),
|
|
35
|
+
* owner: Pubkey('Wallet...'),
|
|
36
|
+
* amount: 1_000_000n,
|
|
37
|
+
* decimals: 6,
|
|
38
|
+
* });
|
|
39
|
+
*
|
|
40
|
+
* // Priority fee
|
|
41
|
+
* const feeIx = ComputeBudget.setComputeUnitPrice({ microLamports: 50_000n });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.COMPUTE_BUDGET_PROGRAM = exports.ComputeBudget = exports.MEMO_PROGRAM_V1 = exports.MEMO_PROGRAM_V2 = exports.Memo = exports.ASSOCIATED_TOKEN_PROGRAM = exports.AssociatedToken = exports.TOKEN_2022_PROGRAM = exports.TOKEN_PROGRAM = exports.SplToken = exports.SYSTEM_PROGRAM = exports.SystemProgram = exports.readonly = exports.readonlySigner = exports.writable = exports.writableSigner = exports.decodeBase58 = exports.InstructionWriter = void 0;
|
|
46
|
+
exports.toKitInstruction = toKitInstruction;
|
|
47
|
+
// ── Types & Writer ─────────────────────────────────────────────
|
|
48
|
+
var types_1 = require("./types");
|
|
49
|
+
Object.defineProperty(exports, "InstructionWriter", { enumerable: true, get: function () { return types_1.InstructionWriter; } });
|
|
50
|
+
Object.defineProperty(exports, "decodeBase58", { enumerable: true, get: function () { return types_1.decodeBase58; } });
|
|
51
|
+
Object.defineProperty(exports, "writableSigner", { enumerable: true, get: function () { return types_1.writableSigner; } });
|
|
52
|
+
Object.defineProperty(exports, "writable", { enumerable: true, get: function () { return types_1.writable; } });
|
|
53
|
+
Object.defineProperty(exports, "readonlySigner", { enumerable: true, get: function () { return types_1.readonlySigner; } });
|
|
54
|
+
Object.defineProperty(exports, "readonly", { enumerable: true, get: function () { return types_1.readonly; } });
|
|
55
|
+
// ── System Program ─────────────────────────────────────────────
|
|
56
|
+
var system_1 = require("./system");
|
|
57
|
+
Object.defineProperty(exports, "SystemProgram", { enumerable: true, get: function () { return system_1.SystemProgram; } });
|
|
58
|
+
Object.defineProperty(exports, "SYSTEM_PROGRAM", { enumerable: true, get: function () { return system_1.SYSTEM_PROGRAM; } });
|
|
59
|
+
// ── SPL Token ──────────────────────────────────────────────────
|
|
60
|
+
var spl_token_1 = require("./spl-token");
|
|
61
|
+
Object.defineProperty(exports, "SplToken", { enumerable: true, get: function () { return spl_token_1.SplToken; } });
|
|
62
|
+
Object.defineProperty(exports, "TOKEN_PROGRAM", { enumerable: true, get: function () { return spl_token_1.TOKEN_PROGRAM; } });
|
|
63
|
+
Object.defineProperty(exports, "TOKEN_2022_PROGRAM", { enumerable: true, get: function () { return spl_token_1.TOKEN_2022_PROGRAM; } });
|
|
64
|
+
// ── Associated Token Account ───────────────────────────────────
|
|
65
|
+
var associated_token_1 = require("./associated-token");
|
|
66
|
+
Object.defineProperty(exports, "AssociatedToken", { enumerable: true, get: function () { return associated_token_1.AssociatedToken; } });
|
|
67
|
+
Object.defineProperty(exports, "ASSOCIATED_TOKEN_PROGRAM", { enumerable: true, get: function () { return associated_token_1.ASSOCIATED_TOKEN_PROGRAM; } });
|
|
68
|
+
// ── Memo ───────────────────────────────────────────────────────
|
|
69
|
+
var memo_1 = require("./memo");
|
|
70
|
+
Object.defineProperty(exports, "Memo", { enumerable: true, get: function () { return memo_1.Memo; } });
|
|
71
|
+
Object.defineProperty(exports, "MEMO_PROGRAM_V2", { enumerable: true, get: function () { return memo_1.MEMO_PROGRAM_V2; } });
|
|
72
|
+
Object.defineProperty(exports, "MEMO_PROGRAM_V1", { enumerable: true, get: function () { return memo_1.MEMO_PROGRAM_V1; } });
|
|
73
|
+
// ── Compute Budget ─────────────────────────────────────────────
|
|
74
|
+
var compute_budget_1 = require("./compute-budget");
|
|
75
|
+
Object.defineProperty(exports, "ComputeBudget", { enumerable: true, get: function () { return compute_budget_1.ComputeBudget; } });
|
|
76
|
+
Object.defineProperty(exports, "COMPUTE_BUDGET_PROGRAM", { enumerable: true, get: function () { return compute_budget_1.COMPUTE_BUDGET_PROGRAM; } });
|
|
77
|
+
const kit_1 = require("@solana/kit");
|
|
78
|
+
/**
|
|
79
|
+
* Convert a Synapse {@link TransactionInstruction} to a `@solana/kit`
|
|
80
|
+
* `IInstruction` for use with Kit's transaction builder.
|
|
81
|
+
*
|
|
82
|
+
* @param ix - Synapse instruction to convert.
|
|
83
|
+
* @returns Kit-compatible instruction.
|
|
84
|
+
* @since 1.1.0
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* import { SystemProgram, toKitInstruction } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
89
|
+
* import { pipe, createTransactionMessage, appendTransactionMessageInstruction } from '@oobe-protocol-labs/synapse-client-sdk/kit';
|
|
90
|
+
*
|
|
91
|
+
* const ix = SystemProgram.transfer({ from, to, lamports: 1_000_000_000n });
|
|
92
|
+
* const kitIx = toKitInstruction(ix);
|
|
93
|
+
*
|
|
94
|
+
* const msg = pipe(
|
|
95
|
+
* createTransactionMessage({ version: 0 }),
|
|
96
|
+
* m => appendTransactionMessageInstruction(kitIx, m),
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
function toKitInstruction(ix) {
|
|
101
|
+
return {
|
|
102
|
+
programAddress: (0, kit_1.address)(ix.programId),
|
|
103
|
+
accounts: ix.keys.map((k) => ({
|
|
104
|
+
address: (0, kit_1.address)(k.pubkey),
|
|
105
|
+
role: k.isSigner
|
|
106
|
+
? (k.isWritable ? kit_1.AccountRole.WRITABLE_SIGNER : kit_1.AccountRole.READONLY_SIGNER)
|
|
107
|
+
: (k.isWritable ? kit_1.AccountRole.WRITABLE : kit_1.AccountRole.READONLY),
|
|
108
|
+
})),
|
|
109
|
+
data: ix.data,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/programs/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;;;AAyGH,4CAWC;AAlHD,kEAAkE;AAClE,iCASiB;AANf,0GAAA,iBAAiB,OAAA;AACjB,qGAAA,YAAY,OAAA;AACZ,uGAAA,cAAc,OAAA;AACd,iGAAA,QAAQ,OAAA;AACR,uGAAA,cAAc,OAAA;AACd,iGAAA,QAAQ,OAAA;AAGV,kEAAkE;AAClE,mCAYkB;AAXhB,uGAAA,aAAa,OAAA;AACb,wGAAA,cAAc,OAAA;AAYhB,kEAAkE;AAClE,yCAkBqB;AAjBnB,qGAAA,QAAQ,OAAA;AACR,0GAAA,aAAa,OAAA;AACb,+GAAA,kBAAkB,OAAA;AAiBpB,kEAAkE;AAClE,uDAK4B;AAJ1B,mHAAA,eAAe,OAAA;AACf,4HAAA,wBAAwB,OAAA;AAK1B,kEAAkE;AAClE,+BAKgB;AAJd,4FAAA,IAAI,OAAA;AACJ,uGAAA,eAAe,OAAA;AACf,uGAAA,eAAe,OAAA;AAIjB,kEAAkE;AAClE,mDAO0B;AANxB,+GAAA,aAAa,OAAA;AACb,wHAAA,sBAAsB,OAAA;AAYxB,qCAAiE;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,gBAAgB,CAAC,EAA0B;IACzD,OAAO;QACL,cAAc,EAAE,IAAA,aAAU,EAAC,EAAE,CAAC,SAA8B,CAAY;QACxE,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC5C,OAAO,EAAE,IAAA,aAAU,EAAC,CAAC,CAAC,MAA2B,CAAY;YAC7D,IAAI,EAAE,CAAC,CAAC,QAAQ;gBACd,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAW,CAAC,eAAe,CAAC,CAAC,CAAC,iBAAW,CAAC,eAAe,CAAC;gBAC5E,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAW,CAAC,QAAQ,CAAC;SACjE,CAAC,CAAC;QACH,IAAI,EAAE,EAAE,CAAC,IAAI;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memo Program instruction encoder.
|
|
3
|
+
*
|
|
4
|
+
* Encodes a memo instruction that attaches an arbitrary UTF-8 string
|
|
5
|
+
* to a transaction. Supports both Memo v1 and v2.
|
|
6
|
+
*
|
|
7
|
+
* Program ID (v2): `MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr`
|
|
8
|
+
* Program ID (v1): `Memo1UhkJBfCR6MNcUpSSKvyfcY7YFW5p5JHblJRK9R`
|
|
9
|
+
*
|
|
10
|
+
* @module programs/memo
|
|
11
|
+
* @since 1.1.0
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { Memo } from '@oobe-protocol-labs/synapse-client-sdk/programs';
|
|
16
|
+
* import { Pubkey } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
17
|
+
*
|
|
18
|
+
* const ix = Memo.addMemo({
|
|
19
|
+
* message: 'Hello from Synapse SDK!',
|
|
20
|
+
* signer: Pubkey('MyWallet...'),
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
import { Pubkey } from '../core/types';
|
|
25
|
+
import type { TransactionInstruction } from './types';
|
|
26
|
+
/**
|
|
27
|
+
* SPL Memo Program v2 address.
|
|
28
|
+
* @since 1.1.0
|
|
29
|
+
*/
|
|
30
|
+
export declare const MEMO_PROGRAM_V2: never;
|
|
31
|
+
/**
|
|
32
|
+
* SPL Memo Program v1 address (deprecated, but still supported on-chain).
|
|
33
|
+
* @since 1.1.0
|
|
34
|
+
*/
|
|
35
|
+
export declare const MEMO_PROGRAM_V1: never;
|
|
36
|
+
/**
|
|
37
|
+
* Params for {@link Memo.addMemo}.
|
|
38
|
+
* @since 1.1.0
|
|
39
|
+
*/
|
|
40
|
+
export interface AddMemoParams {
|
|
41
|
+
/** UTF-8 memo string (max ~566 bytes for a single instruction). */
|
|
42
|
+
message: string;
|
|
43
|
+
/** Signer pubkey (optional — if provided, the memo is signed). */
|
|
44
|
+
signer?: Pubkey;
|
|
45
|
+
/** Additional signers. */
|
|
46
|
+
additionalSigners?: Pubkey[];
|
|
47
|
+
/** Use Memo v1 program instead of v2 (default: false). */
|
|
48
|
+
useV1?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* SPL Memo Program instruction encoders.
|
|
52
|
+
*
|
|
53
|
+
* @since 1.1.0
|
|
54
|
+
*/
|
|
55
|
+
export declare const Memo: {
|
|
56
|
+
/** Memo v2 program ID. */
|
|
57
|
+
readonly programId: never;
|
|
58
|
+
/** Memo v1 program ID. */
|
|
59
|
+
readonly v1ProgramId: never;
|
|
60
|
+
/**
|
|
61
|
+
* Add a memo to a transaction.
|
|
62
|
+
*
|
|
63
|
+
* The memo content is the raw instruction data (no discriminator).
|
|
64
|
+
* If a signer is provided, the memo is validated on-chain.
|
|
65
|
+
*
|
|
66
|
+
* @since 1.1.0
|
|
67
|
+
*/
|
|
68
|
+
readonly addMemo: (p: AddMemoParams) => TransactionInstruction;
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=memo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memo.d.ts","sourceRoot":"","sources":["../../../src/programs/memo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKtD;;;GAGG;AACH,eAAO,MAAM,eAAe,OAAwD,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,eAAe,OAAwD,CAAC;AAIrF;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0BAA0B;IAC1B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAID;;;;GAIG;AACH,eAAO,MAAM,IAAI;IACf,0BAA0B;;IAE1B,0BAA0B;;IAG1B;;;;;;;OAOG;0BACQ,aAAa,KAAG,sBAAsB;CAgBzC,CAAC"}
|