@adelos/sdk 0.1.8 → 0.1.9
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/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -138,7 +138,11 @@ declare class AdelosSDK {
|
|
|
138
138
|
/** Menghasilkan metaSk tanpa simpan di LocalStorage (Deterministic) */
|
|
139
139
|
unlockPrivacy(signMessage: (msg: Uint8Array) => Promise<Uint8Array>): Promise<Uint8Array>;
|
|
140
140
|
/** API Satu Pintu untuk kirim SOL secara privat */
|
|
141
|
-
createStealthTransfer(sender: PublicKey, receiver: PublicKey, amountSOL: number, version?: "legacy" | "v0"): Promise<
|
|
141
|
+
createStealthTransfer(sender: PublicKey, receiver: PublicKey, amountSOL: number, version?: "legacy" | "v0"): Promise<{
|
|
142
|
+
transaction: Transaction | VersionedTransaction;
|
|
143
|
+
stealthAddress: string;
|
|
144
|
+
memo: string;
|
|
145
|
+
}>;
|
|
142
146
|
/** Membuat transaksi pendaftaran identitas */
|
|
143
147
|
createRegisterTransaction(owner: PublicKey, metaPubkey: Uint8Array, version?: "legacy" | "v0"): Promise<Transaction | VersionedTransaction>;
|
|
144
148
|
buildTransaction(payer: PublicKey, instructions: TransactionInstruction[], version?: "legacy" | "v0"): Promise<Transaction | VersionedTransaction>;
|
package/dist/index.d.ts
CHANGED
|
@@ -138,7 +138,11 @@ declare class AdelosSDK {
|
|
|
138
138
|
/** Menghasilkan metaSk tanpa simpan di LocalStorage (Deterministic) */
|
|
139
139
|
unlockPrivacy(signMessage: (msg: Uint8Array) => Promise<Uint8Array>): Promise<Uint8Array>;
|
|
140
140
|
/** API Satu Pintu untuk kirim SOL secara privat */
|
|
141
|
-
createStealthTransfer(sender: PublicKey, receiver: PublicKey, amountSOL: number, version?: "legacy" | "v0"): Promise<
|
|
141
|
+
createStealthTransfer(sender: PublicKey, receiver: PublicKey, amountSOL: number, version?: "legacy" | "v0"): Promise<{
|
|
142
|
+
transaction: Transaction | VersionedTransaction;
|
|
143
|
+
stealthAddress: string;
|
|
144
|
+
memo: string;
|
|
145
|
+
}>;
|
|
142
146
|
/** Membuat transaksi pendaftaran identitas */
|
|
143
147
|
createRegisterTransaction(owner: PublicKey, metaPubkey: Uint8Array, version?: "legacy" | "v0"): Promise<Transaction | VersionedTransaction>;
|
|
144
148
|
buildTransaction(payer: PublicKey, instructions: TransactionInstruction[], version?: "legacy" | "v0"): Promise<Transaction | VersionedTransaction>;
|
package/dist/index.js
CHANGED
|
@@ -334,7 +334,12 @@ var AdelosSDK = class {
|
|
|
334
334
|
data: Buffer.from(memo, "utf-8")
|
|
335
335
|
})
|
|
336
336
|
];
|
|
337
|
-
|
|
337
|
+
const transaction = await this.buildTransaction(sender, instructions, version);
|
|
338
|
+
return {
|
|
339
|
+
transaction,
|
|
340
|
+
stealthAddress: new import_web33.PublicKey(stealthPubkey).toBase58(),
|
|
341
|
+
memo
|
|
342
|
+
};
|
|
338
343
|
}
|
|
339
344
|
/** Membuat transaksi pendaftaran identitas */
|
|
340
345
|
async createRegisterTransaction(owner, metaPubkey, version = "v0") {
|
package/dist/index.mjs
CHANGED
|
@@ -285,7 +285,12 @@ var AdelosSDK = class {
|
|
|
285
285
|
data: Buffer.from(memo, "utf-8")
|
|
286
286
|
})
|
|
287
287
|
];
|
|
288
|
-
|
|
288
|
+
const transaction = await this.buildTransaction(sender, instructions, version);
|
|
289
|
+
return {
|
|
290
|
+
transaction,
|
|
291
|
+
stealthAddress: new PublicKey3(stealthPubkey).toBase58(),
|
|
292
|
+
memo
|
|
293
|
+
};
|
|
289
294
|
}
|
|
290
295
|
/** Membuat transaksi pendaftaran identitas */
|
|
291
296
|
async createRegisterTransaction(owner, metaPubkey, version = "v0") {
|