Python 从源码路径安装依赖包

例如多个项目用到自己写的一个存储在本地的依赖包。这个包会持续的修正更新。
这样做的好处是当修改这个包的代码时,引用此包的项目也将立即使用修改后的代码。

Arweave 智能合约代码的规范

先是引用。然后是翻译。

以下英文引用自 warp docs

  1. A contract source code MAY be written in ES module format.
  2. A contract source MUST contain function (sync or async) named handle.
  3. A contract source MAY use IIFE bundling format.
  4. The handle function MUST accept exactly two arguments: state and action
  5. The state argument MUST be the current state of the contract.
  6. The action argument MUST contain caller field (i.e. Arweave wallet address) and input field. The input field MUST contain the function field and any additional data required to perform given operation.
  7. The maximum size of the JSON.stringified representation of the input field MUST NOT exceed 2048 bytes.
  8. The handle function MUST terminate by either:
    1. returning { state: newState } - this will cause the contract state to be updated
    2. returning { result: newResult }
    3. throwing ContractError

以下是我的翻译: