@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.
- package/README.md +9 -6
- package/dist/{actions-DK_XBeVy.cjs → actions-B5-CjpEF.cjs} +6 -6
- package/dist/{actions-DK_XBeVy.cjs.map → actions-B5-CjpEF.cjs.map} +1 -1
- package/dist/{actions-1LmkZcfS.js → actions-C1SMLWO5.js} +6 -6
- package/dist/{actions-1LmkZcfS.js.map → actions-C1SMLWO5.js.map} +1 -1
- package/dist/actions.cjs +2 -2
- package/dist/actions.d.cts +3 -3
- package/dist/actions.d.ts +3 -3
- package/dist/actions.js +2 -2
- package/dist/{client-DocSdzOL.d.cts → client-jOZxB8yW.d.cts} +10 -2
- package/dist/client-jOZxB8yW.d.cts.map +1 -0
- package/dist/{client-DocSdzOL.d.ts → client-jOZxB8yW.d.ts} +10 -2
- package/dist/client-jOZxB8yW.d.ts.map +1 -0
- package/dist/{codec-C4LJ0g8v.cjs → codec-BcK8ASsg.cjs} +315 -1
- package/dist/{codec-C4LJ0g8v.cjs.map → codec-BcK8ASsg.cjs.map} +1 -1
- package/dist/{codec-BOjoJjC5.js → codec-Bxlt1gKO.js} +315 -1
- package/dist/{codec-BOjoJjC5.js.map → codec-Bxlt1gKO.js.map} +1 -1
- package/dist/{contract-Cu8Qv94_.js → contract-D77iA2iY.js} +2 -2
- package/dist/{contract-Cu8Qv94_.js.map → contract-D77iA2iY.js.map} +1 -1
- package/dist/{contract-DPm2BJTu.cjs → contract-DSu2UPPm.cjs} +2 -2
- package/dist/{contract-DPm2BJTu.cjs.map → contract-DSu2UPPm.cjs.map} +1 -1
- package/dist/contract.cjs +1 -1
- package/dist/contract.d.cts +2 -2
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +1 -1
- package/dist/contracts.cjs +3 -3
- package/dist/contracts.d.cts +3 -3
- package/dist/contracts.d.ts +3 -3
- package/dist/contracts.js +3 -3
- package/dist/{dev_wallet-BcvX_xT4.cjs → dev_wallet-CAbOSrak.cjs} +2 -2
- package/dist/{dev_wallet-BcvX_xT4.cjs.map → dev_wallet-CAbOSrak.cjs.map} +1 -1
- package/dist/{dev_wallet-B5R5JJaw.js → dev_wallet-CU3RpQLm.js} +2 -2
- package/dist/{dev_wallet-B5R5JJaw.js.map → dev_wallet-CU3RpQLm.js.map} +1 -1
- package/dist/{execution-C8oQgpO3.d.cts → execution-J5jkXhV1.d.cts} +3 -3
- package/dist/{execution-C8oQgpO3.d.cts.map → execution-J5jkXhV1.d.cts.map} +1 -1
- package/dist/{execution-DsZzqv_C.d.ts → execution-XJ0iwFaX.d.ts} +3 -3
- package/dist/{execution-DsZzqv_C.d.ts.map → execution-XJ0iwFaX.d.ts.map} +1 -1
- package/dist/{index-CHnfHuQo.d.ts → index-Bb01ytjJ.d.ts} +4 -4
- package/dist/{index-CHnfHuQo.d.ts.map → index-Bb01ytjJ.d.ts.map} +1 -1
- package/dist/{index-Zaz-e8Sy.d.ts → index-C3HVRvQd.d.ts} +2 -2
- package/dist/{index-Zaz-e8Sy.d.ts.map → index-C3HVRvQd.d.ts.map} +1 -1
- package/dist/{index-BmQN3jAS.d.cts → index-CedOvhGY.d.cts} +2 -2
- package/dist/{index-BmQN3jAS.d.cts.map → index-CedOvhGY.d.cts.map} +1 -1
- package/dist/{index-CuzB95QT.d.cts → index-CtjWsAXV.d.cts} +4 -4
- package/dist/{index-CuzB95QT.d.cts.map → index-CtjWsAXV.d.cts.map} +1 -1
- package/dist/{index-C3qDR1J5.d.cts → index-CtjZ61tl.d.cts} +2 -2
- package/dist/{index-C3qDR1J5.d.cts.map → index-CtjZ61tl.d.cts.map} +1 -1
- package/dist/{index-hqEnT64w.d.ts → index-DeS1S0m-.d.ts} +2 -2
- package/dist/{index-hqEnT64w.d.ts.map → index-DeS1S0m-.d.ts.map} +1 -1
- package/dist/{index-CKqC9N4o.d.ts → index-DfmDUk5Y.d.ts} +4 -4
- package/dist/{index-CKqC9N4o.d.ts.map → index-DfmDUk5Y.d.ts.map} +1 -1
- package/dist/{index-rrP1HJ2Z.d.cts → index-soFVQX9j.d.cts} +4 -4
- package/dist/{index-rrP1HJ2Z.d.cts.map → index-soFVQX9j.d.cts.map} +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/{readError-Cz3bveZa.cjs → readError-CCVlmBhj.cjs} +5 -3
- package/dist/{readError-Cz3bveZa.cjs.map → readError-CCVlmBhj.cjs.map} +1 -1
- package/dist/{readError-Z5zuylri.js → readError-D1dppovI.js} +5 -3
- package/dist/{readError-Z5zuylri.js.map → readError-D1dppovI.js.map} +1 -1
- package/dist/{readViews-CQOY5v4o.d.cts → readViews-DbWELMMq.d.cts} +2 -2
- package/dist/{readViews-CQOY5v4o.d.cts.map → readViews-DbWELMMq.d.cts.map} +1 -1
- package/dist/{readViews-BvMHbiaF.d.ts → readViews-nV3jbpYc.d.ts} +2 -2
- package/dist/{readViews-BvMHbiaF.d.ts.map → readViews-nV3jbpYc.d.ts.map} +1 -1
- package/dist/{sendInvocation-8TEMrJ_M.cjs → sendInvocation-Dsr9ij5P.cjs} +5 -5
- package/dist/{sendInvocation-8TEMrJ_M.cjs.map → sendInvocation-Dsr9ij5P.cjs.map} +1 -1
- package/dist/{sendInvocation-CkeMyLk1.js → sendInvocation-tBmf8haQ.js} +5 -5
- package/dist/{sendInvocation-CkeMyLk1.js.map → sendInvocation-tBmf8haQ.js.map} +1 -1
- package/dist/signed-op.cjs +2 -2
- package/dist/signed-op.d.cts +1 -1
- package/dist/signed-op.d.ts +1 -1
- package/dist/signed-op.js +2 -2
- package/dist/{signedOp-BDUZhfJn.cjs → signedOp-DAucp6xg.cjs} +3 -3
- package/dist/{signedOp-BDUZhfJn.cjs.map → signedOp-DAucp6xg.cjs.map} +1 -1
- package/dist/{signedOp-Kx8u8_3I.js → signedOp-DpmUpH-e.js} +3 -3
- package/dist/{signedOp-Kx8u8_3I.js.map → signedOp-DpmUpH-e.js.map} +1 -1
- package/dist/{signed_op-Dxn7-lRu.js → signed_op-CwN-_CXw.js} +2 -2
- package/dist/{signed_op-Dxn7-lRu.js.map → signed_op-CwN-_CXw.js.map} +1 -1
- package/dist/{signed_op-BrLxDrDb.d.cts → signed_op-D2usgASc.d.cts} +3 -3
- package/dist/{signed_op-BrLxDrDb.d.cts.map → signed_op-D2usgASc.d.cts.map} +1 -1
- package/dist/{signed_op-CAcYYRm6.cjs → signed_op-_lR85dn2.cjs} +2 -2
- package/dist/{signed_op-CAcYYRm6.cjs.map → signed_op-_lR85dn2.cjs.map} +1 -1
- package/dist/{signed_op-DbRq3_Hb.d.ts → signed_op-zGq4eBo8.d.ts} +3 -3
- package/dist/{signed_op-DbRq3_Hb.d.ts.map → signed_op-zGq4eBo8.d.ts.map} +1 -1
- package/dist/{transport-DqlfAsuH.cjs → transport-5FPeNwuv.cjs} +3 -3
- package/dist/{transport-DqlfAsuH.cjs.map → transport-5FPeNwuv.cjs.map} +1 -1
- package/dist/{transport-PstrCcBv.js → transport-IrhVlS4w.js} +3 -3
- package/dist/{transport-PstrCcBv.js.map → transport-IrhVlS4w.js.map} +1 -1
- package/dist/transport.cjs +3 -3
- package/dist/transport.d.cts +3 -3
- package/dist/transport.d.ts +3 -3
- package/dist/transport.js +3 -3
- package/dist/{wallet-Blh7oas7.cjs → wallet-7R5M_7h4.cjs} +3 -3
- package/dist/{wallet-Blh7oas7.cjs.map → wallet-7R5M_7h4.cjs.map} +1 -1
- package/dist/{wallet-5wt9wLG3.js → wallet-BNKgOXrF.js} +3 -3
- package/dist/{wallet-5wt9wLG3.js.map → wallet-BNKgOXrF.js.map} +1 -1
- package/dist/wallet.cjs +2 -2
- package/dist/wallet.d.cts +2 -2
- package/dist/wallet.d.ts +2 -2
- package/dist/wallet.js +2 -2
- package/package.json +1 -1
- package/dist/client-DocSdzOL.d.cts.map +0 -1
- package/dist/client-DocSdzOL.d.ts.map +0 -1
|
@@ -357,6 +357,14 @@ var schema_default = {
|
|
|
357
357
|
"required": ["order"],
|
|
358
358
|
"type": "object"
|
|
359
359
|
},
|
|
360
|
+
"BlockTimeStep": {
|
|
361
|
+
"properties": {
|
|
362
|
+
"nextBlockTimepoint": { "$ref": "#/components/schemas/DecimalTimePoint" },
|
|
363
|
+
"stepNanoseconds": { "$ref": "#/components/schemas/DecimalU64" }
|
|
364
|
+
},
|
|
365
|
+
"required": ["nextBlockTimepoint"],
|
|
366
|
+
"type": "object"
|
|
367
|
+
},
|
|
360
368
|
"ChainConfig": {
|
|
361
369
|
"properties": {
|
|
362
370
|
"execution": { "$ref": "#/components/schemas/ExecutionConfig" },
|
|
@@ -2103,6 +2111,22 @@ var schema_default = {
|
|
|
2103
2111
|
"result": { "$ref": "#/components/schemas/BlockClock" },
|
|
2104
2112
|
"paged": false
|
|
2105
2113
|
},
|
|
2114
|
+
"dev_setBlockTimeStep": {
|
|
2115
|
+
"params": {
|
|
2116
|
+
"type": "object",
|
|
2117
|
+
"additionalProperties": false,
|
|
2118
|
+
"properties": { "stepNanoseconds": {
|
|
2119
|
+
"maxLength": 20,
|
|
2120
|
+
"pattern": "^(0|[1-9][0-9]*)(?![\\s\\S])",
|
|
2121
|
+
"type": "string",
|
|
2122
|
+
"x-integer-maximum": "18446744073709551615",
|
|
2123
|
+
"x-integer-minimum": "0"
|
|
2124
|
+
} },
|
|
2125
|
+
"required": []
|
|
2126
|
+
},
|
|
2127
|
+
"result": { "$ref": "#/components/schemas/BlockTimeStep" },
|
|
2128
|
+
"paged": false
|
|
2129
|
+
},
|
|
2106
2130
|
"dev_setBlockDriver": {
|
|
2107
2131
|
"params": {
|
|
2108
2132
|
"type": "object",
|
|
@@ -10631,6 +10655,296 @@ var schema_default = {
|
|
|
10631
10655
|
}
|
|
10632
10656
|
}
|
|
10633
10657
|
],
|
|
10658
|
+
"dev_setBlockTimeStep": [
|
|
10659
|
+
{
|
|
10660
|
+
"code": -32602,
|
|
10661
|
+
"schema": {
|
|
10662
|
+
"oneOf": [{
|
|
10663
|
+
"properties": {
|
|
10664
|
+
"kind": {
|
|
10665
|
+
"const": "invalidParams",
|
|
10666
|
+
"type": "string"
|
|
10667
|
+
},
|
|
10668
|
+
"path": {
|
|
10669
|
+
"pattern": "^(?:/(?:[^~/]|~[01])*)*(?![\\s\\S])",
|
|
10670
|
+
"type": "string"
|
|
10671
|
+
},
|
|
10672
|
+
"reason": { "type": "string" }
|
|
10673
|
+
},
|
|
10674
|
+
"required": ["kind"],
|
|
10675
|
+
"type": "object",
|
|
10676
|
+
"x-forbidden": [
|
|
10677
|
+
"admission",
|
|
10678
|
+
"transactionHash",
|
|
10679
|
+
"signedTransaction",
|
|
10680
|
+
"observation",
|
|
10681
|
+
"receipt",
|
|
10682
|
+
"cause",
|
|
10683
|
+
"serviceCode",
|
|
10684
|
+
"error"
|
|
10685
|
+
]
|
|
10686
|
+
}],
|
|
10687
|
+
"x-tag": "kind"
|
|
10688
|
+
}
|
|
10689
|
+
},
|
|
10690
|
+
{
|
|
10691
|
+
"code": -32050,
|
|
10692
|
+
"schema": {
|
|
10693
|
+
"oneOf": [{
|
|
10694
|
+
"properties": {
|
|
10695
|
+
"admission": {
|
|
10696
|
+
"enum": [
|
|
10697
|
+
"notAttempted",
|
|
10698
|
+
"rejected",
|
|
10699
|
+
"unknown"
|
|
10700
|
+
],
|
|
10701
|
+
"type": "string"
|
|
10702
|
+
},
|
|
10703
|
+
"error": {
|
|
10704
|
+
"properties": {
|
|
10705
|
+
"code": {
|
|
10706
|
+
"maximum": 2147483647,
|
|
10707
|
+
"minimum": -2147483648,
|
|
10708
|
+
"type": "integer"
|
|
10709
|
+
},
|
|
10710
|
+
"source": {
|
|
10711
|
+
"anyOf": [{
|
|
10712
|
+
"enum": [
|
|
10713
|
+
"auth",
|
|
10714
|
+
"scheduler",
|
|
10715
|
+
"executor",
|
|
10716
|
+
"other"
|
|
10717
|
+
],
|
|
10718
|
+
"type": "string"
|
|
10719
|
+
}],
|
|
10720
|
+
"x-extensible": true
|
|
10721
|
+
}
|
|
10722
|
+
},
|
|
10723
|
+
"required": ["source", "code"],
|
|
10724
|
+
"type": "object"
|
|
10725
|
+
},
|
|
10726
|
+
"kind": {
|
|
10727
|
+
"const": "backendUnavailable",
|
|
10728
|
+
"type": "string"
|
|
10729
|
+
},
|
|
10730
|
+
"retryAfterMs": {
|
|
10731
|
+
"maxLength": 20,
|
|
10732
|
+
"pattern": "^(0|[1-9][0-9]*)(?![\\s\\S])",
|
|
10733
|
+
"type": "string",
|
|
10734
|
+
"x-integer-maximum": "18446744073709551615",
|
|
10735
|
+
"x-integer-minimum": "0"
|
|
10736
|
+
},
|
|
10737
|
+
"serviceCode": {
|
|
10738
|
+
"maxLength": 128,
|
|
10739
|
+
"minLength": 1,
|
|
10740
|
+
"type": "string"
|
|
10741
|
+
},
|
|
10742
|
+
"transactionHash": {
|
|
10743
|
+
"maxLength": 45,
|
|
10744
|
+
"minLength": 32,
|
|
10745
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
|
|
10746
|
+
"type": "string",
|
|
10747
|
+
"x-base58-bytes": 32
|
|
10748
|
+
}
|
|
10749
|
+
},
|
|
10750
|
+
"required": ["kind"],
|
|
10751
|
+
"type": "object",
|
|
10752
|
+
"x-forbidden": [
|
|
10753
|
+
"admission",
|
|
10754
|
+
"transactionHash",
|
|
10755
|
+
"signedTransaction",
|
|
10756
|
+
"observation",
|
|
10757
|
+
"receipt",
|
|
10758
|
+
"cause",
|
|
10759
|
+
"serviceCode",
|
|
10760
|
+
"error"
|
|
10761
|
+
]
|
|
10762
|
+
}],
|
|
10763
|
+
"x-tag": "kind"
|
|
10764
|
+
}
|
|
10765
|
+
},
|
|
10766
|
+
{
|
|
10767
|
+
"code": -32051,
|
|
10768
|
+
"schema": {
|
|
10769
|
+
"oneOf": [{
|
|
10770
|
+
"properties": {
|
|
10771
|
+
"admission": {
|
|
10772
|
+
"enum": [
|
|
10773
|
+
"notAttempted",
|
|
10774
|
+
"rejected",
|
|
10775
|
+
"unknown"
|
|
10776
|
+
],
|
|
10777
|
+
"type": "string"
|
|
10778
|
+
},
|
|
10779
|
+
"kind": {
|
|
10780
|
+
"const": "backendTimeout",
|
|
10781
|
+
"type": "string"
|
|
10782
|
+
},
|
|
10783
|
+
"retryAfterMs": {
|
|
10784
|
+
"maxLength": 20,
|
|
10785
|
+
"pattern": "^(0|[1-9][0-9]*)(?![\\s\\S])",
|
|
10786
|
+
"type": "string",
|
|
10787
|
+
"x-integer-maximum": "18446744073709551615",
|
|
10788
|
+
"x-integer-minimum": "0"
|
|
10789
|
+
},
|
|
10790
|
+
"transactionHash": {
|
|
10791
|
+
"maxLength": 45,
|
|
10792
|
+
"minLength": 32,
|
|
10793
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
|
|
10794
|
+
"type": "string",
|
|
10795
|
+
"x-base58-bytes": 32
|
|
10796
|
+
}
|
|
10797
|
+
},
|
|
10798
|
+
"required": ["kind"],
|
|
10799
|
+
"type": "object",
|
|
10800
|
+
"x-forbidden": [
|
|
10801
|
+
"admission",
|
|
10802
|
+
"transactionHash",
|
|
10803
|
+
"signedTransaction",
|
|
10804
|
+
"observation",
|
|
10805
|
+
"receipt",
|
|
10806
|
+
"cause",
|
|
10807
|
+
"serviceCode",
|
|
10808
|
+
"error"
|
|
10809
|
+
]
|
|
10810
|
+
}],
|
|
10811
|
+
"x-tag": "kind"
|
|
10812
|
+
}
|
|
10813
|
+
},
|
|
10814
|
+
{
|
|
10815
|
+
"code": -32053,
|
|
10816
|
+
"schema": {
|
|
10817
|
+
"oneOf": [{
|
|
10818
|
+
"properties": {
|
|
10819
|
+
"admission": {
|
|
10820
|
+
"enum": [
|
|
10821
|
+
"notAttempted",
|
|
10822
|
+
"rejected",
|
|
10823
|
+
"unknown"
|
|
10824
|
+
],
|
|
10825
|
+
"type": "string"
|
|
10826
|
+
},
|
|
10827
|
+
"error": {
|
|
10828
|
+
"properties": {
|
|
10829
|
+
"code": {
|
|
10830
|
+
"maximum": 2147483647,
|
|
10831
|
+
"minimum": -2147483648,
|
|
10832
|
+
"type": "integer"
|
|
10833
|
+
},
|
|
10834
|
+
"source": {
|
|
10835
|
+
"anyOf": [{
|
|
10836
|
+
"enum": [
|
|
10837
|
+
"auth",
|
|
10838
|
+
"scheduler",
|
|
10839
|
+
"executor",
|
|
10840
|
+
"other"
|
|
10841
|
+
],
|
|
10842
|
+
"type": "string"
|
|
10843
|
+
}],
|
|
10844
|
+
"x-extensible": true
|
|
10845
|
+
}
|
|
10846
|
+
},
|
|
10847
|
+
"required": ["source", "code"],
|
|
10848
|
+
"type": "object"
|
|
10849
|
+
},
|
|
10850
|
+
"kind": {
|
|
10851
|
+
"const": "overloaded",
|
|
10852
|
+
"type": "string"
|
|
10853
|
+
},
|
|
10854
|
+
"retryAfterMs": {
|
|
10855
|
+
"maxLength": 20,
|
|
10856
|
+
"pattern": "^(0|[1-9][0-9]*)(?![\\s\\S])",
|
|
10857
|
+
"type": "string",
|
|
10858
|
+
"x-integer-maximum": "18446744073709551615",
|
|
10859
|
+
"x-integer-minimum": "0"
|
|
10860
|
+
},
|
|
10861
|
+
"transactionHash": {
|
|
10862
|
+
"maxLength": 45,
|
|
10863
|
+
"minLength": 32,
|
|
10864
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
|
|
10865
|
+
"type": "string",
|
|
10866
|
+
"x-base58-bytes": 32
|
|
10867
|
+
}
|
|
10868
|
+
},
|
|
10869
|
+
"required": ["kind"],
|
|
10870
|
+
"type": "object",
|
|
10871
|
+
"x-forbidden": [
|
|
10872
|
+
"admission",
|
|
10873
|
+
"transactionHash",
|
|
10874
|
+
"signedTransaction",
|
|
10875
|
+
"observation",
|
|
10876
|
+
"receipt",
|
|
10877
|
+
"cause",
|
|
10878
|
+
"serviceCode",
|
|
10879
|
+
"error"
|
|
10880
|
+
]
|
|
10881
|
+
}],
|
|
10882
|
+
"x-tag": "kind"
|
|
10883
|
+
}
|
|
10884
|
+
},
|
|
10885
|
+
{
|
|
10886
|
+
"code": -32054,
|
|
10887
|
+
"schema": {
|
|
10888
|
+
"oneOf": [{
|
|
10889
|
+
"properties": {
|
|
10890
|
+
"admission": {
|
|
10891
|
+
"enum": [
|
|
10892
|
+
"notAttempted",
|
|
10893
|
+
"rejected",
|
|
10894
|
+
"unknown"
|
|
10895
|
+
],
|
|
10896
|
+
"type": "string"
|
|
10897
|
+
},
|
|
10898
|
+
"kind": {
|
|
10899
|
+
"const": "backendDataInvalid",
|
|
10900
|
+
"type": "string"
|
|
10901
|
+
},
|
|
10902
|
+
"observation": {
|
|
10903
|
+
"properties": {
|
|
10904
|
+
"blockHeight": {
|
|
10905
|
+
"maxLength": 19,
|
|
10906
|
+
"pattern": "^(0|[1-9][0-9]*)(?![\\s\\S])",
|
|
10907
|
+
"type": "string",
|
|
10908
|
+
"x-integer-maximum": "9223372036854775807",
|
|
10909
|
+
"x-integer-minimum": "0"
|
|
10910
|
+
},
|
|
10911
|
+
"transactionHash": {
|
|
10912
|
+
"maxLength": 45,
|
|
10913
|
+
"minLength": 32,
|
|
10914
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
|
|
10915
|
+
"type": "string",
|
|
10916
|
+
"x-base58-bytes": 32
|
|
10917
|
+
}
|
|
10918
|
+
},
|
|
10919
|
+
"required": ["transactionHash", "blockHeight"],
|
|
10920
|
+
"type": "object"
|
|
10921
|
+
},
|
|
10922
|
+
"reason": { "type": "string" },
|
|
10923
|
+
"transactionHash": {
|
|
10924
|
+
"maxLength": 45,
|
|
10925
|
+
"minLength": 32,
|
|
10926
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
|
|
10927
|
+
"type": "string",
|
|
10928
|
+
"x-base58-bytes": 32
|
|
10929
|
+
}
|
|
10930
|
+
},
|
|
10931
|
+
"required": ["kind"],
|
|
10932
|
+
"type": "object",
|
|
10933
|
+
"x-forbidden": [
|
|
10934
|
+
"admission",
|
|
10935
|
+
"transactionHash",
|
|
10936
|
+
"signedTransaction",
|
|
10937
|
+
"observation",
|
|
10938
|
+
"receipt",
|
|
10939
|
+
"cause",
|
|
10940
|
+
"serviceCode",
|
|
10941
|
+
"error"
|
|
10942
|
+
]
|
|
10943
|
+
}],
|
|
10944
|
+
"x-tag": "kind"
|
|
10945
|
+
}
|
|
10946
|
+
}
|
|
10947
|
+
],
|
|
10634
10948
|
"dev_setBlockDriver": [
|
|
10635
10949
|
{
|
|
10636
10950
|
"code": -32602,
|
|
@@ -10985,4 +11299,4 @@ function decodeErrorData(method, code, value) {
|
|
|
10985
11299
|
//#endregion
|
|
10986
11300
|
export { decodeResult as a, rpcPageMethods as c, decodeErrorData as i, serializeHeight as l, RpcRequestValidationError as n, encodeRequest as o, UnsupportedRpcValue as r, rpcMethodNames as s, RpcDecodingError as t, serializeU64 as u };
|
|
10987
11301
|
|
|
10988
|
-
//# sourceMappingURL=codec-
|
|
11302
|
+
//# sourceMappingURL=codec-Bxlt1gKO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-BOjoJjC5.js","names":["schema"],"sources":["../src/rpc/schema.json","../src/actions/decimal.ts","../src/rpc/codec.ts"],"sourcesContent":["","/** Bounds of protocol integers represented as decimal strings in public JSON. */\nexport const I64_MIN = -(1n << 63n);\nexport const I64_MAX = (1n << 63n) - 1n;\nexport const U64_MAX = (1n << 64n) - 1n;\nexport const I128_MAX = (1n << 127n) - 1n;\nexport const I128_MIN = -(1n << 127n);\nexport const U128_MAX = (1n << 128n) - 1n;\n\n/** Parse a canonical, range-checked decimal string. Numeric JSON is never accepted. */\nexport function parseDecimal(\n value: unknown,\n field: string,\n minimum: bigint,\n maximum: bigint,\n): bigint {\n if (\n typeof value !== \"string\" ||\n value.length >\n Math.max(minimum.toString().length, maximum.toString().length) ||\n !/^(0|-?[1-9][0-9]*)(?![\\s\\S])/.test(value)\n ) {\n throw new Error(`Invalid ${field}: expected a canonical decimal string`);\n }\n const parsed = BigInt(value);\n if (parsed < minimum || parsed > maximum) {\n throw new RangeError(\n `Invalid ${field}: expected an integer from ${minimum} to ${maximum}`,\n );\n }\n return parsed;\n}\n\nexport function parseHeight(value: unknown, field = \"height\"): bigint {\n return parseDecimal(value, field, I64_MIN, I64_MAX);\n}\n\nexport function parseU64(value: unknown, field: string): bigint {\n return parseDecimal(value, field, 0n, U64_MAX);\n}\n\n/** Serialize a caller-owned bigint without passing through a JavaScript number. */\nexport function serializeHeight(value: bigint): string {\n if (typeof value !== \"bigint\" || value < 0n || value > I64_MAX) {\n throw new RangeError(\"height must be a non-negative int64 bigint\");\n }\n return value.toString();\n}\n\nexport function serializeU64(value: bigint, field: string): string {\n if (typeof value !== \"bigint\" || value < 0n || value > U64_MAX) {\n throw new RangeError(`${field} must be a uint64 bigint`);\n }\n return value.toString();\n}\n","import schema from \"./schema.json\" with { type: \"json\" };\nimport { fixedFromBase58, toBase58 } from \"../encoding.js\";\nimport { fromHex0x, toHex0x } from \"../actions/hex.js\";\nimport { parseDecimal } from \"../actions/decimal.js\";\n\n/** An unfamiliar variant is data, never success, absence, or retry permission. */\nexport class UnsupportedRpcValue {\n readonly unsupported = true;\n constructor(readonly raw: unknown) {}\n}\n\n/** Malformed known result data, with the complete original result retained. */\nexport class RpcDecodingError extends Error {\n constructor(\n readonly path: string,\n readonly raw: unknown,\n ) {\n super(`Invalid native RPC value at ${path}`);\n this.name = \"RpcDecodingError\";\n }\n}\n\n/** Invalid local input. The transport was not called; this is not retry permission. */\nexport class RpcRequestValidationError extends Error {\n constructor(\n readonly path: string,\n message = \"Invalid native RPC request\",\n ) {\n super(`${message} at ${path}`);\n this.name = \"RpcRequestValidationError\";\n }\n}\n\ninterface Schema {\n $ref?: string;\n \"x-tag\"?: string;\n \"x-extensible\"?: boolean;\n \"x-base58-bytes\"?: number;\n \"x-opaque-string\"?: boolean;\n \"x-forbidden\"?: string[];\n dependencies?: Record<string, string[]>;\n const?: unknown;\n enum?: unknown[];\n type?: string;\n properties?: Record<string, Schema>;\n required?: string[];\n additionalProperties?: boolean;\n items?: Schema;\n anyOf?: Schema[];\n oneOf?: Schema[];\n minimum?: number;\n maximum?: number;\n minLength?: number;\n maxLength?: number;\n minItems?: number;\n maxItems?: number;\n pattern?: string;\n \"x-integer-minimum\"?: string;\n \"x-integer-maximum\"?: string;\n}\nconst catalog = schema as unknown as {\n schemas: Record<string, Schema>;\n methods: Record<string, { params: Schema; result: Schema; paged: boolean }>;\n errors: Record<string, { code: number; schema: Schema }[]>;\n};\n\nexport const rpcPageMethods = new Set(\n Object.entries(catalog.methods)\n .filter(([, m]) => m.paged)\n .map(([name]) => name),\n);\nconst patterns = new Map<string, RegExp>();\nfunction matches(pattern: string, text: string) {\n let regex = patterns.get(pattern);\n if (!regex) {\n regex = new RegExp(pattern);\n patterns.set(pattern, regex);\n }\n return regex.test(text);\n}\nexport const rpcMethodNames = Object.freeze(Object.keys(catalog.methods));\n\nfunction record(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n}\n\n/** The codec implements only the schema forms emitted by the pinned Rust owner. */\nfunction convert(\n s: Schema,\n value: unknown,\n encode: boolean,\n path: string,\n): unknown {\n const fail = (): never => {\n throw new RpcDecodingError(path, value);\n };\n if (s.$ref) {\n const name = s.$ref.split(\"/\").at(-1)!;\n const target = catalog.schemas[name];\n if (!target) throw new Error(`Missing generated RPC schema ${name}`);\n return convert(target, value, encode, path);\n }\n if (s[\"x-base58-bytes\"] !== undefined) {\n if (encode) {\n if (\n !(value instanceof Uint8Array) ||\n value.length !== s[\"x-base58-bytes\"]\n )\n return fail();\n return toBase58(value);\n }\n if (typeof value !== \"string\") return fail();\n try {\n const bytes = fixedFromBase58(value, s[\"x-base58-bytes\"]);\n if (toBase58(bytes) !== value) return fail();\n return bytes;\n } catch {\n return fail();\n }\n }\n if (s.const !== undefined) return value === s.const ? value : fail();\n if (s.enum) {\n if (s.enum.includes(value)) return value;\n return fail();\n }\n const variants = s.oneOf ?? s.anyOf;\n if (variants) {\n const tag = s[\"x-tag\"];\n if (tag) {\n if (!record(value) || typeof value[tag] !== \"string\") return fail();\n const variant = variants.find(\n (v) => v.properties![tag]!.const === value[tag],\n );\n if (variant) return convert(variant, value, encode, path);\n if (!encode && s[\"x-extensible\"]) return new UnsupportedRpcValue(value);\n return fail();\n }\n for (const variant of variants) {\n try {\n return convert(variant, value, encode, path);\n } catch (error) {\n if (!(error instanceof RpcDecodingError)) throw error;\n }\n }\n if (!encode && s[\"x-extensible\"] && typeof value === \"string\")\n return new UnsupportedRpcValue(value);\n return fail();\n }\n if (s[\"x-integer-minimum\"] !== undefined) {\n const minimum = BigInt(s[\"x-integer-minimum\"]);\n const maximum = BigInt(s[\"x-integer-maximum\"]!);\n // A pattern can be stricter than the numeric bounds, such as a positive\n // interval whose minimum is still \"0\". Check both.\n const allowed = (text: string) =>\n s.pattern === undefined || matches(s.pattern, text);\n if (encode) {\n if (\n typeof value !== \"bigint\" ||\n value < minimum ||\n value > maximum ||\n !allowed(value.toString())\n )\n return fail();\n return value.toString();\n }\n if (typeof value === \"string\" && !allowed(value)) return fail();\n try {\n return parseDecimal(value, path, minimum, maximum);\n } catch {\n return fail();\n }\n }\n if (s.type === \"null\") return value === null ? null : fail();\n if (s.type === \"object\") {\n if (!record(value) || value instanceof Uint8Array) return fail();\n const properties = s.properties ?? {};\n if (s[\"x-forbidden\"]?.some((k) => Object.hasOwn(value, k))) return fail();\n for (const [field, required] of Object.entries(s.dependencies ?? {}))\n if (\n Object.hasOwn(value, field) &&\n required.some((k) => !Object.hasOwn(value, k))\n )\n return fail();\n for (const required of s.required ?? [])\n if (!Object.hasOwn(value, required) || value[required] === undefined)\n return fail();\n // Responses retain additive fields. Requests cannot silently ignore typos.\n if (encode && Object.keys(value).some((k) => !Object.hasOwn(properties, k)))\n return fail();\n const result: Record<string, unknown> = encode ? {} : { ...value };\n for (const [k, child] of Object.entries(properties)) {\n if (Object.hasOwn(value, k) && value[k] !== undefined)\n result[k] = convert(child, value[k], encode, `${path}/${k}`);\n }\n return result;\n }\n if (s.type === \"array\") {\n if (\n !Array.isArray(value) ||\n value.length < (s.minItems ?? 0) ||\n value.length > (s.maxItems ?? Infinity)\n )\n return fail();\n return value.map((v, i) => convert(s.items!, v, encode, `${path}/${i}`));\n }\n if (s.type === \"integer\" || s.type === \"number\") {\n if (\n typeof value !== \"number\" ||\n !Number.isSafeInteger(value) ||\n value < (s.minimum ?? -Infinity) ||\n value > (s.maximum ?? Infinity)\n )\n return fail();\n return value;\n }\n if (s.type === \"string\") {\n const hex = s.pattern?.startsWith(\"^0x\");\n const cursor = s[\"x-opaque-string\"];\n let text = value;\n if (encode && hex && !cursor) {\n if (!(value instanceof Uint8Array)) return fail();\n text = toHex0x(value);\n }\n let length = 0;\n if (\n typeof text === \"string\" &&\n (s.minLength !== undefined || s.maxLength !== undefined)\n )\n for (const _ of text) length++;\n if (\n typeof text !== \"string\" ||\n /[\\uD800-\\uDFFF]/u.test(text) ||\n length < (s.minLength ?? 0) ||\n length > (s.maxLength ?? Infinity) ||\n (s.pattern && !matches(s.pattern, text))\n )\n return fail();\n return !encode && hex && !cursor ? fromHex0x(text) : text;\n }\n if (s.type === \"boolean\") return typeof value === \"boolean\" ? value : fail();\n throw new Error(`Unsupported generated RPC schema at ${path}`);\n}\n\nexport function encodeRequest(\n method: string,\n value: unknown,\n): Record<string, unknown> {\n const entry = catalog.methods[method];\n if (!entry) throw new Error(`Unknown native RPC method ${method}`);\n try {\n const encoded = convert(entry.params, value, true, \"/params\") as Record<\n string,\n unknown\n >;\n if (\n entry.paged &&\n Object.hasOwn(encoded, \"start\") === Object.hasOwn(encoded, \"cursor\")\n )\n throw new RpcDecodingError(\"/params\", value);\n return encoded;\n } catch (error) {\n if (error instanceof RpcDecodingError)\n throw new RpcRequestValidationError(error.path);\n throw error;\n }\n}\n\nexport function decodeResult(method: string, value: unknown): unknown {\n const entry = catalog.methods[method];\n if (!entry) throw new Error(`Unknown native RPC method ${method}`);\n try {\n return convert(entry.result, value, false, \"/result\");\n } catch (error) {\n if (error instanceof RpcDecodingError)\n throw new RpcDecodingError(error.path, value);\n throw error;\n }\n}\n\n/** Method/code membership and structural evidence; relational identity checks live in the reader. */\nexport function decodeErrorData(\n method: string,\n code: number,\n value: unknown,\n): unknown {\n const entry = catalog.errors[method]?.find((entry) => entry.code === code);\n if (!entry) throw new RpcDecodingError(\"/error\", value);\n return convert(entry.schema, value, false, \"/error/data\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AO;EACd,IAAI,iBAAiB,kBACnB,MAAM,IAAI,iBAAiB,MAAM,MAAM,KAAK;EAC9C,MAAM;CACR;AACF;;AAGA,SAAgB,gBACd,QACA,MACA,OACS;CACT,MAAM,QAAQ,QAAQ,OAAO,OAAO,EAAE,MAAM,UAAU,MAAM,SAAS,IAAI;CACzE,IAAI,CAAC,OAAO,MAAM,IAAI,iBAAiB,UAAU,KAAK;CACtD,OAAO,QAAQ,MAAM,QAAQ,OAAO,OAAO,aAAa;AAC1D"}
|
|
1
|
+
{"version":3,"file":"codec-Bxlt1gKO.js","names":["schema"],"sources":["../src/rpc/schema.json","../src/actions/decimal.ts","../src/rpc/codec.ts"],"sourcesContent":["","/** Bounds of protocol integers represented as decimal strings in public JSON. */\nexport const I64_MIN = -(1n << 63n);\nexport const I64_MAX = (1n << 63n) - 1n;\nexport const U64_MAX = (1n << 64n) - 1n;\nexport const I128_MAX = (1n << 127n) - 1n;\nexport const I128_MIN = -(1n << 127n);\nexport const U128_MAX = (1n << 128n) - 1n;\n\n/** Parse a canonical, range-checked decimal string. Numeric JSON is never accepted. */\nexport function parseDecimal(\n value: unknown,\n field: string,\n minimum: bigint,\n maximum: bigint,\n): bigint {\n if (\n typeof value !== \"string\" ||\n value.length >\n Math.max(minimum.toString().length, maximum.toString().length) ||\n !/^(0|-?[1-9][0-9]*)(?![\\s\\S])/.test(value)\n ) {\n throw new Error(`Invalid ${field}: expected a canonical decimal string`);\n }\n const parsed = BigInt(value);\n if (parsed < minimum || parsed > maximum) {\n throw new RangeError(\n `Invalid ${field}: expected an integer from ${minimum} to ${maximum}`,\n );\n }\n return parsed;\n}\n\nexport function parseHeight(value: unknown, field = \"height\"): bigint {\n return parseDecimal(value, field, I64_MIN, I64_MAX);\n}\n\nexport function parseU64(value: unknown, field: string): bigint {\n return parseDecimal(value, field, 0n, U64_MAX);\n}\n\n/** Serialize a caller-owned bigint without passing through a JavaScript number. */\nexport function serializeHeight(value: bigint): string {\n if (typeof value !== \"bigint\" || value < 0n || value > I64_MAX) {\n throw new RangeError(\"height must be a non-negative int64 bigint\");\n }\n return value.toString();\n}\n\nexport function serializeU64(value: bigint, field: string): string {\n if (typeof value !== \"bigint\" || value < 0n || value > U64_MAX) {\n throw new RangeError(`${field} must be a uint64 bigint`);\n }\n return value.toString();\n}\n","import schema from \"./schema.json\" with { type: \"json\" };\nimport { fixedFromBase58, toBase58 } from \"../encoding.js\";\nimport { fromHex0x, toHex0x } from \"../actions/hex.js\";\nimport { parseDecimal } from \"../actions/decimal.js\";\n\n/** An unfamiliar variant is data, never success, absence, or retry permission. */\nexport class UnsupportedRpcValue {\n readonly unsupported = true;\n constructor(readonly raw: unknown) {}\n}\n\n/** Malformed known result data, with the complete original result retained. */\nexport class RpcDecodingError extends Error {\n constructor(\n readonly path: string,\n readonly raw: unknown,\n ) {\n super(`Invalid native RPC value at ${path}`);\n this.name = \"RpcDecodingError\";\n }\n}\n\n/** Invalid local input. The transport was not called; this is not retry permission. */\nexport class RpcRequestValidationError extends Error {\n constructor(\n readonly path: string,\n message = \"Invalid native RPC request\",\n ) {\n super(`${message} at ${path}`);\n this.name = \"RpcRequestValidationError\";\n }\n}\n\ninterface Schema {\n $ref?: string;\n \"x-tag\"?: string;\n \"x-extensible\"?: boolean;\n \"x-base58-bytes\"?: number;\n \"x-opaque-string\"?: boolean;\n \"x-forbidden\"?: string[];\n dependencies?: Record<string, string[]>;\n const?: unknown;\n enum?: unknown[];\n type?: string;\n properties?: Record<string, Schema>;\n required?: string[];\n additionalProperties?: boolean;\n items?: Schema;\n anyOf?: Schema[];\n oneOf?: Schema[];\n minimum?: number;\n maximum?: number;\n minLength?: number;\n maxLength?: number;\n minItems?: number;\n maxItems?: number;\n pattern?: string;\n \"x-integer-minimum\"?: string;\n \"x-integer-maximum\"?: string;\n}\nconst catalog = schema as unknown as {\n schemas: Record<string, Schema>;\n methods: Record<string, { params: Schema; result: Schema; paged: boolean }>;\n errors: Record<string, { code: number; schema: Schema }[]>;\n};\n\nexport const rpcPageMethods = new Set(\n Object.entries(catalog.methods)\n .filter(([, m]) => m.paged)\n .map(([name]) => name),\n);\nconst patterns = new Map<string, RegExp>();\nfunction matches(pattern: string, text: string) {\n let regex = patterns.get(pattern);\n if (!regex) {\n regex = new RegExp(pattern);\n patterns.set(pattern, regex);\n }\n return regex.test(text);\n}\nexport const rpcMethodNames = Object.freeze(Object.keys(catalog.methods));\n\nfunction record(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n}\n\n/** The codec implements only the schema forms emitted by the pinned Rust owner. */\nfunction convert(\n s: Schema,\n value: unknown,\n encode: boolean,\n path: string,\n): unknown {\n const fail = (): never => {\n throw new RpcDecodingError(path, value);\n };\n if (s.$ref) {\n const name = s.$ref.split(\"/\").at(-1)!;\n const target = catalog.schemas[name];\n if (!target) throw new Error(`Missing generated RPC schema ${name}`);\n return convert(target, value, encode, path);\n }\n if (s[\"x-base58-bytes\"] !== undefined) {\n if (encode) {\n if (\n !(value instanceof Uint8Array) ||\n value.length !== s[\"x-base58-bytes\"]\n )\n return fail();\n return toBase58(value);\n }\n if (typeof value !== \"string\") return fail();\n try {\n const bytes = fixedFromBase58(value, s[\"x-base58-bytes\"]);\n if (toBase58(bytes) !== value) return fail();\n return bytes;\n } catch {\n return fail();\n }\n }\n if (s.const !== undefined) return value === s.const ? value : fail();\n if (s.enum) {\n if (s.enum.includes(value)) return value;\n return fail();\n }\n const variants = s.oneOf ?? s.anyOf;\n if (variants) {\n const tag = s[\"x-tag\"];\n if (tag) {\n if (!record(value) || typeof value[tag] !== \"string\") return fail();\n const variant = variants.find(\n (v) => v.properties![tag]!.const === value[tag],\n );\n if (variant) return convert(variant, value, encode, path);\n if (!encode && s[\"x-extensible\"]) return new UnsupportedRpcValue(value);\n return fail();\n }\n for (const variant of variants) {\n try {\n return convert(variant, value, encode, path);\n } catch (error) {\n if (!(error instanceof RpcDecodingError)) throw error;\n }\n }\n if (!encode && s[\"x-extensible\"] && typeof value === \"string\")\n return new UnsupportedRpcValue(value);\n return fail();\n }\n if (s[\"x-integer-minimum\"] !== undefined) {\n const minimum = BigInt(s[\"x-integer-minimum\"]);\n const maximum = BigInt(s[\"x-integer-maximum\"]!);\n // A pattern can be stricter than the numeric bounds, such as a positive\n // interval whose minimum is still \"0\". Check both.\n const allowed = (text: string) =>\n s.pattern === undefined || matches(s.pattern, text);\n if (encode) {\n if (\n typeof value !== \"bigint\" ||\n value < minimum ||\n value > maximum ||\n !allowed(value.toString())\n )\n return fail();\n return value.toString();\n }\n if (typeof value === \"string\" && !allowed(value)) return fail();\n try {\n return parseDecimal(value, path, minimum, maximum);\n } catch {\n return fail();\n }\n }\n if (s.type === \"null\") return value === null ? null : fail();\n if (s.type === \"object\") {\n if (!record(value) || value instanceof Uint8Array) return fail();\n const properties = s.properties ?? {};\n if (s[\"x-forbidden\"]?.some((k) => Object.hasOwn(value, k))) return fail();\n for (const [field, required] of Object.entries(s.dependencies ?? {}))\n if (\n Object.hasOwn(value, field) &&\n required.some((k) => !Object.hasOwn(value, k))\n )\n return fail();\n for (const required of s.required ?? [])\n if (!Object.hasOwn(value, required) || value[required] === undefined)\n return fail();\n // Responses retain additive fields. Requests cannot silently ignore typos.\n if (encode && Object.keys(value).some((k) => !Object.hasOwn(properties, k)))\n return fail();\n const result: Record<string, unknown> = encode ? {} : { ...value };\n for (const [k, child] of Object.entries(properties)) {\n if (Object.hasOwn(value, k) && value[k] !== undefined)\n result[k] = convert(child, value[k], encode, `${path}/${k}`);\n }\n return result;\n }\n if (s.type === \"array\") {\n if (\n !Array.isArray(value) ||\n value.length < (s.minItems ?? 0) ||\n value.length > (s.maxItems ?? Infinity)\n )\n return fail();\n return value.map((v, i) => convert(s.items!, v, encode, `${path}/${i}`));\n }\n if (s.type === \"integer\" || s.type === \"number\") {\n if (\n typeof value !== \"number\" ||\n !Number.isSafeInteger(value) ||\n value < (s.minimum ?? -Infinity) ||\n value > (s.maximum ?? Infinity)\n )\n return fail();\n return value;\n }\n if (s.type === \"string\") {\n const hex = s.pattern?.startsWith(\"^0x\");\n const cursor = s[\"x-opaque-string\"];\n let text = value;\n if (encode && hex && !cursor) {\n if (!(value instanceof Uint8Array)) return fail();\n text = toHex0x(value);\n }\n let length = 0;\n if (\n typeof text === \"string\" &&\n (s.minLength !== undefined || s.maxLength !== undefined)\n )\n for (const _ of text) length++;\n if (\n typeof text !== \"string\" ||\n /[\\uD800-\\uDFFF]/u.test(text) ||\n length < (s.minLength ?? 0) ||\n length > (s.maxLength ?? Infinity) ||\n (s.pattern && !matches(s.pattern, text))\n )\n return fail();\n return !encode && hex && !cursor ? fromHex0x(text) : text;\n }\n if (s.type === \"boolean\") return typeof value === \"boolean\" ? value : fail();\n throw new Error(`Unsupported generated RPC schema at ${path}`);\n}\n\nexport function encodeRequest(\n method: string,\n value: unknown,\n): Record<string, unknown> {\n const entry = catalog.methods[method];\n if (!entry) throw new Error(`Unknown native RPC method ${method}`);\n try {\n const encoded = convert(entry.params, value, true, \"/params\") as Record<\n string,\n unknown\n >;\n if (\n entry.paged &&\n Object.hasOwn(encoded, \"start\") === Object.hasOwn(encoded, \"cursor\")\n )\n throw new RpcDecodingError(\"/params\", value);\n return encoded;\n } catch (error) {\n if (error instanceof RpcDecodingError)\n throw new RpcRequestValidationError(error.path);\n throw error;\n }\n}\n\nexport function decodeResult(method: string, value: unknown): unknown {\n const entry = catalog.methods[method];\n if (!entry) throw new Error(`Unknown native RPC method ${method}`);\n try {\n return convert(entry.result, value, false, \"/result\");\n } catch (error) {\n if (error instanceof RpcDecodingError)\n throw new RpcDecodingError(error.path, value);\n throw error;\n }\n}\n\n/** Method/code membership and structural evidence; relational identity checks live in the reader. */\nexport function decodeErrorData(\n method: string,\n code: number,\n value: unknown,\n): unknown {\n const entry = catalog.errors[method]?.find((entry) => entry.code === code);\n if (!entry) throw new RpcDecodingError(\"/error\", value);\n return convert(entry.schema, value, false, \"/error/data\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;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AQ,MAAM,QAAQ,OAAO,OAAO,SAAS;CACtD,SAAS,OAAO;EACd,IAAI,iBAAiB,kBACnB,MAAM,IAAI,iBAAiB,MAAM,MAAM,KAAK;EAC9C,MAAM;CACR;AACF;;AAGA,SAAgB,gBACd,QACA,MACA,OACS;CACT,MAAM,QAAQ,QAAQ,OAAO,OAAO,EAAE,MAAM,UAAU,MAAM,SAAS,IAAI;CACzE,IAAI,CAAC,OAAO,MAAM,IAAI,iBAAiB,UAAU,KAAK;CACtD,OAAO,QAAQ,MAAM,QAAQ,OAAO,OAAO,aAAa;AAC1D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as serializeHeight, r as UnsupportedRpcValue, u as serializeU64 } from "./codec-
|
|
1
|
+
import { l as serializeHeight, r as UnsupportedRpcValue, u as serializeU64 } from "./codec-Bxlt1gKO.js";
|
|
2
2
|
import { g as toBase58, i as toHex0x } from "./hex-DIcaALXL.js";
|
|
3
3
|
import { AuthClaimType, BoolCodec, ContractType, CxsReader, CxsWriter, FixedArrayCodec, Int128Codec, Int256Codec, Int32Codec, Int64Codec, OptionCodec, Uint128Codec, Uint256Codec, Uint32Codec, Uint64Codec, VarArrayCodec, VoidCodec, calldata, codec, contractAddress, contractEntrypointID, deserialize, kMaxEventLength, serialize, sha256Hash } from "@thruputchain/protocol";
|
|
4
4
|
import { sha256 } from "@noble/hashes/sha2.js";
|
|
@@ -1469,4 +1469,4 @@ function getContract(options) {
|
|
|
1469
1469
|
//#endregion
|
|
1470
1470
|
export { ContractUnionCaseKind$1 as A, isSignedToken as C, ContractMethodEffect$1 as D, ContractVerificationError as E, specIdKey as M, ContractTypeDefKind$1 as O, resolveCodec as S, ContractDecodeError as T, buildNamedCodecs as _, readContractArtifactSpec as a, decodeCalldata as b, defineContractEvent as c, createContractCallDecoder as d, ContractReceiptError as f, createContractCodecContext as g, createContractCodec as h, deriveContractAddress as i, formatSpecId as j, ContractTypeKind$1 as k, topicRepresentation as l, defineContractMethod as m, fixedBytes$1 as n, bytesEqual as o, ContractViewError as p, getContract as r, createContractEventDecoder as s, fixedArray$1 as t, hashContract as u, deriveEntrypointID as v, signedToken as w, encodeCalldata as x, majorVersionFromSemver as y };
|
|
1471
1471
|
|
|
1472
|
-
//# sourceMappingURL=contract-
|
|
1472
|
+
//# sourceMappingURL=contract-D77iA2iY.js.map
|