generated from Borodutch/smart-contract-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc2d8b6
commit 2078f85
Showing
10 changed files
with
293 additions
and
621 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// ,-, | ||
// * . /.( . | ||
// \|/ \ { | ||
// . _ . , . -*- . `-` | ||
// ,'-. * / \_ * / \_ /|\ * /\'__ *. * | ||
// (____". / \ / \, __ . _/ / \ * . . | ||
// . /\/\ /\/ :' __ \_ / \ _^/ ^/ `—./\ /\ . | ||
// * _ / \/ \ _/ \-‘\/ ` \ /\ /.' ^_ \_ .’\\ /_/\ ,'-. | ||
// /_\ /\ .- `. \/ \ /. / \ ;. _/ \ -. `_/ \/. \ _ (____". * | ||
// . / \ / `-.__ ^ / .-'.--\ - \/ _ `--./ .-' `-/. \ / \ . | ||
// / /. `. / / `. / ` .-' '-._ `._ /. \ | ||
// ~._,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-' | ||
// ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~~ | ||
// ~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~ | ||
// ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ | ||
// ๐ | ||
// _ | ||
// ₒ ><_> | ||
// _______ __ _______ | ||
// .-' | _ "\ |" \ /" _ "| ๐ | ||
// '--./ / _.---. (. |_) :) || | (: ( \___) | ||
// '-, (__..-` \ |: \/ |: | \/ \ | ||
// \ . | (| _ \\ |. | // \ ___ | ||
// `,.__. ,__.--/ |: |_) :) |\ | (: _( _| | ||
// '._/_.'___.-` (_______/ |__\| \_______) ๐ | ||
// | ||
// __ __ ___ __ __ __ ___ _______ | ||
// |" |/ \| "| /" | | "\ /""\ |" | /" "| | ||
// ๐ |' / \: |(: (__) :) / \ || | (: ______) | ||
// |: /' | \/ \/ /' /\ \ |: | ₒ \/ | | ||
// \// /\' | // __ \\ // __' \ \ |___ // ___)_ | ||
// / / \\ |(: ( ) :) / / \\ \ ( \_|: \ (: "| | ||
// |___/ \___| \__| |__/ (___/ \___) \_______) \_______) | ||
// ₒ৹ | ||
// ___ __ _______ ________ | ||
// _ |" | ₒ /""\ | _ "\ /" ) | ||
// ><_> || | / \ (. |_) :) (: \___/ | ||
// |: | /' /\ \ |: \/ \___ \ | ||
// \ |___ // __' \ (| _ \\ __/ \\ \_____)\_____ | ||
// ( \_|: \ / / \\ \ |: |_) :) /" \ :) /--v____ __`< | ||
// \_______) (___/ \___)(_______/ (_______/ )/ | ||
// ' | ||
// | ||
// ๐ . ' , ₒ | ||
// ₒ _______ | ||
// ____ .`_|___|_`. ____ | ||
// \ \ / / ₒ৹ | ||
// \ ' / ๐ | ||
// ₒ \/ | ||
// ₒ / \ ) ( | ||
// ( ₒ৹ ( ( ) | ||
// ) ) _ ) ) ( | ||
// ( ) ( ( ><_> ( ( ( ) | ||
// ) ) ( ( ) ) ) ) ) ) ( | ||
// ( ( ) ) ( ( ( ( ( ( ) | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
import "./CID.sol"; | ||
|
||
struct CommentRequest { | ||
uint feedId; | ||
uint postId; | ||
uint replyTo; | ||
CID commentMetadata; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// ,-, | ||
// * . /.( . | ||
// \|/ \ { | ||
// . _ . , . -*- . `-` | ||
// ,'-. * / \_ * / \_ /|\ * /\'__ *. * | ||
// (____". / \ / \, __ . _/ / \ * . . | ||
// . /\/\ /\/ :' __ \_ / \ _^/ ^/ `—./\ /\ . | ||
// * _ / \/ \ _/ \-‘\/ ` \ /\ /.' ^_ \_ .’\\ /_/\ ,'-. | ||
// /_\ /\ .- `. \/ \ /. / \ ;. _/ \ -. `_/ \/. \ _ (____". * | ||
// . / \ / `-.__ ^ / .-'.--\ - \/ _ `--./ .-' `-/. \ / \ . | ||
// / /. `. / / `. / ` .-' '-._ `._ /. \ | ||
// ~._,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-' | ||
// ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~~ | ||
// ~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~ | ||
// ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ | ||
// ๐ | ||
// _ | ||
// ₒ ><_> | ||
// _______ __ _______ | ||
// .-' | _ "\ |" \ /" _ "| ๐ | ||
// '--./ / _.---. (. |_) :) || | (: ( \___) | ||
// '-, (__..-` \ |: \/ |: | \/ \ | ||
// \ . | (| _ \\ |. | // \ ___ | ||
// `,.__. ,__.--/ |: |_) :) |\ | (: _( _| | ||
// '._/_.'___.-` (_______/ |__\| \_______) ๐ | ||
// | ||
// __ __ ___ __ __ __ ___ _______ | ||
// |" |/ \| "| /" | | "\ /""\ |" | /" "| | ||
// ๐ |' / \: |(: (__) :) / \ || | (: ______) | ||
// |: /' | \/ \/ /' /\ \ |: | ₒ \/ | | ||
// \// /\' | // __ \\ // __' \ \ |___ // ___)_ | ||
// / / \\ |(: ( ) :) / / \\ \ ( \_|: \ (: "| | ||
// |___/ \___| \__| |__/ (___/ \___) \_______) \_______) | ||
// ₒ৹ | ||
// ___ __ _______ ________ | ||
// _ |" | ₒ /""\ | _ "\ /" ) | ||
// ><_> || | / \ (. |_) :) (: \___/ | ||
// |: | /' /\ \ |: \/ \___ \ | ||
// \ |___ // __' \ (| _ \\ __/ \\ \_____)\_____ | ||
// ( \_|: \ / / \\ \ |: |_) :) /" \ :) /--v____ __`< | ||
// \_______) (___/ \___)(_______/ (_______/ )/ | ||
// ' | ||
// | ||
// ๐ . ' , ₒ | ||
// ₒ _______ | ||
// ____ .`_|___|_`. ____ | ||
// \ \ / / ₒ৹ | ||
// \ ' / ๐ | ||
// ₒ \/ | ||
// ₒ / \ ) ( | ||
// ( ₒ৹ ( ( ) | ||
// ) ) _ ) ) ( | ||
// ( ) ( ( ><_> ( ( ( ) | ||
// ) ) ( ( ) ) ) ) ) ) ( | ||
// ( ( ) ) ( ( ( ( ( ( ) | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
import "./CID.sol"; | ||
|
||
struct PostRequest { | ||
uint feedId; | ||
CID postMetadata; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// ,-, | ||
// * . /.( . | ||
// \|/ \ { | ||
// . _ . , . -*- . `-` | ||
// ,'-. * / \_ * / \_ /|\ * /\'__ *. * | ||
// (____". / \ / \, __ . _/ / \ * . . | ||
// . /\/\ /\/ :' __ \_ / \ _^/ ^/ `—./\ /\ . | ||
// * _ / \/ \ _/ \-‘\/ ` \ /\ /.' ^_ \_ .’\\ /_/\ ,'-. | ||
// /_\ /\ .- `. \/ \ /. / \ ;. _/ \ -. `_/ \/. \ _ (____". * | ||
// . / \ / `-.__ ^ / .-'.--\ - \/ _ `--./ .-' `-/. \ / \ . | ||
// / /. `. / / `. / ` .-' '-._ `._ /. \ | ||
// ~._,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-'2_,-' | ||
// ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~~ | ||
// ~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~ | ||
// ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ | ||
// ๐ | ||
// _ | ||
// ₒ ><_> | ||
// _______ __ _______ | ||
// .-' | _ "\ |" \ /" _ "| ๐ | ||
// '--./ / _.---. (. |_) :) || | (: ( \___) | ||
// '-, (__..-` \ |: \/ |: | \/ \ | ||
// \ . | (| _ \\ |. | // \ ___ | ||
// `,.__. ,__.--/ |: |_) :) |\ | (: _( _| | ||
// '._/_.'___.-` (_______/ |__\| \_______) ๐ | ||
// | ||
// __ __ ___ __ __ __ ___ _______ | ||
// |" |/ \| "| /" | | "\ /""\ |" | /" "| | ||
// ๐ |' / \: |(: (__) :) / \ || | (: ______) | ||
// |: /' | \/ \/ /' /\ \ |: | ₒ \/ | | ||
// \// /\' | // __ \\ // __' \ \ |___ // ___)_ | ||
// / / \\ |(: ( ) :) / / \\ \ ( \_|: \ (: "| | ||
// |___/ \___| \__| |__/ (___/ \___) \_______) \_______) | ||
// ₒ৹ | ||
// ___ __ _______ ________ | ||
// _ |" | ₒ /""\ | _ "\ /" ) | ||
// ><_> || | / \ (. |_) :) (: \___/ | ||
// |: | /' /\ \ |: \/ \___ \ | ||
// \ |___ // __' \ (| _ \\ __/ \\ \_____)\_____ | ||
// ( \_|: \ / / \\ \ |: |_) :) /" \ :) /--v____ __`< | ||
// \_______) (___/ \___)(_______/ (_______/ )/ | ||
// ' | ||
// | ||
// ๐ . ' , ₒ | ||
// ₒ _______ | ||
// ____ .`_|___|_`. ____ | ||
// \ \ / / ₒ৹ | ||
// \ ' / ๐ | ||
// ₒ \/ | ||
// ₒ / \ ) ( | ||
// ( ₒ৹ ( ( ) | ||
// ) ) _ ) ) ( | ||
// ( ) ( ( ><_> ( ( ( ) | ||
// ) ) ( ( ) ) ) ) ) ) ( | ||
// ( ( ) ) ( ( ( ( ( ( ) | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
import "./CID.sol"; | ||
|
||
struct AddReactionRequest { | ||
uint feedId; | ||
uint postId; | ||
uint commentId; | ||
uint8 reactionType; | ||
} | ||
|
||
struct RemoveReactionRequest { | ||
uint feedId; | ||
uint postId; | ||
uint commentId; | ||
uint reactionId; | ||
} |
This file contains 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
Oops, something went wrong.