openchain-nodejs-ts-yxl 1.0.8 → 1.1.1

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/index.d.ts CHANGED
@@ -1003,6 +1003,15 @@ export interface ContractInvokeResult {
1003
1003
  * @property {number} optType 操作类型(1-查询,2-调用)
1004
1004
  * @property {string} [feeLimit] 交易费用上限
1005
1005
  * @property {string} [gasPrice] Gas单价
1006
+ * @example
1007
+ * {
1008
+ * contractAddress: 'adx...',
1009
+ * sourceAddress: 'adx...',
1010
+ * input: 'method(param)',
1011
+ * optType: 1,
1012
+ * feeLimit: '1000000',
1013
+ * gasPrice: '100'
1014
+ * }
1006
1015
  */
1007
1016
  export interface ContractCallParams {
1008
1017
  contractAddress?: string;
@@ -1025,6 +1034,17 @@ export interface ContractCallParams {
1025
1034
  * @property {number} stat.memory_usage 内存使用量(字节)
1026
1035
  * @property {number} stat.stack_usage 堆栈使用量(字节)
1027
1036
  * @property {number} stat.step 执行步数
1037
+ * @example
1038
+ * {
1039
+ * queryRets: ['return value'],
1040
+ * logs: 'execution logs',
1041
+ * stat: {
1042
+ * apply_time: 100,
1043
+ * memory_usage: 1024,
1044
+ * stack_usage: 256,
1045
+ * step: 1000
1046
+ * }
1047
+ * }
1028
1048
  */
1029
1049
  export interface ContractCallResult {
1030
1050
  queryRets: string[];