eths-git
Version:
**eths-git-remote** is a decentralized Git solution designed to manage repositories on-chain. It provides two main components:
12 lines (11 loc) • 1.14 kB
JavaScript
export const ETHSAbi = [
"function getDefaultBranch() external view returns (bytes memory name, bytes20 hash)",
"function listBranches(uint256 start, uint256 limit) external view returns (tuple(bytes name, bytes20 hash)[] memory list)",
"function canPush(address account) external view returns (bool)",
"function canForcePush(address account, bytes calldata refName) external view returns (bool)",
"function getBranchHead(bytes calldata refName) external view returns (bytes20 headOid, bool exists)",
"function getPushRecords(bytes calldata refName, uint256 start, uint256 limit) external view returns (tuple(bytes20 newOid, bytes20 parentOid, bytes20 packfileKey, uint256 size, uint256 timestamp, address pusher)[] memory)",
"function getPushRecordCount(bytes calldata refName) external view returns (uint256 count)",
"function push(bytes calldata refName, bytes20 parentOid, bytes20 newOid, bytes20 packfileKey, uint256 packfileSize) external",
"function forcePush(bytes calldata refName, bytes20 newOid, bytes20 packfileKey, uint256 packfileSize, bytes20 parentOid, uint256 parentIndex) external",
];