@thru/thru-sdk 0.1.19 → 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.
Files changed (88) hide show
  1. package/README.md +19 -0
  2. package/dist/{chunk-PH7P5EEU.js → chunk-SHMREHP5.js} +13 -9
  3. package/dist/chunk-SHMREHP5.js.map +1 -0
  4. package/dist/client.d.ts +2 -1
  5. package/dist/client.js +3 -2
  6. package/dist/client.js.map +1 -1
  7. package/dist/metafile-esm.json +1 -1
  8. package/dist/sdk.d.ts +3 -3
  9. package/dist/sdk.js +1 -1
  10. package/dist/{transactions-BzD9hYlc.d.ts → transactions-CLezIeXO.d.ts} +20 -18
  11. package/package.json +7 -3
  12. package/buf.gen.yaml +0 -12
  13. package/buf.lock +0 -9
  14. package/buf.yaml +0 -15
  15. package/dist/chunk-PH7P5EEU.js.map +0 -1
  16. package/proto/thru/common/v1/consensus.proto +0 -73
  17. package/proto/thru/common/v1/errors.proto +0 -65
  18. package/proto/thru/common/v1/filters.proto +0 -60
  19. package/proto/thru/common/v1/pagination.proto +0 -45
  20. package/proto/thru/core/v1/account.proto +0 -137
  21. package/proto/thru/core/v1/block.proto +0 -80
  22. package/proto/thru/core/v1/state.proto +0 -35
  23. package/proto/thru/core/v1/transaction.proto +0 -136
  24. package/proto/thru/core/v1/types.proto +0 -50
  25. package/proto/thru/services/v1/command_service.proto +0 -70
  26. package/proto/thru/services/v1/query_service.proto +0 -344
  27. package/proto/thru/services/v1/streaming_service.proto +0 -126
  28. package/thru-ts-client-sdk/__tests__/helpers/test-utils.ts +0 -228
  29. package/thru-ts-client-sdk/client.ts +0 -10
  30. package/thru-ts-client-sdk/core/__tests__/bound-client.test.ts +0 -354
  31. package/thru-ts-client-sdk/core/__tests__/client.test.ts +0 -53
  32. package/thru-ts-client-sdk/core/bound-client.ts +0 -156
  33. package/thru-ts-client-sdk/core/client.ts +0 -38
  34. package/thru-ts-client-sdk/defaults.ts +0 -26
  35. package/thru-ts-client-sdk/modules/__tests__/accounts.test.ts +0 -406
  36. package/thru-ts-client-sdk/modules/__tests__/blocks.test.ts +0 -199
  37. package/thru-ts-client-sdk/modules/__tests__/events.test.ts +0 -74
  38. package/thru-ts-client-sdk/modules/__tests__/height.test.ts +0 -39
  39. package/thru-ts-client-sdk/modules/__tests__/helpers.test.ts +0 -288
  40. package/thru-ts-client-sdk/modules/__tests__/keys.test.ts +0 -55
  41. package/thru-ts-client-sdk/modules/__tests__/proofs.test.ts +0 -119
  42. package/thru-ts-client-sdk/modules/__tests__/streaming.test.ts +0 -152
  43. package/thru-ts-client-sdk/modules/__tests__/transactions.test.ts +0 -730
  44. package/thru-ts-client-sdk/modules/__tests__/version.test.ts +0 -40
  45. package/thru-ts-client-sdk/modules/accounts.ts +0 -141
  46. package/thru-ts-client-sdk/modules/blocks.ts +0 -75
  47. package/thru-ts-client-sdk/modules/events.ts +0 -20
  48. package/thru-ts-client-sdk/modules/height.ts +0 -9
  49. package/thru-ts-client-sdk/modules/helpers.ts +0 -131
  50. package/thru-ts-client-sdk/modules/keys.ts +0 -29
  51. package/thru-ts-client-sdk/modules/proofs.ts +0 -20
  52. package/thru-ts-client-sdk/modules/streaming.ts +0 -133
  53. package/thru-ts-client-sdk/modules/transactions.ts +0 -374
  54. package/thru-ts-client-sdk/modules/version.ts +0 -10
  55. package/thru-ts-client-sdk/proto/buf/validate/validate_pb.ts +0 -4761
  56. package/thru-ts-client-sdk/proto/google/api/annotations_pb.ts +0 -39
  57. package/thru-ts-client-sdk/proto/google/api/client_pb.ts +0 -953
  58. package/thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts +0 -157
  59. package/thru-ts-client-sdk/proto/google/api/http_pb.ts +0 -474
  60. package/thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts +0 -118
  61. package/thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts +0 -162
  62. package/thru-ts-client-sdk/proto/thru/common/v1/errors_pb.ts +0 -129
  63. package/thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts +0 -129
  64. package/thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts +0 -79
  65. package/thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts +0 -359
  66. package/thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts +0 -259
  67. package/thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts +0 -103
  68. package/thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts +0 -528
  69. package/thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts +0 -100
  70. package/thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts +0 -146
  71. package/thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts +0 -819
  72. package/thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts +0 -390
  73. package/thru-ts-client-sdk/sdk.ts +0 -42
  74. package/thru-ts-client-sdk/test-scripts/counter.ts +0 -469
  75. package/thru-ts-client-sdk/test-scripts/create-account.ts +0 -74
  76. package/thru-ts-client-sdk/test-scripts/get-height.ts +0 -52
  77. package/thru-ts-client-sdk/transactions/Transaction.ts +0 -240
  78. package/thru-ts-client-sdk/transactions/TransactionBuilder.ts +0 -53
  79. package/thru-ts-client-sdk/transactions/__tests__/TransactionBuilder.test.ts +0 -411
  80. package/thru-ts-client-sdk/transactions/__tests__/utils.test.ts +0 -214
  81. package/thru-ts-client-sdk/transactions/index.ts +0 -3
  82. package/thru-ts-client-sdk/transactions/types.ts +0 -74
  83. package/thru-ts-client-sdk/transactions/utils.ts +0 -132
  84. package/thru-ts-client-sdk/types/types.ts +0 -8
  85. package/thru-ts-client-sdk/utils/utils.ts +0 -27
  86. package/tsconfig.json +0 -9
  87. package/tsup.config.ts +0 -14
  88. package/vitest.config.ts +0 -31
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { J as ThruClientContext, K as GetVersionResponse, M as getBlock, N as getRawBlock, O as listBlocks, P as streamBlocks, Q as getBlockHeight, U as getAccount, V as getRawAccount, W as listAccounts, X as streamAccountUpdates, Y as createAccount, Z as getTransaction, _ as getRawTransaction, $ as getTransactionStatus, a0 as listTransactionsForAccount, a1 as streamTransactions, a2 as buildTransaction, a3 as buildAndSignTransaction, a4 as sendTransaction, a5 as batchSendTransactions, a6 as trackTransaction, a7 as getEvent, a8 as streamEvents, a9 as generateStateProof, aa as generateKeyPair, ab as Signature, ac as Pubkey, ad as BlockHash, D as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, ae as ThruClientConfig } from './transactions-BzD9hYlc.js';
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-PH7P5EEU.js';
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),
@@ -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":";;;;;;AAKO,SAAS,WAAW,GAAA,EAAqD;AAC5E,EAAA,MAAM,OAAA,GAAU,MAAA,CAAO,uBAAA,EAAyB,EAAE,CAAA;AAClD,EAAA,OAAO,GAAA,CAAI,KAAA,CAAM,UAAA,CAAW,OAAO,CAAA;AACvC;;;ACkBA,SAAS,IAAA,CACL,KACA,EAAA,EACgB;AAChB,EAAA,QAAQ,CAAA,GAAI,IAAA,KAAkC,EAAA,CAAG,GAAA,EAAK,GAAG,IAAI,CAAA;AACjE;AAuEO,SAAS,sBAAsB,GAAA,EAA8B;AAChE,EAAA,OAAO;AAAA,IACH,GAAA;AAAA,IACA,MAAA,EAAQ;AAAA,MACJ,GAAA,EAAK,IAAA,CAAK,GAAA,EAAkB,QAAQ,CAAA;AAAA,MACpC,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAkB,WAAW,CAAA;AAAA,MAC1C,IAAA,EAAM,IAAA,CAAK,GAAA,EAAkB,UAAU,CAAA;AAAA,MACvC,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAqB,YAAY,CAAA;AAAA,MAC9C,cAAA,EAAgB,IAAA,CAAK,GAAA,EAAkB,cAAc;AAAA,KACzD;AAAA,IACA,QAAA,EAAU;AAAA,MACN,GAAA,EAAK,IAAA,CAAK,GAAA,EAAoB,UAAU,CAAA;AAAA,MACxC,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAoB,aAAa,CAAA;AAAA,MAC9C,IAAA,EAAM,IAAA,CAAK,GAAA,EAAoB,YAAY,CAAA;AAAA,MAC3C,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAqB,oBAAoB,CAAA;AAAA,MACtD,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAoB,aAAa;AAAA,KAClD;AAAA,IACA,YAAA,EAAc;AAAA,MACV,GAAA,EAAK,IAAA,CAAK,GAAA,EAAwB,cAAc,CAAA;AAAA,MAChD,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAwB,iBAAiB,CAAA;AAAA,MACtD,SAAA,EAAW,IAAA,CAAK,GAAA,EAAwB,oBAAoB,CAAA;AAAA,MAC5D,cAAA,EAAgB,IAAA,CAAK,GAAA,EAAwB,0BAA0B,CAAA;AAAA,MACvE,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAqB,kBAAkB,CAAA;AAAA,MACpD,KAAA,EAAO,IAAA,CAAK,GAAA,EAAwB,gBAAgB,CAAA;AAAA,MACpD,YAAA,EAAc,IAAA,CAAK,GAAA,EAAwB,uBAAuB,CAAA;AAAA,MAClE,IAAA,EAAM,IAAA,CAAK,GAAA,EAAwB,eAAe,CAAA;AAAA,MAClD,SAAA,EAAW,IAAA,CAAK,GAAA,EAAwB,qBAAqB,CAAA;AAAA,MAC7D,KAAA,EAAO,IAAA,CAAK,GAAA,EAAqB,gBAAgB;AAAA,KACrD;AAAA,IACA,OAAA,EAAS;AAAA,MACL,WAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,eAAA;AAAA,MACA,eAAA;AAAA,MACA,aAAA;AAAA,MACA,aAAA;AAAA,MACA;AAAA,KACJ;AAAA,IACA,IAAA,EAAM;AAAA,MACF;AAAA,KACJ;AAAA,IACA,MAAA,EAAQ;AAAA,MACJ,GAAA,EAAK,IAAA,CAAK,GAAA,EAAkB,QAAQ,CAAA;AAAA,MACpC,MAAA,EAAQ,IAAA,CAAK,GAAA,EAAqB,YAAY;AAAA,KAClD;AAAA,IACA,MAAA,EAAQ;AAAA,MACJ,QAAA,EAAU,IAAA,CAAK,GAAA,EAAkB,kBAAkB;AAAA,KACvD;AAAA,IACA,OAAA,EAAS;AAAA,MACL,GAAA,EAAK,IAAA,CAAK,GAAA,EAAmB,UAAU;AAAA;AAC3C,GACJ;AACJ;ACnIO,SAAS,uBAAA,CAAwB,MAAA,GAA2B,EAAC,EAAsB;AACtF,EAAA,MAAM,OAAA,GAAU,OAAO,OAAA,IAAW,YAAA;AAClC,EAAA,MAAM,YAAY,sBAAA,CAAuB;AAAA,IACrC;AAAA,GACH,CAAA;AAED,EAAA,OAAO;AAAA,IACH,OAAA;AAAA,IACA,SAAA;AAAA,IACA,KAAA,EAAO,YAAA,CAAa,YAAA,EAAc,SAAS,CAAA;AAAA,IAC3C,OAAA,EAAS,YAAA,CAAa,cAAA,EAAgB,SAAS,CAAA;AAAA,IAC/C,SAAA,EAAW,YAAA,CAAa,gBAAA,EAAkB,SAAS;AAAA,GACvD;AACJ;;;AC/BO,SAAS,gBAAA,CAAiB,MAAA,GAA2B,EAAC,EAAS;AAClE,EAAA,MAAM,GAAA,GAAM,wBAAwB,MAAM,CAAA;AAC1C,EAAA,OAAO,sBAAsB,GAAG,CAAA;AACpC","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\nexport type { Thru } from \"./core/bound-client\";\nexport type { ThruClientConfig } from './core/client';\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}"]}
@@ -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":3932,"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":1936,"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":4596,"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":4718,"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":4010,"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":12545,"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":1797,"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/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/modules/helpers.ts","kind":"import-statement","original":"./modules/helpers"},{"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":409,"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-PH7P5EEU.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":10590},"dist/client.js":{"imports":[{"path":"dist/chunk-PH7P5EEU.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-PH7P5EEU.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":495617},"dist/chunk-PH7P5EEU.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":7077},"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts":{"bytesInOutput":1924}},"bytes":148528}}}
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,6 +1,6 @@
1
- import { B as BuildTransactionParams, T as Transaction, S as SignedTransactionResult } from './transactions-BzD9hYlc.js';
2
- export { A as AccountQueryOptions, i as BlockQueryOptions, o as BlockSelector, v as BuildAndSignTransactionOptions, w as BuildTransactionOptions, C as ConsensusStatus, g as CreateAccountOptions, D as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, d as Filter, f as FilterParamValue, F as FilterParamValueSchema, c as FilterSchema, I as GenerateStateProofOptions, r as GeneratedKeyPair, G as GetEventOptions, L as ListAccountsOptions, j as ListBlocksOptions, R as RawAccountQueryOptions, l as RawBlockQueryOptions, x as RawTransactionQueryOptions, u as TrackTransactionOptions, y as TransactionAccountsConfig, z as TransactionFeePayerConfig, E as TransactionHeaderConfig, H as TransactionQueryOptions, a as accounts, b as blocks, m as deriveProgramAddress, e as events, h as height, k as keys, p as proofs, s as streaming, n as toPubkey, t as transactions } from './transactions-BzD9hYlc.js';
3
- import '@thru/helpers';
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
+ export { Pubkey } from '@thru/helpers';
4
4
  import '@bufbuild/protobuf/wkt';
5
5
  import '@bufbuild/protobuf';
6
6
  import '@connectrpc/connect';
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-PH7P5EEU.js';
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
@@ -1,4 +1,4 @@
1
- import { BytesLike } from '@thru/helpers';
1
+ import { BytesLike, Pubkey as Pubkey$1 } from '@thru/helpers';
2
2
  import { Timestamp } from '@bufbuild/protobuf/wkt';
3
3
  import { Message } from '@bufbuild/protobuf';
4
4
  import { createClient } from '@connectrpc/connect';
@@ -30,11 +30,11 @@ interface TransactionAccountsInput {
30
30
  readOnlyAccounts?: AccountAddress[];
31
31
  }
32
32
  /**
33
- * Builder context provided to instruction data functions.
33
+ * Context provided to instruction data functions.
34
34
  * Contains all transaction accounts in their final sorted order and helper functions
35
35
  * for looking up account indexes.
36
36
  */
37
- interface TransactionBuilderContext {
37
+ interface InstructionContext {
38
38
  /** All accounts in final transaction order: [feePayer, program, ...readWrite, ...readOnly] */
39
39
  accounts: AccountAddress[];
40
40
  /** Get the index of an account by its public key. Throws if account is not found in transaction. */
@@ -1511,7 +1511,7 @@ interface ThruClientContext {
1511
1511
 
1512
1512
  interface CreateAccountOptions {
1513
1513
  /** The new account's public key (fee payer). */
1514
- publicKey: BytesLike;
1514
+ publicKey: Pubkey$1;
1515
1515
  /** Optional overrides for the transaction header. */
1516
1516
  header?: Partial<TransactionHeaderInput>;
1517
1517
  }
@@ -1533,8 +1533,8 @@ interface ListAccountsOptions {
1533
1533
  page?: PageRequest;
1534
1534
  minConsensus?: ConsensusStatus;
1535
1535
  }
1536
- declare function getAccount(ctx: ThruClientContext, address: BytesLike, options?: AccountQueryOptions): Promise<Account>;
1537
- declare function getRawAccount(ctx: ThruClientContext, address: BytesLike, options?: RawAccountQueryOptions): Promise<RawAccount>;
1536
+ declare function getAccount(ctx: ThruClientContext, address: Pubkey$1, options?: AccountQueryOptions): Promise<Account>;
1537
+ declare function getRawAccount(ctx: ThruClientContext, address: Pubkey$1, options?: RawAccountQueryOptions): Promise<RawAccount>;
1538
1538
  declare function listAccounts(ctx: ThruClientContext, options: ListAccountsOptions): Promise<ListAccountsResponse>;
1539
1539
  declare function createAccount(ctx: ThruClientContext, options: CreateAccountOptions): Promise<Transaction$1>;
1540
1540
 
@@ -1555,9 +1555,9 @@ type BlockSelector = {
1555
1555
  } | {
1556
1556
  blockHash: BytesLike;
1557
1557
  };
1558
- declare function toPubkey(value: BytesLike, field: string): Pubkey;
1558
+ declare function toPubkey(value: Pubkey$1, field: string): Pubkey;
1559
1559
  interface DeriveProgramAddressOptions {
1560
- programAddress: BytesLike;
1560
+ programAddress: Pubkey$1;
1561
1561
  seed: BytesLike;
1562
1562
  ephemeral?: boolean;
1563
1563
  }
@@ -1621,15 +1621,17 @@ 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 = {
1632
- address?: BytesLike;
1634
+ address?: Pubkey$1;
1633
1635
  proofType: StateProofType;
1634
1636
  targetSlot: bigint;
1635
1637
  };
@@ -1658,7 +1660,7 @@ interface StreamAccountUpdatesOptions {
1658
1660
  filter?: Filter;
1659
1661
  signal?: AbortSignal;
1660
1662
  }
1661
- declare function streamAccountUpdates(ctx: ThruClientContext, address: BytesLike, options?: StreamAccountUpdatesOptions): AsyncIterable<StreamAccountUpdatesResponse>;
1663
+ declare function streamAccountUpdates(ctx: ThruClientContext, address: Pubkey$1, options?: StreamAccountUpdatesOptions): AsyncIterable<StreamAccountUpdatesResponse>;
1662
1664
  interface StreamTransactionsOptions {
1663
1665
  filter?: Filter;
1664
1666
  minConsensus?: ConsensusStatus;
@@ -1687,12 +1689,12 @@ declare namespace streaming {
1687
1689
  }
1688
1690
 
1689
1691
  interface TransactionFeePayerConfig {
1690
- publicKey: BytesLike;
1692
+ publicKey: Pubkey$1;
1691
1693
  privateKey?: Uint8Array;
1692
1694
  }
1693
1695
  interface TransactionAccountsConfig {
1694
- readWrite?: BytesLike[];
1695
- readOnly?: BytesLike[];
1696
+ readWrite?: Pubkey$1[];
1697
+ readOnly?: Pubkey$1[];
1696
1698
  }
1697
1699
  interface TransactionHeaderConfig {
1698
1700
  fee?: bigint;
@@ -1707,9 +1709,9 @@ interface TransactionHeaderConfig {
1707
1709
  /**
1708
1710
  * Instruction data can be either:
1709
1711
  * - A Uint8Array directly
1710
- * - A function that takes a TransactionBuilderContext and returns a Uint8Array
1712
+ * - A function that takes an InstructionContext and returns a Uint8Array
1711
1713
  */
1712
- type InstructionData = Uint8Array | ((context: TransactionBuilderContext) => Uint8Array);
1714
+ type InstructionData = Uint8Array | ((context: InstructionContext) => Promise<Uint8Array>);
1713
1715
  interface BuildTransactionOptions {
1714
1716
  feePayer: TransactionFeePayerConfig;
1715
1717
  program: ProgramIdentifier;
@@ -1740,7 +1742,7 @@ interface ListTransactionsForAccountOptions {
1740
1742
  declare function getTransaction(ctx: ThruClientContext, signature: BytesLike, options?: TransactionQueryOptions): Promise<Transaction>;
1741
1743
  declare function getRawTransaction(ctx: ThruClientContext, signature: BytesLike, options?: RawTransactionQueryOptions): Promise<RawTransaction>;
1742
1744
  declare function getTransactionStatus(ctx: ThruClientContext, signature: BytesLike): Promise<TransactionStatus>;
1743
- declare function listTransactionsForAccount(ctx: ThruClientContext, account: BytesLike, options?: ListTransactionsForAccountOptions): Promise<ListTransactionsForAccountResponse>;
1745
+ declare function listTransactionsForAccount(ctx: ThruClientContext, account: Pubkey$1, options?: ListTransactionsForAccountOptions): Promise<ListTransactionsForAccountResponse>;
1744
1746
  declare function buildTransaction(ctx: ThruClientContext, options: BuildTransactionOptions): Promise<Transaction$1>;
1745
1747
  declare function buildAndSignTransaction(ctx: ThruClientContext, options: BuildAndSignTransactionOptions): Promise<SignedTransactionResult>;
1746
1748
  declare function sendTransaction(ctx: ThruClientContext, transaction: Transaction$1 | Uint8Array): Promise<string>;
@@ -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 { getTransactionStatus as $, type AccountQueryOptions as A, type BuildTransactionParams as B, ConsensusStatus as C, type DeriveProgramAddressOptions as D, type TransactionHeaderConfig as E, FilterParamValueSchema as F, type GetEventOptions as G, type TransactionQueryOptions as H, type GenerateStateProofOptions as I, type ThruClientContext as J, type GetVersionResponse as K, type ListAccountsOptions as L, getBlock as M, getRawBlock as N, listBlocks as O, streamBlocks as P, getBlockHeight as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction$1 as T, getAccount as U, getRawAccount as V, listAccounts as W, streamAccountUpdates as X, createAccount as Y, getTransaction as Z, getRawTransaction as _, accounts as a, listTransactionsForAccount as a0, streamTransactions as a1, buildTransaction as a2, buildAndSignTransaction as a3, sendTransaction as a4, batchSendTransactions as a5, trackTransaction as a6, getEvent as a7, streamEvents as a8, generateStateProof as a9, generateKeyPair as aa, type Signature as ab, type Pubkey as ac, type BlockHash as ad, type ThruClientConfig as ae, blocks as b, FilterSchema as c, type Filter as d, events as e, type FilterParamValue as f, type CreateAccountOptions as g, height as h, type BlockQueryOptions as i, type ListBlocksOptions as j, keys as k, type RawBlockQueryOptions as l, deriveProgramAddress as m, toPubkey 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 BuildAndSignTransactionOptions as v, type BuildTransactionOptions as w, type RawTransactionQueryOptions as x, type TransactionAccountsConfig as y, type TransactionFeePayerConfig as z };
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,10 +1,14 @@
1
1
  {
2
2
  "name": "@thru/thru-sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "main": "./dist/sdk.js",
6
6
  "types": "./dist/sdk.d.ts",
7
7
  "sideEffects": false,
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
8
12
  "exports": {
9
13
  ".": {
10
14
  "import": "./dist/sdk.js",
@@ -21,8 +25,8 @@
21
25
  "@connectrpc/connect-web": "^2.1.0",
22
26
  "@noble/ed25519": "^2.3.0",
23
27
  "@noble/hashes": "^1.4.0",
24
- "@thru/crypto": "0.1.19",
25
- "@thru/helpers": "0.1.19"
28
+ "@thru/crypto": "0.1.21",
29
+ "@thru/helpers": "0.1.21"
26
30
  },
27
31
  "devDependencies": {
28
32
  "@bufbuild/buf": "^1.58.0",
package/buf.gen.yaml DELETED
@@ -1,12 +0,0 @@
1
- version: v2
2
-
3
- managed:
4
- enabled: true
5
-
6
- plugins:
7
- - local: protoc-gen-es
8
- out: thru-ts-client-sdk/proto
9
- opt: target=ts
10
- # - remote: buf.build/grpc/web
11
- # out: thru-ts-client-sdk/proto
12
- # opt: import_style=typescript,mode=grpcwebtext
package/buf.lock DELETED
@@ -1,9 +0,0 @@
1
- # Generated by buf. DO NOT EDIT.
2
- version: v2
3
- deps:
4
- - name: buf.build/bufbuild/protovalidate
5
- commit: 52f32327d4b045a79293a6ad4e7e1236
6
- digest: b5:cbabc98d4b7b7b0447c9b15f68eeb8a7a44ef8516cb386ac5f66e7fd4062cd6723ed3f452ad8c384b851f79e33d26e7f8a94e2b807282b3def1cd966c7eace97
7
- - name: buf.build/googleapis/googleapis
8
- commit: 72c8614f3bd0466ea67931ef2c43d608
9
- digest: b5:13efeea24e633fd45327390bdee941207a8727e96cf01affb84c1e4100fd8f48a42bbd508df11930cd2884629bafad685df1ac3111bc78cdaefcd38c9371c6b1
package/buf.yaml DELETED
@@ -1,15 +0,0 @@
1
- version: v2
2
-
3
- modules:
4
- - path: proto
5
-
6
- deps:
7
- - buf.build/googleapis/googleapis
8
- - buf.build/bufbuild/protovalidate
9
-
10
- lint:
11
- use:
12
- - STANDARD
13
- breaking:
14
- use:
15
- - FILE