From cebf21c72eff589f2b0b03dae2893c5f8877a7b4 Mon Sep 17 00:00:00 2001 From: cyhhao Date: Tue, 6 Dec 2022 14:37:51 +0800 Subject: [PATCH] add abi --- README.md | 6 +- src/contractABI/FlatDirectory.json | 366 +++++++++++++++++++++++++++++ src/index.ts | 2 + 3 files changed, 372 insertions(+), 2 deletions(-) create mode 100644 src/contractABI/FlatDirectory.json diff --git a/README.md b/README.md index 7072b51..8811eef 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ ``` yarn - ``` # pkg @@ -15,4 +14,7 @@ yarn pkg ``` yarn install-mac -``` \ No newline at end of file +``` + +# FlatDirectory Contract +https://github.com/ethstorage/evm-large-storage \ No newline at end of file diff --git a/src/contractABI/FlatDirectory.json b/src/contractABI/FlatDirectory.json new file mode 100644 index 0000000..25909f1 --- /dev/null +++ b/src/contractABI/FlatDirectory.json @@ -0,0 +1,366 @@ +[ + { + "inputs": [ + { + "internalType": "uint8", + "name": "slotLimit", + "type": "uint8" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "stateMutability": "nonpayable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "changeOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "chunkId", + "type": "uint256" + } + ], + "name": "chunkSize", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + } + ], + "name": "countChunks", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "defaultFile", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "destruct", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "chunkId", + "type": "uint256" + } + ], + "name": "getChunkHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "isOptimize", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + } + ], + "name": "read", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "chunkId", + "type": "uint256" + } + ], + "name": "readChunk", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "refund", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + } + ], + "name": "remove", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "chunkId", + "type": "uint256" + } + ], + "name": "removeChunk", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "resolveMode", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "_defaultFile", + "type": "bytes" + } + ], + "name": "setDefault", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + } + ], + "name": "size", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "chunkId", + "type": "uint256" + } + ], + "name": "truncate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "write", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "name", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "chunkId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "writeChunk", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } +] \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index d4a94e0..84c649a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -59,6 +59,7 @@ GitRemoteHelper({ force: boolean; }[]; }) => { + log("push", p) return '\n'; }, @@ -66,4 +67,5 @@ GitRemoteHelper({ }).catch((error: any) => { console.error("wtf"); console.error(error); + }); \ No newline at end of file