Skip to content

Commit

Permalink
refactor: ito new proxy contract
Browse files Browse the repository at this point in the history
1. multi contract
2. some bug fix
  • Loading branch information
zhouhanseng committed Jun 23, 2021
1 parent 788968a commit 7f88c0e
Show file tree
Hide file tree
Showing 27 changed files with 554 additions and 171 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"indexed": true,
"internalType": "address",
"name": "claimer",
"type": "address"
Expand Down Expand Up @@ -45,13 +40,13 @@
"anonymous": false,
"inputs": [
{
"indexed": false,
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"indexed": true,
"internalType": "address",
"name": "token_address",
"type": "address"
Expand All @@ -76,22 +71,22 @@
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "total",
"type": "uint256"
"indexed": true,
"internalType": "address",
"name": "creator",
"type": "address"
},
{
"indexed": false,
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "creator",
"type": "address"
"internalType": "uint256",
"name": "total",
"type": "uint256"
},
{
"indexed": false,
Expand Down Expand Up @@ -155,13 +150,13 @@
"anonymous": false,
"inputs": [
{
"indexed": false,
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"indexed": true,
"internalType": "address",
"name": "swapper",
"type": "address"
Expand Down Expand Up @@ -204,13 +199,13 @@
"anonymous": false,
"inputs": [
{
"indexed": false,
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"indexed": true,
"internalType": "address",
"name": "token_address",
"type": "address"
Expand All @@ -225,6 +220,19 @@
"name": "WithdrawSuccess",
"type": "event"
},
{
"inputs": [],
"name": "base_time",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -368,6 +376,19 @@
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "_base_time",
"type": "uint64"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand All @@ -376,9 +397,9 @@
"type": "bytes32"
},
{
"internalType": "uint256",
"internalType": "uint32",
"name": "_unlock_time",
"type": "uint256"
"type": "uint32"
}
],
"name": "setUnlockTime",
Expand All @@ -390,28 +411,28 @@
"inputs": [
{
"internalType": "bytes32",
"name": "_id",
"name": "id",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "verification",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "validation",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "exchange_addr_i",
"type": "uint256"
},
{
"internalType": "uint128",
"name": "_input_total",
"name": "input_total",
"type": "uint128"
},
{
"internalType": "bytes32[]",
"name": "data",
"type": "bytes32[]"
}
],
"name": "swap",
Expand Down
Loading

0 comments on commit 7f88c0e

Please sign in to comment.