@kadi.build/deploy-ability 0.0.1 → 0.0.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/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/targets/akash/bid-selectors.d.ts +4 -4
- package/dist/targets/akash/bid-selectors.js +4 -4
- package/dist/targets/akash/blockchain-client.d.ts +1 -1
- package/dist/targets/akash/blockchain-client.js +1 -1
- package/dist/targets/akash/deployer.d.ts +1 -1
- package/dist/targets/akash/index.d.ts +3 -3
- package/dist/targets/akash/index.js +3 -3
- package/dist/targets/akash/wallet-manager.d.ts +1 -1
- package/dist/targets/akash/wallet-manager.js +1 -1
- package/dist/targets/local/index.d.ts +2 -2
- package/dist/targets/local/index.js +2 -2
- package/dist/utils/registry/index.d.ts +1 -1
- package/dist/utils/registry/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @example Quick Start - Akash
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { deployToAkash } from 'deploy-ability';
|
|
9
|
+
* import { deployToAkash } from '@kadi.build/deploy-ability';
|
|
10
10
|
*
|
|
11
11
|
* const result = await deployToAkash({
|
|
12
12
|
* projectRoot: process.cwd(),
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* @example Quick Start - Local
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import { deployToLocal } from 'deploy-ability';
|
|
26
|
+
* import { deployToLocal } from '@kadi.build/deploy-ability';
|
|
27
27
|
*
|
|
28
28
|
* const result = await deployToLocal({
|
|
29
29
|
* projectRoot: process.cwd(),
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @example Quick Start - Akash
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { deployToAkash } from 'deploy-ability';
|
|
9
|
+
* import { deployToAkash } from '@kadi.build/deploy-ability';
|
|
10
10
|
*
|
|
11
11
|
* const result = await deployToAkash({
|
|
12
12
|
* projectRoot: process.cwd(),
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* @example Quick Start - Local
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import { deployToLocal } from 'deploy-ability';
|
|
26
|
+
* import { deployToLocal } from '@kadi.build/deploy-ability';
|
|
27
27
|
*
|
|
28
28
|
* const result = await deployToLocal({
|
|
29
29
|
* projectRoot: process.cwd(),
|
|
@@ -34,7 +34,7 @@ import type { EnhancedBid } from './bid-types.js';
|
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```typescript
|
|
37
|
-
* import { deployToAkash, selectCheapestBid } from 'deploy-ability/akash';
|
|
37
|
+
* import { deployToAkash, selectCheapestBid } from '@kadi.build/deploy-ability/akash';
|
|
38
38
|
*
|
|
39
39
|
* const result = await deployToAkash({
|
|
40
40
|
* wallet,
|
|
@@ -86,7 +86,7 @@ export declare function selectCheapestBid(bids: EnhancedBid[]): EnhancedBid | nu
|
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```typescript
|
|
89
|
-
* import { deployToAkash, selectMostReliableBid } from 'deploy-ability/akash';
|
|
89
|
+
* import { deployToAkash, selectMostReliableBid } from '@kadi.build/deploy-ability/akash';
|
|
90
90
|
*
|
|
91
91
|
* const result = await deployToAkash({
|
|
92
92
|
* wallet,
|
|
@@ -136,7 +136,7 @@ export declare function selectMostReliableBid(bids: EnhancedBid[], period?: '1d'
|
|
|
136
136
|
*
|
|
137
137
|
* @example Equal balance (default)
|
|
138
138
|
* ```typescript
|
|
139
|
-
* import { deployToAkash, selectBalancedBid } from 'deploy-ability/akash';
|
|
139
|
+
* import { deployToAkash, selectBalancedBid } from '@kadi.build/deploy-ability/akash';
|
|
140
140
|
*
|
|
141
141
|
* const result = await deployToAkash({
|
|
142
142
|
* wallet,
|
|
@@ -199,7 +199,7 @@ export declare function selectBalancedBid(bids: EnhancedBid[], weights?: {
|
|
|
199
199
|
*
|
|
200
200
|
* @example Filter by price and uptime
|
|
201
201
|
* ```typescript
|
|
202
|
-
* import { filterBids, selectCheapestBid } from 'deploy-ability/akash';
|
|
202
|
+
* import { filterBids, selectCheapestBid } from '@kadi.build/deploy-ability/akash';
|
|
203
203
|
*
|
|
204
204
|
* const result = await deployToAkash({
|
|
205
205
|
* wallet,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ```typescript
|
|
36
|
-
* import { deployToAkash, selectCheapestBid } from 'deploy-ability/akash';
|
|
36
|
+
* import { deployToAkash, selectCheapestBid } from '@kadi.build/deploy-ability/akash';
|
|
37
37
|
*
|
|
38
38
|
* const result = await deployToAkash({
|
|
39
39
|
* wallet,
|
|
@@ -91,7 +91,7 @@ export function selectCheapestBid(bids) {
|
|
|
91
91
|
*
|
|
92
92
|
* @example
|
|
93
93
|
* ```typescript
|
|
94
|
-
* import { deployToAkash, selectMostReliableBid } from 'deploy-ability/akash';
|
|
94
|
+
* import { deployToAkash, selectMostReliableBid } from '@kadi.build/deploy-ability/akash';
|
|
95
95
|
*
|
|
96
96
|
* const result = await deployToAkash({
|
|
97
97
|
* wallet,
|
|
@@ -158,7 +158,7 @@ export function selectMostReliableBid(bids, period = '7d') {
|
|
|
158
158
|
*
|
|
159
159
|
* @example Equal balance (default)
|
|
160
160
|
* ```typescript
|
|
161
|
-
* import { deployToAkash, selectBalancedBid } from 'deploy-ability/akash';
|
|
161
|
+
* import { deployToAkash, selectBalancedBid } from '@kadi.build/deploy-ability/akash';
|
|
162
162
|
*
|
|
163
163
|
* const result = await deployToAkash({
|
|
164
164
|
* wallet,
|
|
@@ -242,7 +242,7 @@ export function selectBalancedBid(bids, weights = { price: 0.5, reliability: 0.5
|
|
|
242
242
|
*
|
|
243
243
|
* @example Filter by price and uptime
|
|
244
244
|
* ```typescript
|
|
245
|
-
* import { filterBids, selectCheapestBid } from 'deploy-ability/akash';
|
|
245
|
+
* import { filterBids, selectCheapestBid } from '@kadi.build/deploy-ability/akash';
|
|
246
246
|
*
|
|
247
247
|
* const result = await deployToAkash({
|
|
248
248
|
* wallet,
|
|
@@ -501,7 +501,7 @@ export declare function createLease(clientContext: SigningClientContext, bid: Pr
|
|
|
501
501
|
*
|
|
502
502
|
* @example Close a deployment
|
|
503
503
|
* ```typescript
|
|
504
|
-
* import { closeDeployment, createSigningClient } from 'deploy-ability/akash';
|
|
504
|
+
* import { closeDeployment, createSigningClient } from '@kadi.build/deploy-ability/akash';
|
|
505
505
|
*
|
|
506
506
|
* // Create signing client
|
|
507
507
|
* const clientResult = await createSigningClient(wallet, 'mainnet');
|
|
@@ -671,7 +671,7 @@ export async function createLease(clientContext, bid) {
|
|
|
671
671
|
*
|
|
672
672
|
* @example Close a deployment
|
|
673
673
|
* ```typescript
|
|
674
|
-
* import { closeDeployment, createSigningClient } from 'deploy-ability/akash';
|
|
674
|
+
* import { closeDeployment, createSigningClient } from '@kadi.build/deploy-ability/akash';
|
|
675
675
|
*
|
|
676
676
|
* // Create signing client
|
|
677
677
|
* const clientResult = await createSigningClient(wallet, 'mainnet');
|
|
@@ -60,7 +60,7 @@ export interface AkashDeploymentExecution extends AkashDeploymentOptions {
|
|
|
60
60
|
*
|
|
61
61
|
* @example Using cheapest bid selector
|
|
62
62
|
* ```typescript
|
|
63
|
-
* import { deployToAkash, selectCheapestBid} from 'deploy-ability/akash';
|
|
63
|
+
* import { deployToAkash, selectCheapestBid} from '@kadi.build/deploy-ability/akash';
|
|
64
64
|
*
|
|
65
65
|
* const result = await deployToAkash({
|
|
66
66
|
* wallet,
|
|
@@ -333,7 +333,7 @@ export { createLease } from './blockchain-client.js';
|
|
|
333
333
|
*
|
|
334
334
|
* @example Close a deployment
|
|
335
335
|
* ```typescript
|
|
336
|
-
* import { createSigningClient, closeDeployment } from 'deploy-ability/akash';
|
|
336
|
+
* import { createSigningClient, closeDeployment } from '@kadi.build/deploy-ability/akash';
|
|
337
337
|
*
|
|
338
338
|
* const clientResult = await createSigningClient(wallet, 'mainnet');
|
|
339
339
|
* if (!clientResult.success) throw clientResult.error;
|
|
@@ -509,7 +509,7 @@ export { createBidPricing } from './bid-types.js';
|
|
|
509
509
|
*
|
|
510
510
|
* @example Simple cheapest selection
|
|
511
511
|
* ```typescript
|
|
512
|
-
* import { deployToAkash, selectCheapestBid } from 'deploy-ability/akash';
|
|
512
|
+
* import { deployToAkash, selectCheapestBid } from '@kadi.build/deploy-ability/akash';
|
|
513
513
|
*
|
|
514
514
|
* const result = await deployToAkash({
|
|
515
515
|
* wallet,
|
|
@@ -1015,7 +1015,7 @@ export type { AkashNetwork, NetworkConfiguration } from './environment.js';
|
|
|
1015
1015
|
*
|
|
1016
1016
|
* @example
|
|
1017
1017
|
* ```typescript
|
|
1018
|
-
* import { AKASH_REGIONS, AKASH_TIERS } from 'deploy-ability';
|
|
1018
|
+
* import { AKASH_REGIONS, AKASH_TIERS } from '@kadi.build/deploy-ability';
|
|
1019
1019
|
*
|
|
1020
1020
|
* console.log(AKASH_REGIONS['us-west']);
|
|
1021
1021
|
* // "Western United States (California, Oregon, Washington, Nevada)"
|
|
@@ -331,7 +331,7 @@ export { createLease } from './blockchain-client.js';
|
|
|
331
331
|
*
|
|
332
332
|
* @example Close a deployment
|
|
333
333
|
* ```typescript
|
|
334
|
-
* import { createSigningClient, closeDeployment } from 'deploy-ability/akash';
|
|
334
|
+
* import { createSigningClient, closeDeployment } from '@kadi.build/deploy-ability/akash';
|
|
335
335
|
*
|
|
336
336
|
* const clientResult = await createSigningClient(wallet, 'mainnet');
|
|
337
337
|
* if (!clientResult.success) throw clientResult.error;
|
|
@@ -380,7 +380,7 @@ export { createBidPricing } from './bid-types.js';
|
|
|
380
380
|
*
|
|
381
381
|
* @example Simple cheapest selection
|
|
382
382
|
* ```typescript
|
|
383
|
-
* import { deployToAkash, selectCheapestBid } from 'deploy-ability/akash';
|
|
383
|
+
* import { deployToAkash, selectCheapestBid } from '@kadi.build/deploy-ability/akash';
|
|
384
384
|
*
|
|
385
385
|
* const result = await deployToAkash({
|
|
386
386
|
* wallet,
|
|
@@ -836,7 +836,7 @@ export { isProviderBlacklisted } from './environment.js';
|
|
|
836
836
|
*
|
|
837
837
|
* @example
|
|
838
838
|
* ```typescript
|
|
839
|
-
* import { AKASH_REGIONS, AKASH_TIERS } from 'deploy-ability';
|
|
839
|
+
* import { AKASH_REGIONS, AKASH_TIERS } from '@kadi.build/deploy-ability';
|
|
840
840
|
*
|
|
841
841
|
* console.log(AKASH_REGIONS['us-west']);
|
|
842
842
|
* // "Western United States (California, Oregon, Washington, Nevada)"
|
|
@@ -231,7 +231,7 @@ export declare function createWalletContext(wcClient: WalletConnectClient, appro
|
|
|
231
231
|
* @example Agent with encrypted wallet
|
|
232
232
|
* ```typescript
|
|
233
233
|
* import { DirectSecp256k1Wallet } from '@cosmjs/proto-signing';
|
|
234
|
-
* import { createWalletContextFromSigner } from 'deploy-ability/akash';
|
|
234
|
+
* import { createWalletContextFromSigner } from '@kadi.build/deploy-ability/akash';
|
|
235
235
|
*
|
|
236
236
|
* // Agent loads signer from secure storage (mnemonic never exposed to caller)
|
|
237
237
|
* const agentSigner = await myAgent.wallet.getSigner();
|
|
@@ -408,7 +408,7 @@ export async function createWalletContext(wcClient, approvalResult, network) {
|
|
|
408
408
|
* @example Agent with encrypted wallet
|
|
409
409
|
* ```typescript
|
|
410
410
|
* import { DirectSecp256k1Wallet } from '@cosmjs/proto-signing';
|
|
411
|
-
* import { createWalletContextFromSigner } from 'deploy-ability/akash';
|
|
411
|
+
* import { createWalletContextFromSigner } from '@kadi.build/deploy-ability/akash';
|
|
412
412
|
*
|
|
413
413
|
* // Agent loads signer from secure storage (mnemonic never exposed to caller)
|
|
414
414
|
* const agentSigner = await myAgent.wallet.getSigner();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @example Basic Usage
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { deployToLocal } from 'deploy-ability/local';
|
|
9
|
+
* import { deployToLocal } from '@kadi.build/deploy-ability/local';
|
|
10
10
|
*
|
|
11
11
|
* const result = await deployToLocal({
|
|
12
12
|
* projectRoot: '/path/to/project',
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* @example With Progress Tracking
|
|
22
22
|
* ```typescript
|
|
23
|
-
* import { deployToLocal } from 'deploy-ability/local';
|
|
23
|
+
* import { deployToLocal } from '@kadi.build/deploy-ability/local';
|
|
24
24
|
*
|
|
25
25
|
* const result = await deployToLocal({
|
|
26
26
|
* projectRoot: process.cwd(),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @example Basic Usage
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { deployToLocal } from 'deploy-ability/local';
|
|
9
|
+
* import { deployToLocal } from '@kadi.build/deploy-ability/local';
|
|
10
10
|
*
|
|
11
11
|
* const result = await deployToLocal({
|
|
12
12
|
* projectRoot: '/path/to/project',
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* @example With Progress Tracking
|
|
22
22
|
* ```typescript
|
|
23
|
-
* import { deployToLocal } from 'deploy-ability/local';
|
|
23
|
+
* import { deployToLocal } from '@kadi.build/deploy-ability/local';
|
|
24
24
|
*
|
|
25
25
|
* const result = await deployToLocal({
|
|
26
26
|
* projectRoot: process.cwd(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kadi.build/deploy-ability",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Programmatic deployment library for KADI - deploy to Akash Network, local Docker, and other platforms without CLI dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|