From 28768c2efb5362514e493ff201194075913aa250 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Tue, 27 Sep 2022 18:55:11 -0700 Subject: [PATCH 1/8] Create xip-shards.md --- XIPS/xip-shards.md | 87 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 XIPS/xip-shards.md diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md new file mode 100644 index 0000000..9ea3e57 --- /dev/null +++ b/XIPS/xip-shards.md @@ -0,0 +1,87 @@ + +--- +**xip:** +**title:** SHARDS - Dividend Yielding Token Standard +**description:** Shards are a NFT token standard that provides a means for fees paid to the contract to become split among the token holders +**author:** R. Quincy Jones | Github:@CoinClubQuincy | quincy@xdc.org +**discussions-to:** +**status:** Draft +**type:** Standards Track +**category:** XRC +**created:** (2022-9-25) +**requires :** none +--- +The standard provide here is built for Apps on the XDC Network that would like an autonomous means of distribution of Fees paid to the contract in the form of dividends to the token holders LIVE as the DApp gains usage.`. + +## Abstract +The SHARD token is a decentralized share of ownership over a DApp and the profits generated by the DApp. The SHARD tokens are NFTs that can also be used within the DApp for governance and control over functions in the DApp. +SHARDs act as a new means for Apps,Startups,and Businesses to have an automated means to distribute XDC generated by their applications on the XDC Network. +## Motivation +This standard allows for a new Market of autonomous Apps on XDC where applications can act entirely autonomous as the grow and allow for interested parties be able to own the DApps. currently Apps either direct funds to a founder contract or have a currency created with its own fees and incentives. The Idea with shards is a developer can create the app they want, accept fees and direct the fees to the shards while being able to sell parts of their app as it grows to help fund the further developements of additional contracts that contribute to the original shards or sell applications they have that get steady use. Globally developers can create DApps and sell them as they grow as well as redeem the yields generated by the contract. + +## Specification + +**Token Variables** +MUST - Developers must Name the DApp accordingly and define how many shards are created + +**name:** Name is required for naming DApp +**symbol:** Symbol is a short hand 3-5 character code to reference DApp Nnme. +**totalSupply:** total supply MAX is 1000 tokens + + string public name; + + string public symbol; + + uint public totalSupply; + + + +**View_Account** +OPTIONAL - view tokens yield in contract + + function View_Account(uint _token) external view returns(uint); + +**Redeem** +In order to again dividends user MUST select the Redeem function + + function Redeem()external returns(bool); + + + +****All other function of inherited from the XRC1155 contract standard*** + + + +## Rationale +this contract act as a amendment to the XRC1155 token standard to create a new type of token that acts as ownerships of different DApps this new type of token allows for DApps to be own and traded to allow for developers to sell their blockchain products as the perform no mater the function of how big or small they are. + +## Backwards Compatibility +All XIPs that introduce backwards incompatibilities must include a section describing these incompatibilities and their severity. The XIP must explain how the author proposes to deal with these incompatibilities. XIP submissions without a sufficient backwards compatibility treatise may be rejected outright. + + +## Reference Implementation + +All function within contract can use this line of code at the bottom of their function to forward funds to the **receive()** function to allocate funds. + + address(this).call{value: msg.value}; + +This contract bllow is an example of a lemonade stand contract that receives 100XDC for a glass of lemonade and divides those funds amongst 10 token holders + +````solidity +contract lemonadeStand is XRC100{ + constructor(string memory _name,string memory _symbol,uint _totalSupply) XRC100(_name,_symbol,_totalSupply){} + + function GlassOfLemonade() public payable returns(bool){ + require(msg.value == 100000000000000000000,"need more funds"); + + //this call can be used in all functions that recive fees + address(this).call{value: msg.value}; //use this to forward all funds to the receive function + return true; + } +} +```` +## Security Considerations +**WARNING: Lost SHARDS will result in the portion of funds allocated to the token to also be lost** + +## Copyright +Copyright and related rights waived via [CC0](../LICENSE.md). \ No newline at end of file From a33f2fe7a93f38f2ba2f8d94d63c460f937081b9 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Tue, 27 Sep 2022 19:05:07 -0700 Subject: [PATCH 2/8] Update xip-shards.md --- XIPS/xip-shards.md | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md index 9ea3e57..8ae6f79 100644 --- a/XIPS/xip-shards.md +++ b/XIPS/xip-shards.md @@ -1,17 +1,16 @@ - ---- -**xip:** -**title:** SHARDS - Dividend Yielding Token Standard -**description:** Shards are a NFT token standard that provides a means for fees paid to the contract to become split among the token holders -**author:** R. Quincy Jones | Github:@CoinClubQuincy | quincy@xdc.org -**discussions-to:** -**status:** Draft -**type:** Standards Track -**category:** XRC -**created:** (2022-9-25) -**requires :** none --- -The standard provide here is built for Apps on the XDC Network that would like an autonomous means of distribution of Fees paid to the contract in the form of dividends to the token holders LIVE as the DApp gains usage.`. +xip: 2 +title: SHARDS: Dividend Yielding Token Standard +status: Draft +type: Standard Track +category: XRC +author: R. Quincy Jones | Github:@CoinClubQuincy | quincy@xdc.org +created: 2022-9-25 +--- + +## What is a SHARD? + +The SHARDS are built for Apps on the XDC Network that would like an autonomous means of distribution of Fees paid to the contract in the form of dividends to the token holders LIVE as the DApp gains usage.`. ## Abstract The SHARD token is a decentralized share of ownership over a DApp and the profits generated by the DApp. The SHARD tokens are NFTs that can also be used within the DApp for governance and control over functions in the DApp. @@ -24,16 +23,14 @@ This standard allows for a new Market of autonomous Apps on XDC where applicatio **Token Variables** MUST - Developers must Name the DApp accordingly and define how many shards are created -**name:** Name is required for naming DApp -**symbol:** Symbol is a short hand 3-5 character code to reference DApp Nnme. -**totalSupply:** total supply MAX is 1000 tokens - - string public name; - - string public symbol; - - uint public totalSupply; - +- name: Name is required for naming DApp +- symbol: Symbol is a short hand 3-5 character code to reference DApp Nnme. +- totalSupply: total supply MAX is 1000 tokens +```` +string public name; +string public symbol; +uint public totalSupply; +```` **View_Account** @@ -84,4 +81,4 @@ contract lemonadeStand is XRC100{ **WARNING: Lost SHARDS will result in the portion of funds allocated to the token to also be lost** ## Copyright -Copyright and related rights waived via [CC0](../LICENSE.md). \ No newline at end of file +Copyright and related rights waived via [CC0](../LICENSE.md). From 188018d0a46f82133de8241925df19626f36f610 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Tue, 27 Sep 2022 19:06:52 -0700 Subject: [PATCH 3/8] Update xip-shards.md --- XIPS/xip-shards.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md index 8ae6f79..7e67997 100644 --- a/XIPS/xip-shards.md +++ b/XIPS/xip-shards.md @@ -59,9 +59,9 @@ All XIPs that introduce backwards incompatibilities must include a section descr ## Reference Implementation All function within contract can use this line of code at the bottom of their function to forward funds to the **receive()** function to allocate funds. - +````solidity address(this).call{value: msg.value}; - +```` This contract bllow is an example of a lemonade stand contract that receives 100XDC for a glass of lemonade and divides those funds amongst 10 token holders ````solidity From 7d18ab6d5aa97a127f3b470d6165e52385ca8cc1 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Tue, 27 Sep 2022 21:51:11 -0700 Subject: [PATCH 4/8] Update xip-shards.md --- XIPS/xip-shards.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md index 7e67997..3363220 100644 --- a/XIPS/xip-shards.md +++ b/XIPS/xip-shards.md @@ -57,12 +57,13 @@ All XIPs that introduce backwards incompatibilities must include a section descr ## Reference Implementation +Github:https://github.com/CoinClubQuincy/XRC-SHARDS All function within contract can use this line of code at the bottom of their function to forward funds to the **receive()** function to allocate funds. ````solidity address(this).call{value: msg.value}; ```` -This contract bllow is an example of a lemonade stand contract that receives 100XDC for a glass of lemonade and divides those funds amongst 10 token holders +This contract bellow is an example of a lemonade stand contract that receives 100XDC for a glass of lemonade and divides those funds amongst 10 token holders ````solidity contract lemonadeStand is XRC100{ From 7978a8f0817abf28c0a9233f6d57a0056711b64b Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Tue, 27 Sep 2022 21:53:39 -0700 Subject: [PATCH 5/8] Update xip-shards.md --- XIPS/xip-shards.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md index 3363220..5bbe8ad 100644 --- a/XIPS/xip-shards.md +++ b/XIPS/xip-shards.md @@ -1,6 +1,6 @@ --- xip: 2 -title: SHARDS: Dividend Yielding Token Standard +title: SHARDS Dividend Yielding Token Standard status: Draft type: Standard Track category: XRC From 588b0d38fe379b3241f9951e6ef94c39b81ef240 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Tue, 27 Sep 2022 21:54:30 -0700 Subject: [PATCH 6/8] Update xip-shards.md --- XIPS/xip-shards.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md index 5bbe8ad..3243a70 100644 --- a/XIPS/xip-shards.md +++ b/XIPS/xip-shards.md @@ -36,12 +36,12 @@ uint public totalSupply; **View_Account** OPTIONAL - view tokens yield in contract - function View_Account(uint _token) external view returns(uint); + function View_Account(uint _token)public view returns(uint); **Redeem** In order to again dividends user MUST select the Redeem function - function Redeem()external returns(bool); + function Redeem()public returns(bool); From ca409799bcb09ff1149d86c00f7bfc3dc41feff1 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Wed, 5 Oct 2022 07:48:09 -0700 Subject: [PATCH 7/8] SHARDS => SHARES --- XIPS/xip-shards.md | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shards.md index 3243a70..0c3ee97 100644 --- a/XIPS/xip-shards.md +++ b/XIPS/xip-shards.md @@ -1,6 +1,7 @@ +<<<<<<< Updated upstream --- xip: 2 -title: SHARDS Dividend Yielding Token Standard +title: SHARES Dividend Yielding Token Standard status: Draft type: Standard Track category: XRC @@ -8,20 +9,36 @@ author: R. Quincy Jones | Github:@CoinClubQuincy | quincy@xdc.org created: 2022-9-25 --- -## What is a SHARD? +## What is a SHARE? -The SHARDS are built for Apps on the XDC Network that would like an autonomous means of distribution of Fees paid to the contract in the form of dividends to the token holders LIVE as the DApp gains usage.`. +The SHARES are built for Apps on the XDC Network that would like an autonomous means of distribution of Fees paid to the contract in the form of dividends to the token holders LIVE as the DApp gains usage.`. +======= +--- +**xip:** +**title:** SHARES - Dividend Yielding Token Standard +**description:** SHARES are a NFT token standard that provides a means for fees paid to the contract to become split among the token holders +**author:** R. Quincy Jones | Github:@CoinClubQuincy | quincy@xdc.org +**discussions-to:** +**status:** Draft +**type:** Standards Track +**category:** XRC +**created:** (2022-9-25) +**requires :** none +--- + +The standard provide here is built for Apps on the XDC Network that would like an autonomous means of distribution of Fees paid to the contract in the form of dividends to the token holders LIVE as the DApp gains usage.`. +>>>>>>> Stashed changes ## Abstract -The SHARD token is a decentralized share of ownership over a DApp and the profits generated by the DApp. The SHARD tokens are NFTs that can also be used within the DApp for governance and control over functions in the DApp. -SHARDs act as a new means for Apps,Startups,and Businesses to have an automated means to distribute XDC generated by their applications on the XDC Network. +The SHARE token is a decentralized share of ownership over a DApp and the profits generated by the DApp. The SHARE tokens are NFTs that can also be used within the DApp for governance and control over functions in the DApp. +SHARES act as a new means for Apps,Startups,and Businesses to have an automated means to distribute XDC generated by their applications on the XDC Network. ## Motivation -This standard allows for a new Market of autonomous Apps on XDC where applications can act entirely autonomous as the grow and allow for interested parties be able to own the DApps. currently Apps either direct funds to a founder contract or have a currency created with its own fees and incentives. The Idea with shards is a developer can create the app they want, accept fees and direct the fees to the shards while being able to sell parts of their app as it grows to help fund the further developements of additional contracts that contribute to the original shards or sell applications they have that get steady use. Globally developers can create DApps and sell them as they grow as well as redeem the yields generated by the contract. +This standard allows for a new Market of autonomous Apps on XDC where applications can act entirely autonomous as the grow and allow for interested parties be able to own the DApps. currently Apps either direct funds to a founder contract or have a currency created with its own fees and incentives. The Idea with SHARES is a developer can create the app they want, accept fees and direct the fees to the SHARES while being able to sell parts of their app as it grows to help fund the further developements of additional contracts that contribute to the original SHARES or sell applications they have that get steady use. Globally developers can create DApps and sell them as they grow as well as redeem the yields generated by the contract. ## Specification **Token Variables** -MUST - Developers must Name the DApp accordingly and define how many shards are created +MUST - Developers must Name the DApp accordingly and define how many SHARES are created - name: Name is required for naming DApp - symbol: Symbol is a short hand 3-5 character code to reference DApp Nnme. @@ -57,7 +74,7 @@ All XIPs that introduce backwards incompatibilities must include a section descr ## Reference Implementation -Github:https://github.com/CoinClubQuincy/XRC-SHARDS +Github:https://github.com/CoinClubQuincy/XRC-SHARES All function within contract can use this line of code at the bottom of their function to forward funds to the **receive()** function to allocate funds. ````solidity @@ -79,7 +96,7 @@ contract lemonadeStand is XRC100{ } ```` ## Security Considerations -**WARNING: Lost SHARDS will result in the portion of funds allocated to the token to also be lost** +**WARNING: Lost SHARES will result in the portion of funds allocated to the token to also be lost** ## Copyright Copyright and related rights waived via [CC0](../LICENSE.md). From 2bacc66676f6c308c37c1d80dcd56f9b68608118 Mon Sep 17 00:00:00 2001 From: Quincy Jones Date: Wed, 5 Oct 2022 07:49:07 -0700 Subject: [PATCH 8/8] SHARDS => SHARES --- XIPS/{xip-shards.md => xip-shares.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename XIPS/{xip-shards.md => xip-shares.md} (100%) diff --git a/XIPS/xip-shards.md b/XIPS/xip-shares.md similarity index 100% rename from XIPS/xip-shards.md rename to XIPS/xip-shares.md