opnet 1.0.35 → 1.0.36

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 (143) hide show
  1. package/browser/_version.d.ts +1 -1
  2. package/browser/contracts/CallResult.d.ts +6 -2
  3. package/browser/contracts/interfaces/ICallResult.d.ts +1 -0
  4. package/browser/index.js +1 -1
  5. package/build/_version.d.ts +1 -1
  6. package/build/_version.js +1 -1
  7. package/build/contracts/CallResult.d.ts +6 -2
  8. package/build/contracts/CallResult.js +14 -6
  9. package/build/contracts/Contract.js +1 -0
  10. package/build/contracts/interfaces/ICallResult.d.ts +1 -0
  11. package/build/providers/AbstractRpcProvider.js +1 -1
  12. package/build/scripts/testMethodsReg.js +0 -2
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/AbstractRpcProvider.html +22 -22
  15. package/docs/classes/BaseContract.html +7 -7
  16. package/docs/classes/BitcoinAddress.html +2 -2
  17. package/docs/classes/BitcoinInterface.html +2 -2
  18. package/docs/classes/BitcoinUtils.html +2 -2
  19. package/docs/classes/Block.html +3 -3
  20. package/docs/classes/CallResult.html +5 -2
  21. package/docs/classes/ContractData.html +2 -2
  22. package/docs/classes/DeploymentTransaction.html +24 -24
  23. package/docs/classes/GenericTransaction.html +14 -14
  24. package/docs/classes/IBaseContract.html +7 -7
  25. package/docs/classes/InteractionTransaction.html +21 -21
  26. package/docs/classes/JSONRpcProvider.html +22 -22
  27. package/docs/classes/OPNetEvent.html +2 -2
  28. package/docs/classes/StoredValue.html +2 -2
  29. package/docs/classes/TransactionBase.html +14 -14
  30. package/docs/classes/TransactionInput.html +2 -2
  31. package/docs/classes/TransactionOutput.html +2 -2
  32. package/docs/classes/TransactionParser.html +2 -2
  33. package/docs/classes/TransactionReceipt.html +7 -7
  34. package/docs/classes/UTXO.html +2 -2
  35. package/docs/classes/UnwrapTransaction.html +26 -26
  36. package/docs/classes/WebSocketRpcProvider.html +22 -22
  37. package/docs/classes/WrapTransaction.html +28 -28
  38. package/docs/enums/BitcoinAbiTypes.html +2 -2
  39. package/docs/enums/GenerateTarget.html +2 -2
  40. package/docs/enums/JSONRPCErrorCode.html +2 -2
  41. package/docs/enums/JSONRPCErrorHttpCodes.html +2 -2
  42. package/docs/enums/JSONRpcMethods.html +9 -9
  43. package/docs/enums/OPNetTransactionTypes.html +2 -2
  44. package/docs/functions/getContract.html +1 -1
  45. package/docs/hierarchy.html +1 -1
  46. package/docs/interfaces/BaseContractProperties.html +2 -2
  47. package/docs/interfaces/BitcoinAbiValue.html +3 -3
  48. package/docs/interfaces/BitcoinInterfaceAbiBase.html +2 -2
  49. package/docs/interfaces/BroadcastedTransaction.html +6 -6
  50. package/docs/interfaces/ContractEvents.html +1 -1
  51. package/docs/interfaces/EventBaseData.html +2 -2
  52. package/docs/interfaces/FunctionBaseData.html +2 -2
  53. package/docs/interfaces/IAccessList.html +1 -1
  54. package/docs/interfaces/IAccessListItem.html +1 -1
  55. package/docs/interfaces/IBlock.html +3 -3
  56. package/docs/interfaces/IBlockCommon.html +3 -3
  57. package/docs/interfaces/IBlockWitness.html +2 -2
  58. package/docs/interfaces/IBlockWitnessAPI.html +2 -2
  59. package/docs/interfaces/ICallRequestError.html +2 -2
  60. package/docs/interfaces/ICallResultData.html +3 -2
  61. package/docs/interfaces/ICommonTransaction.html +16 -16
  62. package/docs/interfaces/IContract.html +2 -2
  63. package/docs/interfaces/IDecodedEvent.html +2 -2
  64. package/docs/interfaces/IDeploymentTransaction.html +23 -23
  65. package/docs/interfaces/IGenericTransaction.html +13 -13
  66. package/docs/interfaces/IInteractionTransaction.html +20 -20
  67. package/docs/interfaces/IMotoContract.html +3 -3
  68. package/docs/interfaces/IMotoswapFactoryContract.html +4 -4
  69. package/docs/interfaces/IMotoswapPoolContract.html +10 -10
  70. package/docs/interfaces/IMotoswapRouterContract.html +12 -12
  71. package/docs/interfaces/IOP_20Contract.html +2 -2
  72. package/docs/interfaces/IOP_NETContract.html +2 -2
  73. package/docs/interfaces/IRawContract.html +2 -2
  74. package/docs/interfaces/IRawContractEvents.html +1 -1
  75. package/docs/interfaces/IStackingContract.html +2 -2
  76. package/docs/interfaces/IStorageValue.html +2 -2
  77. package/docs/interfaces/ITransactionBase.html +13 -13
  78. package/docs/interfaces/ITransactionInput.html +2 -2
  79. package/docs/interfaces/ITransactionOutput.html +2 -2
  80. package/docs/interfaces/ITransactionReceipt.html +5 -5
  81. package/docs/interfaces/IUTXO.html +2 -2
  82. package/docs/interfaces/IUnwrapTransaction.html +25 -25
  83. package/docs/interfaces/IWBTCContract.html +4 -4
  84. package/docs/interfaces/IWrapTransaction.html +27 -27
  85. package/docs/interfaces/JSONRpc2Request.html +2 -2
  86. package/docs/interfaces/JSONRpc2ResponseError.html +2 -2
  87. package/docs/interfaces/JSONRpc2ResponseResult.html +2 -2
  88. package/docs/interfaces/JSONRpc2ResultData.html +1 -1
  89. package/docs/interfaces/JSONRpcErrorData.html +1 -1
  90. package/docs/interfaces/JSONRpcParams.html +1 -1
  91. package/docs/interfaces/JSONRpcResultError.html +2 -2
  92. package/docs/interfaces/MergedOP_20AndStackingContract.html +2 -2
  93. package/docs/interfaces/NetEventDocument.html +5 -5
  94. package/docs/interfaces/ParsedPartialWBTCUTXODocument.html +2 -2
  95. package/docs/interfaces/PartialWBTCUTXODocument.html +2 -2
  96. package/docs/interfaces/ReorgInformation.html +2 -2
  97. package/docs/interfaces/UsedUTXO.html +2 -2
  98. package/docs/types/BaseContractProperty.html +1 -1
  99. package/docs/types/BigNumberish.html +1 -1
  100. package/docs/types/BitcoinAddressLike.html +1 -1
  101. package/docs/types/BitcoinInterfaceAbi.html +1 -1
  102. package/docs/types/BlockHeaderChecksumProof.html +1 -1
  103. package/docs/types/BlockTag.html +1 -1
  104. package/docs/types/BlockWitnesses.html +1 -1
  105. package/docs/types/ContractDecodedObjectResult.html +1 -1
  106. package/docs/types/DecodedCallResult.html +1 -1
  107. package/docs/types/DecodedOutput.html +1 -1
  108. package/docs/types/GenerationParameters.html +1 -1
  109. package/docs/types/ICallResult.html +1 -1
  110. package/docs/types/ITransaction.html +1 -1
  111. package/docs/types/InteractionType.html +1 -1
  112. package/docs/types/JSONRpc2RequestParams.html +1 -1
  113. package/docs/types/JSONRpc2Result.html +1 -1
  114. package/docs/types/JSONRpcId.html +1 -1
  115. package/docs/types/JsonRpcCallResult.html +1 -1
  116. package/docs/types/JsonRpcError.html +1 -1
  117. package/docs/types/JsonRpcPayload.html +1 -1
  118. package/docs/types/JsonRpcResult.html +1 -1
  119. package/docs/types/Numeric.html +1 -1
  120. package/docs/types/PointerLike.html +1 -1
  121. package/docs/types/RawContractEvents.html +1 -1
  122. package/docs/types/UTXOs.html +1 -1
  123. package/docs/variables/MOTOSWAP_ROUTER_ABI.html +1 -1
  124. package/docs/variables/MOTO_TOKEN_ABI.html +1 -1
  125. package/docs/variables/MotoSwapFactoryAbi.html +1 -1
  126. package/docs/variables/MotoSwapFactoryEvents.html +1 -1
  127. package/docs/variables/MotoSwapPoolEvents.html +1 -1
  128. package/docs/variables/MotoswapPoolAbi.html +1 -1
  129. package/docs/variables/OP20Events.html +1 -1
  130. package/docs/variables/OP_20_ABI.html +1 -1
  131. package/docs/variables/OP_NET_ABI.html +1 -1
  132. package/docs/variables/STAKING_ABI.html +1 -1
  133. package/docs/variables/StackingEvents.html +1 -1
  134. package/docs/variables/WBTCEvents.html +1 -1
  135. package/docs/variables/WBTC_ABI.html +1 -1
  136. package/docs/variables/version.html +1 -1
  137. package/package.json +1 -1
  138. package/src/_version.ts +1 -1
  139. package/src/contracts/CallResult.ts +20 -7
  140. package/src/contracts/Contract.ts +1 -0
  141. package/src/contracts/interfaces/ICallResult.ts +1 -0
  142. package/src/providers/AbstractRpcProvider.ts +6 -2
  143. package/src/scripts/testMethodsReg.ts +2 -2
@@ -1 +1 @@
1
- export declare const version = "1.0.35";
1
+ export declare const version = "1.0.36";
@@ -1,15 +1,19 @@
1
+ /// <reference types="node" />
1
2
  import { BinaryReader, NetEvent } from '@btc-vision/bsi-binary';
2
3
  import { DecodedCallResult } from '../common/CommonTypes.js';
3
4
  import { ContractDecodedObjectResult, DecodedOutput } from './Contract.js';
4
5
  import { IAccessList } from './interfaces/IAccessList.js';
5
6
  import { ICallResultData } from './interfaces/ICallResult.js';
6
- export declare class CallResult<T extends ContractDecodedObjectResult = {}> implements ICallResultData {
7
+ export declare class CallResult<T extends ContractDecodedObjectResult = {}> implements Omit<ICallResultData, 'estimatedGas'> {
7
8
  readonly result: BinaryReader;
8
9
  readonly events: NetEvent[];
9
10
  readonly accessList: IAccessList;
11
+ calldata: Buffer | undefined;
12
+ readonly estimatedGas: bigint | undefined;
10
13
  readonly decoded: Array<DecodedCallResult>;
11
14
  properties: T;
12
- constructor(iCallResult: ICallResultData);
15
+ constructor(callResult: ICallResultData);
13
16
  setDecoded(decoded: DecodedOutput): void;
17
+ setCalldata(calldata: Buffer): void;
14
18
  private base64ToUint8Array;
15
19
  }
@@ -7,5 +7,6 @@ export interface ICallResultData {
7
7
  readonly result: string | BinaryReader;
8
8
  readonly events: NetEvent[];
9
9
  readonly accessList: IAccessList;
10
+ readonly estimatedGas?: string;
10
11
  }
11
12
  export type ICallResult = ICallRequestError | ICallResultData;