From 1ff3f2e5b0a6f4c52d1bec007f272ae12dd1dbbe Mon Sep 17 00:00:00 2001 From: fala13 Date: Sat, 1 Jun 2024 21:53:46 +0200 Subject: [PATCH] deleting more build files --- .../subgraph/build/Think2Earn/Think2Earn.wasm | Bin 37448 -> 0 bytes .../Think2Earn/abis/localhost_Think2Earn.json | 573 ------------ .../build/YourContract/YourContract.wasm | Bin 35155 -> 0 bytes .../abis/localhost_YourContract.json | 139 --- packages/subgraph/build/schema.graphql | 43 - packages/subgraph/build/subgraph.yaml | 37 - .../generated/Think2Earn/Think2Earn.ts | 882 ------------------ .../generated/YourContract/YourContract.ts | 216 ----- packages/subgraph/generated/schema.ts | 537 ----------- 9 files changed, 2427 deletions(-) delete mode 100644 packages/subgraph/build/Think2Earn/Think2Earn.wasm delete mode 100644 packages/subgraph/build/Think2Earn/abis/localhost_Think2Earn.json delete mode 100644 packages/subgraph/build/YourContract/YourContract.wasm delete mode 100644 packages/subgraph/build/YourContract/abis/localhost_YourContract.json delete mode 100644 packages/subgraph/build/schema.graphql delete mode 100644 packages/subgraph/build/subgraph.yaml delete mode 100644 packages/subgraph/generated/Think2Earn/Think2Earn.ts delete mode 100644 packages/subgraph/generated/YourContract/YourContract.ts delete mode 100644 packages/subgraph/generated/schema.ts diff --git a/packages/subgraph/build/Think2Earn/Think2Earn.wasm b/packages/subgraph/build/Think2Earn/Think2Earn.wasm deleted file mode 100644 index 0102d397de4830faead55ad6c4c67e55393aa300..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37448 zcmeHwdz@6o_2<2Pd!Bb1n)mST89)Jnc`?Hb58)0>3o3$wj~J7&nQ35N-NSSbLSkT4 zR8&+{R8*3X#6)+OY|O5^>n84RNi-1+Nyy9a*^q=plc17cOkxs~kofz4Pu<)1b~6J5 zm)~dikDd9{Id!Y*oH}*RsZ&*Vpsp56b?KU>=~YEH>)ZA10NTyQ_U(Xy?R;h)2oKuL zns###kI3oU^zDJq==nxGu{kfcF4>dT3W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Ssr0)CF=K0q2Q~s9<&+Ni~GUL~&_xYI{ z_P3(tsQO7itG3N3>kHVQ(tVs#ov&EOHhkL8M0455Taf*JriH`H{Vw-s{H!pivl9_N ntNZvzh^O=Pe*61#y80iE_>T*ok9a?=7pni^5N|D%|Ksp)<+Fml diff --git a/packages/subgraph/build/Think2Earn/abis/localhost_Think2Earn.json b/packages/subgraph/build/Think2Earn/abis/localhost_Think2Earn.json deleted file mode 100644 index e73c549..0000000 --- a/packages/subgraph/build/Think2Earn/abis/localhost_Think2Earn.json +++ /dev/null @@ -1,573 +0,0 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "bountyId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "numAcceptedSubmissions", - "type": "uint256" - } - ], - "name": "BountyCompleted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "bountyId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "mediaURI", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reward", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "judgeTime", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "maxProgress", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "creator", - "type": "address" - } - ], - "name": "BountyCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "bountyId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "submissionId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "submitter", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "eegDataHash", - "type": "bytes32" - } - ], - "name": "EEGDataSubmitted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "EtherDeposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "bountyId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "submissionId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "PaymentMade", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "activeBountyIds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "bounties", - "outputs": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "mediaURIHash", - "type": "string" - }, - { - "internalType": "uint256", - "name": "reward", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "judgeTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxProgress", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "creationBlock", - "type": "uint256" - }, - { - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "bountyCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_bountyId", - "type": "uint256" - }, - { - "internalType": "uint256[]", - "name": "acceptedSubmissions", - "type": "uint256[]" - } - ], - "name": "completeBounty", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "_name", - "type": "string" - }, - { - "internalType": "string", - "name": "_description", - "type": "string" - }, - { - "internalType": "string", - "name": "_mediaURI", - "type": "string" - }, - { - "internalType": "uint256", - "name": "_duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_judgeTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_maxProgress", - "type": "uint256" - } - ], - "name": "createBounty", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "getActiveBounties", - "outputs": [ - { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBounties", - "outputs": [ - { - "components": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "mediaURIHash", - "type": "string" - }, - { - "internalType": "uint256", - "name": "reward", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "judgeTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxProgress", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "creationBlock", - "type": "uint256" - }, - { - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - }, - { - "components": [ - { - "internalType": "address", - "name": "submitter", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "eegDataHash", - "type": "bytes32" - } - ], - "internalType": "struct Think2EarnBountyFactoryV1.Submission[]", - "name": "submissions", - "type": "tuple[]" - } - ], - "internalType": "struct Think2Earn.Bounty[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBountyCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_bountyId", - "type": "uint256" - } - ], - "name": "getBountyDetails", - "outputs": [ - { - "internalType": "string", - "name": "name", - "type": "string" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "internalType": "string", - "name": "mediaURI", - "type": "string" - }, - { - "internalType": "uint256", - "name": "reward", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "judgeTime", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxProgress", - "type": "uint256" - }, - { - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "creationBlock", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "isActive", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "submissionsLength", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "currentProgress", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_bountyId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_submissionId", - "type": "uint256" - } - ], - "name": "getBountySubmissions", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "submitter", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "eegDataHash", - "type": "bytes32" - } - ], - "internalType": "struct Think2EarnBountyFactoryV1.Submission", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getVersion", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_bountyId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "_eegDataHash", - "type": "bytes32" - } - ], - "name": "submitEEGData", - "outputs": [ - { - "internalType": "uint256", - "name": "submissionId", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } -] \ No newline at end of file diff --git a/packages/subgraph/build/YourContract/YourContract.wasm b/packages/subgraph/build/YourContract/YourContract.wasm deleted file mode 100644 index 94a4e7b5a5b5206a03096ac300aa0a8ec6733a54..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35155 zcmeHwf1DK6wP#gV&(E5M=J&wxqh|mG1?KlJ5TOQWK}1mSXH3RsrWxi}_t4#gkQf*h z6%`eKqmqOqCc3-2G5fOnd@t-i5=}x3Nyv-wxi2I!(IluOA&E&$9*O(?o?F#b-3$aN zKA+t`wwrs-t$Xh|_uO;OJ@-@%eM^g_`*lsz^v2Q~_3irh8w1-3jqTgFYXWhhBdcjQ z22q9_8sL(}+w|>$f7FYNcw%!wY<)77(F#jDl8MdnRJuEvn3&l*5MPqLoVR{!CZ1lG zTpr(|X$9Sh&iIy+bS9aK&+Ce3G`%P>*uNfx=KAig6^YEefxf}CrhC{;$!90+)+N_w zQr(FzO>-EG0fVLSj_&?g-@Ht=HmAchIt&=orfRyb6=`|^AFWu|bS1?=@vopD z7}N)}K!JgZ!cP``4$84KbGxR1&Rl@NAP5o^5EK#=5fl@Y5R?*_1Z4yvf)NBG3Bm-U z2u2f(As9gM-R|OuG zd3sCW+XCMactqyvM*@E=@FxOa7x+_wKNI+dz&8c{T;MMR{!-vkfo}?U4efP_(y?%68N6LKMVYe!2b|ZV`B^ zz}p1w5O}-5I|SY-aHqh#1l}$19)Y_A-Yf7vf%gmCE${(>4+?xp;KKqR5%{RU#{}*X z__)9)1U@P7C0PSs6Zmz3-w=3E;5P-nEbssiYUoqh33Qt@~OE@25S zyW-lk&^q{`6`k{xqcHT*_O+Et#kRH$ZrBh{8G*1}2-njh6^1d&Evju&WkF9_eVr;R z@RT(*sIo$*?5gf8zapn!mN^WIy@d|P5^tfyvUH3sPP8u>%Q#KVoKmN4nbUn+))g8d zXM`eQTQb>aj2Q3Lgh$ko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|8G7(iQ- zF<#@-6P^5;l52hF%k$jJW_;b*{0+?hixJ*(a=i~7$=xGgp7J5THwX~q1|Nc`)BW*+ zmJj;~m9tD_SRe7>l@%xVB{1ziOj_~EzBcAYA8x>5<$cji%=a+mL6@j(y^mV~C7a@v z^D>(bA3K`E)bskAPT%aDw|K~q<34Uhm2~dAFNEO+-|{(ct`K%zzRe};oQ2;;AHla8 zZ~(7t&jRvyYt$rkNF5QmCZVw z_`0r}&w=*6FZlYn?{E*V1l#7@^{6|T?Y`Hf;*)*t*pTi!u5#a0c8h+U-xYq!cbna+ z`?fbHAi7QW9lJQJGuOb9d{$Jr$#9PBvdJch9+D=e*BumwzQnjPHE|-o5_a zgL~g_pMNvVzGd%z-M3rDd--VGL^IpT*NkLkXj5O~?y?@8Qq4u`E+KJI^`$axpz6T0ua zHqYA|pY*>~cvcsGxP$jS?)9@a?6)tbw^+*7Yer3(aLC zPeJziSr!g2_f40d_OrvB%uYo7jPBzzb>gpGO_~C-*wU|%o#p)Lh@y=rT Hjl=%|+)D@u diff --git a/packages/subgraph/build/YourContract/abis/localhost_YourContract.json b/packages/subgraph/build/YourContract/abis/localhost_YourContract.json deleted file mode 100644 index 02fff58..0000000 --- a/packages/subgraph/build/YourContract/abis/localhost_YourContract.json +++ /dev/null @@ -1,139 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "greetingSetter", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "newGreeting", - "type": "string" - }, - { - "indexed": false, - "internalType": "bool", - "name": "premium", - "type": "bool" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "GreetingChange", - "type": "event" - }, - { - "inputs": [], - "name": "greeting", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "premium", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "_newGreeting", - "type": "string" - } - ], - "name": "setGreeting", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "totalCounter", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "userGreetingCounter", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } -] \ No newline at end of file diff --git a/packages/subgraph/build/schema.graphql b/packages/subgraph/build/schema.graphql deleted file mode 100644 index ef89e47..0000000 --- a/packages/subgraph/build/schema.graphql +++ /dev/null @@ -1,43 +0,0 @@ -type Bounty @entity { - id: ID! - name: String! - description: String! - mediaURI: String! - reward: BigInt! - duration: BigInt! - judgeTime: BigInt! - maxProgress: BigInt! - creationBlock: BigInt! - creator: Bytes! - isActive: Boolean! - submissions: [Submission!] @derivedFrom(field: "bounty") - numAcceptedSubmissions: BigInt! -} - -type Submission @entity { - id: ID! - bounty: Bounty! - submitter: Bytes! - eegDataHash: Bytes! -} - -type Deposit @entity { - id: ID! - sender: Bytes! - amount: BigInt! -} - -type Payment @entity { - id: ID! - bounty: Bounty! - submission: Submission! - amount: BigInt! -} - -type User @entity { - id: ID! - address: Bytes! - submissionCount: BigInt! - depositCount: BigInt! - paymentReceivedCount: BigInt! -} diff --git a/packages/subgraph/build/subgraph.yaml b/packages/subgraph/build/subgraph.yaml deleted file mode 100644 index cb50490..0000000 --- a/packages/subgraph/build/subgraph.yaml +++ /dev/null @@ -1,37 +0,0 @@ -specVersion: 0.0.4 -description: Think2Earn Subgraph -repository: https://github.com/scaffold-eth/se-2/packages/subgraph/ -schema: - file: schema.graphql -dataSources: - - kind: ethereum/contract - name: Think2Earn - network: localhost - source: - abi: Think2Earn - address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Bounty - - Submission - - Deposit - - Payment - - User - abis: - - name: Think2Earn - file: Think2Earn/abis/localhost_Think2Earn.json - eventHandlers: - - event: BountyCreated(uint256,string,string,string,uint256,uint256,uint256,uint256,address) - handler: handleBountyCreated - - event: EEGDataSubmitted(uint256,uint256,address,bytes32) - handler: handleEEGDataSubmitted - - event: BountyCompleted(uint256,uint256) - handler: handleBountyCompleted - - event: EtherDeposited(address,uint256) - handler: handleEtherDeposited - - event: PaymentMade(uint256,uint256,uint256) - handler: handlePaymentMade - file: Think2Earn/Think2Earn.wasm diff --git a/packages/subgraph/generated/Think2Earn/Think2Earn.ts b/packages/subgraph/generated/Think2Earn/Think2Earn.ts deleted file mode 100644 index 5581ce4..0000000 --- a/packages/subgraph/generated/Think2Earn/Think2Earn.ts +++ /dev/null @@ -1,882 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - ethereum, - JSONValue, - TypedMap, - Entity, - Bytes, - Address, - BigInt -} from "@graphprotocol/graph-ts"; - -export class BountyCompleted extends ethereum.Event { - get params(): BountyCompleted__Params { - return new BountyCompleted__Params(this); - } -} - -export class BountyCompleted__Params { - _event: BountyCompleted; - - constructor(event: BountyCompleted) { - this._event = event; - } - - get bountyId(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get numAcceptedSubmissions(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } -} - -export class BountyCreated extends ethereum.Event { - get params(): BountyCreated__Params { - return new BountyCreated__Params(this); - } -} - -export class BountyCreated__Params { - _event: BountyCreated; - - constructor(event: BountyCreated) { - this._event = event; - } - - get bountyId(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get name(): string { - return this._event.parameters[1].value.toString(); - } - - get description(): string { - return this._event.parameters[2].value.toString(); - } - - get mediaURI(): string { - return this._event.parameters[3].value.toString(); - } - - get reward(): BigInt { - return this._event.parameters[4].value.toBigInt(); - } - - get duration(): BigInt { - return this._event.parameters[5].value.toBigInt(); - } - - get judgeTime(): BigInt { - return this._event.parameters[6].value.toBigInt(); - } - - get maxProgress(): BigInt { - return this._event.parameters[7].value.toBigInt(); - } - - get creator(): Address { - return this._event.parameters[8].value.toAddress(); - } -} - -export class EEGDataSubmitted extends ethereum.Event { - get params(): EEGDataSubmitted__Params { - return new EEGDataSubmitted__Params(this); - } -} - -export class EEGDataSubmitted__Params { - _event: EEGDataSubmitted; - - constructor(event: EEGDataSubmitted) { - this._event = event; - } - - get bountyId(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get submissionId(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get submitter(): Address { - return this._event.parameters[2].value.toAddress(); - } - - get eegDataHash(): Bytes { - return this._event.parameters[3].value.toBytes(); - } -} - -export class EtherDeposited extends ethereum.Event { - get params(): EtherDeposited__Params { - return new EtherDeposited__Params(this); - } -} - -export class EtherDeposited__Params { - _event: EtherDeposited; - - constructor(event: EtherDeposited) { - this._event = event; - } - - get sender(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get amount(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } -} - -export class PaymentMade extends ethereum.Event { - get params(): PaymentMade__Params { - return new PaymentMade__Params(this); - } -} - -export class PaymentMade__Params { - _event: PaymentMade; - - constructor(event: PaymentMade) { - this._event = event; - } - - get bountyId(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get submissionId(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get amount(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } -} - -export class Think2Earn__bountiesResult { - value0: string; - value1: string; - value2: string; - value3: BigInt; - value4: BigInt; - value5: BigInt; - value6: BigInt; - value7: BigInt; - value8: Address; - value9: boolean; - - constructor( - value0: string, - value1: string, - value2: string, - value3: BigInt, - value4: BigInt, - value5: BigInt, - value6: BigInt, - value7: BigInt, - value8: Address, - value9: boolean - ) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; - this.value6 = value6; - this.value7 = value7; - this.value8 = value8; - this.value9 = value9; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromString(this.value0)); - map.set("value1", ethereum.Value.fromString(this.value1)); - map.set("value2", ethereum.Value.fromString(this.value2)); - map.set("value3", ethereum.Value.fromUnsignedBigInt(this.value3)); - map.set("value4", ethereum.Value.fromUnsignedBigInt(this.value4)); - map.set("value5", ethereum.Value.fromUnsignedBigInt(this.value5)); - map.set("value6", ethereum.Value.fromUnsignedBigInt(this.value6)); - map.set("value7", ethereum.Value.fromUnsignedBigInt(this.value7)); - map.set("value8", ethereum.Value.fromAddress(this.value8)); - map.set("value9", ethereum.Value.fromBoolean(this.value9)); - return map; - } - - getName(): string { - return this.value0; - } - - getDescription(): string { - return this.value1; - } - - getMediaURIHash(): string { - return this.value2; - } - - getReward(): BigInt { - return this.value3; - } - - getDuration(): BigInt { - return this.value4; - } - - getJudgeTime(): BigInt { - return this.value5; - } - - getMaxProgress(): BigInt { - return this.value6; - } - - getCreationBlock(): BigInt { - return this.value7; - } - - getCreator(): Address { - return this.value8; - } - - getIsActive(): boolean { - return this.value9; - } -} - -export class Think2Earn__getBountiesResultValue0Struct extends ethereum.Tuple { - get name(): string { - return this[0].toString(); - } - - get description(): string { - return this[1].toString(); - } - - get mediaURIHash(): string { - return this[2].toString(); - } - - get reward(): BigInt { - return this[3].toBigInt(); - } - - get duration(): BigInt { - return this[4].toBigInt(); - } - - get judgeTime(): BigInt { - return this[5].toBigInt(); - } - - get maxProgress(): BigInt { - return this[6].toBigInt(); - } - - get creationBlock(): BigInt { - return this[7].toBigInt(); - } - - get creator(): Address { - return this[8].toAddress(); - } - - get isActive(): boolean { - return this[9].toBoolean(); - } - - get submissions(): Array< - Think2Earn__getBountiesResultValue0SubmissionsStruct - > { - return this[10].toTupleArray< - Think2Earn__getBountiesResultValue0SubmissionsStruct - >(); - } -} - -export class Think2Earn__getBountiesResultValue0SubmissionsStruct extends ethereum.Tuple { - get submitter(): Address { - return this[0].toAddress(); - } - - get eegDataHash(): Bytes { - return this[1].toBytes(); - } -} - -export class Think2Earn__getBountyDetailsResult { - value0: string; - value1: string; - value2: string; - value3: BigInt; - value4: BigInt; - value5: BigInt; - value6: BigInt; - value7: Address; - value8: BigInt; - value9: boolean; - value10: BigInt; - value11: BigInt; - - constructor( - value0: string, - value1: string, - value2: string, - value3: BigInt, - value4: BigInt, - value5: BigInt, - value6: BigInt, - value7: Address, - value8: BigInt, - value9: boolean, - value10: BigInt, - value11: BigInt - ) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; - this.value6 = value6; - this.value7 = value7; - this.value8 = value8; - this.value9 = value9; - this.value10 = value10; - this.value11 = value11; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromString(this.value0)); - map.set("value1", ethereum.Value.fromString(this.value1)); - map.set("value2", ethereum.Value.fromString(this.value2)); - map.set("value3", ethereum.Value.fromUnsignedBigInt(this.value3)); - map.set("value4", ethereum.Value.fromUnsignedBigInt(this.value4)); - map.set("value5", ethereum.Value.fromUnsignedBigInt(this.value5)); - map.set("value6", ethereum.Value.fromUnsignedBigInt(this.value6)); - map.set("value7", ethereum.Value.fromAddress(this.value7)); - map.set("value8", ethereum.Value.fromUnsignedBigInt(this.value8)); - map.set("value9", ethereum.Value.fromBoolean(this.value9)); - map.set("value10", ethereum.Value.fromUnsignedBigInt(this.value10)); - map.set("value11", ethereum.Value.fromUnsignedBigInt(this.value11)); - return map; - } - - getName(): string { - return this.value0; - } - - getDescription(): string { - return this.value1; - } - - getMediaURI(): string { - return this.value2; - } - - getReward(): BigInt { - return this.value3; - } - - getDuration(): BigInt { - return this.value4; - } - - getJudgeTime(): BigInt { - return this.value5; - } - - getMaxProgress(): BigInt { - return this.value6; - } - - getCreator(): Address { - return this.value7; - } - - getCreationBlock(): BigInt { - return this.value8; - } - - getIsActive(): boolean { - return this.value9; - } - - getSubmissionsLength(): BigInt { - return this.value10; - } - - getCurrentProgress(): BigInt { - return this.value11; - } -} - -export class Think2Earn__getBountySubmissionsResultValue0Struct extends ethereum.Tuple { - get submitter(): Address { - return this[0].toAddress(); - } - - get eegDataHash(): Bytes { - return this[1].toBytes(); - } -} - -export class Think2Earn extends ethereum.SmartContract { - static bind(address: Address): Think2Earn { - return new Think2Earn("Think2Earn", address); - } - - activeBountyIds(param0: BigInt): BigInt { - let result = super.call( - "activeBountyIds", - "activeBountyIds(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - - return result[0].toBigInt(); - } - - try_activeBountyIds(param0: BigInt): ethereum.CallResult { - let result = super.tryCall( - "activeBountyIds", - "activeBountyIds(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - bounties(param0: BigInt): Think2Earn__bountiesResult { - let result = super.call( - "bounties", - "bounties(uint256):(string,string,string,uint256,uint256,uint256,uint256,uint256,address,bool)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - - return new Think2Earn__bountiesResult( - result[0].toString(), - result[1].toString(), - result[2].toString(), - result[3].toBigInt(), - result[4].toBigInt(), - result[5].toBigInt(), - result[6].toBigInt(), - result[7].toBigInt(), - result[8].toAddress(), - result[9].toBoolean() - ); - } - - try_bounties( - param0: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "bounties", - "bounties(uint256):(string,string,string,uint256,uint256,uint256,uint256,uint256,address,bool)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new Think2Earn__bountiesResult( - value[0].toString(), - value[1].toString(), - value[2].toString(), - value[3].toBigInt(), - value[4].toBigInt(), - value[5].toBigInt(), - value[6].toBigInt(), - value[7].toBigInt(), - value[8].toAddress(), - value[9].toBoolean() - ) - ); - } - - bountyCount(): BigInt { - let result = super.call("bountyCount", "bountyCount():(uint256)", []); - - return result[0].toBigInt(); - } - - try_bountyCount(): ethereum.CallResult { - let result = super.tryCall("bountyCount", "bountyCount():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getActiveBounties(): Array { - let result = super.call( - "getActiveBounties", - "getActiveBounties():(uint256[])", - [] - ); - - return result[0].toBigIntArray(); - } - - try_getActiveBounties(): ethereum.CallResult> { - let result = super.tryCall( - "getActiveBounties", - "getActiveBounties():(uint256[])", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigIntArray()); - } - - getBounties(): Array { - let result = super.call( - "getBounties", - "getBounties():((string,string,string,uint256,uint256,uint256,uint256,uint256,address,bool,(address,bytes32)[])[])", - [] - ); - - return result[0].toTupleArray(); - } - - try_getBounties(): ethereum.CallResult< - Array - > { - let result = super.tryCall( - "getBounties", - "getBounties():((string,string,string,uint256,uint256,uint256,uint256,uint256,address,bool,(address,bytes32)[])[])", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - value[0].toTupleArray() - ); - } - - getBountyCount(): BigInt { - let result = super.call("getBountyCount", "getBountyCount():(uint256)", []); - - return result[0].toBigInt(); - } - - try_getBountyCount(): ethereum.CallResult { - let result = super.tryCall( - "getBountyCount", - "getBountyCount():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getBountyDetails(_bountyId: BigInt): Think2Earn__getBountyDetailsResult { - let result = super.call( - "getBountyDetails", - "getBountyDetails(uint256):(string,string,string,uint256,uint256,uint256,uint256,address,uint256,bool,uint256,uint256)", - [ethereum.Value.fromUnsignedBigInt(_bountyId)] - ); - - return new Think2Earn__getBountyDetailsResult( - result[0].toString(), - result[1].toString(), - result[2].toString(), - result[3].toBigInt(), - result[4].toBigInt(), - result[5].toBigInt(), - result[6].toBigInt(), - result[7].toAddress(), - result[8].toBigInt(), - result[9].toBoolean(), - result[10].toBigInt(), - result[11].toBigInt() - ); - } - - try_getBountyDetails( - _bountyId: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "getBountyDetails", - "getBountyDetails(uint256):(string,string,string,uint256,uint256,uint256,uint256,address,uint256,bool,uint256,uint256)", - [ethereum.Value.fromUnsignedBigInt(_bountyId)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new Think2Earn__getBountyDetailsResult( - value[0].toString(), - value[1].toString(), - value[2].toString(), - value[3].toBigInt(), - value[4].toBigInt(), - value[5].toBigInt(), - value[6].toBigInt(), - value[7].toAddress(), - value[8].toBigInt(), - value[9].toBoolean(), - value[10].toBigInt(), - value[11].toBigInt() - ) - ); - } - - getBountySubmissions( - _bountyId: BigInt, - _submissionId: BigInt - ): Think2Earn__getBountySubmissionsResultValue0Struct { - let result = super.call( - "getBountySubmissions", - "getBountySubmissions(uint256,uint256):((address,bytes32))", - [ - ethereum.Value.fromUnsignedBigInt(_bountyId), - ethereum.Value.fromUnsignedBigInt(_submissionId) - ] - ); - - return changetype( - result[0].toTuple() - ); - } - - try_getBountySubmissions( - _bountyId: BigInt, - _submissionId: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "getBountySubmissions", - "getBountySubmissions(uint256,uint256):((address,bytes32))", - [ - ethereum.Value.fromUnsignedBigInt(_bountyId), - ethereum.Value.fromUnsignedBigInt(_submissionId) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - changetype( - value[0].toTuple() - ) - ); - } - - getVersion(): BigInt { - let result = super.call("getVersion", "getVersion():(uint256)", []); - - return result[0].toBigInt(); - } - - try_getVersion(): ethereum.CallResult { - let result = super.tryCall("getVersion", "getVersion():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - submitEEGData(_bountyId: BigInt, _eegDataHash: Bytes): BigInt { - let result = super.call( - "submitEEGData", - "submitEEGData(uint256,bytes32):(uint256)", - [ - ethereum.Value.fromUnsignedBigInt(_bountyId), - ethereum.Value.fromFixedBytes(_eegDataHash) - ] - ); - - return result[0].toBigInt(); - } - - try_submitEEGData( - _bountyId: BigInt, - _eegDataHash: Bytes - ): ethereum.CallResult { - let result = super.tryCall( - "submitEEGData", - "submitEEGData(uint256,bytes32):(uint256)", - [ - ethereum.Value.fromUnsignedBigInt(_bountyId), - ethereum.Value.fromFixedBytes(_eegDataHash) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } -} - -export class ConstructorCall extends ethereum.Call { - get inputs(): ConstructorCall__Inputs { - return new ConstructorCall__Inputs(this); - } - - get outputs(): ConstructorCall__Outputs { - return new ConstructorCall__Outputs(this); - } -} - -export class ConstructorCall__Inputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} - -export class ConstructorCall__Outputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} - -export class CompleteBountyCall extends ethereum.Call { - get inputs(): CompleteBountyCall__Inputs { - return new CompleteBountyCall__Inputs(this); - } - - get outputs(): CompleteBountyCall__Outputs { - return new CompleteBountyCall__Outputs(this); - } -} - -export class CompleteBountyCall__Inputs { - _call: CompleteBountyCall; - - constructor(call: CompleteBountyCall) { - this._call = call; - } - - get _bountyId(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get acceptedSubmissions(): Array { - return this._call.inputValues[1].value.toBigIntArray(); - } -} - -export class CompleteBountyCall__Outputs { - _call: CompleteBountyCall; - - constructor(call: CompleteBountyCall) { - this._call = call; - } -} - -export class CreateBountyCall extends ethereum.Call { - get inputs(): CreateBountyCall__Inputs { - return new CreateBountyCall__Inputs(this); - } - - get outputs(): CreateBountyCall__Outputs { - return new CreateBountyCall__Outputs(this); - } -} - -export class CreateBountyCall__Inputs { - _call: CreateBountyCall; - - constructor(call: CreateBountyCall) { - this._call = call; - } - - get _name(): string { - return this._call.inputValues[0].value.toString(); - } - - get _description(): string { - return this._call.inputValues[1].value.toString(); - } - - get _mediaURI(): string { - return this._call.inputValues[2].value.toString(); - } - - get _duration(): BigInt { - return this._call.inputValues[3].value.toBigInt(); - } - - get _judgeTime(): BigInt { - return this._call.inputValues[4].value.toBigInt(); - } - - get _maxProgress(): BigInt { - return this._call.inputValues[5].value.toBigInt(); - } -} - -export class CreateBountyCall__Outputs { - _call: CreateBountyCall; - - constructor(call: CreateBountyCall) { - this._call = call; - } -} - -export class SubmitEEGDataCall extends ethereum.Call { - get inputs(): SubmitEEGDataCall__Inputs { - return new SubmitEEGDataCall__Inputs(this); - } - - get outputs(): SubmitEEGDataCall__Outputs { - return new SubmitEEGDataCall__Outputs(this); - } -} - -export class SubmitEEGDataCall__Inputs { - _call: SubmitEEGDataCall; - - constructor(call: SubmitEEGDataCall) { - this._call = call; - } - - get _bountyId(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _eegDataHash(): Bytes { - return this._call.inputValues[1].value.toBytes(); - } -} - -export class SubmitEEGDataCall__Outputs { - _call: SubmitEEGDataCall; - - constructor(call: SubmitEEGDataCall) { - this._call = call; - } - - get submissionId(): BigInt { - return this._call.outputValues[0].value.toBigInt(); - } -} diff --git a/packages/subgraph/generated/YourContract/YourContract.ts b/packages/subgraph/generated/YourContract/YourContract.ts deleted file mode 100644 index 8e663eb..0000000 --- a/packages/subgraph/generated/YourContract/YourContract.ts +++ /dev/null @@ -1,216 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - ethereum, - JSONValue, - TypedMap, - Entity, - Bytes, - Address, - BigInt -} from "@graphprotocol/graph-ts"; - -export class GreetingChange extends ethereum.Event { - get params(): GreetingChange__Params { - return new GreetingChange__Params(this); - } -} - -export class GreetingChange__Params { - _event: GreetingChange; - - constructor(event: GreetingChange) { - this._event = event; - } - - get greetingSetter(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get newGreeting(): string { - return this._event.parameters[1].value.toString(); - } - - get premium(): boolean { - return this._event.parameters[2].value.toBoolean(); - } - - get value(): BigInt { - return this._event.parameters[3].value.toBigInt(); - } -} - -export class YourContract extends ethereum.SmartContract { - static bind(address: Address): YourContract { - return new YourContract("YourContract", address); - } - - greeting(): string { - let result = super.call("greeting", "greeting():(string)", []); - - return result[0].toString(); - } - - try_greeting(): ethereum.CallResult { - let result = super.tryCall("greeting", "greeting():(string)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toString()); - } - - owner(): Address { - let result = super.call("owner", "owner():(address)", []); - - return result[0].toAddress(); - } - - try_owner(): ethereum.CallResult
{ - let result = super.tryCall("owner", "owner():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - premium(): boolean { - let result = super.call("premium", "premium():(bool)", []); - - return result[0].toBoolean(); - } - - try_premium(): ethereum.CallResult { - let result = super.tryCall("premium", "premium():(bool)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBoolean()); - } - - totalCounter(): BigInt { - let result = super.call("totalCounter", "totalCounter():(uint256)", []); - - return result[0].toBigInt(); - } - - try_totalCounter(): ethereum.CallResult { - let result = super.tryCall("totalCounter", "totalCounter():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - userGreetingCounter(param0: Address): BigInt { - let result = super.call( - "userGreetingCounter", - "userGreetingCounter(address):(uint256)", - [ethereum.Value.fromAddress(param0)] - ); - - return result[0].toBigInt(); - } - - try_userGreetingCounter(param0: Address): ethereum.CallResult { - let result = super.tryCall( - "userGreetingCounter", - "userGreetingCounter(address):(uint256)", - [ethereum.Value.fromAddress(param0)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } -} - -export class ConstructorCall extends ethereum.Call { - get inputs(): ConstructorCall__Inputs { - return new ConstructorCall__Inputs(this); - } - - get outputs(): ConstructorCall__Outputs { - return new ConstructorCall__Outputs(this); - } -} - -export class ConstructorCall__Inputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } - - get _owner(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ConstructorCall__Outputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} - -export class SetGreetingCall extends ethereum.Call { - get inputs(): SetGreetingCall__Inputs { - return new SetGreetingCall__Inputs(this); - } - - get outputs(): SetGreetingCall__Outputs { - return new SetGreetingCall__Outputs(this); - } -} - -export class SetGreetingCall__Inputs { - _call: SetGreetingCall; - - constructor(call: SetGreetingCall) { - this._call = call; - } - - get _newGreeting(): string { - return this._call.inputValues[0].value.toString(); - } -} - -export class SetGreetingCall__Outputs { - _call: SetGreetingCall; - - constructor(call: SetGreetingCall) { - this._call = call; - } -} - -export class WithdrawCall extends ethereum.Call { - get inputs(): WithdrawCall__Inputs { - return new WithdrawCall__Inputs(this); - } - - get outputs(): WithdrawCall__Outputs { - return new WithdrawCall__Outputs(this); - } -} - -export class WithdrawCall__Inputs { - _call: WithdrawCall; - - constructor(call: WithdrawCall) { - this._call = call; - } -} - -export class WithdrawCall__Outputs { - _call: WithdrawCall; - - constructor(call: WithdrawCall) { - this._call = call; - } -} diff --git a/packages/subgraph/generated/schema.ts b/packages/subgraph/generated/schema.ts deleted file mode 100644 index f135257..0000000 --- a/packages/subgraph/generated/schema.ts +++ /dev/null @@ -1,537 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - TypedMap, - Entity, - Value, - ValueKind, - store, - Bytes, - BigInt, - BigDecimal -} from "@graphprotocol/graph-ts"; - -export class Bounty extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Bounty entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Bounty must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Bounty", id.toString(), this); - } - } - - static loadInBlock(id: string): Bounty | null { - return changetype(store.get_in_block("Bounty", id)); - } - - static load(id: string): Bounty | null { - return changetype(store.get("Bounty", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get name(): string { - let value = this.get("name"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set name(value: string) { - this.set("name", Value.fromString(value)); - } - - get description(): string { - let value = this.get("description"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set description(value: string) { - this.set("description", Value.fromString(value)); - } - - get mediaURIHash(): string { - let value = this.get("mediaURIHash"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set mediaURIHash(value: string) { - this.set("mediaURIHash", Value.fromString(value)); - } - - get reward(): BigInt { - let value = this.get("reward"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set reward(value: BigInt) { - this.set("reward", Value.fromBigInt(value)); - } - - get duration(): BigInt { - let value = this.get("duration"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set duration(value: BigInt) { - this.set("duration", Value.fromBigInt(value)); - } - - get judgeTime(): BigInt { - let value = this.get("judgeTime"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set judgeTime(value: BigInt) { - this.set("judgeTime", Value.fromBigInt(value)); - } - - get maxProgress(): BigInt { - let value = this.get("maxProgress"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set maxProgress(value: BigInt) { - this.set("maxProgress", Value.fromBigInt(value)); - } - - get creationBlock(): BigInt { - let value = this.get("creationBlock"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set creationBlock(value: BigInt) { - this.set("creationBlock", Value.fromBigInt(value)); - } - - get creator(): Bytes { - let value = this.get("creator"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set creator(value: Bytes) { - this.set("creator", Value.fromBytes(value)); - } - - get isActive(): boolean { - let value = this.get("isActive"); - if (!value || value.kind == ValueKind.NULL) { - return false; - } else { - return value.toBoolean(); - } - } - - set isActive(value: boolean) { - this.set("isActive", Value.fromBoolean(value)); - } - - get submissions(): SubmissionLoader { - return new SubmissionLoader( - "Bounty", - this.get("id")!.toString(), - "submissions" - ); - } - - get numAcceptedSubmissions(): BigInt { - let value = this.get("numAcceptedSubmissions"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set numAcceptedSubmissions(value: BigInt) { - this.set("numAcceptedSubmissions", Value.fromBigInt(value)); - } -} - -export class Submission extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Submission entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Submission must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Submission", id.toString(), this); - } - } - - static loadInBlock(id: string): Submission | null { - return changetype(store.get_in_block("Submission", id)); - } - - static load(id: string): Submission | null { - return changetype(store.get("Submission", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get bounty(): string { - let value = this.get("bounty"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set bounty(value: string) { - this.set("bounty", Value.fromString(value)); - } - - get submitter(): Bytes { - let value = this.get("submitter"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set submitter(value: Bytes) { - this.set("submitter", Value.fromBytes(value)); - } - - get eegDataHash(): Bytes { - let value = this.get("eegDataHash"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set eegDataHash(value: Bytes) { - this.set("eegDataHash", Value.fromBytes(value)); - } -} - -export class Deposit extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Deposit entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Deposit must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Deposit", id.toString(), this); - } - } - - static loadInBlock(id: string): Deposit | null { - return changetype(store.get_in_block("Deposit", id)); - } - - static load(id: string): Deposit | null { - return changetype(store.get("Deposit", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get sender(): Bytes { - let value = this.get("sender"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set sender(value: Bytes) { - this.set("sender", Value.fromBytes(value)); - } - - get amount(): BigInt { - let value = this.get("amount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set amount(value: BigInt) { - this.set("amount", Value.fromBigInt(value)); - } -} - -export class Payment extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Payment entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Payment must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Payment", id.toString(), this); - } - } - - static loadInBlock(id: string): Payment | null { - return changetype(store.get_in_block("Payment", id)); - } - - static load(id: string): Payment | null { - return changetype(store.get("Payment", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get bounty(): string { - let value = this.get("bounty"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set bounty(value: string) { - this.set("bounty", Value.fromString(value)); - } - - get submission(): string { - let value = this.get("submission"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set submission(value: string) { - this.set("submission", Value.fromString(value)); - } - - get amount(): BigInt { - let value = this.get("amount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set amount(value: BigInt) { - this.set("amount", Value.fromBigInt(value)); - } -} - -export class User extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save User entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type User must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("User", id.toString(), this); - } - } - - static loadInBlock(id: string): User | null { - return changetype(store.get_in_block("User", id)); - } - - static load(id: string): User | null { - return changetype(store.get("User", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get address(): Bytes { - let value = this.get("address"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set address(value: Bytes) { - this.set("address", Value.fromBytes(value)); - } - - get submissionCount(): BigInt { - let value = this.get("submissionCount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set submissionCount(value: BigInt) { - this.set("submissionCount", Value.fromBigInt(value)); - } - - get depositCount(): BigInt { - let value = this.get("depositCount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set depositCount(value: BigInt) { - this.set("depositCount", Value.fromBigInt(value)); - } - - get paymentReceivedCount(): BigInt { - let value = this.get("paymentReceivedCount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set paymentReceivedCount(value: BigInt) { - this.set("paymentReceivedCount", Value.fromBigInt(value)); - } -} - -export class SubmissionLoader extends Entity { - _entity: string; - _field: string; - _id: string; - - constructor(entity: string, id: string, field: string) { - super(); - this._entity = entity; - this._id = id; - this._field = field; - } - - load(): Submission[] { - let value = store.loadRelated(this._entity, this._id, this._field); - return changetype(value); - } -}