zcashname-sdk 0.7.0 → 0.7.2
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 +0 -1
- package/dist/zns.cjs +0 -11
- package/dist/zns.d.cts +1 -7
- package/dist/zns.d.ts +1 -7
- package/dist/zns.js +0 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,6 @@ console.log("Memo:", memo);
|
|
|
67
67
|
| `prepareUpdate(name, newAddress, nonce, registryAddress)` | Change address |
|
|
68
68
|
| `prepareBuy(name, buyerAddress, registryAddress)` | Buy a listed name |
|
|
69
69
|
| `prepareRelease(name, nonce, registryAddress)` | Release name (burn) |
|
|
70
|
-
| `prepareSetPrice(prices, nonce, registryAddress)` | Admin: set pricing tiers |
|
|
71
70
|
|
|
72
71
|
## Reading Data
|
|
73
72
|
|
package/dist/zns.cjs
CHANGED
|
@@ -289,17 +289,6 @@ var ZNS = class {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
prepareSetPrice(prices, nonce) {
|
|
293
|
-
return {
|
|
294
|
-
prices,
|
|
295
|
-
nonce,
|
|
296
|
-
payload: `SETPRICE:${prices.length}:${prices.join(":")}:${nonce}`,
|
|
297
|
-
complete: (signature) => {
|
|
298
|
-
const memo = `ZNS:SETPRICE:${prices.length}:${prices.join(":")}:${nonce}:${signature}`;
|
|
299
|
-
return { memo, uri: this.buildZcashUri(this.registryAddress, void 0, memo) };
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
292
|
// ── Private helpers ────────────────────────────────────────────────────────
|
|
304
293
|
registrationPayload(reg) {
|
|
305
294
|
switch (reg.last_action) {
|
package/dist/zns.d.cts
CHANGED
|
@@ -112,11 +112,6 @@ interface PreparedRelease extends PreparedAction {
|
|
|
112
112
|
readonly name: string;
|
|
113
113
|
readonly nonce: number;
|
|
114
114
|
}
|
|
115
|
-
/** Prepared SETPRICE action (admin only) */
|
|
116
|
-
interface PreparedSetPrice extends PreparedAction {
|
|
117
|
-
readonly prices: readonly Zats[];
|
|
118
|
-
readonly nonce: number;
|
|
119
|
-
}
|
|
120
115
|
|
|
121
116
|
declare const DEFAULT_URL = "https://light.zcash.me/zns-testnet";
|
|
122
117
|
declare const TESTNET_UIVK = "uivktest1hzw7wyadutvzfgpna80yftsk5l7jeyu2p5me5quvp28tytxueta00cx4068wnlzcv7tx9n3t3gfhsy83pe4y6jrhxtzaq0hj6xtg5zrk2dn7zen3vns2a5pgs4fxdjlletmqrhfa42";
|
|
@@ -212,7 +207,6 @@ declare class ZNS {
|
|
|
212
207
|
prepareUpdate(name: string, newAddress: string, nonce: number): PreparedUpdate;
|
|
213
208
|
prepareBuy(name: string, buyerAddress: string): PreparedBuy;
|
|
214
209
|
prepareRelease(name: string, nonce: number): PreparedRelease;
|
|
215
|
-
prepareSetPrice(prices: Zats[], nonce: number): PreparedSetPrice;
|
|
216
210
|
private registrationPayload;
|
|
217
211
|
private verifyEd25519;
|
|
218
212
|
private requireValidName;
|
|
@@ -224,4 +218,4 @@ declare class ZNS {
|
|
|
224
218
|
private rpc;
|
|
225
219
|
}
|
|
226
220
|
|
|
227
|
-
export { type CompletedAction, DEFAULT_URL, type Event, type EventAction, type EventsFilter, type EventsResult, type LastAction, type Listing, MAINNET_UIVK, type Network, type PreparedBuy, type PreparedClaim, type PreparedDelist, type PreparedList, type PreparedRelease, type
|
|
221
|
+
export { type CompletedAction, DEFAULT_URL, type Event, type EventAction, type EventsFilter, type EventsResult, type LastAction, type Listing, MAINNET_UIVK, type Network, type PreparedBuy, type PreparedClaim, type PreparedDelist, type PreparedList, type PreparedRelease, type PreparedUpdate, type Pricing, type Registration, type Status, TESTNET_UIVK, ZNS, type Zats };
|
package/dist/zns.d.ts
CHANGED
|
@@ -112,11 +112,6 @@ interface PreparedRelease extends PreparedAction {
|
|
|
112
112
|
readonly name: string;
|
|
113
113
|
readonly nonce: number;
|
|
114
114
|
}
|
|
115
|
-
/** Prepared SETPRICE action (admin only) */
|
|
116
|
-
interface PreparedSetPrice extends PreparedAction {
|
|
117
|
-
readonly prices: readonly Zats[];
|
|
118
|
-
readonly nonce: number;
|
|
119
|
-
}
|
|
120
115
|
|
|
121
116
|
declare const DEFAULT_URL = "https://light.zcash.me/zns-testnet";
|
|
122
117
|
declare const TESTNET_UIVK = "uivktest1hzw7wyadutvzfgpna80yftsk5l7jeyu2p5me5quvp28tytxueta00cx4068wnlzcv7tx9n3t3gfhsy83pe4y6jrhxtzaq0hj6xtg5zrk2dn7zen3vns2a5pgs4fxdjlletmqrhfa42";
|
|
@@ -212,7 +207,6 @@ declare class ZNS {
|
|
|
212
207
|
prepareUpdate(name: string, newAddress: string, nonce: number): PreparedUpdate;
|
|
213
208
|
prepareBuy(name: string, buyerAddress: string): PreparedBuy;
|
|
214
209
|
prepareRelease(name: string, nonce: number): PreparedRelease;
|
|
215
|
-
prepareSetPrice(prices: Zats[], nonce: number): PreparedSetPrice;
|
|
216
210
|
private registrationPayload;
|
|
217
211
|
private verifyEd25519;
|
|
218
212
|
private requireValidName;
|
|
@@ -224,4 +218,4 @@ declare class ZNS {
|
|
|
224
218
|
private rpc;
|
|
225
219
|
}
|
|
226
220
|
|
|
227
|
-
export { type CompletedAction, DEFAULT_URL, type Event, type EventAction, type EventsFilter, type EventsResult, type LastAction, type Listing, MAINNET_UIVK, type Network, type PreparedBuy, type PreparedClaim, type PreparedDelist, type PreparedList, type PreparedRelease, type
|
|
221
|
+
export { type CompletedAction, DEFAULT_URL, type Event, type EventAction, type EventsFilter, type EventsResult, type LastAction, type Listing, MAINNET_UIVK, type Network, type PreparedBuy, type PreparedClaim, type PreparedDelist, type PreparedList, type PreparedRelease, type PreparedUpdate, type Pricing, type Registration, type Status, TESTNET_UIVK, ZNS, type Zats };
|
package/dist/zns.js
CHANGED
|
@@ -252,17 +252,6 @@ var ZNS = class {
|
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
prepareSetPrice(prices, nonce) {
|
|
256
|
-
return {
|
|
257
|
-
prices,
|
|
258
|
-
nonce,
|
|
259
|
-
payload: `SETPRICE:${prices.length}:${prices.join(":")}:${nonce}`,
|
|
260
|
-
complete: (signature) => {
|
|
261
|
-
const memo = `ZNS:SETPRICE:${prices.length}:${prices.join(":")}:${nonce}:${signature}`;
|
|
262
|
-
return { memo, uri: this.buildZcashUri(this.registryAddress, void 0, memo) };
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
255
|
// ── Private helpers ────────────────────────────────────────────────────────
|
|
267
256
|
registrationPayload(reg) {
|
|
268
257
|
switch (reg.last_action) {
|