@thru/thru-sdk 0.1.20 → 0.1.21
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-4JWHIX3Q.js → chunk-SHMREHP5.js} +11 -7
- package/dist/chunk-SHMREHP5.js.map +1 -0
- package/dist/client.d.ts +2 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/sdk.d.ts +2 -2
- package/dist/sdk.js +1 -1
- package/dist/{transactions-CJsRFL_T.d.ts → transactions-CLezIeXO.d.ts} +5 -3
- package/package.json +3 -3
- package/dist/chunk-4JWHIX3Q.js.map +0 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ThruClientContext, Q as GetVersionResponse, U as getBlock, V as getRawBlock, W as listBlocks, X as streamBlocks, Y as getBlockHeight, Z as getAccount, _ as getRawAccount, $ as listAccounts, a0 as streamAccountUpdates, a1 as createAccount, a2 as getTransaction, a3 as getRawTransaction, a4 as getTransactionStatus, a5 as listTransactionsForAccount, a6 as streamTransactions, a7 as buildTransaction, a8 as buildAndSignTransaction, a9 as sendTransaction, aa as batchSendTransactions, ab as trackTransaction, ac as getEvent, ad as streamEvents, ae as generateStateProof, af as generateKeyPair, ag as
|
|
1
|
+
import { O as ThruClientContext, Q as GetVersionResponse, U as getBlock, V as getRawBlock, W as listBlocks, X as streamBlocks, Y as getBlockHeight, Z as getAccount, _ as getRawAccount, $ as listAccounts, a0 as streamAccountUpdates, a1 as createAccount, a2 as getTransaction, a3 as getRawTransaction, a4 as getTransactionStatus, a5 as listTransactionsForAccount, a6 as streamTransactions, a7 as buildTransaction, a8 as buildAndSignTransaction, a9 as sendTransaction, aa as batchSendTransactions, ab as trackTransaction, ac as getEvent, ad as streamEvents, ae as generateStateProof, af as generateKeyPair, ag as fromPrivateKey, ah as Signature, ai as Pubkey, aj as BlockHash, D as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, ak as ThruClientConfig } from './transactions-CLezIeXO.js';
|
|
2
2
|
import '@thru/helpers';
|
|
3
3
|
import '@bufbuild/protobuf/wkt';
|
|
4
4
|
import '@bufbuild/protobuf';
|
|
@@ -44,6 +44,7 @@ interface BoundProofs {
|
|
|
44
44
|
}
|
|
45
45
|
interface BoundKeys {
|
|
46
46
|
generateKeyPair: typeof generateKeyPair;
|
|
47
|
+
fromPrivateKey: typeof fromPrivateKey;
|
|
47
48
|
}
|
|
48
49
|
interface BoundVersion {
|
|
49
50
|
get: BoundFunction<typeof getVersion>;
|
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_HOST, StreamingService, CommandService, QueryService, generateKeyPair, deriveProgramAddress, toBlockHash, toPubkey, toSignature, generateStateProof, streamEvents, getEvent, trackTransaction, batchSendTransactions, sendTransaction, buildAndSignTransaction, buildTransaction, streamTransactions, listTransactionsForAccount, getTransactionStatus, getRawTransaction, getTransaction, createAccount, streamAccountUpdates, listAccounts, getRawAccount, getAccount, getBlockHeight, streamBlocks, listBlocks, getRawBlock, getBlock, GetVersionRequestSchema } from './chunk-
|
|
1
|
+
import { DEFAULT_HOST, StreamingService, CommandService, QueryService, fromPrivateKey, generateKeyPair, deriveProgramAddress, toBlockHash, toPubkey, toSignature, generateStateProof, streamEvents, getEvent, trackTransaction, batchSendTransactions, sendTransaction, buildAndSignTransaction, buildTransaction, streamTransactions, listTransactionsForAccount, getTransactionStatus, getRawTransaction, getTransaction, createAccount, streamAccountUpdates, listAccounts, getRawAccount, getAccount, getBlockHeight, streamBlocks, listBlocks, getRawBlock, getBlock, GetVersionRequestSchema } from './chunk-SHMREHP5.js';
|
|
2
2
|
import { decodeAddress, encodeAddress, decodeSignature, encodeSignature } from '@thru/helpers';
|
|
3
3
|
import { create } from '@bufbuild/protobuf';
|
|
4
4
|
import { createClient } from '@connectrpc/connect';
|
|
@@ -53,7 +53,8 @@ function createBoundThruClient(ctx) {
|
|
|
53
53
|
deriveProgramAddress
|
|
54
54
|
},
|
|
55
55
|
keys: {
|
|
56
|
-
generateKeyPair
|
|
56
|
+
generateKeyPair,
|
|
57
|
+
fromPrivateKey
|
|
57
58
|
},
|
|
58
59
|
events: {
|
|
59
60
|
get: bind(ctx, getEvent),
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../thru-ts-client-sdk/modules/version.ts","../thru-ts-client-sdk/core/bound-client.ts","../thru-ts-client-sdk/core/client.ts","../thru-ts-client-sdk/client.ts"],"names":[],"mappings":"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","file":"client.js","sourcesContent":["import { create } from \"@bufbuild/protobuf\";\n\nimport type { ThruClientContext } from \"../core/client\";\nimport { GetVersionRequestSchema, type GetVersionResponse } from \"../proto/thru/services/v1/query_service_pb\";\n\nexport function getVersion(ctx: ThruClientContext): Promise<GetVersionResponse> {\n const request = create(GetVersionRequestSchema, {});\n return ctx.query.getVersion(request);\n}\n\n","import type { ThruClientContext } from \"./client\";\n\nimport { decodeAddress, decodeSignature, encodeAddress, encodeSignature } from \"@thru/helpers\";\nimport * as accountsModule from \"../modules/accounts\";\nimport * as blocksModule from \"../modules/blocks\";\nimport * as eventsModule from \"../modules/events\";\nimport * as heightModule from \"../modules/height\";\nimport {\n deriveProgramAddress,\n toBlockHash,\n toPubkey,\n toSignature,\n type DeriveProgramAddressOptions,\n type DeriveProgramAddressResult,\n} from \"../modules/helpers\";\nimport * as keysModule from \"../modules/keys\";\nimport * as proofsModule from \"../modules/proofs\";\nimport * as streamingModule from \"../modules/streaming\";\nimport * as transactionsModule from \"../modules/transactions\";\nimport * as versionModule from \"../modules/version\";\nimport { BlockHash, Pubkey, Signature } from \"../proto/thru/core/v1/types_pb\";\n\ntype ContextualParameters<F> = F extends (ctx: ThruClientContext, ...args: infer P) => any ? P : never;\n\ntype BoundFunction<F> = F extends (ctx: ThruClientContext, ...args: infer P) => infer R ? (...args: P) => R : never;\n\nfunction bind<F extends (ctx: ThruClientContext, ...args: any[]) => any>(\n ctx: ThruClientContext,\n fn: F,\n): BoundFunction<F> {\n return ((...args: ContextualParameters<F>) => fn(ctx, ...args)) as BoundFunction<F>;\n}\n\ninterface BoundBlocks {\n get: BoundFunction<typeof blocksModule.getBlock>;\n getRaw: BoundFunction<typeof blocksModule.getRawBlock>;\n list: BoundFunction<typeof blocksModule.listBlocks>;\n stream: BoundFunction<typeof streamingModule.streamBlocks>;\n getBlockHeight: BoundFunction<typeof heightModule.getBlockHeight>;\n}\n\ninterface BoundAccounts {\n get: BoundFunction<typeof accountsModule.getAccount>;\n getRaw: BoundFunction<typeof accountsModule.getRawAccount>;\n list: BoundFunction<typeof accountsModule.listAccounts>;\n stream: BoundFunction<typeof streamingModule.streamAccountUpdates>;\n create: BoundFunction<typeof accountsModule.createAccount>;\n}\n\ninterface BoundTransactions {\n get: BoundFunction<typeof transactionsModule.getTransaction>;\n getRaw: BoundFunction<typeof transactionsModule.getRawTransaction>;\n getStatus: BoundFunction<typeof transactionsModule.getTransactionStatus>;\n listForAccount: BoundFunction<typeof transactionsModule.listTransactionsForAccount>;\n stream: BoundFunction<typeof streamingModule.streamTransactions>;\n build: BoundFunction<typeof transactionsModule.buildTransaction>;\n buildAndSign: BoundFunction<typeof transactionsModule.buildAndSignTransaction>;\n send: BoundFunction<typeof transactionsModule.sendTransaction>;\n batchSend: BoundFunction<typeof transactionsModule.batchSendTransactions>;\n track: BoundFunction<typeof streamingModule.trackTransaction>;\n}\n\ninterface BoundEvents {\n get: BoundFunction<typeof eventsModule.getEvent>;\n stream: BoundFunction<typeof streamingModule.streamEvents>;\n}\n\ninterface BoundProofs {\n generate: BoundFunction<typeof proofsModule.generateStateProof>;\n}\n\ninterface BoundKeys {\n generateKeyPair: typeof keysModule.generateKeyPair;\n}\n\ninterface BoundVersion {\n get: BoundFunction<typeof versionModule.getVersion>;\n}\n\ninterface Helpers {\n toSignature(value: Uint8Array | string): Signature;\n toPubkey(value: Uint8Array | string, field: string): Pubkey;\n toBlockHash(value: Uint8Array | string): BlockHash;\n encodeSignature(bytes: Uint8Array): string;\n decodeSignature(value: string): Uint8Array;\n encodeAddress(bytes: Uint8Array): string;\n decodeAddress(value: string): Uint8Array;\n deriveProgramAddress(options: DeriveProgramAddressOptions): DeriveProgramAddressResult;\n}\n\nexport interface Thru {\n ctx: ThruClientContext;\n blocks: BoundBlocks;\n accounts: BoundAccounts;\n transactions: BoundTransactions;\n events: BoundEvents;\n proofs: BoundProofs;\n keys: BoundKeys;\n version: BoundVersion;\n helpers: Helpers;\n}\n\nexport function createBoundThruClient(ctx: ThruClientContext): Thru {\n return {\n ctx,\n blocks: {\n get: bind(ctx, blocksModule.getBlock),\n getRaw: bind(ctx, blocksModule.getRawBlock),\n list: bind(ctx, blocksModule.listBlocks),\n stream: bind(ctx, streamingModule.streamBlocks),\n getBlockHeight: bind(ctx, heightModule.getBlockHeight),\n },\n accounts: {\n get: bind(ctx, accountsModule.getAccount),\n getRaw: bind(ctx, accountsModule.getRawAccount),\n list: bind(ctx, accountsModule.listAccounts),\n stream: bind(ctx, streamingModule.streamAccountUpdates),\n create: bind(ctx, accountsModule.createAccount),\n },\n transactions: {\n get: bind(ctx, transactionsModule.getTransaction),\n getRaw: bind(ctx, transactionsModule.getRawTransaction),\n getStatus: bind(ctx, transactionsModule.getTransactionStatus),\n listForAccount: bind(ctx, transactionsModule.listTransactionsForAccount),\n stream: bind(ctx, streamingModule.streamTransactions),\n build: bind(ctx, transactionsModule.buildTransaction),\n buildAndSign: bind(ctx, transactionsModule.buildAndSignTransaction),\n send: bind(ctx, transactionsModule.sendTransaction),\n batchSend: bind(ctx, transactionsModule.batchSendTransactions),\n track: bind(ctx, streamingModule.trackTransaction),\n },\n helpers: {\n toSignature,\n toPubkey,\n toBlockHash,\n encodeSignature,\n decodeSignature,\n encodeAddress,\n decodeAddress,\n deriveProgramAddress,\n },\n keys: {\n generateKeyPair: keysModule.generateKeyPair,\n },\n events: {\n get: bind(ctx, eventsModule.getEvent),\n stream: bind(ctx, streamingModule.streamEvents),\n },\n proofs: {\n generate: bind(ctx, proofsModule.generateStateProof),\n },\n version: {\n get: bind(ctx, versionModule.getVersion),\n },\n };\n}\n","import { createClient } from \"@connectrpc/connect\";\nimport { createGrpcWebTransport } from \"@connectrpc/connect-web\";\n\nimport { DEFAULT_HOST } from \"../defaults\";\nimport { CommandService } from \"../proto/thru/services/v1/command_service_pb\";\nimport { QueryService } from \"../proto/thru/services/v1/query_service_pb\";\nimport { StreamingService } from \"../proto/thru/services/v1/streaming_service_pb\";\n\nexport interface ThruClientConfig {\n baseUrl?: string;\n}\n\ntype QueryClient = ReturnType<typeof createClient<typeof QueryService>>;\ntype CommandClient = ReturnType<typeof createClient<typeof CommandService>>;\ntype StreamingClient = ReturnType<typeof createClient<typeof StreamingService>>;\n\nexport interface ThruClientContext {\n baseUrl: string;\n transport: ReturnType<typeof createGrpcWebTransport>;\n query: QueryClient;\n command: CommandClient;\n streaming: StreamingClient;\n}\n\nexport function createThruClientContext(config: ThruClientConfig = {}): ThruClientContext {\n const baseUrl = config.baseUrl ?? DEFAULT_HOST;\n const transport = createGrpcWebTransport({\n baseUrl,\n });\n\n return {\n baseUrl,\n transport,\n query: createClient(QueryService, transport),\n command: createClient(CommandService, transport),\n streaming: createClient(StreamingService, transport),\n };\n}\n","import { createBoundThruClient, Thru } from \"./core/bound-client\";\nimport { createThruClientContext, ThruClientConfig } from \"./core/client\";\n\n// ============================================================================\n// Type Exports\n// ============================================================================\nexport type { Thru } from \"./core/bound-client\";\nexport type { ThruClientConfig } from \"./core/client\";\n\n// ============================================================================\n// Value Exports (functions)\n// ============================================================================\nexport function createThruClient(config: ThruClientConfig = {}): Thru {\n const ctx = createThruClientContext(config);\n return createBoundThruClient(ctx);\n}"]}
|
|
1
|
+
{"version":3,"sources":["../thru-ts-client-sdk/modules/version.ts","../thru-ts-client-sdk/core/bound-client.ts","../thru-ts-client-sdk/core/client.ts","../thru-ts-client-sdk/client.ts"],"names":[],"mappings":"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","file":"client.js","sourcesContent":["import { create } from \"@bufbuild/protobuf\";\n\nimport type { ThruClientContext } from \"../core/client\";\nimport { GetVersionRequestSchema, type GetVersionResponse } from \"../proto/thru/services/v1/query_service_pb\";\n\nexport function getVersion(ctx: ThruClientContext): Promise<GetVersionResponse> {\n const request = create(GetVersionRequestSchema, {});\n return ctx.query.getVersion(request);\n}\n\n","import type { ThruClientContext } from \"./client\";\n\nimport { decodeAddress, decodeSignature, encodeAddress, encodeSignature } from \"@thru/helpers\";\nimport * as accountsModule from \"../modules/accounts\";\nimport * as blocksModule from \"../modules/blocks\";\nimport * as eventsModule from \"../modules/events\";\nimport * as heightModule from \"../modules/height\";\nimport {\n deriveProgramAddress,\n toBlockHash,\n toPubkey,\n toSignature,\n type DeriveProgramAddressOptions,\n type DeriveProgramAddressResult,\n} from \"../modules/helpers\";\nimport * as keysModule from \"../modules/keys\";\nimport * as proofsModule from \"../modules/proofs\";\nimport * as streamingModule from \"../modules/streaming\";\nimport * as transactionsModule from \"../modules/transactions\";\nimport * as versionModule from \"../modules/version\";\nimport { BlockHash, Pubkey, Signature } from \"../proto/thru/core/v1/types_pb\";\n\ntype ContextualParameters<F> = F extends (ctx: ThruClientContext, ...args: infer P) => any ? P : never;\n\ntype BoundFunction<F> = F extends (ctx: ThruClientContext, ...args: infer P) => infer R ? (...args: P) => R : never;\n\nfunction bind<F extends (ctx: ThruClientContext, ...args: any[]) => any>(\n ctx: ThruClientContext,\n fn: F,\n): BoundFunction<F> {\n return ((...args: ContextualParameters<F>) => fn(ctx, ...args)) as BoundFunction<F>;\n}\n\ninterface BoundBlocks {\n get: BoundFunction<typeof blocksModule.getBlock>;\n getRaw: BoundFunction<typeof blocksModule.getRawBlock>;\n list: BoundFunction<typeof blocksModule.listBlocks>;\n stream: BoundFunction<typeof streamingModule.streamBlocks>;\n getBlockHeight: BoundFunction<typeof heightModule.getBlockHeight>;\n}\n\ninterface BoundAccounts {\n get: BoundFunction<typeof accountsModule.getAccount>;\n getRaw: BoundFunction<typeof accountsModule.getRawAccount>;\n list: BoundFunction<typeof accountsModule.listAccounts>;\n stream: BoundFunction<typeof streamingModule.streamAccountUpdates>;\n create: BoundFunction<typeof accountsModule.createAccount>;\n}\n\ninterface BoundTransactions {\n get: BoundFunction<typeof transactionsModule.getTransaction>;\n getRaw: BoundFunction<typeof transactionsModule.getRawTransaction>;\n getStatus: BoundFunction<typeof transactionsModule.getTransactionStatus>;\n listForAccount: BoundFunction<typeof transactionsModule.listTransactionsForAccount>;\n stream: BoundFunction<typeof streamingModule.streamTransactions>;\n build: BoundFunction<typeof transactionsModule.buildTransaction>;\n buildAndSign: BoundFunction<typeof transactionsModule.buildAndSignTransaction>;\n send: BoundFunction<typeof transactionsModule.sendTransaction>;\n batchSend: BoundFunction<typeof transactionsModule.batchSendTransactions>;\n track: BoundFunction<typeof streamingModule.trackTransaction>;\n}\n\ninterface BoundEvents {\n get: BoundFunction<typeof eventsModule.getEvent>;\n stream: BoundFunction<typeof streamingModule.streamEvents>;\n}\n\ninterface BoundProofs {\n generate: BoundFunction<typeof proofsModule.generateStateProof>;\n}\n\ninterface BoundKeys {\n generateKeyPair: typeof keysModule.generateKeyPair;\n fromPrivateKey: typeof keysModule.fromPrivateKey;\n}\n\ninterface BoundVersion {\n get: BoundFunction<typeof versionModule.getVersion>;\n}\n\ninterface Helpers {\n toSignature(value: Uint8Array | string): Signature;\n toPubkey(value: Uint8Array | string, field: string): Pubkey;\n toBlockHash(value: Uint8Array | string): BlockHash;\n encodeSignature(bytes: Uint8Array): string;\n decodeSignature(value: string): Uint8Array;\n encodeAddress(bytes: Uint8Array): string;\n decodeAddress(value: string): Uint8Array;\n deriveProgramAddress(options: DeriveProgramAddressOptions): DeriveProgramAddressResult;\n}\n\nexport interface Thru {\n ctx: ThruClientContext;\n blocks: BoundBlocks;\n accounts: BoundAccounts;\n transactions: BoundTransactions;\n events: BoundEvents;\n proofs: BoundProofs;\n keys: BoundKeys;\n version: BoundVersion;\n helpers: Helpers;\n}\n\nexport function createBoundThruClient(ctx: ThruClientContext): Thru {\n return {\n ctx,\n blocks: {\n get: bind(ctx, blocksModule.getBlock),\n getRaw: bind(ctx, blocksModule.getRawBlock),\n list: bind(ctx, blocksModule.listBlocks),\n stream: bind(ctx, streamingModule.streamBlocks),\n getBlockHeight: bind(ctx, heightModule.getBlockHeight),\n },\n accounts: {\n get: bind(ctx, accountsModule.getAccount),\n getRaw: bind(ctx, accountsModule.getRawAccount),\n list: bind(ctx, accountsModule.listAccounts),\n stream: bind(ctx, streamingModule.streamAccountUpdates),\n create: bind(ctx, accountsModule.createAccount),\n },\n transactions: {\n get: bind(ctx, transactionsModule.getTransaction),\n getRaw: bind(ctx, transactionsModule.getRawTransaction),\n getStatus: bind(ctx, transactionsModule.getTransactionStatus),\n listForAccount: bind(ctx, transactionsModule.listTransactionsForAccount),\n stream: bind(ctx, streamingModule.streamTransactions),\n build: bind(ctx, transactionsModule.buildTransaction),\n buildAndSign: bind(ctx, transactionsModule.buildAndSignTransaction),\n send: bind(ctx, transactionsModule.sendTransaction),\n batchSend: bind(ctx, transactionsModule.batchSendTransactions),\n track: bind(ctx, streamingModule.trackTransaction),\n },\n helpers: {\n toSignature,\n toPubkey,\n toBlockHash,\n encodeSignature,\n decodeSignature,\n encodeAddress,\n decodeAddress,\n deriveProgramAddress,\n },\n keys: {\n generateKeyPair: keysModule.generateKeyPair,\n fromPrivateKey: keysModule.fromPrivateKey,\n },\n events: {\n get: bind(ctx, eventsModule.getEvent),\n stream: bind(ctx, streamingModule.streamEvents),\n },\n proofs: {\n generate: bind(ctx, proofsModule.generateStateProof),\n },\n version: {\n get: bind(ctx, versionModule.getVersion),\n },\n };\n}\n","import { createClient } from \"@connectrpc/connect\";\nimport { createGrpcWebTransport } from \"@connectrpc/connect-web\";\n\nimport { DEFAULT_HOST } from \"../defaults\";\nimport { CommandService } from \"../proto/thru/services/v1/command_service_pb\";\nimport { QueryService } from \"../proto/thru/services/v1/query_service_pb\";\nimport { StreamingService } from \"../proto/thru/services/v1/streaming_service_pb\";\n\nexport interface ThruClientConfig {\n baseUrl?: string;\n}\n\ntype QueryClient = ReturnType<typeof createClient<typeof QueryService>>;\ntype CommandClient = ReturnType<typeof createClient<typeof CommandService>>;\ntype StreamingClient = ReturnType<typeof createClient<typeof StreamingService>>;\n\nexport interface ThruClientContext {\n baseUrl: string;\n transport: ReturnType<typeof createGrpcWebTransport>;\n query: QueryClient;\n command: CommandClient;\n streaming: StreamingClient;\n}\n\nexport function createThruClientContext(config: ThruClientConfig = {}): ThruClientContext {\n const baseUrl = config.baseUrl ?? DEFAULT_HOST;\n const transport = createGrpcWebTransport({\n baseUrl,\n });\n\n return {\n baseUrl,\n transport,\n query: createClient(QueryService, transport),\n command: createClient(CommandService, transport),\n streaming: createClient(StreamingService, transport),\n };\n}\n","import { createBoundThruClient, Thru } from \"./core/bound-client\";\nimport { createThruClientContext, ThruClientConfig } from \"./core/client\";\n\n// ============================================================================\n// Type Exports\n// ============================================================================\nexport type { Thru } from \"./core/bound-client\";\nexport type { ThruClientConfig } from \"./core/client\";\n\n// ============================================================================\n// Value Exports (functions)\n// ============================================================================\nexport function createThruClient(config: ThruClientConfig = {}): Thru {\n const ctx = createThruClientContext(config);\n return createBoundThruClient(ctx);\n}"]}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"thru-ts-client-sdk/transactions/Transaction.ts":{"bytes":8305,"imports":[{"path":"@noble/ed25519","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/transactions/utils.ts":{"bytes":3937,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/transactions/TransactionBuilder.ts":{"bytes":1978,"imports":[{"path":"thru-ts-client-sdk/transactions/Transaction.ts","kind":"import-statement","original":"./Transaction"},{"path":"thru-ts-client-sdk/transactions/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"thru-ts-client-sdk/transactions/types.ts":{"bytes":1921,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/transactions/index.ts":{"bytes":94,"imports":[{"path":"thru-ts-client-sdk/transactions/Transaction.ts","kind":"import-statement","original":"./Transaction"},{"path":"thru-ts-client-sdk/transactions/TransactionBuilder.ts","kind":"import-statement","original":"./TransactionBuilder"},{"path":"thru-ts-client-sdk/transactions/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts":{"bytes":225626,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts":{"bytes":6291,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts":{"bytes":6443,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts":{"bytes":3268,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts":{"bytes":11867,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts":{"bytes":8443,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts":{"bytes":18866,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/defaults.ts":{"bytes":1118,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"./proto/thru/common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"./proto/thru/core/v1/account_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts","kind":"import-statement","original":"./proto/thru/core/v1/block_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"./proto/thru/core/v1/transaction_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts":{"bytes":3644,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/http_pb.ts":{"bytes":18297,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/annotations_pb.ts":{"bytes":1954,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/http_pb.ts","kind":"import-statement","original":"./http_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts":{"bytes":4502,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/client_pb.ts":{"bytes":34536,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts","kind":"import-statement","original":"./launch_stage_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts":{"bytes":4919,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts":{"bytes":3182,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts":{"bytes":34081,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/annotations_pb.ts","kind":"import-statement","original":"../../../google/api/annotations_pb"},{"path":"thru-ts-client-sdk/proto/google/api/client_pb.ts","kind":"import-statement","original":"../../../google/api/client_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts","kind":"import-statement","original":"../../common/v1/filters_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts","kind":"import-statement","original":"../../common/v1/pagination_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"../../core/v1/account_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts","kind":"import-statement","original":"../../core/v1/block_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts","kind":"import-statement","original":"../../core/v1/state_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"../../core/v1/transaction_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../../core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/utils/utils.ts":{"bytes":754,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"../transactions","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/modules/height.ts":{"bytes":388,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/helpers.ts":{"bytes":4621,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@noble/hashes/sha2","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/proofs.ts":{"bytes":906,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/state_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"../types/types","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/modules/accounts.ts":{"bytes":4706,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"../proto/thru/common/v1/consensus_pb","kind":"import-statement","external":true},{"path":"../proto/thru/common/v1/filters_pb","kind":"import-statement","external":true},{"path":"../proto/thru/core/v1/account_pb","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/state_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/transactions/TransactionBuilder.ts","kind":"import-statement","original":"../transactions/TransactionBuilder"},{"path":"thru-ts-client-sdk/utils/utils.ts","kind":"import-statement","original":"../utils/utils"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"./height"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"thru-ts-client-sdk/modules/proofs.ts","kind":"import-statement","original":"./proofs"}],"format":"esm"},"thru-ts-client-sdk/modules/blocks.ts":{"bytes":2662,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"../proto/thru/common/v1/consensus_pb","kind":"import-statement","external":true},{"path":"../proto/thru/core/v1/block_pb","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/utils/utils.ts","kind":"import-statement","original":"../utils/utils"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/modules/events.ts":{"bytes":702,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/keys.ts":{"bytes":760,"imports":[{"path":"@thru/crypto","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts":{"bytes":16433,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts","kind":"import-statement","original":"../../common/v1/filters_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"../../core/v1/account_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts","kind":"import-statement","original":"../../core/v1/block_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"../../core/v1/transaction_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../../core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/streaming.ts":{"bytes":4015,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/streaming_service_pb"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts":{"bytes":6580,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/annotations_pb.ts","kind":"import-statement","original":"../../../google/api/annotations_pb"},{"path":"thru-ts-client-sdk/proto/google/api/client_pb.ts","kind":"import-statement","original":"../../../google/api/client_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"../../core/v1/transaction_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../../core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/transactions.ts":{"bytes":12515,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/account_pb"},{"path":"../proto/thru/core/v1/transaction_pb","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/command_service_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/transactions/index.ts","kind":"import-statement","original":"../transactions"},{"path":"thru-ts-client-sdk/transactions/utils.ts","kind":"import-statement","original":"../transactions/utils"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/modules/accounts.ts","kind":"import-statement","original":"./accounts"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"./height"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/sdk.ts":{"bytes":4391,"imports":[{"path":"thru-ts-client-sdk/transactions/index.ts","kind":"import-statement","original":"./transactions"},{"path":"thru-ts-client-sdk/modules/accounts.ts","kind":"import-statement","original":"./modules/accounts"},{"path":"thru-ts-client-sdk/modules/blocks.ts","kind":"import-statement","original":"./modules/blocks"},{"path":"thru-ts-client-sdk/modules/events.ts","kind":"import-statement","original":"./modules/events"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"./modules/height"},{"path":"thru-ts-client-sdk/modules/keys.ts","kind":"import-statement","original":"./modules/keys"},{"path":"thru-ts-client-sdk/modules/proofs.ts","kind":"import-statement","original":"./modules/proofs"},{"path":"thru-ts-client-sdk/modules/streaming.ts","kind":"import-statement","original":"./modules/streaming"},{"path":"thru-ts-client-sdk/modules/transactions.ts","kind":"import-statement","original":"./modules/transactions"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./modules/helpers"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"./proto/thru/common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts","kind":"import-statement","original":"./proto/thru/common/v1/filters_pb"},{"path":"thru-ts-client-sdk/transactions/index.ts","kind":"import-statement","original":"./transactions"}],"format":"esm"},"thru-ts-client-sdk/modules/version.ts":{"bytes":399,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"}],"format":"esm"},"thru-ts-client-sdk/core/bound-client.ts":{"bytes":6114,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/modules/accounts.ts","kind":"import-statement","original":"../modules/accounts"},{"path":"thru-ts-client-sdk/modules/blocks.ts","kind":"import-statement","original":"../modules/blocks"},{"path":"thru-ts-client-sdk/modules/events.ts","kind":"import-statement","original":"../modules/events"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"../modules/height"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"../modules/helpers"},{"path":"thru-ts-client-sdk/modules/keys.ts","kind":"import-statement","original":"../modules/keys"},{"path":"thru-ts-client-sdk/modules/proofs.ts","kind":"import-statement","original":"../modules/proofs"},{"path":"thru-ts-client-sdk/modules/streaming.ts","kind":"import-statement","original":"../modules/streaming"},{"path":"thru-ts-client-sdk/modules/transactions.ts","kind":"import-statement","original":"../modules/transactions"},{"path":"thru-ts-client-sdk/modules/version.ts","kind":"import-statement","original":"../modules/version"},{"path":"../proto/thru/core/v1/types_pb","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/core/client.ts":{"bytes":1346,"imports":[{"path":"@connectrpc/connect","kind":"import-statement","external":true},{"path":"@connectrpc/connect-web","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/command_service_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/streaming_service_pb"}],"format":"esm"},"thru-ts-client-sdk/client.ts":{"bytes":774,"imports":[{"path":"thru-ts-client-sdk/core/bound-client.ts","kind":"import-statement","original":"./core/bound-client"},{"path":"thru-ts-client-sdk/core/client.ts","kind":"import-statement","original":"./core/client"}],"format":"esm"}},"outputs":{"dist/sdk.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/sdk.js":{"imports":[{"path":"dist/chunk-4JWHIX3Q.js","kind":"import-statement"}],"exports":["ConsensusStatus","FilterParamValueSchema","FilterSchema","SdkTransaction","TransactionBuilder","accounts","blocks","deriveProgramAddress","events","height","keys","proofs","streaming","toPubkey","transactions"],"entryPoint":"thru-ts-client-sdk/sdk.ts","inputs":{"thru-ts-client-sdk/sdk.ts":{"bytesInOutput":0}},"bytes":730},"dist/client.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":10963},"dist/client.js":{"imports":[{"path":"dist/chunk-4JWHIX3Q.js","kind":"import-statement"},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@connectrpc/connect","kind":"import-statement","external":true},{"path":"@connectrpc/connect-web","kind":"import-statement","external":true}],"exports":["createThruClient"],"entryPoint":"thru-ts-client-sdk/client.ts","inputs":{"thru-ts-client-sdk/core/bound-client.ts":{"bytesInOutput":1602},"thru-ts-client-sdk/modules/version.ts":{"bytesInOutput":169},"thru-ts-client-sdk/core/client.ts":{"bytesInOutput":486},"thru-ts-client-sdk/client.ts":{"bytesInOutput":127}},"bytes":3275},"dist/chunk-4JWHIX3Q.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":495609},"dist/chunk-4JWHIX3Q.js":{"imports":[{"path":"@noble/ed25519","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@noble/hashes/sha2","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@thru/crypto","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true}],"exports":["CommandService","ConsensusStatus","DEFAULT_HOST","FilterParamValueSchema","FilterSchema","GetVersionRequestSchema","QueryService","StreamingService","Transaction","TransactionBuilder","accounts_exports","batchSendTransactions","blocks_exports","buildAndSignTransaction","buildTransaction","createAccount","deriveProgramAddress","events_exports","generateKeyPair","generateStateProof","getAccount","getBlock","getBlockHeight","getEvent","getRawAccount","getRawBlock","getRawTransaction","getTransaction","getTransactionStatus","height_exports","keys_exports","listAccounts","listBlocks","listTransactionsForAccount","proofs_exports","sendTransaction","streamAccountUpdates","streamBlocks","streamEvents","streamTransactions","streaming_exports","toBlockHash","toPubkey","toSignature","trackTransaction","transactions_exports"],"inputs":{"thru-ts-client-sdk/transactions/Transaction.ts":{"bytesInOutput":6185},"thru-ts-client-sdk/transactions/utils.ts":{"bytesInOutput":3172},"thru-ts-client-sdk/transactions/TransactionBuilder.ts":{"bytesInOutput":1323},"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts":{"bytesInOutput":2365},"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts":{"bytesInOutput":71323},"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts":{"bytesInOutput":1020},"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts":{"bytesInOutput":1453},"thru-ts-client-sdk/modules/height.ts":{"bytesInOutput":262},"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts":{"bytesInOutput":10898},"thru-ts-client-sdk/proto/google/api/annotations_pb.ts":{"bytesInOutput":730},"thru-ts-client-sdk/proto/google/api/http_pb.ts":{"bytesInOutput":968},"thru-ts-client-sdk/proto/google/api/client_pb.ts":{"bytesInOutput":5452},"thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts":{"bytesInOutput":627},"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts":{"bytesInOutput":963},"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts":{"bytesInOutput":3150},"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts":{"bytesInOutput":979},"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts":{"bytesInOutput":2404},"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts":{"bytesInOutput":1138},"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts":{"bytesInOutput":5143},"thru-ts-client-sdk/modules/helpers.ts":{"bytesInOutput":3648},"thru-ts-client-sdk/modules/proofs.ts":{"bytesInOutput":544},"thru-ts-client-sdk/modules/accounts.ts":{"bytesInOutput":2465},"thru-ts-client-sdk/defaults.ts":{"bytesInOutput":589},"thru-ts-client-sdk/utils/utils.ts":{"bytesInOutput":334},"thru-ts-client-sdk/modules/blocks.ts":{"bytesInOutput":1394},"thru-ts-client-sdk/modules/events.ts":{"bytesInOutput":406},"thru-ts-client-sdk/modules/keys.ts":{"bytesInOutput":561},"thru-ts-client-sdk/modules/streaming.ts":{"bytesInOutput":1961},"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts":{"bytesInOutput":4945},"thru-ts-client-sdk/modules/transactions.ts":{"bytesInOutput":7085},"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts":{"bytesInOutput":1924}},"bytes":148536}}}
|
|
1
|
+
{"inputs":{"thru-ts-client-sdk/transactions/Transaction.ts":{"bytes":8305,"imports":[{"path":"@noble/ed25519","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/transactions/utils.ts":{"bytes":3937,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/transactions/TransactionBuilder.ts":{"bytes":1978,"imports":[{"path":"thru-ts-client-sdk/transactions/Transaction.ts","kind":"import-statement","original":"./Transaction"},{"path":"thru-ts-client-sdk/transactions/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"thru-ts-client-sdk/transactions/types.ts":{"bytes":1921,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/transactions/index.ts":{"bytes":94,"imports":[{"path":"thru-ts-client-sdk/transactions/Transaction.ts","kind":"import-statement","original":"./Transaction"},{"path":"thru-ts-client-sdk/transactions/TransactionBuilder.ts","kind":"import-statement","original":"./TransactionBuilder"},{"path":"thru-ts-client-sdk/transactions/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts":{"bytes":225626,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts":{"bytes":6291,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts":{"bytes":6443,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts":{"bytes":3268,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts":{"bytes":11867,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts":{"bytes":8443,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts":{"bytes":18866,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/defaults.ts":{"bytes":1118,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"./proto/thru/common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"./proto/thru/core/v1/account_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts","kind":"import-statement","original":"./proto/thru/core/v1/block_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"./proto/thru/core/v1/transaction_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts":{"bytes":3644,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"./types_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/http_pb.ts":{"bytes":18297,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/annotations_pb.ts":{"bytes":1954,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/http_pb.ts","kind":"import-statement","original":"./http_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts":{"bytes":4502,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/google/api/client_pb.ts":{"bytes":34536,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts","kind":"import-statement","original":"./launch_stage_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts":{"bytes":4919,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts":{"bytes":3182,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts":{"bytes":34081,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/annotations_pb.ts","kind":"import-statement","original":"../../../google/api/annotations_pb"},{"path":"thru-ts-client-sdk/proto/google/api/client_pb.ts","kind":"import-statement","original":"../../../google/api/client_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts","kind":"import-statement","original":"../../common/v1/filters_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts","kind":"import-statement","original":"../../common/v1/pagination_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"../../core/v1/account_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts","kind":"import-statement","original":"../../core/v1/block_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts","kind":"import-statement","original":"../../core/v1/state_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"../../core/v1/transaction_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../../core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/utils/utils.ts":{"bytes":754,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"../transactions","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/modules/height.ts":{"bytes":388,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/helpers.ts":{"bytes":4621,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@noble/hashes/sha2","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/proofs.ts":{"bytes":906,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/state_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"../types/types","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/modules/accounts.ts":{"bytes":4706,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"../proto/thru/common/v1/consensus_pb","kind":"import-statement","external":true},{"path":"../proto/thru/common/v1/filters_pb","kind":"import-statement","external":true},{"path":"../proto/thru/core/v1/account_pb","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/state_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/transactions/TransactionBuilder.ts","kind":"import-statement","original":"../transactions/TransactionBuilder"},{"path":"thru-ts-client-sdk/utils/utils.ts","kind":"import-statement","original":"../utils/utils"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"./height"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"thru-ts-client-sdk/modules/proofs.ts","kind":"import-statement","original":"./proofs"}],"format":"esm"},"thru-ts-client-sdk/modules/blocks.ts":{"bytes":2662,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"../proto/thru/common/v1/consensus_pb","kind":"import-statement","external":true},{"path":"../proto/thru/core/v1/block_pb","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/utils/utils.ts","kind":"import-statement","original":"../utils/utils"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/modules/events.ts":{"bytes":702,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/keys.ts":{"bytes":963,"imports":[{"path":"@noble/ed25519","kind":"import-statement","external":true},{"path":"@thru/crypto","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts":{"bytes":16433,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts","kind":"import-statement","original":"../../../buf/validate/validate_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"../../common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts","kind":"import-statement","original":"../../common/v1/filters_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"../../core/v1/account_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts","kind":"import-statement","original":"../../core/v1/block_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"../../core/v1/transaction_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../../core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/streaming.ts":{"bytes":4015,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/streaming_service_pb"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts":{"bytes":6580,"imports":[{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/google/api/annotations_pb.ts","kind":"import-statement","original":"../../../google/api/annotations_pb"},{"path":"thru-ts-client-sdk/proto/google/api/client_pb.ts","kind":"import-statement","original":"../../../google/api/client_pb"},{"path":"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts","kind":"import-statement","original":"../../../google/api/field_behavior_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts","kind":"import-statement","original":"../../core/v1/transaction_pb"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts","kind":"import-statement","original":"../../core/v1/types_pb"}],"format":"esm"},"thru-ts-client-sdk/modules/transactions.ts":{"bytes":12551,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts","kind":"import-statement","original":"../proto/thru/core/v1/account_pb"},{"path":"../proto/thru/core/v1/transaction_pb","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/command_service_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/transactions/index.ts","kind":"import-statement","original":"../transactions"},{"path":"thru-ts-client-sdk/transactions/utils.ts","kind":"import-statement","original":"../transactions/utils"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/modules/accounts.ts","kind":"import-statement","original":"./accounts"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"./height"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"thru-ts-client-sdk/sdk.ts":{"bytes":4391,"imports":[{"path":"thru-ts-client-sdk/transactions/index.ts","kind":"import-statement","original":"./transactions"},{"path":"thru-ts-client-sdk/modules/accounts.ts","kind":"import-statement","original":"./modules/accounts"},{"path":"thru-ts-client-sdk/modules/blocks.ts","kind":"import-statement","original":"./modules/blocks"},{"path":"thru-ts-client-sdk/modules/events.ts","kind":"import-statement","original":"./modules/events"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"./modules/height"},{"path":"thru-ts-client-sdk/modules/keys.ts","kind":"import-statement","original":"./modules/keys"},{"path":"thru-ts-client-sdk/modules/proofs.ts","kind":"import-statement","original":"./modules/proofs"},{"path":"thru-ts-client-sdk/modules/streaming.ts","kind":"import-statement","original":"./modules/streaming"},{"path":"thru-ts-client-sdk/modules/transactions.ts","kind":"import-statement","original":"./modules/transactions"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"./modules/helpers"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts","kind":"import-statement","original":"./proto/thru/common/v1/consensus_pb"},{"path":"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts","kind":"import-statement","original":"./proto/thru/common/v1/filters_pb"},{"path":"thru-ts-client-sdk/transactions/index.ts","kind":"import-statement","original":"./transactions"}],"format":"esm"},"thru-ts-client-sdk/modules/version.ts":{"bytes":399,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"}],"format":"esm"},"thru-ts-client-sdk/core/bound-client.ts":{"bytes":6223,"imports":[{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/modules/accounts.ts","kind":"import-statement","original":"../modules/accounts"},{"path":"thru-ts-client-sdk/modules/blocks.ts","kind":"import-statement","original":"../modules/blocks"},{"path":"thru-ts-client-sdk/modules/events.ts","kind":"import-statement","original":"../modules/events"},{"path":"thru-ts-client-sdk/modules/height.ts","kind":"import-statement","original":"../modules/height"},{"path":"thru-ts-client-sdk/modules/helpers.ts","kind":"import-statement","original":"../modules/helpers"},{"path":"thru-ts-client-sdk/modules/keys.ts","kind":"import-statement","original":"../modules/keys"},{"path":"thru-ts-client-sdk/modules/proofs.ts","kind":"import-statement","original":"../modules/proofs"},{"path":"thru-ts-client-sdk/modules/streaming.ts","kind":"import-statement","original":"../modules/streaming"},{"path":"thru-ts-client-sdk/modules/transactions.ts","kind":"import-statement","original":"../modules/transactions"},{"path":"thru-ts-client-sdk/modules/version.ts","kind":"import-statement","original":"../modules/version"},{"path":"../proto/thru/core/v1/types_pb","kind":"import-statement","external":true}],"format":"esm"},"thru-ts-client-sdk/core/client.ts":{"bytes":1346,"imports":[{"path":"@connectrpc/connect","kind":"import-statement","external":true},{"path":"@connectrpc/connect-web","kind":"import-statement","external":true},{"path":"thru-ts-client-sdk/defaults.ts","kind":"import-statement","original":"../defaults"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/command_service_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/query_service_pb"},{"path":"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts","kind":"import-statement","original":"../proto/thru/services/v1/streaming_service_pb"}],"format":"esm"},"thru-ts-client-sdk/client.ts":{"bytes":774,"imports":[{"path":"thru-ts-client-sdk/core/bound-client.ts","kind":"import-statement","original":"./core/bound-client"},{"path":"thru-ts-client-sdk/core/client.ts","kind":"import-statement","original":"./core/client"}],"format":"esm"}},"outputs":{"dist/sdk.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/sdk.js":{"imports":[{"path":"dist/chunk-SHMREHP5.js","kind":"import-statement"}],"exports":["ConsensusStatus","FilterParamValueSchema","FilterSchema","SdkTransaction","TransactionBuilder","accounts","blocks","deriveProgramAddress","events","height","keys","proofs","streaming","toPubkey","transactions"],"entryPoint":"thru-ts-client-sdk/sdk.ts","inputs":{"thru-ts-client-sdk/sdk.ts":{"bytesInOutput":0}},"bytes":730},"dist/client.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":11085},"dist/client.js":{"imports":[{"path":"dist/chunk-SHMREHP5.js","kind":"import-statement"},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@connectrpc/connect","kind":"import-statement","external":true},{"path":"@connectrpc/connect-web","kind":"import-statement","external":true}],"exports":["createThruClient"],"entryPoint":"thru-ts-client-sdk/client.ts","inputs":{"thru-ts-client-sdk/core/bound-client.ts":{"bytesInOutput":1624},"thru-ts-client-sdk/modules/version.ts":{"bytesInOutput":169},"thru-ts-client-sdk/core/client.ts":{"bytesInOutput":486},"thru-ts-client-sdk/client.ts":{"bytesInOutput":127}},"bytes":3315},"dist/chunk-SHMREHP5.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":495959},"dist/chunk-SHMREHP5.js":{"imports":[{"path":"@noble/ed25519","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@noble/hashes/sha2","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@noble/ed25519","kind":"import-statement","external":true},{"path":"@thru/crypto","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/wkt","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@bufbuild/protobuf/codegenv2","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true}],"exports":["CommandService","ConsensusStatus","DEFAULT_HOST","FilterParamValueSchema","FilterSchema","GetVersionRequestSchema","QueryService","StreamingService","Transaction","TransactionBuilder","accounts_exports","batchSendTransactions","blocks_exports","buildAndSignTransaction","buildTransaction","createAccount","deriveProgramAddress","events_exports","fromPrivateKey","generateKeyPair","generateStateProof","getAccount","getBlock","getBlockHeight","getEvent","getRawAccount","getRawBlock","getRawTransaction","getTransaction","getTransactionStatus","height_exports","keys_exports","listAccounts","listBlocks","listTransactionsForAccount","proofs_exports","sendTransaction","streamAccountUpdates","streamBlocks","streamEvents","streamTransactions","streaming_exports","toBlockHash","toPubkey","toSignature","trackTransaction","transactions_exports"],"inputs":{"thru-ts-client-sdk/transactions/Transaction.ts":{"bytesInOutput":6185},"thru-ts-client-sdk/transactions/utils.ts":{"bytesInOutput":3172},"thru-ts-client-sdk/transactions/TransactionBuilder.ts":{"bytesInOutput":1323},"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts":{"bytesInOutput":2365},"thru-ts-client-sdk/proto/buf/validate/validate_pb.ts":{"bytesInOutput":71323},"thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts":{"bytesInOutput":1020},"thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts":{"bytesInOutput":1453},"thru-ts-client-sdk/modules/height.ts":{"bytesInOutput":262},"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts":{"bytesInOutput":10898},"thru-ts-client-sdk/proto/google/api/annotations_pb.ts":{"bytesInOutput":730},"thru-ts-client-sdk/proto/google/api/http_pb.ts":{"bytesInOutput":968},"thru-ts-client-sdk/proto/google/api/client_pb.ts":{"bytesInOutput":5452},"thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts":{"bytesInOutput":627},"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts":{"bytesInOutput":963},"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts":{"bytesInOutput":3150},"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts":{"bytesInOutput":979},"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts":{"bytesInOutput":2404},"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts":{"bytesInOutput":1138},"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts":{"bytesInOutput":5143},"thru-ts-client-sdk/modules/helpers.ts":{"bytesInOutput":3648},"thru-ts-client-sdk/modules/proofs.ts":{"bytesInOutput":544},"thru-ts-client-sdk/modules/accounts.ts":{"bytesInOutput":2465},"thru-ts-client-sdk/defaults.ts":{"bytesInOutput":589},"thru-ts-client-sdk/utils/utils.ts":{"bytesInOutput":334},"thru-ts-client-sdk/modules/blocks.ts":{"bytesInOutput":1394},"thru-ts-client-sdk/modules/events.ts":{"bytesInOutput":406},"thru-ts-client-sdk/modules/keys.ts":{"bytesInOutput":761},"thru-ts-client-sdk/modules/streaming.ts":{"bytesInOutput":1961},"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts":{"bytesInOutput":4945},"thru-ts-client-sdk/modules/transactions.ts":{"bytesInOutput":7103},"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts":{"bytesInOutput":1924}},"bytes":148772}}}
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BuildTransactionParams, T as Transaction, S as SignedTransactionResult } from './transactions-
|
|
2
|
-
export { A as AccountQueryOptions, v as BatchSendTransactionsOptions, l as BlockQueryOptions, o as BlockSelector, w as BuildAndSignTransactionOptions, x as BuildTransactionOptions, C as ConsensusStatus, j as CreateAccountOptions, D as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, g as Filter, i as FilterParamValue, F as FilterParamValueSchema, f as FilterSchema, N as GenerateStateProofOptions, r as GeneratedKeyPair, G as GetEventOptions, M as InstructionContext, I as InstructionData, L as ListAccountsOptions, m as ListBlocksOptions, y as ListTransactionsForAccountOptions, P as ProgramIdentifier, R as RawAccountQueryOptions, n as RawBlockQueryOptions, z as RawTransactionQueryOptions, u as TrackTransactionOptions, E as TransactionAccountsConfig, H as TransactionFeePayerConfig, J as TransactionHeaderConfig, K as TransactionQueryOptions, a as accounts, b as blocks, d as deriveProgramAddress, e as events, h as height, k as keys, p as proofs, s as streaming, c as toPubkey, t as transactions } from './transactions-
|
|
1
|
+
import { B as BuildTransactionParams, T as Transaction, S as SignedTransactionResult } from './transactions-CLezIeXO.js';
|
|
2
|
+
export { A as AccountQueryOptions, v as BatchSendTransactionsOptions, l as BlockQueryOptions, o as BlockSelector, w as BuildAndSignTransactionOptions, x as BuildTransactionOptions, C as ConsensusStatus, j as CreateAccountOptions, D as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, g as Filter, i as FilterParamValue, F as FilterParamValueSchema, f as FilterSchema, N as GenerateStateProofOptions, r as GeneratedKeyPair, G as GetEventOptions, M as InstructionContext, I as InstructionData, L as ListAccountsOptions, m as ListBlocksOptions, y as ListTransactionsForAccountOptions, P as ProgramIdentifier, R as RawAccountQueryOptions, n as RawBlockQueryOptions, z as RawTransactionQueryOptions, u as TrackTransactionOptions, E as TransactionAccountsConfig, H as TransactionFeePayerConfig, J as TransactionHeaderConfig, K as TransactionQueryOptions, a as accounts, b as blocks, d as deriveProgramAddress, e as events, h as height, k as keys, p as proofs, s as streaming, c as toPubkey, t as transactions } from './transactions-CLezIeXO.js';
|
|
3
3
|
export { Pubkey } from '@thru/helpers';
|
|
4
4
|
import '@bufbuild/protobuf/wkt';
|
|
5
5
|
import '@bufbuild/protobuf';
|
package/dist/sdk.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ConsensusStatus, FilterParamValueSchema, FilterSchema, Transaction as SdkTransaction, TransactionBuilder, accounts_exports as accounts, blocks_exports as blocks, deriveProgramAddress, events_exports as events, height_exports as height, keys_exports as keys, proofs_exports as proofs, streaming_exports as streaming, toPubkey, transactions_exports as transactions } from './chunk-
|
|
1
|
+
export { ConsensusStatus, FilterParamValueSchema, FilterSchema, Transaction as SdkTransaction, TransactionBuilder, accounts_exports as accounts, blocks_exports as blocks, deriveProgramAddress, events_exports as events, height_exports as height, keys_exports as keys, proofs_exports as proofs, streaming_exports as streaming, toPubkey, transactions_exports as transactions } from './chunk-SHMREHP5.js';
|
|
2
2
|
//# sourceMappingURL=sdk.js.map
|
|
3
3
|
//# sourceMappingURL=sdk.js.map
|
|
@@ -1621,11 +1621,13 @@ interface GeneratedKeyPair {
|
|
|
1621
1621
|
* Generates a new Ed25519 keypair using the same HD wallet pipeline as the Thru wallet.
|
|
1622
1622
|
*/
|
|
1623
1623
|
declare function generateKeyPair(): Promise<GeneratedKeyPair>;
|
|
1624
|
+
declare function fromPrivateKey(privateKey: Uint8Array): Promise<Uint8Array>;
|
|
1624
1625
|
|
|
1625
1626
|
type keys_GeneratedKeyPair = GeneratedKeyPair;
|
|
1627
|
+
declare const keys_fromPrivateKey: typeof fromPrivateKey;
|
|
1626
1628
|
declare const keys_generateKeyPair: typeof generateKeyPair;
|
|
1627
1629
|
declare namespace keys {
|
|
1628
|
-
export { type keys_GeneratedKeyPair as GeneratedKeyPair, keys_generateKeyPair as generateKeyPair };
|
|
1630
|
+
export { type keys_GeneratedKeyPair as GeneratedKeyPair, keys_fromPrivateKey as fromPrivateKey, keys_generateKeyPair as generateKeyPair };
|
|
1629
1631
|
}
|
|
1630
1632
|
|
|
1631
1633
|
type GenerateStateProofOptions = {
|
|
@@ -1709,7 +1711,7 @@ interface TransactionHeaderConfig {
|
|
|
1709
1711
|
* - A Uint8Array directly
|
|
1710
1712
|
* - A function that takes an InstructionContext and returns a Uint8Array
|
|
1711
1713
|
*/
|
|
1712
|
-
type InstructionData = Uint8Array | ((context: InstructionContext) => Uint8Array);
|
|
1714
|
+
type InstructionData = Uint8Array | ((context: InstructionContext) => Promise<Uint8Array>);
|
|
1713
1715
|
interface BuildTransactionOptions {
|
|
1714
1716
|
feePayer: TransactionFeePayerConfig;
|
|
1715
1717
|
program: ProgramIdentifier;
|
|
@@ -1771,4 +1773,4 @@ declare namespace transactions {
|
|
|
1771
1773
|
export { type transactions_BatchSendTransactionsOptions as BatchSendTransactionsOptions, type transactions_BuildAndSignTransactionOptions as BuildAndSignTransactionOptions, type transactions_BuildTransactionOptions as BuildTransactionOptions, type transactions_InstructionData as InstructionData, type transactions_ListTransactionsForAccountOptions as ListTransactionsForAccountOptions, type transactions_RawTransactionQueryOptions as RawTransactionQueryOptions, type transactions_TransactionAccountsConfig as TransactionAccountsConfig, type transactions_TransactionFeePayerConfig as TransactionFeePayerConfig, type transactions_TransactionHeaderConfig as TransactionHeaderConfig, type transactions_TransactionQueryOptions as TransactionQueryOptions, transactions_batchSendTransactions as batchSendTransactions, transactions_buildAndSignTransaction as buildAndSignTransaction, transactions_buildTransaction as buildTransaction, transactions_getRawTransaction as getRawTransaction, transactions_getTransaction as getTransaction, transactions_getTransactionStatus as getTransactionStatus, transactions_listTransactionsForAccount as listTransactionsForAccount, transactions_sendTransaction as sendTransaction };
|
|
1772
1774
|
}
|
|
1773
1775
|
|
|
1774
|
-
export { listAccounts as $, type AccountQueryOptions as A, type BuildTransactionParams as B, ConsensusStatus as C, type DeriveProgramAddressOptions as D, type TransactionAccountsConfig as E, FilterParamValueSchema as F, type GetEventOptions as G, type TransactionFeePayerConfig as H, type InstructionData as I, type TransactionHeaderConfig as J, type TransactionQueryOptions as K, type ListAccountsOptions as L, type InstructionContext as M, type GenerateStateProofOptions as N, type ThruClientContext as O, type ProgramIdentifier as P, type GetVersionResponse as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction$1 as T, getBlock as U, getRawBlock as V, listBlocks as W, streamBlocks as X, getBlockHeight as Y, getAccount as Z, getRawAccount as _, accounts as a, streamAccountUpdates as a0, createAccount as a1, getTransaction as a2, getRawTransaction as a3, getTransactionStatus as a4, listTransactionsForAccount as a5, streamTransactions as a6, buildTransaction as a7, buildAndSignTransaction as a8, sendTransaction as a9, batchSendTransactions as aa, trackTransaction as ab, getEvent as ac, streamEvents as ad, generateStateProof as ae, generateKeyPair as af, type Signature as
|
|
1776
|
+
export { listAccounts as $, type AccountQueryOptions as A, type BuildTransactionParams as B, ConsensusStatus as C, type DeriveProgramAddressOptions as D, type TransactionAccountsConfig as E, FilterParamValueSchema as F, type GetEventOptions as G, type TransactionFeePayerConfig as H, type InstructionData as I, type TransactionHeaderConfig as J, type TransactionQueryOptions as K, type ListAccountsOptions as L, type InstructionContext as M, type GenerateStateProofOptions as N, type ThruClientContext as O, type ProgramIdentifier as P, type GetVersionResponse as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction$1 as T, getBlock as U, getRawBlock as V, listBlocks as W, streamBlocks as X, getBlockHeight as Y, getAccount as Z, getRawAccount as _, accounts as a, streamAccountUpdates as a0, createAccount as a1, getTransaction as a2, getRawTransaction as a3, getTransactionStatus as a4, listTransactionsForAccount as a5, streamTransactions as a6, buildTransaction as a7, buildAndSignTransaction as a8, sendTransaction as a9, batchSendTransactions as aa, trackTransaction as ab, getEvent as ac, streamEvents as ad, generateStateProof as ae, generateKeyPair as af, fromPrivateKey as ag, type Signature as ah, type Pubkey as ai, type BlockHash as aj, type ThruClientConfig as ak, blocks as b, toPubkey as c, deriveProgramAddress as d, events as e, FilterSchema as f, type Filter as g, height as h, type FilterParamValue as i, type CreateAccountOptions as j, keys as k, type BlockQueryOptions as l, type ListBlocksOptions as m, type RawBlockQueryOptions as n, type BlockSelector as o, proofs as p, type DeriveProgramAddressResult as q, type GeneratedKeyPair as r, streaming as s, transactions as t, type TrackTransactionOptions as u, type BatchSendTransactionsOptions as v, type BuildAndSignTransactionOptions as w, type BuildTransactionOptions as x, type ListTransactionsForAccountOptions as y, type RawTransactionQueryOptions as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thru/thru-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/sdk.js",
|
|
6
6
|
"types": "./dist/sdk.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@connectrpc/connect-web": "^2.1.0",
|
|
26
26
|
"@noble/ed25519": "^2.3.0",
|
|
27
27
|
"@noble/hashes": "^1.4.0",
|
|
28
|
-
"@thru/crypto": "0.1.
|
|
29
|
-
"@thru/helpers": "0.1.
|
|
28
|
+
"@thru/crypto": "0.1.21",
|
|
29
|
+
"@thru/helpers": "0.1.21"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@bufbuild/buf": "^1.58.0",
|