@helium/blockchain-api 0.11.12 → 0.11.14
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/chunk-5AFWG4KQ.js +28 -0
- package/dist/{chunk-2SBYC2AH.js → chunk-GCE3A6BK.js} +24 -3
- package/dist/contracts.d.ts +316 -1
- package/dist/contracts.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/schemas/data-credits.d.ts +19 -0
- package/dist/schemas/data-credits.js +2 -0
- package/dist/schemas.d.ts +1 -0
- package/dist/schemas.js +2 -1
- package/package.json +1 -1
- /package/dist/{chunk-TEWZC6CW.js → chunk-TPPTOJHD.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PublicKeySchema } from './chunk-YVB4ENKX.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
var MintDataCreditsInputSchema = z.object({
|
|
5
|
+
owner: PublicKeySchema.describe(
|
|
6
|
+
"Wallet address of the user minting data credits (used as fee payer and HNT source)"
|
|
7
|
+
),
|
|
8
|
+
dcAmount: z.string().regex(/^\d+$/, "Amount must be a whole number").optional().describe("Amount of DC to mint (in smallest unit). Provide either dcAmount or hntAmount."),
|
|
9
|
+
hntAmount: z.string().regex(/^\d+$/, "Amount must be a whole number in bones").optional().describe(
|
|
10
|
+
"Amount of HNT to burn (in bones, 1 HNT = 100000000 bones). Provide either dcAmount or hntAmount."
|
|
11
|
+
),
|
|
12
|
+
recipient: PublicKeySchema.optional().describe(
|
|
13
|
+
"Recipient wallet for the minted DC. Defaults to the owner."
|
|
14
|
+
)
|
|
15
|
+
});
|
|
16
|
+
var DelegateDataCreditsInputSchema = z.object({
|
|
17
|
+
owner: PublicKeySchema.describe(
|
|
18
|
+
"Wallet address of the DC owner (signer and fee payer)"
|
|
19
|
+
),
|
|
20
|
+
routerKey: z.string().min(1).describe("Router key string to delegate data credits to"),
|
|
21
|
+
amount: z.string().regex(/^\d+$/, "Amount must be a whole number").describe("Amount of DC to delegate (in smallest unit, DC has 0 decimals)"),
|
|
22
|
+
mint: PublicKeySchema.describe(
|
|
23
|
+
"SubDAO token mint (e.g. MOBILE or IOT mint) to determine which subDAO to delegate to"
|
|
24
|
+
),
|
|
25
|
+
memo: z.string().optional().describe("Optional memo to include in the transaction")
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export { DelegateDataCreditsInputSchema, MintDataCreditsInputSchema };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BridgeWebhookInputSchema, BridgeWebhookOutputSchema } from './chunk-7CTJX35S.js';
|
|
2
1
|
import { INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, BAD_REQUEST, UNAUTHORIZED, NOT_FOUND, CONFLICT, SIMULATION_FAILED, UNAUTHENTICATED } from './chunk-6EPXJJY5.js';
|
|
2
|
+
import { BridgeWebhookInputSchema, BridgeWebhookOutputSchema } from './chunk-7CTJX35S.js';
|
|
3
3
|
import { MigrateInputSchema, MigrateOutputSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema } from './chunk-NBOSJXWK.js';
|
|
4
4
|
import { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, DeleteRewardContractTransactionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-4CY5D37F.js';
|
|
5
5
|
import { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, TransferInputSchema, TransferOutputSchema, GetBalancesInputSchema, TokenBalanceDataSchema } from './chunk-MSIA3ZUI.js';
|
|
6
6
|
import { EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, PayerBatchesOutputSchema, GetByPayerInputSchema, ResubmitInputSchema, ResubmitOutputSchema, GetInputSchema, BatchStatusOutputSchema, SubmitInputSchema, SubmitOutputSchema } from './chunk-7R4XQ5SN.js';
|
|
7
|
+
import { DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-5AFWG4KQ.js';
|
|
7
8
|
import { WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetInputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema } from './chunk-T7OKPHTD.js';
|
|
8
9
|
import { UpdateTransferInputSchema, UpdateTransferOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, GetSendQuoteInputSchema, QuoteOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, CreateBankAccountInputSchema, BankAccountSchema, BankAccountListOutputSchema, FeesOutputSchema, InitKycInputSchema, KycStatusOutputSchema } from './chunk-RD5LUTM5.js';
|
|
9
10
|
import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-5ZPW3MRC.js';
|
|
@@ -446,6 +447,24 @@ var migrationContract = oc.tag("Migration").router({
|
|
|
446
447
|
INSUFFICIENT_FUNDS
|
|
447
448
|
})
|
|
448
449
|
});
|
|
450
|
+
var dataCreditsContract = oc.tag("Data Credits").router({
|
|
451
|
+
mint: oc.route({
|
|
452
|
+
method: "POST",
|
|
453
|
+
path: "/data-credits/mint",
|
|
454
|
+
summary: "Mint data credits by burning HNT"
|
|
455
|
+
}).input(MintDataCreditsInputSchema).output(TransactionDataSchema).errors({
|
|
456
|
+
BAD_REQUEST,
|
|
457
|
+
INSUFFICIENT_FUNDS
|
|
458
|
+
}),
|
|
459
|
+
delegate: oc.route({
|
|
460
|
+
method: "POST",
|
|
461
|
+
path: "/data-credits/delegate",
|
|
462
|
+
summary: "Delegate data credits to a router key"
|
|
463
|
+
}).input(DelegateDataCreditsInputSchema).output(TransactionDataSchema).errors({
|
|
464
|
+
BAD_REQUEST,
|
|
465
|
+
INSUFFICIENT_FUNDS
|
|
466
|
+
})
|
|
467
|
+
});
|
|
449
468
|
var apiContract = oc.router({
|
|
450
469
|
governance: governanceContract,
|
|
451
470
|
health: healthContract,
|
|
@@ -454,7 +473,9 @@ var apiContract = oc.router({
|
|
|
454
473
|
rewardContract,
|
|
455
474
|
swap: swapContract,
|
|
456
475
|
transactions: transactionsContract,
|
|
457
|
-
welcomePacks: welcomePacksContract
|
|
476
|
+
welcomePacks: welcomePacksContract,
|
|
477
|
+
migration: migrationContract,
|
|
478
|
+
dataCredits: dataCreditsContract
|
|
458
479
|
});
|
|
459
480
|
var fullApiContract = oc.router({
|
|
460
481
|
...apiContract,
|
|
@@ -463,4 +484,4 @@ var fullApiContract = oc.router({
|
|
|
463
484
|
migration: migrationContract
|
|
464
485
|
});
|
|
465
486
|
|
|
466
|
-
export { apiContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract };
|
|
487
|
+
export { apiContract, dataCreditsContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract };
|
package/dist/contracts.d.ts
CHANGED
|
@@ -3040,6 +3040,74 @@ declare const migrationContract: {
|
|
|
3040
3040
|
}>>, Record<never, never>>;
|
|
3041
3041
|
};
|
|
3042
3042
|
|
|
3043
|
+
declare const dataCreditsContract: {
|
|
3044
|
+
mint: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
3045
|
+
owner: zod.ZodString;
|
|
3046
|
+
dcAmount: zod.ZodOptional<zod.ZodString>;
|
|
3047
|
+
hntAmount: zod.ZodOptional<zod.ZodString>;
|
|
3048
|
+
recipient: zod.ZodOptional<zod.ZodString>;
|
|
3049
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3050
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
3051
|
+
serializedTransaction: zod.ZodString;
|
|
3052
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
3053
|
+
type: zod.ZodString;
|
|
3054
|
+
description: zod.ZodString;
|
|
3055
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
3056
|
+
}, zod_v4_core.$strip>>;
|
|
3057
|
+
parallel: zod.ZodBoolean;
|
|
3058
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
3059
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3060
|
+
BAD_REQUEST: {
|
|
3061
|
+
readonly status: 400;
|
|
3062
|
+
readonly message: "Invalid input data provided.";
|
|
3063
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3064
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
3065
|
+
}, zod_v4_core.$strip>>;
|
|
3066
|
+
};
|
|
3067
|
+
INSUFFICIENT_FUNDS: {
|
|
3068
|
+
readonly status: 400;
|
|
3069
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
3070
|
+
readonly data: zod.ZodObject<{
|
|
3071
|
+
required: zod.ZodNumber;
|
|
3072
|
+
available: zod.ZodNumber;
|
|
3073
|
+
}, zod_v4_core.$strip>;
|
|
3074
|
+
};
|
|
3075
|
+
}>>, Record<never, never>>;
|
|
3076
|
+
delegate: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
3077
|
+
owner: zod.ZodString;
|
|
3078
|
+
routerKey: zod.ZodString;
|
|
3079
|
+
amount: zod.ZodString;
|
|
3080
|
+
mint: zod.ZodString;
|
|
3081
|
+
memo: zod.ZodOptional<zod.ZodString>;
|
|
3082
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
3083
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
3084
|
+
serializedTransaction: zod.ZodString;
|
|
3085
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
3086
|
+
type: zod.ZodString;
|
|
3087
|
+
description: zod.ZodString;
|
|
3088
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
3089
|
+
}, zod_v4_core.$strip>>;
|
|
3090
|
+
parallel: zod.ZodBoolean;
|
|
3091
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
3092
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3093
|
+
BAD_REQUEST: {
|
|
3094
|
+
readonly status: 400;
|
|
3095
|
+
readonly message: "Invalid input data provided.";
|
|
3096
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3097
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
3098
|
+
}, zod_v4_core.$strip>>;
|
|
3099
|
+
};
|
|
3100
|
+
INSUFFICIENT_FUNDS: {
|
|
3101
|
+
readonly status: 400;
|
|
3102
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
3103
|
+
readonly data: zod.ZodObject<{
|
|
3104
|
+
required: zod.ZodNumber;
|
|
3105
|
+
available: zod.ZodNumber;
|
|
3106
|
+
}, zod_v4_core.$strip>;
|
|
3107
|
+
};
|
|
3108
|
+
}>>, Record<never, never>>;
|
|
3109
|
+
};
|
|
3110
|
+
|
|
3043
3111
|
/**
|
|
3044
3112
|
* Public API contract definition (for external consumers).
|
|
3045
3113
|
* Defines all routes, inputs, outputs, and errors for the Helium Blockchain API.
|
|
@@ -5634,6 +5702,186 @@ declare const apiContract: {
|
|
|
5634
5702
|
};
|
|
5635
5703
|
}>>>, Record<never, never>>;
|
|
5636
5704
|
};
|
|
5705
|
+
migration: {
|
|
5706
|
+
getHotspots: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5707
|
+
walletAddress: zod.ZodString;
|
|
5708
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5709
|
+
hotspots: zod.ZodArray<zod.ZodObject<{
|
|
5710
|
+
address: zod.ZodString;
|
|
5711
|
+
entityKey: zod.ZodString;
|
|
5712
|
+
name: zod.ZodString;
|
|
5713
|
+
type: zod.ZodEnum<{
|
|
5714
|
+
iot: "iot";
|
|
5715
|
+
mobile: "mobile";
|
|
5716
|
+
all: "all";
|
|
5717
|
+
}>;
|
|
5718
|
+
deviceType: zod.ZodEnum<{
|
|
5719
|
+
"iot-gateway": "iot-gateway";
|
|
5720
|
+
wifiIndoor: "wifiIndoor";
|
|
5721
|
+
wifiOutdoor: "wifiOutdoor";
|
|
5722
|
+
wifiDataOnly: "wifiDataOnly";
|
|
5723
|
+
cbrs: "cbrs";
|
|
5724
|
+
}>;
|
|
5725
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
5726
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
5727
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
5728
|
+
asset: zod.ZodString;
|
|
5729
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
5730
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
5731
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
5732
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
5733
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
5734
|
+
}, zod_v4_core.$strip>>;
|
|
5735
|
+
ownershipType: zod.ZodString;
|
|
5736
|
+
inWelcomePack: zod.ZodBoolean;
|
|
5737
|
+
splitWallets: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5738
|
+
}, zod_v4_core.$strip>>;
|
|
5739
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5740
|
+
BAD_REQUEST: {
|
|
5741
|
+
readonly status: 400;
|
|
5742
|
+
readonly message: "Invalid input data provided.";
|
|
5743
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5744
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5745
|
+
}, zod_v4_core.$strip>>;
|
|
5746
|
+
};
|
|
5747
|
+
}>>>, Record<never, never>>;
|
|
5748
|
+
migrate: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5749
|
+
sourceWallet: zod.ZodString;
|
|
5750
|
+
destinationWallet: zod.ZodString;
|
|
5751
|
+
hotspots: zod.ZodDefault<zod.ZodArray<zod.ZodString>>;
|
|
5752
|
+
tokens: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
5753
|
+
mint: zod.ZodString;
|
|
5754
|
+
amount: zod.ZodString;
|
|
5755
|
+
}, zod_v4_core.$strip>>>;
|
|
5756
|
+
password: zod.ZodOptional<zod.ZodString>;
|
|
5757
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5758
|
+
transactionData: zod.ZodObject<{
|
|
5759
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
5760
|
+
serializedTransaction: zod.ZodString;
|
|
5761
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
5762
|
+
type: zod.ZodString;
|
|
5763
|
+
description: zod.ZodString;
|
|
5764
|
+
signers: zod.ZodArray<zod.ZodEnum<{
|
|
5765
|
+
destination: "destination";
|
|
5766
|
+
source: "source";
|
|
5767
|
+
}>>;
|
|
5768
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
5769
|
+
}, zod_v4_core.$strip>>;
|
|
5770
|
+
parallel: zod.ZodBoolean;
|
|
5771
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
5772
|
+
}, zod_v4_core.$strip>;
|
|
5773
|
+
estimatedSolFee: zod.ZodObject<{
|
|
5774
|
+
amount: zod.ZodString;
|
|
5775
|
+
decimals: zod.ZodNumber;
|
|
5776
|
+
uiAmount: zod.ZodNullable<zod.ZodNumber>;
|
|
5777
|
+
uiAmountString: zod.ZodString;
|
|
5778
|
+
mint: zod.ZodString;
|
|
5779
|
+
}, zod_v4_core.$strip>;
|
|
5780
|
+
warnings: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5781
|
+
hasMore: zod.ZodOptional<zod.ZodBoolean>;
|
|
5782
|
+
nextParams: zod.ZodOptional<zod.ZodObject<{
|
|
5783
|
+
sourceWallet: zod.ZodString;
|
|
5784
|
+
destinationWallet: zod.ZodString;
|
|
5785
|
+
hotspots: zod.ZodDefault<zod.ZodArray<zod.ZodString>>;
|
|
5786
|
+
tokens: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
5787
|
+
mint: zod.ZodString;
|
|
5788
|
+
amount: zod.ZodString;
|
|
5789
|
+
}, zod_v4_core.$strip>>>;
|
|
5790
|
+
password: zod.ZodOptional<zod.ZodString>;
|
|
5791
|
+
}, zod_v4_core.$strip>>;
|
|
5792
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5793
|
+
UNAUTHORIZED: {
|
|
5794
|
+
readonly status: 403;
|
|
5795
|
+
readonly message: "You do not have permission to access this resource.";
|
|
5796
|
+
};
|
|
5797
|
+
BAD_REQUEST: {
|
|
5798
|
+
readonly status: 400;
|
|
5799
|
+
readonly message: "Invalid input data provided.";
|
|
5800
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5801
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5802
|
+
}, zod_v4_core.$strip>>;
|
|
5803
|
+
};
|
|
5804
|
+
NOT_FOUND: {
|
|
5805
|
+
readonly status: 404;
|
|
5806
|
+
readonly message: "The requested resource was not found.";
|
|
5807
|
+
};
|
|
5808
|
+
INSUFFICIENT_FUNDS: {
|
|
5809
|
+
readonly status: 400;
|
|
5810
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
5811
|
+
readonly data: zod.ZodObject<{
|
|
5812
|
+
required: zod.ZodNumber;
|
|
5813
|
+
available: zod.ZodNumber;
|
|
5814
|
+
}, zod_v4_core.$strip>;
|
|
5815
|
+
};
|
|
5816
|
+
}>>>, Record<never, never>>;
|
|
5817
|
+
};
|
|
5818
|
+
dataCredits: {
|
|
5819
|
+
mint: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5820
|
+
owner: zod.ZodString;
|
|
5821
|
+
dcAmount: zod.ZodOptional<zod.ZodString>;
|
|
5822
|
+
hntAmount: zod.ZodOptional<zod.ZodString>;
|
|
5823
|
+
recipient: zod.ZodOptional<zod.ZodString>;
|
|
5824
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5825
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
5826
|
+
serializedTransaction: zod.ZodString;
|
|
5827
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
5828
|
+
type: zod.ZodString;
|
|
5829
|
+
description: zod.ZodString;
|
|
5830
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
5831
|
+
}, zod_v4_core.$strip>>;
|
|
5832
|
+
parallel: zod.ZodBoolean;
|
|
5833
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
5834
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5835
|
+
BAD_REQUEST: {
|
|
5836
|
+
readonly status: 400;
|
|
5837
|
+
readonly message: "Invalid input data provided.";
|
|
5838
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5839
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5840
|
+
}, zod_v4_core.$strip>>;
|
|
5841
|
+
};
|
|
5842
|
+
INSUFFICIENT_FUNDS: {
|
|
5843
|
+
readonly status: 400;
|
|
5844
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
5845
|
+
readonly data: zod.ZodObject<{
|
|
5846
|
+
required: zod.ZodNumber;
|
|
5847
|
+
available: zod.ZodNumber;
|
|
5848
|
+
}, zod_v4_core.$strip>;
|
|
5849
|
+
};
|
|
5850
|
+
}>>>, Record<never, never>>;
|
|
5851
|
+
delegate: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5852
|
+
owner: zod.ZodString;
|
|
5853
|
+
routerKey: zod.ZodString;
|
|
5854
|
+
amount: zod.ZodString;
|
|
5855
|
+
mint: zod.ZodString;
|
|
5856
|
+
memo: zod.ZodOptional<zod.ZodString>;
|
|
5857
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5858
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
5859
|
+
serializedTransaction: zod.ZodString;
|
|
5860
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
5861
|
+
type: zod.ZodString;
|
|
5862
|
+
description: zod.ZodString;
|
|
5863
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
5864
|
+
}, zod_v4_core.$strip>>;
|
|
5865
|
+
parallel: zod.ZodBoolean;
|
|
5866
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
5867
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5868
|
+
BAD_REQUEST: {
|
|
5869
|
+
readonly status: 400;
|
|
5870
|
+
readonly message: "Invalid input data provided.";
|
|
5871
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5872
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
5873
|
+
}, zod_v4_core.$strip>>;
|
|
5874
|
+
};
|
|
5875
|
+
INSUFFICIENT_FUNDS: {
|
|
5876
|
+
readonly status: 400;
|
|
5877
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
5878
|
+
readonly data: zod.ZodObject<{
|
|
5879
|
+
required: zod.ZodNumber;
|
|
5880
|
+
available: zod.ZodNumber;
|
|
5881
|
+
}, zod_v4_core.$strip>;
|
|
5882
|
+
};
|
|
5883
|
+
}>>>, Record<never, never>>;
|
|
5884
|
+
};
|
|
5637
5885
|
};
|
|
5638
5886
|
/**
|
|
5639
5887
|
* Full API contract including internal-only routers.
|
|
@@ -8666,6 +8914,73 @@ declare const fullApiContract: {
|
|
|
8666
8914
|
};
|
|
8667
8915
|
}>>>>, Record<never, never>>;
|
|
8668
8916
|
};
|
|
8917
|
+
dataCredits: {
|
|
8918
|
+
mint: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
8919
|
+
owner: zod.ZodString;
|
|
8920
|
+
dcAmount: zod.ZodOptional<zod.ZodString>;
|
|
8921
|
+
hntAmount: zod.ZodOptional<zod.ZodString>;
|
|
8922
|
+
recipient: zod.ZodOptional<zod.ZodString>;
|
|
8923
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
8924
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
8925
|
+
serializedTransaction: zod.ZodString;
|
|
8926
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
8927
|
+
type: zod.ZodString;
|
|
8928
|
+
description: zod.ZodString;
|
|
8929
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
8930
|
+
}, zod_v4_core.$strip>>;
|
|
8931
|
+
parallel: zod.ZodBoolean;
|
|
8932
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
8933
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
8934
|
+
BAD_REQUEST: {
|
|
8935
|
+
readonly status: 400;
|
|
8936
|
+
readonly message: "Invalid input data provided.";
|
|
8937
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
8938
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
8939
|
+
}, zod_v4_core.$strip>>;
|
|
8940
|
+
};
|
|
8941
|
+
INSUFFICIENT_FUNDS: {
|
|
8942
|
+
readonly status: 400;
|
|
8943
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
8944
|
+
readonly data: zod.ZodObject<{
|
|
8945
|
+
required: zod.ZodNumber;
|
|
8946
|
+
available: zod.ZodNumber;
|
|
8947
|
+
}, zod_v4_core.$strip>;
|
|
8948
|
+
};
|
|
8949
|
+
}>>>>, Record<never, never>>;
|
|
8950
|
+
delegate: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
8951
|
+
owner: zod.ZodString;
|
|
8952
|
+
routerKey: zod.ZodString;
|
|
8953
|
+
amount: zod.ZodString;
|
|
8954
|
+
mint: zod.ZodString;
|
|
8955
|
+
memo: zod.ZodOptional<zod.ZodString>;
|
|
8956
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
8957
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
8958
|
+
serializedTransaction: zod.ZodString;
|
|
8959
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
8960
|
+
type: zod.ZodString;
|
|
8961
|
+
description: zod.ZodString;
|
|
8962
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
8963
|
+
}, zod_v4_core.$strip>>;
|
|
8964
|
+
parallel: zod.ZodBoolean;
|
|
8965
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
8966
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
8967
|
+
BAD_REQUEST: {
|
|
8968
|
+
readonly status: 400;
|
|
8969
|
+
readonly message: "Invalid input data provided.";
|
|
8970
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
8971
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
8972
|
+
}, zod_v4_core.$strip>>;
|
|
8973
|
+
};
|
|
8974
|
+
INSUFFICIENT_FUNDS: {
|
|
8975
|
+
readonly status: 400;
|
|
8976
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
8977
|
+
readonly data: zod.ZodObject<{
|
|
8978
|
+
required: zod.ZodNumber;
|
|
8979
|
+
available: zod.ZodNumber;
|
|
8980
|
+
}, zod_v4_core.$strip>;
|
|
8981
|
+
};
|
|
8982
|
+
}>>>>, Record<never, never>>;
|
|
8983
|
+
};
|
|
8669
8984
|
};
|
|
8670
8985
|
|
|
8671
|
-
export { apiContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract };
|
|
8986
|
+
export { apiContract, dataCreditsContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract };
|
package/dist/contracts.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { apiContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract } from './chunk-
|
|
2
|
-
import './chunk-7CTJX35S.js';
|
|
1
|
+
export { apiContract, dataCreditsContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract } from './chunk-GCE3A6BK.js';
|
|
3
2
|
import './chunk-6EPXJJY5.js';
|
|
3
|
+
import './chunk-7CTJX35S.js';
|
|
4
4
|
import './chunk-NBOSJXWK.js';
|
|
5
5
|
import './chunk-4CY5D37F.js';
|
|
6
6
|
import './chunk-MSIA3ZUI.js';
|
|
7
7
|
import './chunk-7R4XQ5SN.js';
|
|
8
|
+
import './chunk-5AFWG4KQ.js';
|
|
8
9
|
import './chunk-T7OKPHTD.js';
|
|
9
10
|
import './chunk-RD5LUTM5.js';
|
|
10
11
|
import './chunk-5ZPW3MRC.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { GetInstructionsInput, GetInstructionsInputSchema, GetQuoteInput, GetQuo
|
|
|
9
9
|
export { BatchStatusOutput, BatchStatusOutputSchema, EstimateInput, EstimateInputSchema, EstimateOutput, EstimateOutputSchema, GetByPayerAndTagInput, GetByPayerAndTagInputSchema, GetByPayerInput, GetByPayerInputSchema, GetInput, GetInputSchema, PayerBatchSummary, PayerBatchSummarySchema, PayerBatchesOutput, PayerBatchesOutputSchema, ResubmitInput, ResubmitInputSchema, ResubmitOutput, ResubmitOutputSchema, SubmitInput, SubmitInputSchema, SubmitOutput, SubmitOutputSchema, TransactionStatus, TransactionStatusSchema } from './schemas/transactions.js';
|
|
10
10
|
export { WelcomePack, WelcomePackClaimInput, WelcomePackClaimInputSchema, WelcomePackClaimOutput, WelcomePackClaimOutputSchema, WelcomePackCreateInput, WelcomePackCreateInputSchema, WelcomePackCreateOutput, WelcomePackCreateOutputSchema, WelcomePackDeleteInput, WelcomePackDeleteInputSchema, WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, WelcomePackGetInput, WelcomePackGetInputSchema, WelcomePackInviteInput, WelcomePackInviteInputSchema, WelcomePackInviteOutput, WelcomePackInviteOutputSchema, WelcomePackListInput, WelcomePackListInputSchema, WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema } from './schemas/welcome-packs.js';
|
|
11
11
|
export { MigratableHotspotSchema, MigratableHotspotsInput, MigratableHotspotsInputSchema, MigratableHotspotsOutput, MigratableHotspotsOutputSchema, MigrateInput, MigrateInputSchema, MigrateOutput, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema } from './schemas/migration.js';
|
|
12
|
+
export { DelegateDataCreditsInput, DelegateDataCreditsInputSchema, MintDataCreditsInput, MintDataCreditsInputSchema } from './schemas/data-credits.js';
|
|
12
13
|
export { BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './errors.js';
|
|
13
14
|
export { apiContract, fullApiContract } from './contracts.js';
|
|
14
15
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import './chunk-KTADG6LO.js';
|
|
2
|
-
export { apiContract, fullApiContract } from './chunk-
|
|
3
|
-
import './chunk-7CTJX35S.js';
|
|
2
|
+
export { apiContract, fullApiContract } from './chunk-GCE3A6BK.js';
|
|
4
3
|
export { BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './chunk-6EPXJJY5.js';
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-7CTJX35S.js';
|
|
5
|
+
import './chunk-TPPTOJHD.js';
|
|
6
6
|
export { MigratableHotspotSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema, MigrateInputSchema, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema } from './chunk-NBOSJXWK.js';
|
|
7
7
|
export { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, DeleteRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-4CY5D37F.js';
|
|
8
8
|
export { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, GetBalancesInputSchema, TokenAccountSchema, TokenBalanceDataSchema, TransferInputSchema, TransferOutputSchema } from './chunk-MSIA3ZUI.js';
|
|
9
9
|
export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetInputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-7R4XQ5SN.js';
|
|
10
|
+
export { DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-5AFWG4KQ.js';
|
|
10
11
|
export { WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema } from './chunk-T7OKPHTD.js';
|
|
11
12
|
export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from './chunk-RD5LUTM5.js';
|
|
12
13
|
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-5ZPW3MRC.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const MintDataCreditsInputSchema: z.ZodObject<{
|
|
4
|
+
owner: z.ZodString;
|
|
5
|
+
dcAmount: z.ZodOptional<z.ZodString>;
|
|
6
|
+
hntAmount: z.ZodOptional<z.ZodString>;
|
|
7
|
+
recipient: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type MintDataCreditsInput = z.infer<typeof MintDataCreditsInputSchema>;
|
|
10
|
+
declare const DelegateDataCreditsInputSchema: z.ZodObject<{
|
|
11
|
+
owner: z.ZodString;
|
|
12
|
+
routerKey: z.ZodString;
|
|
13
|
+
amount: z.ZodString;
|
|
14
|
+
mint: z.ZodString;
|
|
15
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type DelegateDataCreditsInput = z.infer<typeof DelegateDataCreditsInputSchema>;
|
|
18
|
+
|
|
19
|
+
export { type DelegateDataCreditsInput, DelegateDataCreditsInputSchema, type MintDataCreditsInput, MintDataCreditsInputSchema };
|
package/dist/schemas.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export { GetInstructionsInput, GetInstructionsInputSchema, GetQuoteInput, GetQuo
|
|
|
9
9
|
export { BatchStatusOutput, BatchStatusOutputSchema, EstimateInput, EstimateInputSchema, EstimateOutput, EstimateOutputSchema, GetByPayerAndTagInput, GetByPayerAndTagInputSchema, GetByPayerInput, GetByPayerInputSchema, GetInput, GetInputSchema, PayerBatchSummary, PayerBatchSummarySchema, PayerBatchesOutput, PayerBatchesOutputSchema, ResubmitInput, ResubmitInputSchema, ResubmitOutput, ResubmitOutputSchema, SubmitInput, SubmitInputSchema, SubmitOutput, SubmitOutputSchema, TransactionStatus, TransactionStatusSchema } from './schemas/transactions.js';
|
|
10
10
|
export { WelcomePack, WelcomePackClaimInput, WelcomePackClaimInputSchema, WelcomePackClaimOutput, WelcomePackClaimOutputSchema, WelcomePackCreateInput, WelcomePackCreateInputSchema, WelcomePackCreateOutput, WelcomePackCreateOutputSchema, WelcomePackDeleteInput, WelcomePackDeleteInputSchema, WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, WelcomePackGetInput, WelcomePackGetInputSchema, WelcomePackInviteInput, WelcomePackInviteInputSchema, WelcomePackInviteOutput, WelcomePackInviteOutputSchema, WelcomePackListInput, WelcomePackListInputSchema, WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema } from './schemas/welcome-packs.js';
|
|
11
11
|
export { MigratableHotspotSchema, MigratableHotspotsInput, MigratableHotspotsInputSchema, MigratableHotspotsOutput, MigratableHotspotsOutputSchema, MigrateInput, MigrateInputSchema, MigrateOutput, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema } from './schemas/migration.js';
|
|
12
|
+
export { DelegateDataCreditsInput, DelegateDataCreditsInputSchema, MintDataCreditsInput, MintDataCreditsInputSchema } from './schemas/data-credits.js';
|
|
12
13
|
import 'zod';
|
package/dist/schemas.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-TPPTOJHD.js';
|
|
2
2
|
export { MigratableHotspotSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema, MigrateInputSchema, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema } from './chunk-NBOSJXWK.js';
|
|
3
3
|
export { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, DeleteRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-4CY5D37F.js';
|
|
4
4
|
export { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, GetBalancesInputSchema, TokenAccountSchema, TokenBalanceDataSchema, TransferInputSchema, TransferOutputSchema } from './chunk-MSIA3ZUI.js';
|
|
5
5
|
export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetInputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-7R4XQ5SN.js';
|
|
6
|
+
export { DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-5AFWG4KQ.js';
|
|
6
7
|
export { WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema } from './chunk-T7OKPHTD.js';
|
|
7
8
|
export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from './chunk-RD5LUTM5.js';
|
|
8
9
|
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-5ZPW3MRC.js';
|
package/package.json
CHANGED
|
File without changes
|