Created
October 21, 2023 05:49
-
-
Save gyan0890/5e81db0c9ec04f8c29226c9ee6125c54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "string", | |
| "name": "_name", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "_title", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "_description", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "_endDate", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "_createdAt", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "_updatedAt", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "createCampaign", | |
| "outputs": [ | |
| { | |
| "internalType": "uint256", | |
| "name": "", | |
| "type": "uint256" | |
| } | |
| ], | |
| "stateMutability": "payable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "uint256", | |
| "name": "cId", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "address[]", | |
| "name": "recipients", | |
| "type": "address[]" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "amountPerRecipient", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "split_amount", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "getAllCampaigns", | |
| "outputs": [ | |
| { | |
| "components": [ | |
| { | |
| "internalType": "bool", | |
| "name": "isActive", | |
| "type": "bool" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "id", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "name", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "title", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "description", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "address", | |
| "name": "campaign_owner", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "views", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "clicks", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "startDate", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "endDate", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "createdAt", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "updatedAt", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "cost", | |
| "type": "uint256" | |
| } | |
| ], | |
| "internalType": "struct DeReach.Campaign[]", | |
| "name": "", | |
| "type": "tuple[]" | |
| } | |
| ], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "uint256", | |
| "name": "id", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "getCampaignById", | |
| "outputs": [ | |
| { | |
| "components": [ | |
| { | |
| "internalType": "bool", | |
| "name": "isActive", | |
| "type": "bool" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "id", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "name", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "title", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "string", | |
| "name": "description", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "address", | |
| "name": "campaign_owner", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "views", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "clicks", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "startDate", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "endDate", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "createdAt", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "updatedAt", | |
| "type": "uint256" | |
| }, | |
| { | |
| "internalType": "uint256", | |
| "name": "cost", | |
| "type": "uint256" | |
| } | |
| ], | |
| "internalType": "struct DeReach.Campaign", | |
| "name": "", | |
| "type": "tuple" | |
| } | |
| ], | |
| "stateMutability": "view", | |
| "type": "function" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment