@bonfida/spl-name-service 2.4.2 → 2.5.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/dist/bindings.d.ts +12 -0
- package/dist/constants.d.ts +2 -0
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/instructions.d.ts +23 -0
- package/dist/utils.d.ts +2 -1
- package/package.json +1 -1
package/dist/instructions.d.ts
CHANGED
|
@@ -108,3 +108,26 @@ export declare class registerFavoriteInstruction {
|
|
|
108
108
|
serialize(): Uint8Array;
|
|
109
109
|
getInstruction(programId: PublicKey, nameAccount: PublicKey, favouriteAccount: PublicKey, owner: PublicKey, systemProgram: PublicKey): TransactionInstruction;
|
|
110
110
|
}
|
|
111
|
+
export declare class createSplitV2Instruction {
|
|
112
|
+
tag: number;
|
|
113
|
+
name: string;
|
|
114
|
+
space: number;
|
|
115
|
+
referrerIdxOpt: number | null;
|
|
116
|
+
static schema: {
|
|
117
|
+
struct: {
|
|
118
|
+
tag: string;
|
|
119
|
+
name: string;
|
|
120
|
+
space: string;
|
|
121
|
+
referrerIdxOpt: {
|
|
122
|
+
option: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
constructor(obj: {
|
|
127
|
+
name: string;
|
|
128
|
+
space: number;
|
|
129
|
+
referrerIdxOpt: number | null;
|
|
130
|
+
});
|
|
131
|
+
serialize(): Uint8Array;
|
|
132
|
+
getInstruction(programId: PublicKey, namingServiceProgram: PublicKey, rootDomain: PublicKey, name: PublicKey, reverseLookup: PublicKey, systemProgram: PublicKey, centralState: PublicKey, buyer: PublicKey, domainOwner: PublicKey, feePayer: PublicKey, buyerTokenSource: PublicKey, pythFeedAccount: PublicKey, vault: PublicKey, splTokenProgram: PublicKey, rentSysvar: PublicKey, state: PublicKey, referrerAccountOpt?: PublicKey): TransactionInstruction;
|
|
133
|
+
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export declare const getTokenizedDomains: (connection: Connection, owner: Public
|
|
|
105
105
|
* @param name - Domain name
|
|
106
106
|
* @returns price
|
|
107
107
|
*/
|
|
108
|
-
export declare const getDomainPriceFromName: (name: string) => 20 | 750 | 700 | 640
|
|
108
|
+
export declare const getDomainPriceFromName: (name: string) => 20 | 160 | 750 | 700 | 640;
|
|
109
109
|
export declare function deserializeReverse(data: Buffer): string;
|
|
110
110
|
export declare function deserializeReverse(data: undefined): undefined;
|
|
111
|
+
export declare const getPythFeedAccountKey: (shard: number, priceFeed: number[]) => [PublicKey, number];
|