@helium/blockchain-api 0.3.10 → 0.3.12
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 +670 -257
- package/dist/index.js +115 -88
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -74,6 +74,48 @@ var RewardSplitInputSchema = z.discriminatedUnion("type", [
|
|
|
74
74
|
tokenAmount: TokenAmountInputSchema
|
|
75
75
|
})
|
|
76
76
|
]);
|
|
77
|
+
function typedTransactionData(metadataSchema) {
|
|
78
|
+
return z.object({
|
|
79
|
+
transactions: z.array(
|
|
80
|
+
z.object({
|
|
81
|
+
serializedTransaction: z.string(),
|
|
82
|
+
metadata: metadataSchema.optional()
|
|
83
|
+
})
|
|
84
|
+
),
|
|
85
|
+
parallel: z.boolean(),
|
|
86
|
+
tag: z.string().optional()
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function createTransactionResponse() {
|
|
90
|
+
return z.object({
|
|
91
|
+
transactionData: TransactionDataSchema,
|
|
92
|
+
estimatedSolFee: TokenAmountOutputSchema.describe(
|
|
93
|
+
"Estimated total SOL fee including rent, priority fees, and automation costs"
|
|
94
|
+
)
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function createTypedTransactionResponse(metadataSchema) {
|
|
98
|
+
return z.object({
|
|
99
|
+
transactionData: typedTransactionData(metadataSchema),
|
|
100
|
+
estimatedSolFee: TokenAmountOutputSchema.describe(
|
|
101
|
+
"Estimated total SOL fee including rent, priority fees, and automation costs"
|
|
102
|
+
)
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function createPaginatedTransactionResponse() {
|
|
106
|
+
return createTransactionResponse().extend({
|
|
107
|
+
hasMore: z.boolean().describe(
|
|
108
|
+
"True if more work remains \u2014 call again with the same arguments to continue."
|
|
109
|
+
)
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function createTypedPaginatedTransactionResponse(metadataSchema) {
|
|
113
|
+
return createTypedTransactionResponse(metadataSchema).extend({
|
|
114
|
+
hasMore: z.boolean().describe(
|
|
115
|
+
"True if more work remains \u2014 call again with the same arguments to continue."
|
|
116
|
+
)
|
|
117
|
+
});
|
|
118
|
+
}
|
|
77
119
|
var GetTokensInputSchema = z.object({
|
|
78
120
|
limit: z.coerce.number().int().min(1).max(100).default(50)
|
|
79
121
|
});
|
|
@@ -208,9 +250,8 @@ var BridgeTransferSchema = z.object({
|
|
|
208
250
|
to_address: z.string()
|
|
209
251
|
})
|
|
210
252
|
}).passthrough();
|
|
211
|
-
var SendFundsOutputSchema =
|
|
212
|
-
bridgeTransfer: BridgeTransferSchema
|
|
213
|
-
transactionData: TransactionDataSchema
|
|
253
|
+
var SendFundsOutputSchema = createTransactionResponse().extend({
|
|
254
|
+
bridgeTransfer: BridgeTransferSchema
|
|
214
255
|
});
|
|
215
256
|
var UpdateTransferOutputSchema = z.object({
|
|
216
257
|
success: z.boolean()
|
|
@@ -353,15 +394,41 @@ var UnassignProxiesInputSchema = z.object({
|
|
|
353
394
|
proxyKey: PublicKeySchema.describe("Public key of the proxy to unassign"),
|
|
354
395
|
positionMints: z.array(PublicKeySchema).min(1).describe("Array of position NFT mint addresses to unassign proxy for")
|
|
355
396
|
});
|
|
356
|
-
var
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
),
|
|
361
|
-
hasMore: z.boolean().optional().describe(
|
|
362
|
-
"True if more work remains \u2014 call again with the same arguments to continue. Used for multi-batch reward claiming and large position sets."
|
|
363
|
-
)
|
|
397
|
+
var CreatePositionMetadataSchema = z.object({
|
|
398
|
+
type: z.string(),
|
|
399
|
+
description: z.string(),
|
|
400
|
+
positionMint: z.string().optional()
|
|
364
401
|
});
|
|
402
|
+
var SplitPositionMetadataSchema = z.object({
|
|
403
|
+
type: z.string(),
|
|
404
|
+
description: z.string(),
|
|
405
|
+
newPositionMint: z.string().optional()
|
|
406
|
+
});
|
|
407
|
+
var RelinquishAllVotesMetadataSchema = z.object({
|
|
408
|
+
type: z.string(),
|
|
409
|
+
description: z.string(),
|
|
410
|
+
votesRelinquished: z.number().optional()
|
|
411
|
+
});
|
|
412
|
+
var CreatePositionResponseSchema = createTypedTransactionResponse(
|
|
413
|
+
CreatePositionMetadataSchema
|
|
414
|
+
);
|
|
415
|
+
var ClosePositionResponseSchema = createTransactionResponse();
|
|
416
|
+
var ExtendPositionResponseSchema = createTransactionResponse();
|
|
417
|
+
var FlipLockupKindResponseSchema = createTransactionResponse();
|
|
418
|
+
var ResetLockupResponseSchema = createTransactionResponse();
|
|
419
|
+
var SplitPositionResponseSchema = createTypedTransactionResponse(
|
|
420
|
+
SplitPositionMetadataSchema
|
|
421
|
+
);
|
|
422
|
+
var TransferPositionResponseSchema = createTransactionResponse();
|
|
423
|
+
var ExtendDelegationResponseSchema = createTransactionResponse();
|
|
424
|
+
var DelegatePositionsResponseSchema = createPaginatedTransactionResponse();
|
|
425
|
+
var ClaimDelegationRewardsResponseSchema = createPaginatedTransactionResponse();
|
|
426
|
+
var UndelegatePositionResponseSchema = createPaginatedTransactionResponse();
|
|
427
|
+
var VoteResponseSchema = createPaginatedTransactionResponse();
|
|
428
|
+
var RelinquishVoteResponseSchema = createPaginatedTransactionResponse();
|
|
429
|
+
var RelinquishPositionVotesResponseSchema = createTypedPaginatedTransactionResponse(RelinquishAllVotesMetadataSchema);
|
|
430
|
+
var AssignProxiesResponseSchema = createPaginatedTransactionResponse();
|
|
431
|
+
var UnassignProxiesResponseSchema = createPaginatedTransactionResponse();
|
|
365
432
|
var HealthResponseSchema = z.object({
|
|
366
433
|
ok: z.boolean(),
|
|
367
434
|
error: z.string().optional()
|
|
@@ -395,14 +462,8 @@ var TokenBalanceDataSchema = z.object({
|
|
|
395
462
|
solBalanceUsd: z.number(),
|
|
396
463
|
tokens: z.array(TokenAccountSchema)
|
|
397
464
|
});
|
|
398
|
-
var TransferOutputSchema =
|
|
399
|
-
|
|
400
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
401
|
-
});
|
|
402
|
-
var CreateHntAccountOutputSchema = z.object({
|
|
403
|
-
transactionData: TransactionDataSchema,
|
|
404
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
405
|
-
});
|
|
465
|
+
var TransferOutputSchema = createTransactionResponse();
|
|
466
|
+
var CreateHntAccountOutputSchema = createTransactionResponse();
|
|
406
467
|
var HotspotTypeSchema = z.enum(["iot", "mobile", "all"]);
|
|
407
468
|
var GetHotspotsInputSchema = z.object({
|
|
408
469
|
walletAddress: WalletAddressSchema,
|
|
@@ -511,18 +572,14 @@ var HotspotsDataSchema = z.object({
|
|
|
511
572
|
page: z.number(),
|
|
512
573
|
totalPages: z.number()
|
|
513
574
|
});
|
|
514
|
-
var ClaimRewardsOutputSchema =
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
var
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
var UpdateRewardsDestinationOutputSchema = z.object({
|
|
523
|
-
transactionData: TransactionDataSchema,
|
|
524
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
525
|
-
});
|
|
575
|
+
var ClaimRewardsOutputSchema = createTransactionResponse();
|
|
576
|
+
var TransferHotspotOutputSchema = createTransactionResponse();
|
|
577
|
+
var UpdateRewardsDestinationOutputSchema = createTransactionResponse();
|
|
578
|
+
var CreateSplitOutputSchema = createTransactionResponse();
|
|
579
|
+
var DeleteSplitOutputSchema = createTransactionResponse();
|
|
580
|
+
var SetupAutomationOutputSchema = createTransactionResponse();
|
|
581
|
+
var FundAutomationOutputSchema = createTransactionResponse();
|
|
582
|
+
var CloseAutomationOutputSchema = createTransactionResponse();
|
|
526
583
|
var SplitShareSchema = z.object({
|
|
527
584
|
wallet: z.string(),
|
|
528
585
|
delegate: z.string(),
|
|
@@ -535,14 +592,6 @@ var SplitResponseSchema = z.object({
|
|
|
535
592
|
splitAddress: z.string(),
|
|
536
593
|
shares: z.array(SplitShareSchema)
|
|
537
594
|
});
|
|
538
|
-
var CreateSplitOutputSchema = z.object({
|
|
539
|
-
transactionData: TransactionDataSchema,
|
|
540
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
541
|
-
});
|
|
542
|
-
var DeleteSplitOutputSchema = z.object({
|
|
543
|
-
transactionData: TransactionDataSchema,
|
|
544
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
545
|
-
});
|
|
546
595
|
var AutomationStatusOutputSchema = z.object({
|
|
547
596
|
hasExistingAutomation: z.boolean(),
|
|
548
597
|
isOutOfSol: z.boolean(),
|
|
@@ -571,18 +620,6 @@ var AutomationStatusOutputSchema = z.object({
|
|
|
571
620
|
pdaWalletBalance: z.string()
|
|
572
621
|
// lamports as string
|
|
573
622
|
});
|
|
574
|
-
var SetupAutomationOutputSchema = z.object({
|
|
575
|
-
transactionData: TransactionDataSchema,
|
|
576
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
577
|
-
});
|
|
578
|
-
var FundAutomationOutputSchema = z.object({
|
|
579
|
-
transactionData: TransactionDataSchema,
|
|
580
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
581
|
-
});
|
|
582
|
-
var CloseAutomationOutputSchema = z.object({
|
|
583
|
-
transactionData: TransactionDataSchema,
|
|
584
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
585
|
-
});
|
|
586
623
|
var FundingEstimateOutputSchema = z.object({
|
|
587
624
|
rentFee: z.number(),
|
|
588
625
|
// Initial setup rent (BASE_AUTOMATION_RENT + TASK_RETURN_ACCOUNT_SIZE) if automation doesn't exist, 0 otherwise
|
|
@@ -646,9 +683,7 @@ var UpdateHotspotInfoInputSchema = z.discriminatedUnion("deviceType", [
|
|
|
646
683
|
IotUpdateSchema,
|
|
647
684
|
MobileUpdateSchema
|
|
648
685
|
]);
|
|
649
|
-
var UpdateHotspotInfoOutputSchema =
|
|
650
|
-
transactionData: TransactionDataSchema,
|
|
651
|
-
estimatedSolFee: TokenAmountOutputSchema,
|
|
686
|
+
var UpdateHotspotInfoOutputSchema = createTransactionResponse().extend({
|
|
652
687
|
appliedTo: z.object({
|
|
653
688
|
iot: z.boolean(),
|
|
654
689
|
mobile: z.boolean()
|
|
@@ -989,19 +1024,11 @@ var WelcomePackSchema = z.object({
|
|
|
989
1024
|
hotspot: HotspotSchema.nullable()
|
|
990
1025
|
});
|
|
991
1026
|
var WelcomePackListOutputSchema = z.array(WelcomePackSchema);
|
|
992
|
-
var WelcomePackCreateOutputSchema =
|
|
993
|
-
welcomePack: WelcomePackSchema
|
|
994
|
-
transactionData: TransactionDataSchema,
|
|
995
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
996
|
-
});
|
|
997
|
-
var WelcomePackDeleteOutputSchema = z.object({
|
|
998
|
-
transactionData: TransactionDataSchema,
|
|
999
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
1000
|
-
});
|
|
1001
|
-
var WelcomePackClaimOutputSchema = z.object({
|
|
1002
|
-
transactionData: TransactionDataSchema,
|
|
1003
|
-
estimatedSolFee: TokenAmountOutputSchema
|
|
1027
|
+
var WelcomePackCreateOutputSchema = createTransactionResponse().extend({
|
|
1028
|
+
welcomePack: WelcomePackSchema
|
|
1004
1029
|
});
|
|
1030
|
+
var WelcomePackDeleteOutputSchema = createTransactionResponse();
|
|
1031
|
+
var WelcomePackClaimOutputSchema = createTransactionResponse();
|
|
1005
1032
|
var WelcomePackInviteOutputSchema = z.object({
|
|
1006
1033
|
message: z.string(),
|
|
1007
1034
|
expirationTs: z.number()
|
|
@@ -1210,97 +1237,97 @@ var governanceContract = oc.tag("Governance").prefix("/governance").router({
|
|
|
1210
1237
|
path: "/positions",
|
|
1211
1238
|
summary: "Create staking position",
|
|
1212
1239
|
description: "Create a new staking position with specified lockup parameters. Optionally delegate to a sub-DAO immediately."
|
|
1213
|
-
}).input(CreatePositionInputSchema).errors({ BAD_REQUEST, INSUFFICIENT_FUNDS }).output(
|
|
1240
|
+
}).input(CreatePositionInputSchema).errors({ BAD_REQUEST, INSUFFICIENT_FUNDS }).output(CreatePositionResponseSchema),
|
|
1214
1241
|
closePosition: oc.route({
|
|
1215
1242
|
method: "POST",
|
|
1216
1243
|
path: "/positions/{positionMint}/close",
|
|
1217
1244
|
summary: "Close staking position",
|
|
1218
1245
|
description: "Close an expired staking position and withdraw all deposited tokens. Position must have no active votes and lockup must be expired."
|
|
1219
|
-
}).input(ClosePositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, UNAUTHORIZED, INSUFFICIENT_FUNDS }).output(
|
|
1246
|
+
}).input(ClosePositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, UNAUTHORIZED, INSUFFICIENT_FUNDS }).output(ClosePositionResponseSchema),
|
|
1220
1247
|
extendPosition: oc.route({
|
|
1221
1248
|
method: "POST",
|
|
1222
1249
|
path: "/positions/{positionMint}/extend",
|
|
1223
1250
|
summary: "Extend position lockup",
|
|
1224
1251
|
description: "Extend the lockup period of an existing staking position."
|
|
1225
|
-
}).input(ExtendPositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1252
|
+
}).input(ExtendPositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(ExtendPositionResponseSchema),
|
|
1226
1253
|
flipLockupKind: oc.route({
|
|
1227
1254
|
method: "POST",
|
|
1228
1255
|
path: "/positions/{positionMint}/flip-lockup",
|
|
1229
1256
|
summary: "Flip lockup kind",
|
|
1230
1257
|
description: "Switch position lockup between cliff and constant. Cliff unlocks at a specific time, constant never decays."
|
|
1231
|
-
}).input(FlipLockupKindInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1258
|
+
}).input(FlipLockupKindInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(FlipLockupKindResponseSchema),
|
|
1232
1259
|
resetLockup: oc.route({
|
|
1233
1260
|
method: "POST",
|
|
1234
1261
|
path: "/positions/{positionMint}/reset-lockup",
|
|
1235
1262
|
summary: "Reset position lockup",
|
|
1236
1263
|
description: "Reset both lockup kind and period for a position. Allows changing cliff/constant and duration in one transaction."
|
|
1237
|
-
}).input(ResetLockupInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1264
|
+
}).input(ResetLockupInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(ResetLockupResponseSchema),
|
|
1238
1265
|
splitPosition: oc.route({
|
|
1239
1266
|
method: "POST",
|
|
1240
1267
|
path: "/positions/{positionMint}/split",
|
|
1241
1268
|
summary: "Split position",
|
|
1242
1269
|
description: "Split tokens from an existing position into a new position with its own lockup parameters."
|
|
1243
|
-
}).input(SplitPositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1270
|
+
}).input(SplitPositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(SplitPositionResponseSchema),
|
|
1244
1271
|
transferPosition: oc.route({
|
|
1245
1272
|
method: "POST",
|
|
1246
1273
|
path: "/positions/{positionMint}/transfer",
|
|
1247
1274
|
summary: "Transfer between positions",
|
|
1248
1275
|
description: "Transfer tokens from one position to another. Both positions must have no active votes."
|
|
1249
|
-
}).input(TransferPositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1276
|
+
}).input(TransferPositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(TransferPositionResponseSchema),
|
|
1250
1277
|
delegatePositions: oc.route({
|
|
1251
1278
|
method: "POST",
|
|
1252
1279
|
path: "/positions/delegate/{subDaoMint}",
|
|
1253
1280
|
summary: "Delegate positions",
|
|
1254
1281
|
description: "Delegate one or more positions to a sub-DAO. When changing delegation (already delegated to a different sub-DAO), automatically claims pending rewards first. If many epochs need claiming, may require multiple API calls - check hasMore in the response. Automatically handles expired delegations (claim, close, re-delegate) and renewable delegations (extend expiration). Optionally enable/disable automation for reward claiming. Safe to call repeatedly with the same positions. Supports proxy voting \u2014 positions proxied to the caller are auto-detected."
|
|
1255
|
-
}).input(DelegatePositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1282
|
+
}).input(DelegatePositionInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(DelegatePositionsResponseSchema),
|
|
1256
1283
|
claimDelegationRewards: oc.route({
|
|
1257
1284
|
method: "POST",
|
|
1258
1285
|
path: "/positions/claim-rewards",
|
|
1259
1286
|
summary: "Claim delegation rewards",
|
|
1260
1287
|
description: "Claim delegation rewards for one or more positions. May produce multiple transactions if rewards span many epochs. If many epochs need claiming, may require multiple API calls - check hasMore in the response. Safe to call repeatedly with the same positions - returns empty transactions when nothing left to claim."
|
|
1261
|
-
}).input(ClaimDelegationRewardsInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1288
|
+
}).input(ClaimDelegationRewardsInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(ClaimDelegationRewardsResponseSchema),
|
|
1262
1289
|
undelegatePosition: oc.route({
|
|
1263
1290
|
method: "POST",
|
|
1264
1291
|
path: "/positions/{positionMint}/undelegate",
|
|
1265
1292
|
summary: "Undelegate position",
|
|
1266
1293
|
description: "Remove delegation from a position. Automatically claims any pending rewards before undelegating. If many epochs need claiming, may require multiple API calls - check hasMore in the response. Submit the returned transactions, then call again to get remaining claims or the final undelegate transaction."
|
|
1267
|
-
}).input(UndelegateInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1294
|
+
}).input(UndelegateInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(UndelegatePositionResponseSchema),
|
|
1268
1295
|
extendDelegation: oc.route({
|
|
1269
1296
|
method: "POST",
|
|
1270
1297
|
path: "/positions/{positionMint}/delegation/extend",
|
|
1271
1298
|
summary: "Extend delegation",
|
|
1272
1299
|
description: "Extend the expiration of a delegated position to the current season end."
|
|
1273
|
-
}).input(ExtendDelegationInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1300
|
+
}).input(ExtendDelegationInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(ExtendDelegationResponseSchema),
|
|
1274
1301
|
vote: oc.route({
|
|
1275
1302
|
method: "POST",
|
|
1276
1303
|
path: "/proposals/{proposalKey}/vote",
|
|
1277
1304
|
summary: "Vote on proposal",
|
|
1278
|
-
description: "Cast votes on a proposal using one or more positions. Auto-detects owned vs proxied positions \u2014 proxied positions use proxy vote path. Automatically queues cleanup tasks to relinquish vote markers after the proposal ends."
|
|
1279
|
-
}).input(VoteInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1305
|
+
description: "Cast votes on a proposal using one or more positions. Auto-detects owned vs proxied positions \u2014 proxied positions use proxy vote path. Automatically queues cleanup tasks to relinquish vote markers after the proposal ends. If many positions are provided, may require multiple API calls - check hasMore in the response."
|
|
1306
|
+
}).input(VoteInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(VoteResponseSchema),
|
|
1280
1307
|
relinquishVote: oc.route({
|
|
1281
1308
|
method: "POST",
|
|
1282
1309
|
path: "/proposals/{proposalKey}/relinquish-votes",
|
|
1283
1310
|
summary: "Relinquish vote",
|
|
1284
|
-
description: "Remove votes from a specific choice on a proposal for one or more positions. Auto-detects owned vs proxied positions \u2014 proxied positions use proxy relinquish path."
|
|
1285
|
-
}).input(RelinquishVoteInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1311
|
+
description: "Remove votes from a specific choice on a proposal for one or more positions. Auto-detects owned vs proxied positions \u2014 proxied positions use proxy relinquish path. If many positions are provided, may require multiple API calls - check hasMore in the response."
|
|
1312
|
+
}).input(RelinquishVoteInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(RelinquishVoteResponseSchema),
|
|
1286
1313
|
relinquishPositionVotes: oc.route({
|
|
1287
1314
|
method: "POST",
|
|
1288
1315
|
path: "/positions/{positionMint}/relinquish-vote",
|
|
1289
1316
|
summary: "Relinquish all position votes",
|
|
1290
|
-
description: "Remove ALL active votes from a single position across all proposals in an organization."
|
|
1291
|
-
}).input(RelinquishPositionVotesInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1317
|
+
description: "Remove ALL active votes from a single position across all proposals in an organization. If many votes exist, may require multiple API calls - check hasMore in the response."
|
|
1318
|
+
}).input(RelinquishPositionVotesInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(RelinquishPositionVotesResponseSchema),
|
|
1292
1319
|
assignProxies: oc.route({
|
|
1293
1320
|
method: "POST",
|
|
1294
1321
|
path: "/proxy/{proxyKey}/assign",
|
|
1295
1322
|
summary: "Assign voting proxy",
|
|
1296
|
-
description: "Delegate voting power to a proxy recipient for one or more positions. The proxy can vote on your behalf until the expiration time. If the recipient has already voted on open proposals, automatically propagates those votes to delegated positions via countProxyVoteV0."
|
|
1297
|
-
}).input(AssignProxiesInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1323
|
+
description: "Delegate voting power to a proxy recipient for one or more positions. The proxy can vote on your behalf until the expiration time. If the recipient has already voted on open proposals, automatically propagates those votes to delegated positions via countProxyVoteV0. If many positions are provided, may require multiple API calls - check hasMore in the response."
|
|
1324
|
+
}).input(AssignProxiesInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(AssignProxiesResponseSchema),
|
|
1298
1325
|
unassignProxies: oc.route({
|
|
1299
1326
|
method: "POST",
|
|
1300
1327
|
path: "/proxy/{proxyKey}/unassign",
|
|
1301
1328
|
summary: "Unassign voting proxy",
|
|
1302
|
-
description: "Remove voting proxy delegation from one or more positions, returning voting power to the owner."
|
|
1303
|
-
}).input(UnassignProxiesInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(
|
|
1329
|
+
description: "Remove voting proxy delegation from one or more positions, returning voting power to the owner. If many positions are provided, may require multiple API calls - check hasMore in the response."
|
|
1330
|
+
}).input(UnassignProxiesInputSchema).errors({ BAD_REQUEST, NOT_FOUND, INSUFFICIENT_FUNDS }).output(UnassignProxiesResponseSchema)
|
|
1304
1331
|
});
|
|
1305
1332
|
var rewardContract = oc.tag("Reward Contract").prefix("/hotspots").router({
|
|
1306
1333
|
find: oc.route({
|
|
@@ -1566,4 +1593,4 @@ var fullApiContract = oc.router({
|
|
|
1566
1593
|
migration: migrationContract
|
|
1567
1594
|
});
|
|
1568
1595
|
|
|
1569
|
-
export { AssignProxiesInputSchema, AutomationScheduleSchema, AutomationStatusOutputSchema, BAD_REQUEST, BankAccountListOutputSchema, BankAccountSchema, BatchStatusOutputSchema, BridgeTransferSchema, CONFLICT, ClaimDelegationRewardsInputSchema, ClaimInviteRequestSchema, ClaimInviteResponseSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, ClosePositionInputSchema, CreateBankAccountInputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreatePositionInputSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DelegatePositionInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, EstimateInputSchema, EstimateOutputSchema, ExtendDelegationInputSchema, ExtendPositionInputSchema, FeesOutputSchema, FindRewardContractResponseSchema, FlipLockupKindInputSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetBalancesInputSchema, GetBankAccountInputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetInputSchema, GetInstructionsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetQuoteInputSchema, GetSendQuoteInputSchema, GetSplitInputSchema, GetTokensInputSchema, GetTransferInputSchema,
|
|
1596
|
+
export { AssignProxiesInputSchema, AssignProxiesResponseSchema, AutomationScheduleSchema, AutomationStatusOutputSchema, BAD_REQUEST, BankAccountListOutputSchema, BankAccountSchema, BatchStatusOutputSchema, BridgeTransferSchema, CONFLICT, ClaimDelegationRewardsInputSchema, ClaimDelegationRewardsResponseSchema, ClaimInviteRequestSchema, ClaimInviteResponseSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, ClosePositionInputSchema, ClosePositionResponseSchema, CreateBankAccountInputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreatePositionInputSchema, CreatePositionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DelegatePositionInputSchema, DelegatePositionsResponseSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, EstimateInputSchema, EstimateOutputSchema, ExtendDelegationInputSchema, ExtendDelegationResponseSchema, ExtendPositionInputSchema, ExtendPositionResponseSchema, FeesOutputSchema, FindRewardContractResponseSchema, FlipLockupKindInputSchema, FlipLockupKindResponseSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetBalancesInputSchema, GetBankAccountInputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetInputSchema, GetInstructionsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetQuoteInputSchema, GetSendQuoteInputSchema, GetSplitInputSchema, GetTokensInputSchema, GetTransferInputSchema, HealthResponseSchema, HeliumPublicKeySchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, InitKycInputSchema, KycStatusOutputSchema, LockupKindSchema, MigratableHotspotSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema, MigrateInputSchema, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema, NOT_FOUND, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, QuoteResponseSchema, RATE_LIMITED, RelinquishPositionVotesInputSchema, RelinquishPositionVotesResponseSchema, RelinquishVoteInputSchema, RelinquishVoteResponseSchema, ResetLockupInputSchema, ResetLockupResponseSchema, ResubmitInputSchema, ResubmitOutputSchema, RewardSplitInputSchema, SIMULATION_FAILED, ScheduleInputSchema, SendFundsInputSchema, SendFundsOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitPositionInputSchema, SplitPositionResponseSchema, SplitResponseSchema, SplitShareSchema, SubmitInputSchema, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, TokenAccountSchema, TokenAmountInputSchema, TokenAmountOutputSchema, TokenBalanceDataSchema, TokenListOutputSchema, TokenSchema, TransactionBatchRequestSchema, TransactionBatchResponseSchema, TransactionDataSchema, TransactionItemSchema, TransactionMetadataSchema, TransactionStatusSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, TransferInputSchema, TransferOutputSchema, TransferPositionInputSchema, TransferPositionResponseSchema, UNAUTHENTICATED, UNAUTHORIZED, UnassignProxiesInputSchema, UnassignProxiesResponseSchema, UndelegateInputSchema, UndelegatePositionResponseSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema, VoteInputSchema, VoteResponseSchema, WalletAddressSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, createPaginatedTransactionResponse, createTransactionResponse, createTypedPaginatedTransactionResponse, createTypedTransactionResponse, fullApiContract, typedTransactionData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helium/blockchain-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "TypeScript client and schemas for the Helium Blockchain API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
"tsup": "^8.0.0",
|
|
35
35
|
"typescript": "^5.0.0"
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|