Skip to content

Commit

Permalink
feat(goldfinch): Refactor logic and add claimable support (Zapper-fi#…
Browse files Browse the repository at this point in the history
…2138)

* feat(goldfinch): Refactor logic and add claimable support
  • Loading branch information
gregegan authored and 0xdapper committed Feb 28, 2023
1 parent 36238d1 commit 2ca2355
Show file tree
Hide file tree
Showing 11 changed files with 399 additions and 595 deletions.
@@ -1,4 +1,15 @@
[
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
{ "indexed": false, "internalType": "enum StakedPositionType", "name": "positionType", "type": "uint8" }
],
"name": "AddToStake",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -157,28 +168,6 @@
"name": "Unstaked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "usdcReceivedAmount", "type": "uint256" },
{ "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "UnstakedAndWithdrew",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "usdcReceivedAmount", "type": "uint256" },
{ "indexed": false, "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" },
{ "indexed": false, "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }
],
"name": "UnstakedAndWithdrewMultiple",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -391,7 +380,7 @@
{ "internalType": "uint256", "name": "startTime", "type": "uint256" },
{ "internalType": "uint256", "name": "endTime", "type": "uint256" }
],
"internalType": "struct StakingRewardsVesting.Rewards",
"internalType": "struct Rewards",
"name": "rewards",
"type": "tuple"
},
Expand Down Expand Up @@ -576,7 +565,7 @@
{ "internalType": "uint256", "name": "startTime", "type": "uint256" },
{ "internalType": "uint256", "name": "endTime", "type": "uint256" }
],
"internalType": "struct StakingRewardsVesting.Rewards",
"internalType": "struct Rewards",
"name": "rewards",
"type": "tuple"
},
Expand Down Expand Up @@ -656,6 +645,13 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "string", "name": "baseURI_", "type": "string" }],
"name": "setBaseURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "multiplier", "type": "uint256" },
Expand Down Expand Up @@ -796,46 +792,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }
],
"name": "unstakeAndWithdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "internalType": "uint256", "name": "fiduAmount", "type": "uint256" }
],
"name": "unstakeAndWithdrawInFidu",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" },
{ "internalType": "uint256[]", "name": "usdcAmounts", "type": "uint256[]" }
],
"name": "unstakeAndWithdrawMultiple",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" },
{ "internalType": "uint256[]", "name": "fiduAmounts", "type": "uint256[]" }
],
"name": "unstakeAndWithdrawMultipleInFidu",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" },
Expand Down

0 comments on commit 2ca2355

Please sign in to comment.