@thru/thru-sdk 0.1.15 → 0.1.19

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 (52) hide show
  1. package/README.md +77 -0
  2. package/dist/{chunk-FDZQR6ZZ.js → chunk-PH7P5EEU.js} +168 -65
  3. package/dist/chunk-PH7P5EEU.js.map +1 -0
  4. package/dist/client.d.ts +16 -3
  5. package/dist/client.js +19 -3
  6. package/dist/client.js.map +1 -1
  7. package/dist/metafile-esm.json +1 -1
  8. package/dist/sdk.d.ts +4 -3
  9. package/dist/sdk.js +1 -1
  10. package/dist/{transactions-X2KKrGw6.d.ts → transactions-BzD9hYlc.d.ts} +552 -88
  11. package/package.json +11 -4
  12. package/thru-ts-client-sdk/__tests__/helpers/test-utils.ts +228 -0
  13. package/thru-ts-client-sdk/core/__tests__/bound-client.test.ts +354 -0
  14. package/thru-ts-client-sdk/core/__tests__/client.test.ts +53 -0
  15. package/thru-ts-client-sdk/core/bound-client.ts +23 -2
  16. package/thru-ts-client-sdk/defaults.ts +10 -1
  17. package/thru-ts-client-sdk/modules/__tests__/accounts.test.ts +406 -0
  18. package/thru-ts-client-sdk/modules/__tests__/blocks.test.ts +199 -0
  19. package/thru-ts-client-sdk/modules/__tests__/events.test.ts +74 -0
  20. package/thru-ts-client-sdk/modules/__tests__/height.test.ts +39 -0
  21. package/thru-ts-client-sdk/modules/__tests__/helpers.test.ts +288 -0
  22. package/thru-ts-client-sdk/modules/__tests__/keys.test.ts +55 -0
  23. package/thru-ts-client-sdk/modules/__tests__/proofs.test.ts +119 -0
  24. package/thru-ts-client-sdk/modules/__tests__/streaming.test.ts +152 -0
  25. package/thru-ts-client-sdk/modules/__tests__/transactions.test.ts +730 -0
  26. package/thru-ts-client-sdk/modules/__tests__/version.test.ts +40 -0
  27. package/thru-ts-client-sdk/modules/accounts.ts +14 -18
  28. package/thru-ts-client-sdk/modules/streaming.ts +102 -3
  29. package/thru-ts-client-sdk/modules/transactions.ts +136 -36
  30. package/thru-ts-client-sdk/modules/version.ts +10 -0
  31. package/thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts +2 -3
  32. package/thru-ts-client-sdk/proto/thru/common/v1/errors_pb.ts +7 -8
  33. package/thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts +58 -10
  34. package/thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts +12 -13
  35. package/thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts +27 -26
  36. package/thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts +7 -8
  37. package/thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts +4 -5
  38. package/thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts +213 -12
  39. package/thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts +2 -3
  40. package/thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts +68 -3
  41. package/thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts +84 -78
  42. package/thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts +24 -25
  43. package/thru-ts-client-sdk/sdk.ts +5 -3
  44. package/thru-ts-client-sdk/test-scripts/counter.ts +353 -100
  45. package/thru-ts-client-sdk/transactions/Transaction.ts +10 -10
  46. package/thru-ts-client-sdk/transactions/TransactionBuilder.ts +12 -7
  47. package/thru-ts-client-sdk/transactions/__tests__/TransactionBuilder.test.ts +411 -0
  48. package/thru-ts-client-sdk/transactions/__tests__/utils.test.ts +214 -0
  49. package/thru-ts-client-sdk/transactions/types.ts +14 -4
  50. package/vitest.config.ts +31 -0
  51. package/dist/chunk-FDZQR6ZZ.js.map +0 -1
  52. package/thru-ts-client-sdk/transactions/__tests__/transaction.test.ts +0 -95
package/dist/client.d.ts CHANGED
@@ -1,34 +1,43 @@
1
- import { F as ThruClientContext, H as getBlock, I as getRawBlock, J as listBlocks, K as getBlockHeight, M as getAccount, N as getRawAccount, O as listOwnedAccounts, P as createAccount, Q as getTransaction, U as getRawTransaction, V as getTransactionStatus, W as buildTransaction, X as buildAndSignTransaction, Y as sendTransaction, Z as trackTransaction, _ as getEvent, $ as generateStateProof, a0 as generateKeyPair, a1 as Signature, a2 as Pubkey, a3 as BlockHash, D as DeriveProgramAddressOptions, m as DeriveProgramAddressResult, a4 as ThruClientConfig } from './transactions-X2KKrGw6.js';
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';
2
2
  import '@thru/helpers';
3
+ import '@bufbuild/protobuf/wkt';
3
4
  import '@bufbuild/protobuf';
4
5
  import '@connectrpc/connect';
5
6
  import '@connectrpc/connect-web';
6
- import '@bufbuild/protobuf/wkt';
7
+ import '@bufbuild/protobuf/codegenv2';
8
+
9
+ declare function getVersion(ctx: ThruClientContext): Promise<GetVersionResponse>;
7
10
 
8
11
  type BoundFunction<F> = F extends (ctx: ThruClientContext, ...args: infer P) => infer R ? (...args: P) => R : never;
9
12
  interface BoundBlocks {
10
13
  get: BoundFunction<typeof getBlock>;
11
14
  getRaw: BoundFunction<typeof getRawBlock>;
12
15
  list: BoundFunction<typeof listBlocks>;
16
+ stream: BoundFunction<typeof streamBlocks>;
13
17
  getBlockHeight: BoundFunction<typeof getBlockHeight>;
14
18
  }
15
19
  interface BoundAccounts {
16
20
  get: BoundFunction<typeof getAccount>;
17
21
  getRaw: BoundFunction<typeof getRawAccount>;
18
- listOwned: BoundFunction<typeof listOwnedAccounts>;
22
+ list: BoundFunction<typeof listAccounts>;
23
+ stream: BoundFunction<typeof streamAccountUpdates>;
19
24
  create: BoundFunction<typeof createAccount>;
20
25
  }
21
26
  interface BoundTransactions {
22
27
  get: BoundFunction<typeof getTransaction>;
23
28
  getRaw: BoundFunction<typeof getRawTransaction>;
24
29
  getStatus: BoundFunction<typeof getTransactionStatus>;
30
+ listForAccount: BoundFunction<typeof listTransactionsForAccount>;
31
+ stream: BoundFunction<typeof streamTransactions>;
25
32
  build: BoundFunction<typeof buildTransaction>;
26
33
  buildAndSign: BoundFunction<typeof buildAndSignTransaction>;
27
34
  send: BoundFunction<typeof sendTransaction>;
35
+ batchSend: BoundFunction<typeof batchSendTransactions>;
28
36
  track: BoundFunction<typeof trackTransaction>;
29
37
  }
30
38
  interface BoundEvents {
31
39
  get: BoundFunction<typeof getEvent>;
40
+ stream: BoundFunction<typeof streamEvents>;
32
41
  }
33
42
  interface BoundProofs {
34
43
  generate: BoundFunction<typeof generateStateProof>;
@@ -36,6 +45,9 @@ interface BoundProofs {
36
45
  interface BoundKeys {
37
46
  generateKeyPair: typeof generateKeyPair;
38
47
  }
48
+ interface BoundVersion {
49
+ get: BoundFunction<typeof getVersion>;
50
+ }
39
51
  interface Helpers {
40
52
  toSignature(value: Uint8Array | string): Signature;
41
53
  toPubkey(value: Uint8Array | string, field: string): Pubkey;
@@ -54,6 +66,7 @@ interface Thru {
54
66
  events: BoundEvents;
55
67
  proofs: BoundProofs;
56
68
  keys: BoundKeys;
69
+ version: BoundVersion;
57
70
  helpers: Helpers;
58
71
  }
59
72
 
package/dist/client.js CHANGED
@@ -1,8 +1,15 @@
1
- import { DEFAULT_HOST, StreamingService, CommandService, QueryService, generateKeyPair, deriveProgramAddress, toBlockHash, toPubkey, toSignature, generateStateProof, getEvent, trackTransaction, sendTransaction, buildAndSignTransaction, buildTransaction, getTransactionStatus, getRawTransaction, getTransaction, createAccount, listOwnedAccounts, getRawAccount, getAccount, getBlockHeight, listBlocks, getRawBlock, getBlock } from './chunk-FDZQR6ZZ.js';
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';
2
2
  import { decodeAddress, encodeAddress, decodeSignature, encodeSignature } from '@thru/helpers';
3
+ import { create } from '@bufbuild/protobuf';
3
4
  import { createClient } from '@connectrpc/connect';
4
5
  import { createGrpcWebTransport } from '@connectrpc/connect-web';
5
6
 
7
+ function getVersion(ctx) {
8
+ const request = create(GetVersionRequestSchema, {});
9
+ return ctx.query.getVersion(request);
10
+ }
11
+
12
+ // thru-ts-client-sdk/core/bound-client.ts
6
13
  function bind(ctx, fn) {
7
14
  return ((...args) => fn(ctx, ...args));
8
15
  }
@@ -13,21 +20,26 @@ function createBoundThruClient(ctx) {
13
20
  get: bind(ctx, getBlock),
14
21
  getRaw: bind(ctx, getRawBlock),
15
22
  list: bind(ctx, listBlocks),
23
+ stream: bind(ctx, streamBlocks),
16
24
  getBlockHeight: bind(ctx, getBlockHeight)
17
25
  },
18
26
  accounts: {
19
27
  get: bind(ctx, getAccount),
20
28
  getRaw: bind(ctx, getRawAccount),
21
- listOwned: bind(ctx, listOwnedAccounts),
29
+ list: bind(ctx, listAccounts),
30
+ stream: bind(ctx, streamAccountUpdates),
22
31
  create: bind(ctx, createAccount)
23
32
  },
24
33
  transactions: {
25
34
  get: bind(ctx, getTransaction),
26
35
  getRaw: bind(ctx, getRawTransaction),
27
36
  getStatus: bind(ctx, getTransactionStatus),
37
+ listForAccount: bind(ctx, listTransactionsForAccount),
38
+ stream: bind(ctx, streamTransactions),
28
39
  build: bind(ctx, buildTransaction),
29
40
  buildAndSign: bind(ctx, buildAndSignTransaction),
30
41
  send: bind(ctx, sendTransaction),
42
+ batchSend: bind(ctx, batchSendTransactions),
31
43
  track: bind(ctx, trackTransaction)
32
44
  },
33
45
  helpers: {
@@ -44,10 +56,14 @@ function createBoundThruClient(ctx) {
44
56
  generateKeyPair
45
57
  },
46
58
  events: {
47
- get: bind(ctx, getEvent)
59
+ get: bind(ctx, getEvent),
60
+ stream: bind(ctx, streamEvents)
48
61
  },
49
62
  proofs: {
50
63
  generate: bind(ctx, generateStateProof)
64
+ },
65
+ version: {
66
+ get: bind(ctx, getVersion)
51
67
  }
52
68
  };
53
69
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../thru-ts-client-sdk/core/bound-client.ts","../thru-ts-client-sdk/core/client.ts","../thru-ts-client-sdk/client.ts"],"names":[],"mappings":";;;;;AAyBA,SAAS,IAAA,CACL,KACA,EAAA,EACgB;AAChB,EAAA,QAAQ,CAAA,GAAI,IAAA,KAAkC,EAAA,CAAG,GAAA,EAAK,GAAG,IAAI,CAAA;AACjE;AA4DO,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,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,SAAA,EAAW,IAAA,CAAK,GAAA,EAAoB,iBAAiB,CAAA;AAAA,MACrD,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,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,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;AAAA,KACxC;AAAA,IACA,MAAA,EAAQ;AAAA,MACJ,QAAA,EAAU,IAAA,CAAK,GAAA,EAAkB,kBAAkB;AAAA;AACvD,GACJ;AACJ;AC9GO,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 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 { 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 getBlockHeight: BoundFunction<typeof heightModule.getBlockHeight>;\n}\n\ninterface BoundAccounts {\n get: BoundFunction<typeof accountsModule.getAccount>;\n getRaw: BoundFunction<typeof accountsModule.getRawAccount>;\n listOwned: BoundFunction<typeof accountsModule.listOwnedAccounts>;\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 build: BoundFunction<typeof transactionsModule.buildTransaction>;\n buildAndSign: BoundFunction<typeof transactionsModule.buildAndSignTransaction>;\n send: BoundFunction<typeof transactionsModule.sendTransaction>;\n track: BoundFunction<typeof streamingModule.trackTransaction>;\n}\n\ninterface BoundEvents {\n get: BoundFunction<typeof eventsModule.getEvent>;\n}\n\ninterface BoundProofs {\n generate: BoundFunction<typeof proofsModule.generateStateProof>;\n}\n\ninterface BoundKeys {\n generateKeyPair: typeof keysModule.generateKeyPair;\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 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 getBlockHeight: bind(ctx, heightModule.getBlockHeight),\n },\n accounts: {\n get: bind(ctx, accountsModule.getAccount),\n getRaw: bind(ctx, accountsModule.getRawAccount),\n listOwned: bind(ctx, accountsModule.listOwnedAccounts),\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 build: bind(ctx, transactionsModule.buildTransaction),\n buildAndSign: bind(ctx, transactionsModule.buildAndSignTransaction),\n send: bind(ctx, transactionsModule.sendTransaction),\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 },\n proofs: {\n generate: bind(ctx, proofsModule.generateStateProof),\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":";;;;;;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 +1 @@
1
- {"inputs":{"thru-ts-client-sdk/transactions/Transaction.ts":{"bytes":8263,"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":1894,"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":1488,"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":6502,"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":3326,"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":11427,"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":8398,"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":10791,"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":777,"imports":[{"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":3665,"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":3385,"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":3053,"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":32810,"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":4748,"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/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":16008,"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":1169,"imports":[{"path":"@bufbuild/protobuf","kind":"import-statement","external":true},{"path":"@thru/helpers","kind":"import-statement","external":true},{"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":3933,"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":9047,"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"}],"format":"esm"},"thru-ts-client-sdk/sdk.ts":{"bytes":1655,"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/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/core/bound-client.ts":{"bytes":5027,"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":"../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-FDZQR6ZZ.js","kind":"import-statement"}],"exports":["ConsensusStatus","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":646},"dist/client.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":8637},"dist/client.js":{"imports":[{"path":"dist/chunk-FDZQR6ZZ.js","kind":"import-statement"},{"path":"@thru/helpers","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":1275},"thru-ts-client-sdk/core/client.ts":{"bytesInOutput":486},"thru-ts-client-sdk/client.ts":{"bytesInOutput":127}},"bytes":2538},"dist/chunk-FDZQR6ZZ.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":471122},"dist/chunk-FDZQR6ZZ.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","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/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":"@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","QueryService","StreamingService","Transaction","TransactionBuilder","accounts_exports","blocks_exports","buildAndSignTransaction","buildTransaction","createAccount","deriveProgramAddress","events_exports","generateKeyPair","generateStateProof","getAccount","getBlock","getBlockHeight","getEvent","getRawAccount","getRawBlock","getRawTransaction","getTransaction","getTransactionStatus","height_exports","keys_exports","listBlocks","listOwnedAccounts","proofs_exports","sendTransaction","streaming_exports","toBlockHash","toPubkey","toSignature","trackTransaction","transactions_exports"],"inputs":{"thru-ts-client-sdk/transactions/Transaction.ts":{"bytesInOutput":6149},"thru-ts-client-sdk/transactions/utils.ts":{"bytesInOutput":3172},"thru-ts-client-sdk/transactions/TransactionBuilder.ts":{"bytesInOutput":1322},"thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts":{"bytesInOutput":2197},"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/modules/height.ts":{"bytesInOutput":262},"thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts":{"bytesInOutput":9905},"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/filters_pb.ts":{"bytesInOutput":966},"thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts":{"bytesInOutput":839},"thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts":{"bytesInOutput":2805},"thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts":{"bytesInOutput":992},"thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts":{"bytesInOutput":2343},"thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts":{"bytesInOutput":1124},"thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts":{"bytesInOutput":2926},"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":2481},"thru-ts-client-sdk/defaults.ts":{"bytesInOutput":384},"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":585},"thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts":{"bytesInOutput":4175},"thru-ts-client-sdk/modules/transactions.ts":{"bytesInOutput":5335},"thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts":{"bytesInOutput":1360}},"bytes":139257}}}
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}}}
package/dist/sdk.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { B as BuildTransactionParams, T as Transaction, S as SignedTransactionResult } from './transactions-X2KKrGw6.js';
2
- export { A as AccountQueryOptions, d as BlockQueryOptions, l as BlockSelector, q as BuildAndSignTransactionOptions, r as BuildTransactionOptions, C as ConsensusStatus, c as CreateAccountOptions, D as DeriveProgramAddressOptions, m as DeriveProgramAddressResult, E as GenerateStateProofOptions, n as GeneratedKeyPair, G as GetEventOptions, f as ListBlocksOptions, L as ListOwnedAccountsOptions, R as RawAccountQueryOptions, g as RawBlockQueryOptions, u as RawTransactionQueryOptions, o as TrackTransactionOptions, v as TransactionAccountsConfig, w as TransactionContentConfig, x as TransactionFeePayerConfig, y as TransactionHeaderConfig, z as TransactionQueryOptions, a as accounts, b as blocks, i as deriveProgramAddress, e as events, h as height, k as keys, p as proofs, s as streaming, j as toPubkey, t as transactions } from './transactions-X2KKrGw6.js';
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
3
  import '@thru/helpers';
4
+ import '@bufbuild/protobuf/wkt';
4
5
  import '@bufbuild/protobuf';
5
6
  import '@connectrpc/connect';
6
7
  import '@connectrpc/connect-web';
7
- import '@bufbuild/protobuf/wkt';
8
+ import '@bufbuild/protobuf/codegenv2';
8
9
 
9
10
  declare class TransactionBuilder {
10
11
  build(params: BuildTransactionParams): Transaction;
package/dist/sdk.js CHANGED
@@ -1,3 +1,3 @@
1
- export { ConsensusStatus, 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-FDZQR6ZZ.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-PH7P5EEU.js';
2
2
  //# sourceMappingURL=sdk.js.map
3
3
  //# sourceMappingURL=sdk.js.map