gitee.com/liu-zhao234568/cntest@v1.0.0/cmd/clef/extapi_changelog.md (about) 1 ## Changelog for external API 2 3 The API uses [semantic versioning](https://semver.org/). 4 5 TL;DR: Given a version number MAJOR.MINOR.PATCH, increment the: 6 7 * MAJOR version when you make incompatible API changes, 8 * MINOR version when you add functionality in a backwards-compatible manner, and 9 * PATCH version when you make backwards-compatible bug fixes. 10 11 Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format. 12 13 ### 6.1.0 14 15 The API-method `account_signGnosisSafeTx` was added. This method takes two parameters, 16 `[address, safeTx]`. The latter, `safeTx`, can be copy-pasted from the gnosis relay. For example: 17 18 ``` 19 { 20 "jsonrpc": "2.0", 21 "method": "account_signGnosisSafeTx", 22 "params": ["0xfd1c4226bfD1c436672092F4eCbfC270145b7256", 23 { 24 "safe": "0x25a6c4BBd32B2424A9c99aEB0584Ad12045382B3", 25 "to": "0xB372a646f7F05Cc1785018dBDA7EBc734a2A20E2", 26 "value": "20000000000000000", 27 "data": null, 28 "operation": 0, 29 "gasToken": "0x0000000000000000000000000000000000000000", 30 "safeTxGas": 27845, 31 "baseGas": 0, 32 "gasPrice": "0", 33 "refundReceiver": "0x0000000000000000000000000000000000000000", 34 "nonce": 2, 35 "executionDate": null, 36 "submissionDate": "2020-09-15T21:54:49.617634Z", 37 "modified": "2020-09-15T21:54:49.617634Z", 38 "blockNumber": null, 39 "transactionHash": null, 40 "safeTxHash": "0x2edfbd5bc113ff18c0631595db32eb17182872d88d9bf8ee4d8c2dd5db6d95e2", 41 "executor": null, 42 "isExecuted": false, 43 "isSuccessful": null, 44 "ethGasPrice": null, 45 "gasUsed": null, 46 "fee": null, 47 "origin": null, 48 "dataDecoded": null, 49 "confirmationsRequired": null, 50 "confirmations": [ 51 { 52 "owner": "0xAd2e180019FCa9e55CADe76E4487F126Fd08DA34", 53 "submissionDate": "2020-09-15T21:54:49.663299Z", 54 "transactionHash": null, 55 "confirmationType": "CONFIRMATION", 56 "signature": "0x95a7250bb645f831c86defc847350e7faff815b2fb586282568e96cc859e39315876db20a2eed5f7a0412906ec5ab57652a6f645ad4833f345bda059b9da2b821c", 57 "signatureType": "EOA" 58 } 59 ], 60 "signatures": null 61 } 62 ], 63 "id": 67 64 } 65 ``` 66 67 Not all fields are required, though. This method is really just a UX helper, which massages the 68 input to conform to the `EIP-712` [specification](https://docs.gnosis.io/safe/docs/contracts_tx_execution/#transaction-hash) 69 for the Gnosis Safe, and making the output be directly importable to by a relay service. 70 71 72 ### 6.0.0 73 74 * `New` was changed to deliver only an address, not the full `Account` data 75 * `Export` was moved from External API to the UI Server API 76 77 #### 5.0.0 78 79 * The external `account_EcRecover`-method was reimplemented. 80 * The external method `account_sign(address, data)` was replaced with `account_signData(contentType, address, data)`. 81 The addition of `contentType` makes it possible to use the method for different types of objects, such as: 82 * signing data with an intended validator (not yet implemented) 83 * signing clique headers, 84 * signing plain personal messages, 85 * The external method `account_signTypedData` implements [EIP-712](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md) and makes it possible to sign typed data. 86 87 #### 4.0.0 88 89 * The external `account_Ecrecover`-method was removed. 90 * The external `account_Import`-method was removed. 91 92 #### 3.0.0 93 94 * The external `account_List`-method was changed to not expose `url`, which contained info about the local filesystem. It now returns only a list of addresses. 95 96 #### 2.0.0 97 98 * Commit `73abaf04b1372fa4c43201fb1b8019fe6b0a6f8d`, move `from` into `transaction` object in `signTransaction`. This 99 makes the `accounts_signTransaction` identical to the old `eth_signTransaction`. 100 101 102 #### 1.0.0 103 104 Initial release.