bet-test-sdk 1.2.2 → 1.2.3

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/README.md CHANGED
@@ -43,6 +43,19 @@ Get BetSDK transaction-related command methods.
43
43
  #### getCreateAndBuyInstructions
44
44
 
45
45
  ```typescript
46
+ type CreateTokenMetadata = {
47
+ name: string;
48
+ symbol: string;
49
+ description: string;
50
+ migrateDex: MigrateDex;
51
+ file: Blob;
52
+ createdOn?: string;
53
+ twitter?: string;
54
+ telegram?: string;
55
+ discord?: string;
56
+ website?: string;
57
+ }
58
+
46
59
  async getCreateAndBuyInstructions(
47
60
  creator: PublicKey,
48
61
  createTokenMetadata: CreateTokenMetadata,
@@ -51,41 +64,30 @@ async getCreateAndBuyInstructions(
51
64
  commitment: Commitment = DEFAULT_COMMITMENT
52
65
  ): Promise<{
53
66
  newTx: Transaction;
54
- mintKeyPair: Keypair;
67
+ mintKeyPair: Keypair; // `mintKeyPair`: A Keypair to create a mint. This keypair needs to be used as a signer to sign the transaction.
55
68
  }>
56
69
  ```
57
70
 
71
+ - **CreateTokenMetadata**:
72
+ - `name`: Token name.
73
+ - `symbol`: Token symbol.
74
+ - `description`: Token description.
75
+ - `migrateDex`: After completing the bet curve, the dex you want to migrate to currently only provides Raydium and Meteora. MigrateType can be imported from the SDK.
76
+ - `file`: Token logo file
77
+ - `createdOn`: On which platform was it created?
78
+ - `twitter`: X link
79
+ - `telegram`: Telegram link
80
+ - `discord`: Discord link
81
+ - `website`: website
82
+
58
83
  - Creates a new token and buys it.
59
84
  - **Parameters**:
60
85
  - `creator`: The public key of the token creator.
61
- - `createTokenMetadata`: Metadata for the token.
86
+ - `createTokenMetadata`: Metadata for the token.(`migrateType` of createTokenMetadata: After completing the bet curve, the dex you want to migrate to currently only provides Raydium and Meteora. MigrateType can be imported from the SDK.)
62
87
  - `buyAmountSol`: Amount of SOL to buy.
63
88
  - `slippageBasisPoints`: Slippage in basis points (default: 500).
64
89
  - `commitment`: Commitment level (default: DEFAULT_COMMITMENT).
65
- - **Returns**: A promise that resolves to a `Transaction`.
66
-
67
- #### getCreateInstructions
68
-
69
- ```typescript
70
- async getCreateInstructions(
71
- creator: PublicKey,
72
- name: string,
73
- symbol: string,
74
- uri: string,
75
- migrateType: MigrateType,
76
- mintKeyPair: Keypair,
77
- ): Promise<Transaction>
78
- ```
79
-
80
- - Creates a new token and buys it.
81
- - **Parameters**:
82
- - `creator`: The public key of the token creator.
83
- - `name`: Token name.
84
- - `symbol`: Token symbol.
85
- - `uri`: Token uri(metadata).
86
- - `migrateType`: After completing the bet curve, the dex you want to migrate to currently only provides Raydium and Meteora. MigrateType can be imported from the SDK.
87
- - `mintKeyPair`: A Keypair to create a mint. This keypair needs to be used as a signer to sign the transaction.
88
- - **Returns**: A promise that resolves to a `Transaction`.
90
+ - **Returns**: A promise that resolves to `{ newTx: Transaction; mintKeyPair: Keypair; }`.
89
91
 
90
92
  #### getBuyInstructionsBySolAmount
91
93