@thruputchain/client 0.27.0 → 0.28.0

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 (104) hide show
  1. package/README.md +9 -6
  2. package/dist/{actions-DK_XBeVy.cjs → actions-B5-CjpEF.cjs} +6 -6
  3. package/dist/{actions-DK_XBeVy.cjs.map → actions-B5-CjpEF.cjs.map} +1 -1
  4. package/dist/{actions-1LmkZcfS.js → actions-C1SMLWO5.js} +6 -6
  5. package/dist/{actions-1LmkZcfS.js.map → actions-C1SMLWO5.js.map} +1 -1
  6. package/dist/actions.cjs +2 -2
  7. package/dist/actions.d.cts +3 -3
  8. package/dist/actions.d.ts +3 -3
  9. package/dist/actions.js +2 -2
  10. package/dist/{client-DocSdzOL.d.cts → client-jOZxB8yW.d.cts} +10 -2
  11. package/dist/client-jOZxB8yW.d.cts.map +1 -0
  12. package/dist/{client-DocSdzOL.d.ts → client-jOZxB8yW.d.ts} +10 -2
  13. package/dist/client-jOZxB8yW.d.ts.map +1 -0
  14. package/dist/{codec-C4LJ0g8v.cjs → codec-BcK8ASsg.cjs} +315 -1
  15. package/dist/{codec-C4LJ0g8v.cjs.map → codec-BcK8ASsg.cjs.map} +1 -1
  16. package/dist/{codec-BOjoJjC5.js → codec-Bxlt1gKO.js} +315 -1
  17. package/dist/{codec-BOjoJjC5.js.map → codec-Bxlt1gKO.js.map} +1 -1
  18. package/dist/{contract-Cu8Qv94_.js → contract-D77iA2iY.js} +2 -2
  19. package/dist/{contract-Cu8Qv94_.js.map → contract-D77iA2iY.js.map} +1 -1
  20. package/dist/{contract-DPm2BJTu.cjs → contract-DSu2UPPm.cjs} +2 -2
  21. package/dist/{contract-DPm2BJTu.cjs.map → contract-DSu2UPPm.cjs.map} +1 -1
  22. package/dist/contract.cjs +1 -1
  23. package/dist/contract.d.cts +2 -2
  24. package/dist/contract.d.ts +2 -2
  25. package/dist/contract.js +1 -1
  26. package/dist/contracts.cjs +3 -3
  27. package/dist/contracts.d.cts +3 -3
  28. package/dist/contracts.d.ts +3 -3
  29. package/dist/contracts.js +3 -3
  30. package/dist/{dev_wallet-BcvX_xT4.cjs → dev_wallet-CAbOSrak.cjs} +2 -2
  31. package/dist/{dev_wallet-BcvX_xT4.cjs.map → dev_wallet-CAbOSrak.cjs.map} +1 -1
  32. package/dist/{dev_wallet-B5R5JJaw.js → dev_wallet-CU3RpQLm.js} +2 -2
  33. package/dist/{dev_wallet-B5R5JJaw.js.map → dev_wallet-CU3RpQLm.js.map} +1 -1
  34. package/dist/{execution-C8oQgpO3.d.cts → execution-J5jkXhV1.d.cts} +3 -3
  35. package/dist/{execution-C8oQgpO3.d.cts.map → execution-J5jkXhV1.d.cts.map} +1 -1
  36. package/dist/{execution-DsZzqv_C.d.ts → execution-XJ0iwFaX.d.ts} +3 -3
  37. package/dist/{execution-DsZzqv_C.d.ts.map → execution-XJ0iwFaX.d.ts.map} +1 -1
  38. package/dist/{index-CHnfHuQo.d.ts → index-Bb01ytjJ.d.ts} +4 -4
  39. package/dist/{index-CHnfHuQo.d.ts.map → index-Bb01ytjJ.d.ts.map} +1 -1
  40. package/dist/{index-Zaz-e8Sy.d.ts → index-C3HVRvQd.d.ts} +2 -2
  41. package/dist/{index-Zaz-e8Sy.d.ts.map → index-C3HVRvQd.d.ts.map} +1 -1
  42. package/dist/{index-BmQN3jAS.d.cts → index-CedOvhGY.d.cts} +2 -2
  43. package/dist/{index-BmQN3jAS.d.cts.map → index-CedOvhGY.d.cts.map} +1 -1
  44. package/dist/{index-CuzB95QT.d.cts → index-CtjWsAXV.d.cts} +4 -4
  45. package/dist/{index-CuzB95QT.d.cts.map → index-CtjWsAXV.d.cts.map} +1 -1
  46. package/dist/{index-C3qDR1J5.d.cts → index-CtjZ61tl.d.cts} +2 -2
  47. package/dist/{index-C3qDR1J5.d.cts.map → index-CtjZ61tl.d.cts.map} +1 -1
  48. package/dist/{index-hqEnT64w.d.ts → index-DeS1S0m-.d.ts} +2 -2
  49. package/dist/{index-hqEnT64w.d.ts.map → index-DeS1S0m-.d.ts.map} +1 -1
  50. package/dist/{index-CKqC9N4o.d.ts → index-DfmDUk5Y.d.ts} +4 -4
  51. package/dist/{index-CKqC9N4o.d.ts.map → index-DfmDUk5Y.d.ts.map} +1 -1
  52. package/dist/{index-rrP1HJ2Z.d.cts → index-soFVQX9j.d.cts} +4 -4
  53. package/dist/{index-rrP1HJ2Z.d.cts.map → index-soFVQX9j.d.cts.map} +1 -1
  54. package/dist/index.cjs +9 -9
  55. package/dist/index.d.cts +9 -9
  56. package/dist/index.d.ts +9 -9
  57. package/dist/index.js +9 -9
  58. package/dist/{readError-Cz3bveZa.cjs → readError-CCVlmBhj.cjs} +5 -3
  59. package/dist/{readError-Cz3bveZa.cjs.map → readError-CCVlmBhj.cjs.map} +1 -1
  60. package/dist/{readError-Z5zuylri.js → readError-D1dppovI.js} +5 -3
  61. package/dist/{readError-Z5zuylri.js.map → readError-D1dppovI.js.map} +1 -1
  62. package/dist/{readViews-CQOY5v4o.d.cts → readViews-DbWELMMq.d.cts} +2 -2
  63. package/dist/{readViews-CQOY5v4o.d.cts.map → readViews-DbWELMMq.d.cts.map} +1 -1
  64. package/dist/{readViews-BvMHbiaF.d.ts → readViews-nV3jbpYc.d.ts} +2 -2
  65. package/dist/{readViews-BvMHbiaF.d.ts.map → readViews-nV3jbpYc.d.ts.map} +1 -1
  66. package/dist/{sendInvocation-8TEMrJ_M.cjs → sendInvocation-Dsr9ij5P.cjs} +5 -5
  67. package/dist/{sendInvocation-8TEMrJ_M.cjs.map → sendInvocation-Dsr9ij5P.cjs.map} +1 -1
  68. package/dist/{sendInvocation-CkeMyLk1.js → sendInvocation-tBmf8haQ.js} +5 -5
  69. package/dist/{sendInvocation-CkeMyLk1.js.map → sendInvocation-tBmf8haQ.js.map} +1 -1
  70. package/dist/signed-op.cjs +2 -2
  71. package/dist/signed-op.d.cts +1 -1
  72. package/dist/signed-op.d.ts +1 -1
  73. package/dist/signed-op.js +2 -2
  74. package/dist/{signedOp-BDUZhfJn.cjs → signedOp-DAucp6xg.cjs} +3 -3
  75. package/dist/{signedOp-BDUZhfJn.cjs.map → signedOp-DAucp6xg.cjs.map} +1 -1
  76. package/dist/{signedOp-Kx8u8_3I.js → signedOp-DpmUpH-e.js} +3 -3
  77. package/dist/{signedOp-Kx8u8_3I.js.map → signedOp-DpmUpH-e.js.map} +1 -1
  78. package/dist/{signed_op-Dxn7-lRu.js → signed_op-CwN-_CXw.js} +2 -2
  79. package/dist/{signed_op-Dxn7-lRu.js.map → signed_op-CwN-_CXw.js.map} +1 -1
  80. package/dist/{signed_op-BrLxDrDb.d.cts → signed_op-D2usgASc.d.cts} +3 -3
  81. package/dist/{signed_op-BrLxDrDb.d.cts.map → signed_op-D2usgASc.d.cts.map} +1 -1
  82. package/dist/{signed_op-CAcYYRm6.cjs → signed_op-_lR85dn2.cjs} +2 -2
  83. package/dist/{signed_op-CAcYYRm6.cjs.map → signed_op-_lR85dn2.cjs.map} +1 -1
  84. package/dist/{signed_op-DbRq3_Hb.d.ts → signed_op-zGq4eBo8.d.ts} +3 -3
  85. package/dist/{signed_op-DbRq3_Hb.d.ts.map → signed_op-zGq4eBo8.d.ts.map} +1 -1
  86. package/dist/{transport-DqlfAsuH.cjs → transport-5FPeNwuv.cjs} +3 -3
  87. package/dist/{transport-DqlfAsuH.cjs.map → transport-5FPeNwuv.cjs.map} +1 -1
  88. package/dist/{transport-PstrCcBv.js → transport-IrhVlS4w.js} +3 -3
  89. package/dist/{transport-PstrCcBv.js.map → transport-IrhVlS4w.js.map} +1 -1
  90. package/dist/transport.cjs +3 -3
  91. package/dist/transport.d.cts +3 -3
  92. package/dist/transport.d.ts +3 -3
  93. package/dist/transport.js +3 -3
  94. package/dist/{wallet-Blh7oas7.cjs → wallet-7R5M_7h4.cjs} +3 -3
  95. package/dist/{wallet-Blh7oas7.cjs.map → wallet-7R5M_7h4.cjs.map} +1 -1
  96. package/dist/{wallet-5wt9wLG3.js → wallet-BNKgOXrF.js} +3 -3
  97. package/dist/{wallet-5wt9wLG3.js.map → wallet-BNKgOXrF.js.map} +1 -1
  98. package/dist/wallet.cjs +2 -2
  99. package/dist/wallet.d.cts +2 -2
  100. package/dist/wallet.d.ts +2 -2
  101. package/dist/wallet.js +2 -2
  102. package/package.json +1 -1
  103. package/dist/client-DocSdzOL.d.cts.map +0 -1
  104. package/dist/client-DocSdzOL.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"signed_op-CAcYYRm6.cjs","names":["__gh_contract_spec","__gh_protocol","__gh_protocol_utils"],"sources":["../src/contracts/signed_op.ts"],"sourcesContent":["// Generated from signed_op.spec.xdr - SignedOp interface v0.1.68\n// DO NOT EDIT. Re-run codegen to update.\n\nimport * as __gh_protocol from \"@thruputchain/protocol\";\nimport * as __gh_protocol_utils from \"@thruputchain/protocol/utils\";\nimport * as __gh_contract_spec from \"@thruputchain/contract-spec\";\nimport * as __gh_client_contract from \"../contract/index.js\";\n\nconst __gh_s = __gh_contract_spec.contractSpecString;\n\nconst __gh_entrypoints = {\n SignedOp: {\n v0_1: {\n executeSignedOp: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"c281dc2ffb5eeb1e\"),\n ),\n },\n },\n} as const;\n\nexport namespace thruput_signed_op_if {\n export namespace v0_1 {\n export interface Operation {\n block_expiry_height: bigint;\n nonce: bigint;\n body: globalThis.Uint8Array;\n }\n\n export namespace error {\n export type SignedOpError = 1n | 2n | 3n | 4n | 5n;\n }\n }\n}\n\nexport namespace SignedOp {\n export namespace v0_1 {\n export interface ExecuteSignedOpArgs {\n op: __gh_codegen.thruput_signed_op_if$v0_1$Operation;\n signature: __gh_client_contract.FixedBytes<64>;\n }\n export type ExecuteSignedOpResult = __gh_client_contract.SignedToken;\n\n export type DeclaredException = {\n kind: \"declared\";\n name: \"SignedOpError\";\n selector: 0xd7c6325a55793b51n;\n value: __gh_codegen.thruput_signed_op_if$v0_1$error$SignedOpError;\n };\n export type Exception =\n __gh_client_contract.ContractException<DeclaredException>;\n }\n}\n\nexport const spec: __gh_client_contract.ContractSpec = {\n interfaces: [\n {\n name: __gh_s(\"SignedOp\"),\n vers: __gh_s(\"0.1.68\"),\n throws: [\n {\n selector: 0xd7c6325a55793b51n,\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if::error\"),\n declared: __gh_s(\"SignedOpError\"),\n },\n },\n },\n ],\n methods: [\n {\n name: __gh_s(\"execute_signed_op\"),\n args: [\n {\n name: __gh_s(\"op\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if\"),\n declared: __gh_s(\"Operation\"),\n },\n },\n },\n {\n name: __gh_s(\"signature\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Array,\n array: {\n element: { v: __gh_contract_spec.ContractTypeKind.U8 },\n len: 64n,\n },\n },\n },\n ],\n return_type: {\n v: __gh_contract_spec.ContractTypeKind.SignedToken,\n signed_token_preimage: { preimage_type: null },\n },\n effect: null,\n },\n ],\n },\n ],\n type_defs: [\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefStruct,\n struct_def: {\n name: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if\"),\n declared: __gh_s(\"Operation\"),\n },\n fields: [\n {\n name: __gh_s(\"block_expiry_height\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I64 },\n },\n {\n name: __gh_s(\"nonce\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.U64 },\n },\n {\n name: __gh_s(\"body\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Vector,\n vector: {\n element: { v: __gh_contract_spec.ContractTypeKind.U8 },\n max_len: 4294967295n,\n },\n },\n },\n ],\n },\n },\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefEnum,\n enum_def: {\n name: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if::error\"),\n declared: __gh_s(\"SignedOpError\"),\n },\n variants: [\n { name: __gh_s(\"InvalidSignature\"), value: 1n },\n { name: __gh_s(\"Expired\"), value: 2n },\n { name: __gh_s(\"AlreadyConsumed\"), value: 3n },\n { name: __gh_s(\"MalformedBody\"), value: 4n },\n { name: __gh_s(\"NotYetExpired\"), value: 5n },\n ],\n },\n },\n ],\n events: [],\n};\n\nconst __gh_codecs = __gh_client_contract.createContractCodecContext(\n spec.type_defs,\n);\n\nexport const SignedOp = {\n v0_1: {\n executeSignedOp: __gh_client_contract.defineContractMethod<\n SignedOp.v0_1.ExecuteSignedOpArgs,\n SignedOp.v0_1.ExecuteSignedOpResult,\n SignedOp.v0_1.DeclaredException\n >({\n interfaceName: \"SignedOp\",\n interfaceVersion: \"0.1.68\",\n abiName: \"execute_signed_op\",\n publicName: \"executeSignedOp\",\n entrypoint: __gh_entrypoints.SignedOp.v0_1.executeSignedOp,\n effect: spec.interfaces[0]!.methods[0]!.effect,\n args: [\n {\n abiName: \"op\",\n publicName: \"op\",\n type: spec.interfaces[0]!.methods[0]!.args[0]!.ty,\n },\n {\n abiName: \"signature\",\n publicName: \"signature\",\n type: spec.interfaces[0]!.methods[0]!.args[1]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[0]!.return_type,\n throws: [\n {\n selector: 0xd7c6325a55793b51n,\n name: \"SignedOpError\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n },\n} as const;\n\nexport const thruput_signed_op_if = {\n v0_1: {\n error: {\n SignedOpError: {\n InvalidSignature: 1n,\n Expired: 2n,\n AlreadyConsumed: 3n,\n MalformedBody: 4n,\n NotYetExpired: 5n,\n },\n },\n },\n} as const;\n\n// The types the namespaces above refer to, under names no declaration can capture.\nexport namespace __gh_codegen {\n export type thruput_signed_op_if$v0_1$Operation =\n thruput_signed_op_if.v0_1.Operation;\n export type thruput_signed_op_if$v0_1$error$SignedOpError =\n thruput_signed_op_if.v0_1.error.SignedOpError;\n}\n"],"mappings":";;;;;;;;;AAQA,MAAM,SAASA,4BAAmB;AAElC,MAAM,mBAAmB,EACvB,UAAU,EACR,MAAM,EACJ,iBAAiBC,uBAAc,qBAC7BC,6BAAoB,QAAQ,kBAAkB,CAChD,EACF,EACF,EACF;AAmCA,MAAa,OAA0C;CACrD,YAAY,CACV;EACE,MAAM,OAAO,UAAU;EACvB,MAAM,OAAO,QAAQ;EACrB,QAAQ,CACN;GACE,UAAU;GACV,IAAI;IACF,GAAGF,4BAAmB,iBAAiB;IACvC,OAAO;KACL,YAAY,OAAO,sBAAsB;KACzC,OAAO,OAAO,KAAK;KACnB,aAAa,OAAO,6BAA6B;KACjD,UAAU,OAAO,eAAe;IAClC;GACF;EACF,CACF;EACA,SAAS,CACP;GACE,MAAM,OAAO,mBAAmB;GAChC,MAAM,CACJ;IACE,MAAM,OAAO,IAAI;IACjB,IAAI;KACF,GAAGA,4BAAmB,iBAAiB;KACvC,OAAO;MACL,YAAY,OAAO,sBAAsB;MACzC,OAAO,OAAO,KAAK;MACnB,aAAa,OAAO,sBAAsB;MAC1C,UAAU,OAAO,WAAW;KAC9B;IACF;GACF,GACA;IACE,MAAM,OAAO,WAAW;IACxB,IAAI;KACF,GAAGA,4BAAmB,iBAAiB;KACvC,OAAO;MACL,SAAS,EAAE,GAAGA,4BAAmB,iBAAiB,GAAG;MACrD,KAAK;KACP;IACF;GACF,CACF;GACA,aAAa;IACX,GAAGA,4BAAmB,iBAAiB;IACvC,uBAAuB,EAAE,eAAe,KAAK;GAC/C;GACA,QAAQ;EACV,CACF;CACF,CACF;CACA,WAAW,CACT;EACE,GAAGA,4BAAmB,oBAAoB;EAC1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M,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE,KAAK,EAAE,CAAE;CACjD,GACA;EACE,SAAS;EACT,YAAY;EACZ,MAAM,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE,KAAK,EAAE,CAAE;CACjD,CACF;CACA,YAAY,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE;CAC5C,QAAQ,CACN;EACE,UAAU;EACV,MAAM;EACN,MAAM,KAAK,WAAW,EAAE,CAAE,OAAO,EAAE,CAAE;CACvC,CACF;CACA,QAAQ;AACV,CAAC,EACH,EACF;AAEA,MAAa,uBAAuB,EAClC,MAAM,EACJ,OAAO,EACL,eAAe;CACb,kBAAkB;CAClB,SAAS;CACT,iBAAiB;CACjB,eAAe;CACf,eAAe;AACjB,EACF,EACF,EACF"}
1
+ {"version":3,"file":"signed_op-_lR85dn2.cjs","names":["__gh_contract_spec","__gh_protocol","__gh_protocol_utils"],"sources":["../src/contracts/signed_op.ts"],"sourcesContent":["// Generated from signed_op.spec.xdr - SignedOp interface v0.1.68\n// DO NOT EDIT. Re-run codegen to update.\n\nimport * as __gh_protocol from \"@thruputchain/protocol\";\nimport * as __gh_protocol_utils from \"@thruputchain/protocol/utils\";\nimport * as __gh_contract_spec from \"@thruputchain/contract-spec\";\nimport * as __gh_client_contract from \"../contract/index.js\";\n\nconst __gh_s = __gh_contract_spec.contractSpecString;\n\nconst __gh_entrypoints = {\n SignedOp: {\n v0_1: {\n executeSignedOp: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"c281dc2ffb5eeb1e\"),\n ),\n },\n },\n} as const;\n\nexport namespace thruput_signed_op_if {\n export namespace v0_1 {\n export interface Operation {\n block_expiry_height: bigint;\n nonce: bigint;\n body: globalThis.Uint8Array;\n }\n\n export namespace error {\n export type SignedOpError = 1n | 2n | 3n | 4n | 5n;\n }\n }\n}\n\nexport namespace SignedOp {\n export namespace v0_1 {\n export interface ExecuteSignedOpArgs {\n op: __gh_codegen.thruput_signed_op_if$v0_1$Operation;\n signature: __gh_client_contract.FixedBytes<64>;\n }\n export type ExecuteSignedOpResult = __gh_client_contract.SignedToken;\n\n export type DeclaredException = {\n kind: \"declared\";\n name: \"SignedOpError\";\n selector: 0xd7c6325a55793b51n;\n value: __gh_codegen.thruput_signed_op_if$v0_1$error$SignedOpError;\n };\n export type Exception =\n __gh_client_contract.ContractException<DeclaredException>;\n }\n}\n\nexport const spec: __gh_client_contract.ContractSpec = {\n interfaces: [\n {\n name: __gh_s(\"SignedOp\"),\n vers: __gh_s(\"0.1.68\"),\n throws: [\n {\n selector: 0xd7c6325a55793b51n,\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if::error\"),\n declared: __gh_s(\"SignedOpError\"),\n },\n },\n },\n ],\n methods: [\n {\n name: __gh_s(\"execute_signed_op\"),\n args: [\n {\n name: __gh_s(\"op\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if\"),\n declared: __gh_s(\"Operation\"),\n },\n },\n },\n {\n name: __gh_s(\"signature\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Array,\n array: {\n element: { v: __gh_contract_spec.ContractTypeKind.U8 },\n len: 64n,\n },\n },\n },\n ],\n return_type: {\n v: __gh_contract_spec.ContractTypeKind.SignedToken,\n signed_token_preimage: { preimage_type: null },\n },\n effect: null,\n },\n ],\n },\n ],\n type_defs: [\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefStruct,\n struct_def: {\n name: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if\"),\n declared: __gh_s(\"Operation\"),\n },\n fields: [\n {\n name: __gh_s(\"block_expiry_height\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I64 },\n },\n {\n name: __gh_s(\"nonce\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.U64 },\n },\n {\n name: __gh_s(\"body\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Vector,\n vector: {\n element: { v: __gh_contract_spec.ContractTypeKind.U8 },\n max_len: 4294967295n,\n },\n },\n },\n ],\n },\n },\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefEnum,\n enum_def: {\n name: {\n crate_name: __gh_s(\"thruput-signed-op-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_signed_op_if::error\"),\n declared: __gh_s(\"SignedOpError\"),\n },\n variants: [\n { name: __gh_s(\"InvalidSignature\"), value: 1n },\n { name: __gh_s(\"Expired\"), value: 2n },\n { name: __gh_s(\"AlreadyConsumed\"), value: 3n },\n { name: __gh_s(\"MalformedBody\"), value: 4n },\n { name: __gh_s(\"NotYetExpired\"), value: 5n },\n ],\n },\n },\n ],\n events: [],\n};\n\nconst __gh_codecs = __gh_client_contract.createContractCodecContext(\n spec.type_defs,\n);\n\nexport const SignedOp = {\n v0_1: {\n executeSignedOp: __gh_client_contract.defineContractMethod<\n SignedOp.v0_1.ExecuteSignedOpArgs,\n SignedOp.v0_1.ExecuteSignedOpResult,\n SignedOp.v0_1.DeclaredException\n >({\n interfaceName: \"SignedOp\",\n interfaceVersion: \"0.1.68\",\n abiName: \"execute_signed_op\",\n publicName: \"executeSignedOp\",\n entrypoint: __gh_entrypoints.SignedOp.v0_1.executeSignedOp,\n effect: spec.interfaces[0]!.methods[0]!.effect,\n args: [\n {\n abiName: \"op\",\n publicName: \"op\",\n type: spec.interfaces[0]!.methods[0]!.args[0]!.ty,\n },\n {\n abiName: \"signature\",\n publicName: \"signature\",\n type: spec.interfaces[0]!.methods[0]!.args[1]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[0]!.return_type,\n throws: [\n {\n selector: 0xd7c6325a55793b51n,\n name: \"SignedOpError\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n },\n} as const;\n\nexport const thruput_signed_op_if = {\n v0_1: {\n error: {\n SignedOpError: {\n InvalidSignature: 1n,\n Expired: 2n,\n AlreadyConsumed: 3n,\n MalformedBody: 4n,\n NotYetExpired: 5n,\n },\n },\n },\n} as const;\n\n// The types the namespaces above refer to, under names no declaration can capture.\nexport namespace __gh_codegen {\n export type thruput_signed_op_if$v0_1$Operation =\n thruput_signed_op_if.v0_1.Operation;\n export type thruput_signed_op_if$v0_1$error$SignedOpError =\n thruput_signed_op_if.v0_1.error.SignedOpError;\n}\n"],"mappings":";;;;;;;;;AAQA,MAAM,SAASA,4BAAmB;AAElC,MAAM,mBAAmB,EACvB,UAAU,EACR,MAAM,EACJ,iBAAiBC,uBAAc,qBAC7BC,6BAAoB,QAAQ,kBAAkB,CAChD,EACF,EACF,EACF;AAmCA,MAAa,OAA0C;CACrD,YAAY,CACV;EACE,MAAM,OAAO,UAAU;EACvB,MAAM,OAAO,QAAQ;EACrB,QAAQ,CACN;GACE,UAAU;GACV,IAAI;IACF,GAAGF,4BAAmB,iBAAiB;IACvC,OAAO;KACL,YAAY,OAAO,sBAAsB;KACzC,OAAO,OAAO,KAAK;KACnB,aAAa,OAAO,6BAA6B;KACjD,UAAU,OAAO,eAAe;IAClC;GACF;EACF,CACF;EACA,SAAS,CACP;GACE,MAAM,OAAO,mBAAmB;GAChC,MAAM,CACJ;IACE,MAAM,OAAO,IAAI;IACjB,IAAI;KACF,GAAGA,4BAAmB,iBAAiB;KACvC,OAAO;MACL,YAAY,OAAO,sBAAsB;MACzC,OAAO,OAAO,KAAK;MACnB,aAAa,OAAO,sBAAsB;MAC1C,UAAU,OAAO,WAAW;KAC9B;IACF;GACF,GACA;IACE,MAAM,OAAO,WAAW;IACxB,IAAI;KACF,GAAGA,4BAAmB,iBAAiB;KACvC,OAAO;MACL,SAAS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W,EACtB,MAAM,EACJ,iBAAA,iBAAA,qBAIE;CACA,eAAe;CACf,kBAAkB;CAClB,SAAS;CACT,YAAY;CACZ,YAAY,iBAAiB,SAAS,KAAK;CAC3C,QAAQ,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE;CACxC,MAAM,CACJ;EACE,SAAS;EACT,YAAY;EACZ,MAAM,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE,KAAK,EAAE,CAAE;CACjD,GACA;EACE,SAAS;EACT,YAAY;EACZ,MAAM,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE,KAAK,EAAE,CAAE;CACjD,CACF;CACA,YAAY,KAAK,WAAW,EAAE,CAAE,QAAQ,EAAE,CAAE;CAC5C,QAAQ,CACN;EACE,UAAU;EACV,MAAM;EACN,MAAM,KAAK,WAAW,EAAE,CAAE,OAAO,EAAE,CAAE;CACvC,CACF;CACA,QAAQ;AACV,CAAC,EACH,EACF;AAEA,MAAa,uBAAuB,EAClC,MAAM,EACJ,OAAO,EACL,eAAe;CACb,kBAAkB;CAClB,SAAS;CACT,iBAAiB;CACjB,eAAe;CACf,eAAe;AACjB,EACF,EACF,EACF"}
@@ -1,5 +1,5 @@
1
- import { Ot as ContractSpec, l as ContractMethod, s as ContractException } from "./readViews-BvMHbiaF.js";
2
- import { c as SignedToken, n as FixedBytes } from "./index-hqEnT64w.js";
1
+ import { Ot as ContractSpec, l as ContractMethod, s as ContractException } from "./readViews-nV3jbpYc.js";
2
+ import { c as SignedToken, n as FixedBytes } from "./index-DeS1S0m-.js";
3
3
 
4
4
  //#region src/contracts/signed_op.d.ts
5
5
  declare namespace thruput_signed_op_if {
@@ -55,4 +55,4 @@ declare namespace __gh_codegen {
55
55
  }
56
56
  //#endregion
57
57
  export { spec as n, thruput_signed_op_if as r, SignedOp as t };
58
- //# sourceMappingURL=signed_op-DbRq3_Hb.d.ts.map
58
+ //# sourceMappingURL=signed_op-zGq4eBo8.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signed_op-DbRq3_Hb.d.ts","names":[],"sources":["../src/contracts/signed_op.ts"],"mappings":";;;;kBAoBiB,oBAAA;EAAA,UACE,IAAA;IAAA,UACE,SAAA;MACf,mBAAA;MACA,KAAA;MACA,IAAA,EAAM,UAAA,CAAW,UAAU;IAAA;IAAA,UAGZ,KAAA;MAAA,KACH,aAAA;IAAA;EAAA;AAAA;AAAA,kBAKD,QAAA;EAAA,UACE,IAAA;IAAA,UACE,mBAAA;MACf,EAAA,EAAI,YAAA,CAAa,mCAAA;MACjB,SAAA,EAAW,UAAA;IAAA;IAAA,KAED,qBAAA,GAAwB,WAAA;IAAA,KAExB,iBAAA;MACV,IAAA;MACA,IAAA;MACA,QAAA;MACA,KAAA,EAAO,YAAA,CAAa,6CAAA;IAAA;IAAA,KAEV,SAAA,GACV,iBAAA,CAAuC,iBAAA;EAAA;AAAA;AAAA,cAIhC,IAAA,EAAM,YA2GlB;AAAA,cAMY,QAAA;EAAA;;;;cAsCA,oBAAA;EAAA;;;;;;;;;;;;kBAeI,YAAA;EAAA,KACH,mCAAA,GACV,oBAAA,CAAqB,IAAA,CAAK,SAAA;EAAA,KAChB,6CAAA,GACV,oBAAA,CAAqB,IAAA,CAAK,KAAA,CAAM,aAAa;AAAA"}
1
+ {"version":3,"file":"signed_op-zGq4eBo8.d.ts","names":[],"sources":["../src/contracts/signed_op.ts"],"mappings":";;;;kBAoBiB,oBAAA;EAAA,UACE,IAAA;IAAA,UACE,SAAA;MACf,mBAAA;MACA,KAAA;MACA,IAAA,EAAM,UAAA,CAAW,UAAU;IAAA;IAAA,UAGZ,KAAA;MAAA,KACH,aAAA;IAAA;EAAA;AAAA;AAAA,kBAKD,QAAA;EAAA,UACE,IAAA;IAAA,UACE,mBAAA;MACf,EAAA,EAAI,YAAA,CAAa,mCAAA;MACjB,SAAA,EAAW,UAAA;IAAA;IAAA,KAED,qBAAA,GAAwB,WAAA;IAAA,KAExB,iBAAA;MACV,IAAA;MACA,IAAA;MACA,QAAA;MACA,KAAA,EAAO,YAAA,CAAa,6CAAA;IAAA;IAAA,KAEV,SAAA,GACV,iBAAA,CAAuC,iBAAA;EAAA;AAAA;AAAA,cAIhC,IAAA,EAAM,YA2GlB;AAAA,cAMY,QAAA;EAAA;;;;cAsCA,oBAAA;EAAA;;;;;;;;;;;;kBAeI,YAAA;EAAA,KACH,mCAAA,GACV,oBAAA,CAAqB,IAAA,CAAK,SAAA;EAAA,KAChB,6CAAA,GACV,oBAAA,CAAqB,IAAA,CAAK,KAAA,CAAM,aAAa;AAAA"}
@@ -1,7 +1,7 @@
1
- const require_codec = require("./codec-C4LJ0g8v.cjs");
1
+ const require_codec = require("./codec-BcK8ASsg.cjs");
2
2
  const require_hex = require("./hex-DkGpiZ5e.cjs");
3
3
  const require_transactionHash = require("./transactionHash-D5yf4KoL.cjs");
4
- const require_readError = require("./readError-Cz3bveZa.cjs");
4
+ const require_readError = require("./readError-CCVlmBhj.cjs");
5
5
  let _thruputchain_protocol = require("@thruputchain/protocol");
6
6
  let _thruputchain_protocol_utils = require("@thruputchain/protocol/utils");
7
7
  //#region src/transport/mock.ts
@@ -276,4 +276,4 @@ Object.defineProperty(exports, "txInvalidDetail", {
276
276
  }
277
277
  });
278
278
 
279
- //# sourceMappingURL=transport-DqlfAsuH.cjs.map
279
+ //# sourceMappingURL=transport-5FPeNwuv.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport-DqlfAsuH.cjs","names":["#height","#blockHash","JsonRpcError","hashSignedTransaction","fromHex0x","codec","#transactions","NativeRpcError","UnsupportedRpcValue"],"sources":["../src/transport/mock.ts","../src/transport/txInvalidDetail.ts","../src/rpc/errors.ts"],"sourcesContent":["import type { Transport, RpcParams, TransportRequestOptions } from \"./types.js\";\nimport { codec, deserialize } from \"@thruputchain/protocol\";\nimport { toBase58 } from \"../encoding.js\";\nimport { fromHex0x } from \"../actions/hex.js\";\nimport { hashSignedTransaction } from \"../derivation/transactionHash.js\";\nimport { JsonRpcError } from \"./http.js\";\n\nconst methods = [\n \"getVersionInfo\",\n \"getNetworkInfo\",\n \"getChainTip\",\n \"getChainConfig\",\n \"getServerLimits\",\n \"getBalance\",\n \"getRegisteredAuth\",\n \"getContractDeployment\",\n \"getEffectiveContract\",\n \"getContractArtifact\",\n \"getBlockByHeight\",\n \"dev_getPendingTransactionCount\",\n \"simulateInvocation\",\n \"simulateInvocations\",\n \"sendTransaction\",\n \"getTransactionReceipt\",\n \"getTransactionInput\",\n \"getTransactionStatus\",\n \"getTransactionsByRootAddress\",\n \"getTransactionsByBlock\",\n \"getEvents\",\n \"getStorage\",\n \"faucet_requestAirdrop\",\n];\n/** Deterministic native RPC transport for examples; it does not execute contract code. */\nexport class MockTransport implements Transport {\n #height = 0n;\n #transactions = new Map<string, bigint>();\n async request<T = unknown>(\n method: string,\n params: RpcParams = {},\n options?: TransportRequestOptions,\n ): Promise<T> {\n options?.signal?.throwIfAborted();\n if (Array.isArray(params))\n throw new TypeError(\"Native RPC params must be a named object\");\n const stateBlockHeight = this.#height.toString();\n const bounds = {\n oldestIndexedBlockHeight: \"0\",\n latestIndexedBlockHeight: stateBlockHeight,\n nextCursor: null,\n };\n const simulation = {\n output: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n let result: unknown;\n switch (method) {\n case \"getTransactionInput\":\n result = { status: \"unavailable\" };\n break;\n case \"getVersionInfo\":\n result = {\n wireFormat: \"14.4.0\",\n implementation: \"mock\",\n supportedMethods: [...methods],\n };\n break;\n case \"getNetworkInfo\":\n result = { networkHash: \"1\".repeat(32) };\n break;\n case \"getChainTip\":\n result = {\n blockHeight: stateBlockHeight,\n blockHash: this.#blockHash(this.#height),\n };\n break;\n case \"getChainConfig\":\n result = { stated: { maxNewContractsPerTx: 4 } };\n break;\n case \"getServerLimits\":\n result = {\n maxSimulationGas: \"100000000\",\n maxSimulationCalldataBytes: \"65536\",\n maxEventsPerPage: 200,\n maxTransactionsPerPage: 200,\n maxCursorBytes: \"1024\",\n simulationBatch: {\n maxInvocations: 16,\n maxCalldataBytes: 65536,\n maxGas: \"1600000000\",\n maxBackendResponseBytes: 1000000,\n timeoutMs: \"3000\",\n },\n };\n break;\n case \"getBalance\":\n result = { address: params.address, rawBalance: \"0\", stateBlockHeight };\n break;\n case \"getRegisteredAuth\":\n result = {\n address: params.address,\n configuration: null,\n stateBlockHeight,\n };\n break;\n case \"getStorage\":\n result = { item: null, stateBlockHeight };\n break;\n case \"getContractDeployment\":\n result = {\n address: params.address,\n stateBlockHeight,\n deployment: null,\n };\n break;\n case \"getEffectiveContract\":\n result = {\n address: params.address,\n context: params.context,\n stateBlockHeight,\n selection: null,\n };\n break;\n case \"getContractArtifact\":\n throw new JsonRpcError(\n -32014,\n \"Contract artifact unavailable\",\n {\n kind: \"contractArtifactUnavailable\",\n hash: params.hash,\n },\n method,\n );\n case \"dev_getPendingTransactionCount\":\n result = { count: \"0\" };\n break;\n case \"simulateInvocation\":\n result = { ...simulation, stateBlockHeight };\n break;\n case \"simulateInvocations\":\n result = {\n stateBlockHeight,\n results: (params.invocations as unknown[]).map(() =>\n structuredClone(simulation),\n ),\n };\n break;\n case \"faucet_requestAirdrop\":\n result = {\n attemptStatus: \"succeeded\",\n recipient: params.recipient,\n rawAmount: \"100000000\",\n transactionHash: this.#blockHash(this.#height),\n blockHeight: stateBlockHeight,\n execution: { result: \"return\", returnData: \"0x\" },\n };\n break;\n case \"sendTransaction\": {\n const signed = deserialize(\n fromHex0x(String(params.signedTransaction)),\n codec.SignedTransaction,\n );\n const hash = toBase58(hashSignedTransaction(signed));\n if (!this.#transactions.has(hash))\n this.#transactions.set(hash, ++this.#height);\n result = { transactionHash: hash, admission: \"accepted\" };\n break;\n }\n case \"getTransactionReceipt\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? null\n : {\n transactionHash: params.transactionHash,\n blockHeight: height.toString(),\n execution: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n break;\n }\n case \"getTransactionStatus\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? { status: \"unknown\" }\n : { status: \"committed\", blockHeight: height.toString() };\n break;\n }\n case \"getEvents\":\n result = { ...bounds, events: [] };\n break;\n case \"getTransactionsByRootAddress\":\n case \"getTransactionsByBlock\":\n result = { ...bounds, transactions: [] };\n break;\n case \"getBlockByHeight\": {\n const height = BigInt(String(params.blockHeight));\n result =\n height <= 0n || height > this.#height\n ? null\n : {\n blockHash: this.#blockHash(height),\n protocol: 0,\n networkHash: \"1\".repeat(32),\n proposer: \"1\".repeat(32),\n blockTimepoint: \"0\",\n blockHeight: height.toString(),\n txsHash: this.#blockHash(height),\n storageHash: this.#blockHash(height),\n eventsHash: this.#blockHash(height),\n configHash: this.#blockHash(height),\n prevBlockHash: this.#blockHash(height - 1n),\n proposalTxsHash: this.#blockHash(height),\n upgrades: [],\n };\n break;\n }\n default:\n throw new Error(`MockTransport: method not implemented: ${method}`);\n }\n return result as T;\n }\n #blockHash(height: bigint): string {\n const bytes = new Uint8Array(32);\n new DataView(bytes.buffer).setBigUint64(24, height);\n return toBase58(bytes);\n }\n}\n","import { NativeRpcError } from \"../rpc/errorReader.js\";\nimport { UnsupportedRpcValue } from \"../rpc/codec.js\";\nimport type { RpcErrorData } from \"../rpc/generated.js\";\n/** A validated native admission bound violation. Unknown details remain on the raw error. */\nexport type TxInvalidDetail = Exclude<\n NonNullable<Extract<RpcErrorData, { kind: \"transactionInvalid\" }>[\"detail\"]>,\n UnsupportedRpcValue\n>;\n/** Read known transaction-bound evidence without inferring retry permission. */\nexport function txInvalidDetail(error: unknown): TxInvalidDetail | null {\n if (\n !(error instanceof NativeRpcError) ||\n error.decoded.classification !== \"known\" ||\n error.decoded.data.kind !== \"transactionInvalid\"\n )\n return null;\n const detail = error.decoded.data.detail;\n return !detail || detail instanceof UnsupportedRpcValue ? null : detail;\n}\n","// Generated from the Rust-owned native OpenRPC fixture. Do not edit.\n/** Native causes. Codes alone never grant write retry permission. */\nexport const NativeRpcErrorCode = {\n BackendDataInvalid: -32054,\n BackendTimeout: -32051,\n BackendUnavailable: -32050,\n ContractArtifactUnavailable: -32014,\n FundingAttemptStopped: -32030,\n HistoryUnavailable: -32013,\n InvalidParams: -32602,\n LocalFundingUnresolved: -32031,\n Overloaded: -32053,\n StateHeightUnavailable: -32012,\n TransactionInvalid: -32000,\n TransactionRejected: -32001,\n} as const;\n"],"mappings":";;;;;;;AAOA,MAAM,UAAU;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAEA,IAAa,gBAAb,MAAgD;CAC9C,UAAU;CACV,gCAAgB,IAAI,IAAoB;CACxC,MAAM,QACJ,QACA,SAAoB,CAAC,GACrB,SACY;EACZ,SAAS,QAAQ,eAAe;EAChC,IAAI,MAAM,QAAQ,MAAM,GACtB,MAAM,IAAI,UAAU,0CAA0C;EAChE,MAAM,mBAAmB,KAAKA,QAAQ,SAAS;EAC/C,MAAM,SAAS;GACb,0BAA0B;GAC1B,0BAA0B;GAC1B,YAAY;EACd;EACA,MAAM,aAAa;GACjB,QAAQ;IAAE,QAAQ;IAAU,YAAY;GAAK;GAC7C,QAAQ,CAAC;GACT,SAAS;EACX;EACA,IAAI;EACJ,QAAQ,QAAR;GACE,KAAK;IACH,SAAS,EAAE,QAAQ,cAAc;IACjC;GACF,KAAK;IACH,SAAS;KACP,YAAY;KACZ,gBAAgB;KAChB,kBAAkB,CAAC,GAAG,OAAO;IAC/B;IACA;GACF,KAAK;IACH,SAAS,EAAE,aAAa,IAAI,OAAO,EAAE,EAAE;IACvC;GACF,KAAK;IACH,SAAS;KACP,aAAa;KACb,WAAW,KAAKC,WAAW,KAAKD,OAAO;IACzC;IACA;GACF,KAAK;IACH,SAAS,EAAE,QAAQ,EAAE,sBAAsB,EAAE,EAAE;IAC/C;GACF,KAAK;IACH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jC,MAAM,QAAQ,IAAI,WAAW,EAAE;EAC/B,IAAI,SAAS,MAAM,MAAM,CAAC,CAAC,aAAa,IAAI,MAAM;EAClD,QAAA,GAAA,6BAAA,SAAA,CAAgB,KAAK;CACvB;AACF;;;;AC5NA,SAAgB,gBAAgB,OAAwC;CACtE,IACE,EAAE,iBAAiBM,kBAAAA,mBACnB,MAAM,QAAQ,mBAAmB,WACjC,MAAM,QAAQ,KAAK,SAAS,sBAE5B,OAAO;CACT,MAAM,SAAS,MAAM,QAAQ,KAAK;CAClC,OAAO,CAAC,UAAU,kBAAkBC,cAAAA,sBAAsB,OAAO;AACnE;;;;AChBA,MAAa,qBAAqB;CAChC,oBAAoB;CACpB,gBAAgB;CAChB,oBAAoB;CACpB,6BAA6B;CAC7B,uBAAuB;CACvB,oBAAoB;CACpB,eAAe;CACf,wBAAwB;CACxB,YAAY;CACZ,wBAAwB;CACxB,oBAAoB;CACpB,qBAAqB;AACvB"}
1
+ {"version":3,"file":"transport-5FPeNwuv.cjs","names":["#height","#blockHash","JsonRpcError","hashSignedTransaction","fromHex0x","codec","#transactions","NativeRpcError","UnsupportedRpcValue"],"sources":["../src/transport/mock.ts","../src/transport/txInvalidDetail.ts","../src/rpc/errors.ts"],"sourcesContent":["import type { Transport, RpcParams, TransportRequestOptions } from \"./types.js\";\nimport { codec, deserialize } from \"@thruputchain/protocol\";\nimport { toBase58 } from \"../encoding.js\";\nimport { fromHex0x } from \"../actions/hex.js\";\nimport { hashSignedTransaction } from \"../derivation/transactionHash.js\";\nimport { JsonRpcError } from \"./http.js\";\n\nconst methods = [\n \"getVersionInfo\",\n \"getNetworkInfo\",\n \"getChainTip\",\n \"getChainConfig\",\n \"getServerLimits\",\n \"getBalance\",\n \"getRegisteredAuth\",\n \"getContractDeployment\",\n \"getEffectiveContract\",\n \"getContractArtifact\",\n \"getBlockByHeight\",\n \"dev_getPendingTransactionCount\",\n \"simulateInvocation\",\n \"simulateInvocations\",\n \"sendTransaction\",\n \"getTransactionReceipt\",\n \"getTransactionInput\",\n \"getTransactionStatus\",\n \"getTransactionsByRootAddress\",\n \"getTransactionsByBlock\",\n \"getEvents\",\n \"getStorage\",\n \"faucet_requestAirdrop\",\n];\n/** Deterministic native RPC transport for examples; it does not execute contract code. */\nexport class MockTransport implements Transport {\n #height = 0n;\n #transactions = new Map<string, bigint>();\n async request<T = unknown>(\n method: string,\n params: RpcParams = {},\n options?: TransportRequestOptions,\n ): Promise<T> {\n options?.signal?.throwIfAborted();\n if (Array.isArray(params))\n throw new TypeError(\"Native RPC params must be a named object\");\n const stateBlockHeight = this.#height.toString();\n const bounds = {\n oldestIndexedBlockHeight: \"0\",\n latestIndexedBlockHeight: stateBlockHeight,\n nextCursor: null,\n };\n const simulation = {\n output: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n let result: unknown;\n switch (method) {\n case \"getTransactionInput\":\n result = { status: \"unavailable\" };\n break;\n case \"getVersionInfo\":\n result = {\n wireFormat: \"14.4.0\",\n implementation: \"mock\",\n supportedMethods: [...methods],\n };\n break;\n case \"getNetworkInfo\":\n result = { networkHash: \"1\".repeat(32) };\n break;\n case \"getChainTip\":\n result = {\n blockHeight: stateBlockHeight,\n blockHash: this.#blockHash(this.#height),\n };\n break;\n case \"getChainConfig\":\n result = { stated: { maxNewContractsPerTx: 4 } };\n break;\n case \"getServerLimits\":\n result = {\n maxSimulationGas: \"100000000\",\n maxSimulationCalldataBytes: \"65536\",\n maxEventsPerPage: 200,\n maxTransactionsPerPage: 200,\n maxCursorBytes: \"1024\",\n simulationBatch: {\n maxInvocations: 16,\n maxCalldataBytes: 65536,\n maxGas: \"1600000000\",\n maxBackendResponseBytes: 1000000,\n timeoutMs: \"3000\",\n },\n };\n break;\n case \"getBalance\":\n result = { address: params.address, rawBalance: \"0\", stateBlockHeight };\n break;\n case \"getRegisteredAuth\":\n result = {\n address: params.address,\n configuration: null,\n stateBlockHeight,\n };\n break;\n case \"getStorage\":\n result = { item: null, stateBlockHeight };\n break;\n case \"getContractDeployment\":\n result = {\n address: params.address,\n stateBlockHeight,\n deployment: null,\n };\n break;\n case \"getEffectiveContract\":\n result = {\n address: params.address,\n context: params.context,\n stateBlockHeight,\n selection: null,\n };\n break;\n case \"getContractArtifact\":\n throw new JsonRpcError(\n -32014,\n \"Contract artifact unavailable\",\n {\n kind: \"contractArtifactUnavailable\",\n hash: params.hash,\n },\n method,\n );\n case \"dev_getPendingTransactionCount\":\n result = { count: \"0\" };\n break;\n case \"simulateInvocation\":\n result = { ...simulation, stateBlockHeight };\n break;\n case \"simulateInvocations\":\n result = {\n stateBlockHeight,\n results: (params.invocations as unknown[]).map(() =>\n structuredClone(simulation),\n ),\n };\n break;\n case \"faucet_requestAirdrop\":\n result = {\n attemptStatus: \"succeeded\",\n recipient: params.recipient,\n rawAmount: \"100000000\",\n transactionHash: this.#blockHash(this.#height),\n blockHeight: stateBlockHeight,\n execution: { result: \"return\", returnData: \"0x\" },\n };\n break;\n case \"sendTransaction\": {\n const signed = deserialize(\n fromHex0x(String(params.signedTransaction)),\n codec.SignedTransaction,\n );\n const hash = toBase58(hashSignedTransaction(signed));\n if (!this.#transactions.has(hash))\n this.#transactions.set(hash, ++this.#height);\n result = { transactionHash: hash, admission: \"accepted\" };\n break;\n }\n case \"getTransactionReceipt\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? null\n : {\n transactionHash: params.transactionHash,\n blockHeight: height.toString(),\n execution: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n break;\n }\n case \"getTransactionStatus\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? { status: \"unknown\" }\n : { status: \"committed\", blockHeight: height.toString() };\n break;\n }\n case \"getEvents\":\n result = { ...bounds, events: [] };\n break;\n case \"getTransactionsByRootAddress\":\n case \"getTransactionsByBlock\":\n result = { ...bounds, transactions: [] };\n break;\n case \"getBlockByHeight\": {\n const height = BigInt(String(params.blockHeight));\n result =\n height <= 0n || height > this.#height\n ? null\n : {\n blockHash: this.#blockHash(height),\n protocol: 0,\n networkHash: \"1\".repeat(32),\n proposer: \"1\".repeat(32),\n blockTimepoint: \"0\",\n blockHeight: height.toString(),\n txsHash: this.#blockHash(height),\n storageHash: this.#blockHash(height),\n eventsHash: this.#blockHash(height),\n configHash: this.#blockHash(height),\n prevBlockHash: this.#blockHash(height - 1n),\n proposalTxsHash: this.#blockHash(height),\n upgrades: [],\n };\n break;\n }\n default:\n throw new Error(`MockTransport: method not implemented: ${method}`);\n }\n return result as T;\n }\n #blockHash(height: bigint): string {\n const bytes = new Uint8Array(32);\n new DataView(bytes.buffer).setBigUint64(24, height);\n return toBase58(bytes);\n }\n}\n","import { NativeRpcError } from \"../rpc/errorReader.js\";\nimport { UnsupportedRpcValue } from \"../rpc/codec.js\";\nimport type { RpcErrorData } from \"../rpc/generated.js\";\n/** A validated native admission bound violation. Unknown details remain on the raw error. */\nexport type TxInvalidDetail = Exclude<\n NonNullable<Extract<RpcErrorData, { kind: \"transactionInvalid\" }>[\"detail\"]>,\n UnsupportedRpcValue\n>;\n/** Read known transaction-bound evidence without inferring retry permission. */\nexport function txInvalidDetail(error: unknown): TxInvalidDetail | null {\n if (\n !(error instanceof NativeRpcError) ||\n error.decoded.classification !== \"known\" ||\n error.decoded.data.kind !== \"transactionInvalid\"\n )\n return null;\n const detail = error.decoded.data.detail;\n return !detail || detail instanceof UnsupportedRpcValue ? null : detail;\n}\n","// Generated from the Rust-owned native OpenRPC fixture. Do not edit.\n/** Native causes. Codes alone never grant write retry permission. */\nexport const NativeRpcErrorCode = {\n BackendDataInvalid: -32054,\n BackendTimeout: -32051,\n BackendUnavailable: -32050,\n ContractArtifactUnavailable: -32014,\n FundingAttemptStopped: -32030,\n HistoryUnavailable: -32013,\n InvalidParams: -32602,\n LocalFundingUnresolved: -32031,\n Overloaded: -32053,\n StateHeightUnavailable: -32012,\n TransactionInvalid: -32000,\n TransactionRejected: -32001,\n} as const;\n"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,sBAE5B,OAAO;CACT,MAAM,SAAS,MAAM,QAAQ,KAAK;CAClC,OAAO,CAAC,UAAU,kBAAkBC,cAAAA,sBAAsB,OAAO;AACnE;;;;AChBA,MAAa,qBAAqB;CAChC,oBAAoB;CACpB,gBAAgB;CAChB,oBAAoB;CACpB,6BAA6B;CAC7B,uBAAuB;CACvB,oBAAoB;CACpB,eAAe;CACf,wBAAwB;CACxB,YAAY;CACZ,wBAAwB;CACxB,oBAAoB;CACpB,qBAAqB;AACvB"}
@@ -1,7 +1,7 @@
1
- import { r as UnsupportedRpcValue } from "./codec-BOjoJjC5.js";
1
+ import { r as UnsupportedRpcValue } from "./codec-Bxlt1gKO.js";
2
2
  import { g as toBase58, n as fromHex0x } from "./hex-DIcaALXL.js";
3
3
  import { t as hashSignedTransaction } from "./transactionHash-CO9ajbvU.js";
4
- import { c as JsonRpcError, i as NativeRpcError } from "./readError-Z5zuylri.js";
4
+ import { c as JsonRpcError, i as NativeRpcError } from "./readError-D1dppovI.js";
5
5
  import { codec, deserialize } from "@thruputchain/protocol";
6
6
  //#region src/transport/mock.ts
7
7
  const methods = [
@@ -258,4 +258,4 @@ const NativeRpcErrorCode = {
258
258
  //#endregion
259
259
  export { txInvalidDetail as n, MockTransport as r, NativeRpcErrorCode as t };
260
260
 
261
- //# sourceMappingURL=transport-PstrCcBv.js.map
261
+ //# sourceMappingURL=transport-IrhVlS4w.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport-PstrCcBv.js","names":["#height","#blockHash","#transactions"],"sources":["../src/transport/mock.ts","../src/transport/txInvalidDetail.ts","../src/rpc/errors.ts"],"sourcesContent":["import type { Transport, RpcParams, TransportRequestOptions } from \"./types.js\";\nimport { codec, deserialize } from \"@thruputchain/protocol\";\nimport { toBase58 } from \"../encoding.js\";\nimport { fromHex0x } from \"../actions/hex.js\";\nimport { hashSignedTransaction } from \"../derivation/transactionHash.js\";\nimport { JsonRpcError } from \"./http.js\";\n\nconst methods = [\n \"getVersionInfo\",\n \"getNetworkInfo\",\n \"getChainTip\",\n \"getChainConfig\",\n \"getServerLimits\",\n \"getBalance\",\n \"getRegisteredAuth\",\n \"getContractDeployment\",\n \"getEffectiveContract\",\n \"getContractArtifact\",\n \"getBlockByHeight\",\n \"dev_getPendingTransactionCount\",\n \"simulateInvocation\",\n \"simulateInvocations\",\n \"sendTransaction\",\n \"getTransactionReceipt\",\n \"getTransactionInput\",\n \"getTransactionStatus\",\n \"getTransactionsByRootAddress\",\n \"getTransactionsByBlock\",\n \"getEvents\",\n \"getStorage\",\n \"faucet_requestAirdrop\",\n];\n/** Deterministic native RPC transport for examples; it does not execute contract code. */\nexport class MockTransport implements Transport {\n #height = 0n;\n #transactions = new Map<string, bigint>();\n async request<T = unknown>(\n method: string,\n params: RpcParams = {},\n options?: TransportRequestOptions,\n ): Promise<T> {\n options?.signal?.throwIfAborted();\n if (Array.isArray(params))\n throw new TypeError(\"Native RPC params must be a named object\");\n const stateBlockHeight = this.#height.toString();\n const bounds = {\n oldestIndexedBlockHeight: \"0\",\n latestIndexedBlockHeight: stateBlockHeight,\n nextCursor: null,\n };\n const simulation = {\n output: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n let result: unknown;\n switch (method) {\n case \"getTransactionInput\":\n result = { status: \"unavailable\" };\n break;\n case \"getVersionInfo\":\n result = {\n wireFormat: \"14.4.0\",\n implementation: \"mock\",\n supportedMethods: [...methods],\n };\n break;\n case \"getNetworkInfo\":\n result = { networkHash: \"1\".repeat(32) };\n break;\n case \"getChainTip\":\n result = {\n blockHeight: stateBlockHeight,\n blockHash: this.#blockHash(this.#height),\n };\n break;\n case \"getChainConfig\":\n result = { stated: { maxNewContractsPerTx: 4 } };\n break;\n case \"getServerLimits\":\n result = {\n maxSimulationGas: \"100000000\",\n maxSimulationCalldataBytes: \"65536\",\n maxEventsPerPage: 200,\n maxTransactionsPerPage: 200,\n maxCursorBytes: \"1024\",\n simulationBatch: {\n maxInvocations: 16,\n maxCalldataBytes: 65536,\n maxGas: \"1600000000\",\n maxBackendResponseBytes: 1000000,\n timeoutMs: \"3000\",\n },\n };\n break;\n case \"getBalance\":\n result = { address: params.address, rawBalance: \"0\", stateBlockHeight };\n break;\n case \"getRegisteredAuth\":\n result = {\n address: params.address,\n configuration: null,\n stateBlockHeight,\n };\n break;\n case \"getStorage\":\n result = { item: null, stateBlockHeight };\n break;\n case \"getContractDeployment\":\n result = {\n address: params.address,\n stateBlockHeight,\n deployment: null,\n };\n break;\n case \"getEffectiveContract\":\n result = {\n address: params.address,\n context: params.context,\n stateBlockHeight,\n selection: null,\n };\n break;\n case \"getContractArtifact\":\n throw new JsonRpcError(\n -32014,\n \"Contract artifact unavailable\",\n {\n kind: \"contractArtifactUnavailable\",\n hash: params.hash,\n },\n method,\n );\n case \"dev_getPendingTransactionCount\":\n result = { count: \"0\" };\n break;\n case \"simulateInvocation\":\n result = { ...simulation, stateBlockHeight };\n break;\n case \"simulateInvocations\":\n result = {\n stateBlockHeight,\n results: (params.invocations as unknown[]).map(() =>\n structuredClone(simulation),\n ),\n };\n break;\n case \"faucet_requestAirdrop\":\n result = {\n attemptStatus: \"succeeded\",\n recipient: params.recipient,\n rawAmount: \"100000000\",\n transactionHash: this.#blockHash(this.#height),\n blockHeight: stateBlockHeight,\n execution: { result: \"return\", returnData: \"0x\" },\n };\n break;\n case \"sendTransaction\": {\n const signed = deserialize(\n fromHex0x(String(params.signedTransaction)),\n codec.SignedTransaction,\n );\n const hash = toBase58(hashSignedTransaction(signed));\n if (!this.#transactions.has(hash))\n this.#transactions.set(hash, ++this.#height);\n result = { transactionHash: hash, admission: \"accepted\" };\n break;\n }\n case \"getTransactionReceipt\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? null\n : {\n transactionHash: params.transactionHash,\n blockHeight: height.toString(),\n execution: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n break;\n }\n case \"getTransactionStatus\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? { status: \"unknown\" }\n : { status: \"committed\", blockHeight: height.toString() };\n break;\n }\n case \"getEvents\":\n result = { ...bounds, events: [] };\n break;\n case \"getTransactionsByRootAddress\":\n case \"getTransactionsByBlock\":\n result = { ...bounds, transactions: [] };\n break;\n case \"getBlockByHeight\": {\n const height = BigInt(String(params.blockHeight));\n result =\n height <= 0n || height > this.#height\n ? null\n : {\n blockHash: this.#blockHash(height),\n protocol: 0,\n networkHash: \"1\".repeat(32),\n proposer: \"1\".repeat(32),\n blockTimepoint: \"0\",\n blockHeight: height.toString(),\n txsHash: this.#blockHash(height),\n storageHash: this.#blockHash(height),\n eventsHash: this.#blockHash(height),\n configHash: this.#blockHash(height),\n prevBlockHash: this.#blockHash(height - 1n),\n proposalTxsHash: this.#blockHash(height),\n upgrades: [],\n };\n break;\n }\n default:\n throw new Error(`MockTransport: method not implemented: ${method}`);\n }\n return result as T;\n }\n #blockHash(height: bigint): string {\n const bytes = new Uint8Array(32);\n new DataView(bytes.buffer).setBigUint64(24, height);\n return toBase58(bytes);\n }\n}\n","import { NativeRpcError } from \"../rpc/errorReader.js\";\nimport { UnsupportedRpcValue } from \"../rpc/codec.js\";\nimport type { RpcErrorData } from \"../rpc/generated.js\";\n/** A validated native admission bound violation. Unknown details remain on the raw error. */\nexport type TxInvalidDetail = Exclude<\n NonNullable<Extract<RpcErrorData, { kind: \"transactionInvalid\" }>[\"detail\"]>,\n UnsupportedRpcValue\n>;\n/** Read known transaction-bound evidence without inferring retry permission. */\nexport function txInvalidDetail(error: unknown): TxInvalidDetail | null {\n if (\n !(error instanceof NativeRpcError) ||\n error.decoded.classification !== \"known\" ||\n error.decoded.data.kind !== \"transactionInvalid\"\n )\n return null;\n const detail = error.decoded.data.detail;\n return !detail || detail instanceof UnsupportedRpcValue ? null : detail;\n}\n","// Generated from the Rust-owned native OpenRPC fixture. Do not edit.\n/** Native causes. Codes alone never grant write retry permission. */\nexport const NativeRpcErrorCode = {\n BackendDataInvalid: -32054,\n BackendTimeout: -32051,\n BackendUnavailable: -32050,\n ContractArtifactUnavailable: -32014,\n FundingAttemptStopped: -32030,\n HistoryUnavailable: -32013,\n InvalidParams: -32602,\n LocalFundingUnresolved: -32031,\n Overloaded: -32053,\n StateHeightUnavailable: -32012,\n TransactionInvalid: -32000,\n TransactionRejected: -32001,\n} as const;\n"],"mappings":";;;;;;AAOA,MAAM,UAAU;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAEA,IAAa,gBAAb,MAAgD;CAC9C,UAAU;CACV,gCAAgB,IAAI,IAAoB;CACxC,MAAM,QACJ,QACA,SAAoB,CAAC,GACrB,SACY;EACZ,SAAS,QAAQ,eAAe;EAChC,IAAI,MAAM,QAAQ,MAAM,GACtB,MAAM,IAAI,UAAU,0CAA0C;EAChE,MAAM,mBAAmB,KAAKA,QAAQ,SAAS;EAC/C,MAAM,SAAS;GACb,0BAA0B;GAC1B,0BAA0B;GAC1B,YAAY;EACd;EACA,MAAM,aAAa;GACjB,QAAQ;IAAE,QAAQ;IAAU,YAAY;GAAK;GAC7C,QAAQ,CAAC;GACT,SAAS;EACX;EACA,IAAI;EACJ,QAAQ,QAAR;GACE,KAAK;IACH,SAAS,EAAE,QAAQ,cAAc;IACjC;GACF,KAAK;IACH,SAAS;KACP,YAAY;KACZ,gBAAgB;KAChB,kBAAkB,CAAC,GAAG,OAAO;IAC/B;IACA;GACF,KAAK;IACH,SAAS,EAAE,aAAa,IAAI,OAAO,EAAE,EAAE;IACvC;GACF,KAAK;IACH,SAAS;KACP,aAAa;KACb,WAAW,KAAKC,WAAW,KAAKD,OAAO;IACzC;IACA;GACF,KAAK;IACH,SAAS,EAAE,QAAQ,EAAE,sBAAsB,EAAE,EAAE;IAC/C;GACF,KAAK;IACH,SAAS;KACP,kBAAkB;KAClB,4BAA4B;KAC5B,kBAAkB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;AC5NA,SAAgB,gBAAgB,OAAwC;CACtE,IACE,EAAE,iBAAiB,mBACnB,MAAM,QAAQ,mBAAmB,WACjC,MAAM,QAAQ,KAAK,SAAS,sBAE5B,OAAO;CACT,MAAM,SAAS,MAAM,QAAQ,KAAK;CAClC,OAAO,CAAC,UAAU,kBAAkB,sBAAsB,OAAO;AACnE;;;;AChBA,MAAa,qBAAqB;CAChC,oBAAoB;CACpB,gBAAgB;CAChB,oBAAoB;CACpB,6BAA6B;CAC7B,uBAAuB;CACvB,oBAAoB;CACpB,eAAe;CACf,wBAAwB;CACxB,YAAY;CACZ,wBAAwB;CACxB,oBAAoB;CACpB,qBAAqB;AACvB"}
1
+ {"version":3,"file":"transport-IrhVlS4w.js","names":["#height","#blockHash","#transactions"],"sources":["../src/transport/mock.ts","../src/transport/txInvalidDetail.ts","../src/rpc/errors.ts"],"sourcesContent":["import type { Transport, RpcParams, TransportRequestOptions } from \"./types.js\";\nimport { codec, deserialize } from \"@thruputchain/protocol\";\nimport { toBase58 } from \"../encoding.js\";\nimport { fromHex0x } from \"../actions/hex.js\";\nimport { hashSignedTransaction } from \"../derivation/transactionHash.js\";\nimport { JsonRpcError } from \"./http.js\";\n\nconst methods = [\n \"getVersionInfo\",\n \"getNetworkInfo\",\n \"getChainTip\",\n \"getChainConfig\",\n \"getServerLimits\",\n \"getBalance\",\n \"getRegisteredAuth\",\n \"getContractDeployment\",\n \"getEffectiveContract\",\n \"getContractArtifact\",\n \"getBlockByHeight\",\n \"dev_getPendingTransactionCount\",\n \"simulateInvocation\",\n \"simulateInvocations\",\n \"sendTransaction\",\n \"getTransactionReceipt\",\n \"getTransactionInput\",\n \"getTransactionStatus\",\n \"getTransactionsByRootAddress\",\n \"getTransactionsByBlock\",\n \"getEvents\",\n \"getStorage\",\n \"faucet_requestAirdrop\",\n];\n/** Deterministic native RPC transport for examples; it does not execute contract code. */\nexport class MockTransport implements Transport {\n #height = 0n;\n #transactions = new Map<string, bigint>();\n async request<T = unknown>(\n method: string,\n params: RpcParams = {},\n options?: TransportRequestOptions,\n ): Promise<T> {\n options?.signal?.throwIfAborted();\n if (Array.isArray(params))\n throw new TypeError(\"Native RPC params must be a named object\");\n const stateBlockHeight = this.#height.toString();\n const bounds = {\n oldestIndexedBlockHeight: \"0\",\n latestIndexedBlockHeight: stateBlockHeight,\n nextCursor: null,\n };\n const simulation = {\n output: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n let result: unknown;\n switch (method) {\n case \"getTransactionInput\":\n result = { status: \"unavailable\" };\n break;\n case \"getVersionInfo\":\n result = {\n wireFormat: \"14.4.0\",\n implementation: \"mock\",\n supportedMethods: [...methods],\n };\n break;\n case \"getNetworkInfo\":\n result = { networkHash: \"1\".repeat(32) };\n break;\n case \"getChainTip\":\n result = {\n blockHeight: stateBlockHeight,\n blockHash: this.#blockHash(this.#height),\n };\n break;\n case \"getChainConfig\":\n result = { stated: { maxNewContractsPerTx: 4 } };\n break;\n case \"getServerLimits\":\n result = {\n maxSimulationGas: \"100000000\",\n maxSimulationCalldataBytes: \"65536\",\n maxEventsPerPage: 200,\n maxTransactionsPerPage: 200,\n maxCursorBytes: \"1024\",\n simulationBatch: {\n maxInvocations: 16,\n maxCalldataBytes: 65536,\n maxGas: \"1600000000\",\n maxBackendResponseBytes: 1000000,\n timeoutMs: \"3000\",\n },\n };\n break;\n case \"getBalance\":\n result = { address: params.address, rawBalance: \"0\", stateBlockHeight };\n break;\n case \"getRegisteredAuth\":\n result = {\n address: params.address,\n configuration: null,\n stateBlockHeight,\n };\n break;\n case \"getStorage\":\n result = { item: null, stateBlockHeight };\n break;\n case \"getContractDeployment\":\n result = {\n address: params.address,\n stateBlockHeight,\n deployment: null,\n };\n break;\n case \"getEffectiveContract\":\n result = {\n address: params.address,\n context: params.context,\n stateBlockHeight,\n selection: null,\n };\n break;\n case \"getContractArtifact\":\n throw new JsonRpcError(\n -32014,\n \"Contract artifact unavailable\",\n {\n kind: \"contractArtifactUnavailable\",\n hash: params.hash,\n },\n method,\n );\n case \"dev_getPendingTransactionCount\":\n result = { count: \"0\" };\n break;\n case \"simulateInvocation\":\n result = { ...simulation, stateBlockHeight };\n break;\n case \"simulateInvocations\":\n result = {\n stateBlockHeight,\n results: (params.invocations as unknown[]).map(() =>\n structuredClone(simulation),\n ),\n };\n break;\n case \"faucet_requestAirdrop\":\n result = {\n attemptStatus: \"succeeded\",\n recipient: params.recipient,\n rawAmount: \"100000000\",\n transactionHash: this.#blockHash(this.#height),\n blockHeight: stateBlockHeight,\n execution: { result: \"return\", returnData: \"0x\" },\n };\n break;\n case \"sendTransaction\": {\n const signed = deserialize(\n fromHex0x(String(params.signedTransaction)),\n codec.SignedTransaction,\n );\n const hash = toBase58(hashSignedTransaction(signed));\n if (!this.#transactions.has(hash))\n this.#transactions.set(hash, ++this.#height);\n result = { transactionHash: hash, admission: \"accepted\" };\n break;\n }\n case \"getTransactionReceipt\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? null\n : {\n transactionHash: params.transactionHash,\n blockHeight: height.toString(),\n execution: { result: \"return\", returnData: \"0x\" },\n events: [],\n gasUsed: \"0\",\n };\n break;\n }\n case \"getTransactionStatus\": {\n const height = this.#transactions.get(String(params.transactionHash));\n result =\n height === undefined\n ? { status: \"unknown\" }\n : { status: \"committed\", blockHeight: height.toString() };\n break;\n }\n case \"getEvents\":\n result = { ...bounds, events: [] };\n break;\n case \"getTransactionsByRootAddress\":\n case \"getTransactionsByBlock\":\n result = { ...bounds, transactions: [] };\n break;\n case \"getBlockByHeight\": {\n const height = BigInt(String(params.blockHeight));\n result =\n height <= 0n || height > this.#height\n ? null\n : {\n blockHash: this.#blockHash(height),\n protocol: 0,\n networkHash: \"1\".repeat(32),\n proposer: \"1\".repeat(32),\n blockTimepoint: \"0\",\n blockHeight: height.toString(),\n txsHash: this.#blockHash(height),\n storageHash: this.#blockHash(height),\n eventsHash: this.#blockHash(height),\n configHash: this.#blockHash(height),\n prevBlockHash: this.#blockHash(height - 1n),\n proposalTxsHash: this.#blockHash(height),\n upgrades: [],\n };\n break;\n }\n default:\n throw new Error(`MockTransport: method not implemented: ${method}`);\n }\n return result as T;\n }\n #blockHash(height: bigint): string {\n const bytes = new Uint8Array(32);\n new DataView(bytes.buffer).setBigUint64(24, height);\n return toBase58(bytes);\n }\n}\n","import { NativeRpcError } from \"../rpc/errorReader.js\";\nimport { UnsupportedRpcValue } from \"../rpc/codec.js\";\nimport type { RpcErrorData } from \"../rpc/generated.js\";\n/** A validated native admission bound violation. Unknown details remain on the raw error. */\nexport type TxInvalidDetail = Exclude<\n NonNullable<Extract<RpcErrorData, { kind: \"transactionInvalid\" }>[\"detail\"]>,\n UnsupportedRpcValue\n>;\n/** Read known transaction-bound evidence without inferring retry permission. */\nexport function txInvalidDetail(error: unknown): TxInvalidDetail | null {\n if (\n !(error instanceof NativeRpcError) ||\n error.decoded.classification !== \"known\" ||\n error.decoded.data.kind !== \"transactionInvalid\"\n )\n return null;\n const detail = error.decoded.data.detail;\n return !detail || detail instanceof UnsupportedRpcValue ? null : detail;\n}\n","// Generated from the Rust-owned native OpenRPC fixture. Do not edit.\n/** Native causes. Codes alone never grant write retry permission. */\nexport const NativeRpcErrorCode = {\n BackendDataInvalid: -32054,\n BackendTimeout: -32051,\n BackendUnavailable: -32050,\n ContractArtifactUnavailable: -32014,\n FundingAttemptStopped: -32030,\n HistoryUnavailable: -32013,\n InvalidParams: -32602,\n LocalFundingUnresolved: -32031,\n Overloaded: -32053,\n StateHeightUnavailable: -32012,\n TransactionInvalid: -32000,\n TransactionRejected: -32001,\n} as const;\n"],"mappings":";;;;;;AAOA,MAAM,UAAU;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAEA,IAAa,gBAAb,MAAgD;CAC9C,UAAU;CACV,gCAAgB,IAAI,IAAoB;CACxC,MAAM,QACJ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bol.toStringTag, { value: "Module" });
2
- const require_codec = require("./codec-C4LJ0g8v.cjs");
3
- const require_readError = require("./readError-Cz3bveZa.cjs");
4
- const require_transport = require("./transport-DqlfAsuH.cjs");
2
+ const require_codec = require("./codec-BcK8ASsg.cjs");
3
+ const require_readError = require("./readError-CCVlmBhj.cjs");
4
+ const require_transport = require("./transport-5FPeNwuv.cjs");
5
5
  exports.HttpRequestError = require_readError.HttpRequestError;
6
6
  exports.HttpResponseError = require_readError.HttpResponseError;
7
7
  exports.HttpTransport = require_readError.HttpTransport;
@@ -1,3 +1,3 @@
1
- import { $ as RpcInvocationResult, A as RpcConflictCode, At as RpcRequestValidationError, B as RpcEffectiveContractResult, C as RpcBlockDriverMode, Ct as RpcTransactionReceipt, D as RpcChainConfig, Dt as RpcTxHash, E as RpcBlockStart, Et as RpcTransactionStatus, F as RpcContractRejectCode, G as RpcExecutionConfig, H as RpcErrorData, I as RpcDecimalTimePoint, J as RpcHistoryStart, K as RpcFailureCause, L as RpcDecimalU64, M as RpcContractArtifactResult, Mt as RpcParams, N as RpcContractDeployment, Nt as Transport, O as RpcChainTip, Ot as RpcVersionInfo, P as RpcContractDeploymentResult, Pt as TransportRequestOptions, Q as RpcInvocationOutput, R as RpcDescendingAnchor, S as RpcBlockClock, St as RpcTransactionInputResult, T as RpcBlockInfo, Tt as RpcTransactionRefPage, U as RpcEventFilter, V as RpcEmittedEvent, W as RpcEventPage, X as RpcInvocation, Y as RpcIdentifiedEvent, Z as RpcInvocationContext, _ as RpcBase58_ContractAddress, _t as RpcSimulationResults, a as RpcMethod, at as RpcPublicKey, b as RpcBase58_SHA256Hash, bt as RpcStorageResult, c as RpcActiveBlockDriverMode, ct as RpcRegisteredAuthResult, d as RpcAirdropExecution, dt as RpcSchedulerError, et as RpcIterationOrder, f as RpcAscendingAnchor, ft as RpcSchedulerErrorSource, g as RpcBalanceResult, gt as RpcSimulationResult, h as RpcAuthSigner, ht as RpcSimulationBatchLimits, i as RpcDiscovery, it as RpcProducedBlocks, j as RpcConflictDiagnostic, jt as UnsupportedRpcValue, k as RpcConfigLimits, kt as RpcDecodingError, l as RpcAdmission, lt as RpcRequests, m as RpcAuthConfiguration, mt as RpcServerLimits, n as RpcClientOptions, nt as RpcPendingTransactionCount, o as RpcMethods, ot as RpcReceiptExecution, p as RpcAssumedAuth, pt as RpcSendTransactionResult, q as RpcFundingSubmission, r as RpcCompatibilityError, rt as RpcProducedBlock, s as createRpcClient, st as RpcRecentAttemptFailure, t as RpcClient, tt as RpcNetworkInfo, u as RpcAirdropAttempt, ut as RpcResults, v as RpcBase58_Ed25519PublicKey, vt as RpcStorageCosts, w as RpcBlockDriverStatus, wt as RpcTransactionRef, x as RpcBase58_ValidatorID, xt as RpcTopicFilter, y as RpcBase58_PublicKeyHash, yt as RpcStorageItem, z as RpcEffectiveContract } from "./client-DocSdzOL.cjs";
2
- import { a as TxInvalidDetail, c as classifyReadError, d as HttpRequestError, f as HttpResponseError, h as JsonRpcError, i as NativeRpcErrorCode, l as MockTransport, m as HttpTransportOptions, n as DecodedRpcError, o as txInvalidDetail, p as HttpTransport, r as NativeRpcError, s as ReadErrorKind, t as RpcResponseError, u as HttpBatchOptions } from "./index-C3qDR1J5.cjs";
3
- export { type DecodedRpcError, type HttpBatchOptions, HttpRequestError, HttpResponseError, HttpTransport, type HttpTransportOptions, JsonRpcError, MockTransport, NativeRpcError, NativeRpcErrorCode, type ReadErrorKind, type RpcActiveBlockDriverMode, type RpcAdmission, type RpcAirdropAttempt, type RpcAirdropExecution, type RpcAscendingAnchor, type RpcAssumedAuth, type RpcAuthConfiguration, type RpcAuthSigner, type RpcBalanceResult, type RpcBase58_ContractAddress, type RpcBase58_Ed25519PublicKey, type RpcBase58_PublicKeyHash, type RpcBase58_SHA256Hash, type RpcBase58_ValidatorID, type RpcBlockClock, type RpcBlockDriverMode, type RpcBlockDriverStatus, type RpcBlockInfo, type RpcBlockStart, type RpcChainConfig, type RpcChainTip, type RpcClient, type RpcClientOptions, RpcCompatibilityError, type RpcConfigLimits, type RpcConflictCode, type RpcConflictDiagnostic, type RpcContractArtifactResult, type RpcContractDeployment, type RpcContractDeploymentResult, type RpcContractRejectCode, type RpcDecimalTimePoint, type RpcDecimalU64, RpcDecodingError, type RpcDescendingAnchor, type RpcDiscovery, type RpcEffectiveContract, type RpcEffectiveContractResult, type RpcEmittedEvent, type RpcErrorData, type RpcEventFilter, type RpcEventPage, type RpcExecutionConfig, type RpcFailureCause, type RpcFundingSubmission, type RpcHistoryStart, type RpcIdentifiedEvent, type RpcInvocation, type RpcInvocationContext, type RpcInvocationOutput, type RpcInvocationResult, type RpcIterationOrder, type RpcMethod, type RpcMethods, type RpcNetworkInfo, type RpcParams, type RpcPendingTransactionCount, type RpcProducedBlock, type RpcProducedBlocks, type RpcPublicKey, type RpcReceiptExecution, type RpcRecentAttemptFailure, type RpcRegisteredAuthResult, RpcRequestValidationError, type RpcRequests, RpcResponseError, type RpcResults, type RpcSchedulerError, type RpcSchedulerErrorSource, type RpcSendTransactionResult, type RpcServerLimits, type RpcSimulationBatchLimits, type RpcSimulationResult, type RpcSimulationResults, type RpcStorageCosts, type RpcStorageItem, type RpcStorageResult, type RpcTopicFilter, type RpcTransactionInputResult, type RpcTransactionReceipt, type RpcTransactionRef, type RpcTransactionRefPage, type RpcTransactionStatus, type RpcTxHash, type RpcVersionInfo, type Transport, type TransportRequestOptions, type TxInvalidDetail, UnsupportedRpcValue, classifyReadError, createRpcClient, txInvalidDetail };
1
+ import { $ as RpcInvocationOutput, A as RpcConfigLimits, At as RpcDecodingError, B as RpcEffectiveContract, C as RpcBlockDriverMode, Ct as RpcTransactionInputResult, D as RpcBlockTimeStep, Dt as RpcTransactionStatus, E as RpcBlockStart, Et as RpcTransactionRefPage, F as RpcContractDeploymentResult, Ft as TransportRequestOptions, G as RpcEventPage, H as RpcEmittedEvent, I as RpcContractRejectCode, J as RpcFundingSubmission, K as RpcExecutionConfig, L as RpcDecimalTimePoint, M as RpcConflictDiagnostic, Mt as UnsupportedRpcValue, N as RpcContractArtifactResult, Nt as RpcParams, O as RpcChainConfig, Ot as RpcTxHash, P as RpcContractDeployment, Pt as Transport, Q as RpcInvocationContext, R as RpcDecimalU64, S as RpcBlockClock, St as RpcTopicFilter, T as RpcBlockInfo, Tt as RpcTransactionRef, U as RpcErrorData, V as RpcEffectiveContractResult, W as RpcEventFilter, X as RpcIdentifiedEvent, Y as RpcHistoryStart, Z as RpcInvocation, _ as RpcBase58_ContractAddress, _t as RpcSimulationResult, a as RpcMethod, at as RpcProducedBlocks, b as RpcBase58_SHA256Hash, bt as RpcStorageItem, c as RpcActiveBlockDriverMode, ct as RpcRecentAttemptFailure, d as RpcAirdropExecution, dt as RpcResults, et as RpcInvocationResult, f as RpcAscendingAnchor, ft as RpcSchedulerError, g as RpcBalanceResult, gt as RpcSimulationBatchLimits, h as RpcAuthSigner, ht as RpcServerLimits, i as RpcDiscovery, it as RpcProducedBlock, j as RpcConflictCode, jt as RpcRequestValidationError, k as RpcChainTip, kt as RpcVersionInfo, l as RpcAdmission, lt as RpcRegisteredAuthResult, m as RpcAuthConfiguration, mt as RpcSendTransactionResult, n as RpcClientOptions, nt as RpcNetworkInfo, o as RpcMethods, ot as RpcPublicKey, p as RpcAssumedAuth, pt as RpcSchedulerErrorSource, q as RpcFailureCause, r as RpcCompatibilityError, rt as RpcPendingTransactionCount, s as createRpcClient, st as RpcReceiptExecution, t as RpcClient, tt as RpcIterationOrder, u as RpcAirdropAttempt, ut as RpcRequests, v as RpcBase58_Ed25519PublicKey, vt as RpcSimulationResults, w as RpcBlockDriverStatus, wt as RpcTransactionReceipt, x as RpcBase58_ValidatorID, xt as RpcStorageResult, y as RpcBase58_PublicKeyHash, yt as RpcStorageCosts, z as RpcDescendingAnchor } from "./client-jOZxB8yW.cjs";
2
+ import { a as TxInvalidDetail, c as classifyReadError, d as HttpRequestError, f as HttpResponseError, h as JsonRpcError, i as NativeRpcErrorCode, l as MockTransport, m as HttpTransportOptions, n as DecodedRpcError, o as txInvalidDetail, p as HttpTransport, r as NativeRpcError, s as ReadErrorKind, t as RpcResponseError, u as HttpBatchOptions } from "./index-CtjZ61tl.cjs";
3
+ export { type DecodedRpcError, type HttpBatchOptions, HttpRequestError, HttpResponseError, HttpTransport, type HttpTransportOptions, JsonRpcError, MockTransport, NativeRpcError, NativeRpcErrorCode, type ReadErrorKind, type RpcActiveBlockDriverMode, type RpcAdmission, type RpcAirdropAttempt, type RpcAirdropExecution, type RpcAscendingAnchor, type RpcAssumedAuth, type RpcAuthConfiguration, type RpcAuthSigner, type RpcBalanceResult, type RpcBase58_ContractAddress, type RpcBase58_Ed25519PublicKey, type RpcBase58_PublicKeyHash, type RpcBase58_SHA256Hash, type RpcBase58_ValidatorID, type RpcBlockClock, type RpcBlockDriverMode, type RpcBlockDriverStatus, type RpcBlockInfo, type RpcBlockStart, type RpcBlockTimeStep, type RpcChainConfig, type RpcChainTip, type RpcClient, type RpcClientOptions, RpcCompatibilityError, type RpcConfigLimits, type RpcConflictCode, type RpcConflictDiagnostic, type RpcContractArtifactResult, type RpcContractDeployment, type RpcContractDeploymentResult, type RpcContractRejectCode, type RpcDecimalTimePoint, type RpcDecimalU64, RpcDecodingError, type RpcDescendingAnchor, type RpcDiscovery, type RpcEffectiveContract, type RpcEffectiveContractResult, type RpcEmittedEvent, type RpcErrorData, type RpcEventFilter, type RpcEventPage, type RpcExecutionConfig, type RpcFailureCause, type RpcFundingSubmission, type RpcHistoryStart, type RpcIdentifiedEvent, type RpcInvocation, type RpcInvocationContext, type RpcInvocationOutput, type RpcInvocationResult, type RpcIterationOrder, type RpcMethod, type RpcMethods, type RpcNetworkInfo, type RpcParams, type RpcPendingTransactionCount, type RpcProducedBlock, type RpcProducedBlocks, type RpcPublicKey, type RpcReceiptExecution, type RpcRecentAttemptFailure, type RpcRegisteredAuthResult, RpcRequestValidationError, type RpcRequests, RpcResponseError, type RpcResults, type RpcSchedulerError, type RpcSchedulerErrorSource, type RpcSendTransactionResult, type RpcServerLimits, type RpcSimulationBatchLimits, type RpcSimulationResult, type RpcSimulationResults, type RpcStorageCosts, type RpcStorageItem, type RpcStorageResult, type RpcTopicFilter, type RpcTransactionInputResult, type RpcTransactionReceipt, type RpcTransactionRef, type RpcTransactionRefPage, type RpcTransactionStatus, type RpcTxHash, type RpcVersionInfo, type Transport, type TransportRequestOptions, type TxInvalidDetail, UnsupportedRpcValue, classifyReadError, createRpcClient, txInvalidDetail };
@@ -1,3 +1,3 @@
1
- import { $ as RpcInvocationResult, A as RpcConflictCode, At as RpcRequestValidationError, B as RpcEffectiveContractResult, C as RpcBlockDriverMode, Ct as RpcTransactionReceipt, D as RpcChainConfig, Dt as RpcTxHash, E as RpcBlockStart, Et as RpcTransactionStatus, F as RpcContractRejectCode, G as RpcExecutionConfig, H as RpcErrorData, I as RpcDecimalTimePoint, J as RpcHistoryStart, K as RpcFailureCause, L as RpcDecimalU64, M as RpcContractArtifactResult, Mt as RpcParams, N as RpcContractDeployment, Nt as Transport, O as RpcChainTip, Ot as RpcVersionInfo, P as RpcContractDeploymentResult, Pt as TransportRequestOptions, Q as RpcInvocationOutput, R as RpcDescendingAnchor, S as RpcBlockClock, St as RpcTransactionInputResult, T as RpcBlockInfo, Tt as RpcTransactionRefPage, U as RpcEventFilter, V as RpcEmittedEvent, W as RpcEventPage, X as RpcInvocation, Y as RpcIdentifiedEvent, Z as RpcInvocationContext, _ as RpcBase58_ContractAddress, _t as RpcSimulationResults, a as RpcMethod, at as RpcPublicKey, b as RpcBase58_SHA256Hash, bt as RpcStorageResult, c as RpcActiveBlockDriverMode, ct as RpcRegisteredAuthResult, d as RpcAirdropExecution, dt as RpcSchedulerError, et as RpcIterationOrder, f as RpcAscendingAnchor, ft as RpcSchedulerErrorSource, g as RpcBalanceResult, gt as RpcSimulationResult, h as RpcAuthSigner, ht as RpcSimulationBatchLimits, i as RpcDiscovery, it as RpcProducedBlocks, j as RpcConflictDiagnostic, jt as UnsupportedRpcValue, k as RpcConfigLimits, kt as RpcDecodingError, l as RpcAdmission, lt as RpcRequests, m as RpcAuthConfiguration, mt as RpcServerLimits, n as RpcClientOptions, nt as RpcPendingTransactionCount, o as RpcMethods, ot as RpcReceiptExecution, p as RpcAssumedAuth, pt as RpcSendTransactionResult, q as RpcFundingSubmission, r as RpcCompatibilityError, rt as RpcProducedBlock, s as createRpcClient, st as RpcRecentAttemptFailure, t as RpcClient, tt as RpcNetworkInfo, u as RpcAirdropAttempt, ut as RpcResults, v as RpcBase58_Ed25519PublicKey, vt as RpcStorageCosts, w as RpcBlockDriverStatus, wt as RpcTransactionRef, x as RpcBase58_ValidatorID, xt as RpcTopicFilter, y as RpcBase58_PublicKeyHash, yt as RpcStorageItem, z as RpcEffectiveContract } from "./client-DocSdzOL.js";
2
- import { a as TxInvalidDetail, c as classifyReadError, d as HttpRequestError, f as HttpResponseError, h as JsonRpcError, i as NativeRpcErrorCode, l as MockTransport, m as HttpTransportOptions, n as DecodedRpcError, o as txInvalidDetail, p as HttpTransport, r as NativeRpcError, s as ReadErrorKind, t as RpcResponseError, u as HttpBatchOptions } from "./index-Zaz-e8Sy.js";
3
- export { type DecodedRpcError, type HttpBatchOptions, HttpRequestError, HttpResponseError, HttpTransport, type HttpTransportOptions, JsonRpcError, MockTransport, NativeRpcError, NativeRpcErrorCode, type ReadErrorKind, type RpcActiveBlockDriverMode, type RpcAdmission, type RpcAirdropAttempt, type RpcAirdropExecution, type RpcAscendingAnchor, type RpcAssumedAuth, type RpcAuthConfiguration, type RpcAuthSigner, type RpcBalanceResult, type RpcBase58_ContractAddress, type RpcBase58_Ed25519PublicKey, type RpcBase58_PublicKeyHash, type RpcBase58_SHA256Hash, type RpcBase58_ValidatorID, type RpcBlockClock, type RpcBlockDriverMode, type RpcBlockDriverStatus, type RpcBlockInfo, type RpcBlockStart, type RpcChainConfig, type RpcChainTip, type RpcClient, type RpcClientOptions, RpcCompatibilityError, type RpcConfigLimits, type RpcConflictCode, type RpcConflictDiagnostic, type RpcContractArtifactResult, type RpcContractDeployment, type RpcContractDeploymentResult, type RpcContractRejectCode, type RpcDecimalTimePoint, type RpcDecimalU64, RpcDecodingError, type RpcDescendingAnchor, type RpcDiscovery, type RpcEffectiveContract, type RpcEffectiveContractResult, type RpcEmittedEvent, type RpcErrorData, type RpcEventFilter, type RpcEventPage, type RpcExecutionConfig, type RpcFailureCause, type RpcFundingSubmission, type RpcHistoryStart, type RpcIdentifiedEvent, type RpcInvocation, type RpcInvocationContext, type RpcInvocationOutput, type RpcInvocationResult, type RpcIterationOrder, type RpcMethod, type RpcMethods, type RpcNetworkInfo, type RpcParams, type RpcPendingTransactionCount, type RpcProducedBlock, type RpcProducedBlocks, type RpcPublicKey, type RpcReceiptExecution, type RpcRecentAttemptFailure, type RpcRegisteredAuthResult, RpcRequestValidationError, type RpcRequests, RpcResponseError, type RpcResults, type RpcSchedulerError, type RpcSchedulerErrorSource, type RpcSendTransactionResult, type RpcServerLimits, type RpcSimulationBatchLimits, type RpcSimulationResult, type RpcSimulationResults, type RpcStorageCosts, type RpcStorageItem, type RpcStorageResult, type RpcTopicFilter, type RpcTransactionInputResult, type RpcTransactionReceipt, type RpcTransactionRef, type RpcTransactionRefPage, type RpcTransactionStatus, type RpcTxHash, type RpcVersionInfo, type Transport, type TransportRequestOptions, type TxInvalidDetail, UnsupportedRpcValue, classifyReadError, createRpcClient, txInvalidDetail };
1
+ import { $ as RpcInvocationOutput, A as RpcConfigLimits, At as RpcDecodingError, B as RpcEffectiveContract, C as RpcBlockDriverMode, Ct as RpcTransactionInputResult, D as RpcBlockTimeStep, Dt as RpcTransactionStatus, E as RpcBlockStart, Et as RpcTransactionRefPage, F as RpcContractDeploymentResult, Ft as TransportRequestOptions, G as RpcEventPage, H as RpcEmittedEvent, I as RpcContractRejectCode, J as RpcFundingSubmission, K as RpcExecutionConfig, L as RpcDecimalTimePoint, M as RpcConflictDiagnostic, Mt as UnsupportedRpcValue, N as RpcContractArtifactResult, Nt as RpcParams, O as RpcChainConfig, Ot as RpcTxHash, P as RpcContractDeployment, Pt as Transport, Q as RpcInvocationContext, R as RpcDecimalU64, S as RpcBlockClock, St as RpcTopicFilter, T as RpcBlockInfo, Tt as RpcTransactionRef, U as RpcErrorData, V as RpcEffectiveContractResult, W as RpcEventFilter, X as RpcIdentifiedEvent, Y as RpcHistoryStart, Z as RpcInvocation, _ as RpcBase58_ContractAddress, _t as RpcSimulationResult, a as RpcMethod, at as RpcProducedBlocks, b as RpcBase58_SHA256Hash, bt as RpcStorageItem, c as RpcActiveBlockDriverMode, ct as RpcRecentAttemptFailure, d as RpcAirdropExecution, dt as RpcResults, et as RpcInvocationResult, f as RpcAscendingAnchor, ft as RpcSchedulerError, g as RpcBalanceResult, gt as RpcSimulationBatchLimits, h as RpcAuthSigner, ht as RpcServerLimits, i as RpcDiscovery, it as RpcProducedBlock, j as RpcConflictCode, jt as RpcRequestValidationError, k as RpcChainTip, kt as RpcVersionInfo, l as RpcAdmission, lt as RpcRegisteredAuthResult, m as RpcAuthConfiguration, mt as RpcSendTransactionResult, n as RpcClientOptions, nt as RpcNetworkInfo, o as RpcMethods, ot as RpcPublicKey, p as RpcAssumedAuth, pt as RpcSchedulerErrorSource, q as RpcFailureCause, r as RpcCompatibilityError, rt as RpcPendingTransactionCount, s as createRpcClient, st as RpcReceiptExecution, t as RpcClient, tt as RpcIterationOrder, u as RpcAirdropAttempt, ut as RpcRequests, v as RpcBase58_Ed25519PublicKey, vt as RpcSimulationResults, w as RpcBlockDriverStatus, wt as RpcTransactionReceipt, x as RpcBase58_ValidatorID, xt as RpcStorageResult, y as RpcBase58_PublicKeyHash, yt as RpcStorageCosts, z as RpcDescendingAnchor } from "./client-jOZxB8yW.js";
2
+ import { a as TxInvalidDetail, c as classifyReadError, d as HttpRequestError, f as HttpResponseError, h as JsonRpcError, i as NativeRpcErrorCode, l as MockTransport, m as HttpTransportOptions, n as DecodedRpcError, o as txInvalidDetail, p as HttpTransport, r as NativeRpcError, s as ReadErrorKind, t as RpcResponseError, u as HttpBatchOptions } from "./index-C3HVRvQd.js";
3
+ export { type DecodedRpcError, type HttpBatchOptions, HttpRequestError, HttpResponseError, HttpTransport, type HttpTransportOptions, JsonRpcError, MockTransport, NativeRpcError, NativeRpcErrorCode, type ReadErrorKind, type RpcActiveBlockDriverMode, type RpcAdmission, type RpcAirdropAttempt, type RpcAirdropExecution, type RpcAscendingAnchor, type RpcAssumedAuth, type RpcAuthConfiguration, type RpcAuthSigner, type RpcBalanceResult, type RpcBase58_ContractAddress, type RpcBase58_Ed25519PublicKey, type RpcBase58_PublicKeyHash, type RpcBase58_SHA256Hash, type RpcBase58_ValidatorID, type RpcBlockClock, type RpcBlockDriverMode, type RpcBlockDriverStatus, type RpcBlockInfo, type RpcBlockStart, type RpcBlockTimeStep, type RpcChainConfig, type RpcChainTip, type RpcClient, type RpcClientOptions, RpcCompatibilityError, type RpcConfigLimits, type RpcConflictCode, type RpcConflictDiagnostic, type RpcContractArtifactResult, type RpcContractDeployment, type RpcContractDeploymentResult, type RpcContractRejectCode, type RpcDecimalTimePoint, type RpcDecimalU64, RpcDecodingError, type RpcDescendingAnchor, type RpcDiscovery, type RpcEffectiveContract, type RpcEffectiveContractResult, type RpcEmittedEvent, type RpcErrorData, type RpcEventFilter, type RpcEventPage, type RpcExecutionConfig, type RpcFailureCause, type RpcFundingSubmission, type RpcHistoryStart, type RpcIdentifiedEvent, type RpcInvocation, type RpcInvocationContext, type RpcInvocationOutput, type RpcInvocationResult, type RpcIterationOrder, type RpcMethod, type RpcMethods, type RpcNetworkInfo, type RpcParams, type RpcPendingTransactionCount, type RpcProducedBlock, type RpcProducedBlocks, type RpcPublicKey, type RpcReceiptExecution, type RpcRecentAttemptFailure, type RpcRegisteredAuthResult, RpcRequestValidationError, type RpcRequests, RpcResponseError, type RpcResults, type RpcSchedulerError, type RpcSchedulerErrorSource, type RpcSendTransactionResult, type RpcServerLimits, type RpcSimulationBatchLimits, type RpcSimulationResult, type RpcSimulationResults, type RpcStorageCosts, type RpcStorageItem, type RpcStorageResult, type RpcTopicFilter, type RpcTransactionInputResult, type RpcTransactionReceipt, type RpcTransactionRef, type RpcTransactionRefPage, type RpcTransactionStatus, type RpcTxHash, type RpcVersionInfo, type Transport, type TransportRequestOptions, type TxInvalidDetail, UnsupportedRpcValue, classifyReadError, createRpcClient, txInvalidDetail };
package/dist/transport.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as RpcRequestValidationError, r as UnsupportedRpcValue, t as RpcDecodingError } from "./codec-BOjoJjC5.js";
2
- import { a as HttpRequestError, c as JsonRpcError, i as NativeRpcError, l as RpcResponseError, n as RpcCompatibilityError, o as HttpResponseError, r as createRpcClient, s as HttpTransport, t as classifyReadError } from "./readError-Z5zuylri.js";
3
- import { n as txInvalidDetail, r as MockTransport, t as NativeRpcErrorCode } from "./transport-PstrCcBv.js";
1
+ import { n as RpcRequestValidationError, r as UnsupportedRpcValue, t as RpcDecodingError } from "./codec-Bxlt1gKO.js";
2
+ import { a as HttpRequestError, c as JsonRpcError, i as NativeRpcError, l as RpcResponseError, n as RpcCompatibilityError, o as HttpResponseError, r as createRpcClient, s as HttpTransport, t as classifyReadError } from "./readError-D1dppovI.js";
3
+ import { n as txInvalidDetail, r as MockTransport, t as NativeRpcErrorCode } from "./transport-IrhVlS4w.js";
4
4
  export { HttpRequestError, HttpResponseError, HttpTransport, JsonRpcError, MockTransport, NativeRpcError, NativeRpcErrorCode, RpcCompatibilityError, RpcDecodingError, RpcRequestValidationError, RpcResponseError, UnsupportedRpcValue, classifyReadError, createRpcClient, txInvalidDetail };
@@ -1,6 +1,6 @@
1
- const require_contract = require("./contract-DPm2BJTu.cjs");
1
+ const require_contract = require("./contract-DSu2UPPm.cjs");
2
2
  const require_hex = require("./hex-DkGpiZ5e.cjs");
3
- const require_sendInvocation = require("./sendInvocation-8TEMrJ_M.cjs");
3
+ const require_sendInvocation = require("./sendInvocation-Dsr9ij5P.cjs");
4
4
  const require_validation = require("./validation-4w-vDGAi.cjs");
5
5
  require("./provider.cjs");
6
6
  let _thruputchain_protocol = require("@thruputchain/protocol");
@@ -706,4 +706,4 @@ Object.defineProperty(exports, "rv32Contract", {
706
706
  }
707
707
  });
708
708
 
709
- //# sourceMappingURL=wallet-Blh7oas7.cjs.map
709
+ //# sourceMappingURL=wallet-7R5M_7h4.cjs.map