This commit is contained in:
biccsdev
2025-01-06 20:49:13 -06:00
parent 7b4c4ffc2c
commit 9892b39a0c
4 changed files with 11 additions and 110 deletions

View File

@@ -23,7 +23,7 @@
"author": "sendaifun",
"license": "Apache-2.0",
"dependencies": {
"@3land/listings-sdk": "^0.0.3",
"@3land/listings-sdk": "^0.0.4",
"@ai-sdk/openai": "^1.0.11",
"@bonfida/spl-name-service": "^3.0.7",
"@cks-systems/manifest-sdk": "0.1.59",
@@ -59,7 +59,6 @@
"form-data": "^4.0.1",
"langchain": "^0.3.8",
"openai": "^4.77.0",
"solana-agent-kit": "^1.3.6",
"typedoc": "^0.27.6",
"zod": "^3.24.1"
},

114
pnpm-lock.yaml generated
View File

@@ -10,8 +10,8 @@ importers:
.:
dependencies:
'@3land/listings-sdk':
specifier: ^0.0.3
version: 0.0.3(@types/node@22.10.5)(arweave@1.15.5)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
specifier: ^0.0.4
version: 0.0.4(@types/node@22.10.5)(arweave@1.15.5)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@ai-sdk/openai':
specifier: ^1.0.11
version: 1.0.11(zod@3.24.1)
@@ -136,9 +136,6 @@ importers:
openai:
specifier: ^4.77.0
version: 4.77.3(zod@3.24.1)
solana-agent-kit:
specifier: ^1.3.6
version: 1.3.6(@noble/hashes@1.7.0)(axios@1.7.9)(borsh@2.0.0)(buffer@6.0.3)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react@19.0.0)(sodium-native@3.4.1)(typescript@5.7.2)(utf-8-validate@5.0.10)
typedoc:
specifier: ^0.27.6
version: 0.27.6(typescript@5.7.2)
@@ -192,8 +189,8 @@ importers:
packages:
'@3land/listings-sdk@0.0.3':
resolution: {integrity: sha512-nEv2c6VgXLTZ/Gw0UuYq0VqVkoDW8LP3rNrX5S+ROgsttWsju8C5joLbDKVgSARDzhajvlvCoXWSzh+C0dsL/Q==}
'@3land/listings-sdk@0.0.4':
resolution: {integrity: sha512-Ljq8R4e7y+wl4m8BGhiInFPCHEzHZZFz1qghnbc8B3bLEKXWM9+2gZOCAa84rdUKuLfzenEdeS2LclTKhdKTFQ==}
'@ai-sdk/openai@1.0.11':
resolution: {integrity: sha512-qI9s7Slma5i5bB4yYVlFdcG3PNDwdqivPT1Dr8adDX92nSSpILjgFIooS5yys9sXjvvcfOi/WXbDvVhLSRRlvg==}
@@ -877,17 +874,7 @@ packages:
'@shikijs/themes@1.26.1':
resolution: {integrity: sha512-JDxVn+z+wgLCiUhBGx2OQrLCkKZQGzNH3nAxFir4PjUcYiyD8Jdms9izyxIogYmSwmoPTatFTdzyrRKbKlSfPA==}
'@shikijs/engine-oniguruma@1.26.1':
resolution: {integrity: sha512-F5XuxN1HljLuvfXv7d+mlTkV7XukC1cawdtOo+7pKgPD83CAB1Sf8uHqP3PK0u7njFH0ZhoXE1r+0JzEgAQ+kg==}
'@shikijs/langs@1.26.1':
resolution: {integrity: sha512-oz/TQiIqZejEIZbGtn68hbJijAOTtYH4TMMSWkWYozwqdpKR3EXgILneQy26WItmJjp3xVspHdiUxUCws4gtuw==}
'@shikijs/themes@1.26.1':
resolution: {integrity: sha512-JDxVn+z+wgLCiUhBGx2OQrLCkKZQGzNH3nAxFir4PjUcYiyD8Jdms9izyxIogYmSwmoPTatFTdzyrRKbKlSfPA==}
'@shikijs/types@1.26.1':
resolution: {integrity: sha512-d4B00TKKAMaHuFYgRf3L0gwtvqpW4hVdVwKcZYbBfAAQXspgkbWqnFfuFl3MDH6gLbsubOcr+prcnsqah3ny7Q==}
'@shikijs/types@1.26.1':
resolution: {integrity: sha512-d4B00TKKAMaHuFYgRf3L0gwtvqpW4hVdVwKcZYbBfAAQXspgkbWqnFfuFl3MDH6gLbsubOcr+prcnsqah3ny7Q==}
@@ -3114,10 +3101,6 @@ packages:
peerDependencies:
sodium-native: ^3.2.0
solana-agent-kit@1.3.6:
resolution: {integrity: sha512-dF7GcZw3ifWRkBkI57DZUlo0xhNlbr2WLm8Wce57DkAXDfzZxrui4NTcCifWODST3R5ypi3VerBch5MfK1PsUA==}
engines: {node: '>=22.0.0', pnpm: '>=8.0.0'}
space-separated-tokens@2.0.2:
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
@@ -3548,7 +3531,7 @@ packages:
snapshots:
'@3land/listings-sdk@0.0.3(@types/node@22.10.5)(arweave@1.15.5)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)':
'@3land/listings-sdk@0.0.4(@types/node@22.10.5)(arweave@1.15.5)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)':
dependencies:
'@coral-xyz/borsh': 0.30.1(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))
'@irys/sdk': 0.2.11(arweave@1.15.5)(bufferutil@4.0.9)(utf-8-validate@5.0.10)
@@ -3873,6 +3856,7 @@ snapshots:
ethereum-cryptography: 2.2.1
micro-ftch: 0.3.1
'@ethersproject/abi@5.7.0':
'@ethersproject/abi@5.7.0':
dependencies:
'@ethersproject/address': 5.7.0
@@ -4764,6 +4748,8 @@ snapshots:
'@noble/ed25519@1.7.3': {}
'@noble/ed25519@1.7.3': {}
'@noble/hashes@1.4.0': {}
'@noble/hashes@1.5.0': {}
@@ -6096,7 +6082,6 @@ snapshots:
base64-js: 1.5.1
ieee754: 1.2.1
buffer@6.0.3:
buffer@6.0.3:
dependencies:
base64-js: 1.5.1
@@ -6406,7 +6391,6 @@ snapshots:
escape-string-regexp@4.0.0: {}
eslint-config-prettier@9.1.0(eslint@8.57.1):
eslint-config-prettier@9.1.0(eslint@8.57.1):
dependencies:
eslint: 8.57.1
@@ -7025,7 +7009,6 @@ snapshots:
is-unicode-supported@0.1.0: {}
isexe@2.0.0: {}
isexe@2.0.0: {}
isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)):
@@ -7809,75 +7792,8 @@ snapshots:
typedarray-to-buffer: 3.1.5
xsalsa20: 1.2.0
solana-agent-kit@1.3.6(@noble/hashes@1.7.0)(axios@1.7.9)(borsh@2.0.0)(buffer@6.0.3)(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(react@19.0.0)(sodium-native@3.4.1)(typescript@5.7.2)(utf-8-validate@5.0.10):
dependencies:
'@ai-sdk/openai': 1.0.11(zod@3.24.1)
'@bonfida/spl-name-service': 3.0.7(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@cks-systems/manifest-sdk': 0.1.73(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@coral-xyz/anchor': 0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)
'@langchain/core': 0.3.27(openai@4.77.3(zod@3.24.1))
'@langchain/groq': 0.1.2(@langchain/core@0.3.27(openai@4.77.3(zod@3.24.1)))
'@langchain/langgraph': 0.2.38(@langchain/core@0.3.27(openai@4.77.3(zod@3.24.1)))
'@langchain/openai': 0.3.16(@langchain/core@0.3.27(openai@4.77.3(zod@3.24.1)))
'@lightprotocol/compressed-token': 0.17.1(@lightprotocol/stateless.js@0.17.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@lightprotocol/stateless.js': 0.17.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)
'@metaplex-foundation/mpl-core': 1.1.1(@metaplex-foundation/umi@0.9.2)(@noble/hashes@1.7.0)
'@metaplex-foundation/mpl-token-metadata': 3.3.0(@metaplex-foundation/umi@0.9.2)
'@metaplex-foundation/mpl-toolbox': 0.9.4(@metaplex-foundation/umi@0.9.2)
'@metaplex-foundation/umi': 0.9.2
'@metaplex-foundation/umi-bundle-defaults': 0.9.2(@metaplex-foundation/umi@0.9.2)(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))
'@metaplex-foundation/umi-web3js-adapters': 0.9.2(@metaplex-foundation/umi@0.9.2)(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))
'@onsol/tldparser': 0.6.7(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bn.js@5.2.1)(borsh@2.0.0)(buffer@6.0.3)(bufferutil@4.0.9)(utf-8-validate@5.0.10)
'@orca-so/common-sdk': 0.6.4(@solana/spl-token@0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(decimal.js@10.4.3)
'@orca-so/whirlpools-sdk': 0.13.13(@coral-xyz/anchor@0.29.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(@orca-so/common-sdk@0.6.4(@solana/spl-token@0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(decimal.js@10.4.3))(@solana/spl-token@0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(decimal.js@10.4.3)
'@pythnetwork/price-service-client': 1.9.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)
'@raydium-io/raydium-sdk-v2': 0.1.95-alpha(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@solana/spl-token': 0.4.9(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)
'@tensor-oss/tensorswap-sdk': 4.5.0(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.2)(utf-8-validate@5.0.10)
'@tiplink/api': 0.3.1(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(sodium-native@3.4.1)(utf-8-validate@5.0.10)
ai: 4.0.22(react@19.0.0)(zod@3.24.1)
bn.js: 5.2.1
bs58: 6.0.0
chai: 5.1.2
decimal.js: 10.4.3
dotenv: 16.4.7
form-data: 4.0.1
langchain: 0.3.9(@langchain/core@0.3.27(openai@4.77.3(zod@3.24.1)))(@langchain/groq@0.1.2(@langchain/core@0.3.27(openai@4.77.3(zod@3.24.1))))(axios@1.7.9)(openai@4.77.3(zod@3.24.1))
openai: 4.77.3(zod@3.24.1)
typedoc: 0.27.6(typescript@5.7.2)
zod: 3.24.1
transitivePeerDependencies:
- '@langchain/anthropic'
- '@langchain/aws'
- '@langchain/cerebras'
- '@langchain/cohere'
- '@langchain/google-genai'
- '@langchain/google-vertexai'
- '@langchain/mistralai'
- '@langchain/ollama'
- '@noble/hashes'
- axios
- borsh
- buffer
- bufferutil
- cheerio
- debug
- encoding
- fastestsmallesttextencoderdecoder
- handlebars
- jiti
- peggy
- react
- sodium-native
- supports-color
- typeorm
- typescript
- utf-8-validate
space-separated-tokens@2.0.2: {}
spok@1.5.5:
spok@1.5.5:
dependencies:
ansicolors: 0.3.2
@@ -8004,20 +7920,6 @@ snapshots:
trim-lines@3.0.1: {}
ts-api-utils@1.4.3(typescript@5.7.2):
toformat@2.0.0: {}
toidentifier@1.0.1: {}
toml@3.0.0: {}
tr46@0.0.3: {}
treeify@1.1.0: {}
trim-lines@3.0.1: {}
ts-api-utils@1.4.3(typescript@5.7.2):
dependencies:
typescript: 5.7.2

View File

@@ -8,7 +8,7 @@ import {
PythFetchPriceResponse,
SolanaAgentKit,
} from "../index";
import { create_image, FEE_TIERS } from "../tools";
import { create_image, FEE_TIERS, generateOrdersfromPattern } from "../tools";
import {
CreateCollectionOptions,
CreateSingleOptions,

View File

@@ -40,7 +40,7 @@ const collectionOpts: CreateCollectionOptions = {
const collectionAccount = "";
const createItemOptions: CreateSingleOptions = {
itemName: "",
sellerFee: 500,
sellerFee: 500, //5%
itemAmount: 100,
itemSymbol: "",
itemDescription: "",