Fix Broken Docs References (#5436)
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
= Crowdsales
|
||||
|
||||
All crowdsale-related contracts were removed from the OpenZeppelin Contracts library on the https://forum.openzeppelin.com/t/openzeppelin-contracts-v3-0-beta-release/2256[v3.0.0 release] due to both a decline in their usage and the complexity associated with migrating them to Solidity v0.6.
|
||||
|
||||
They are however still available on the v2.5 release of OpenZeppelin Contracts, which you can install by running:
|
||||
|
||||
```console
|
||||
$ npm install @openzeppelin/contracts@v2.5
|
||||
```
|
||||
|
||||
Refer to the https://docs.openzeppelin.com/contracts/2.x/crowdsales[v2.x documentation] when working with them.
|
||||
@ -1,19 +0,0 @@
|
||||
= Drafts
|
||||
|
||||
All draft contracts were either moved into a different directory or removed from the OpenZeppelin Contracts library on the https://forum.openzeppelin.com/t/openzeppelin-contracts-v3-0-beta-release/2256[v3.0.0 release].
|
||||
|
||||
* `ERC20Migrator`: removed.
|
||||
* xref:api:token/ERC20.adoc#ERC20Snapshot[`ERC20Snapshot`]: moved to `token/ERC20`.
|
||||
* `ERC20Detailed` and `ERC1046`: removed.
|
||||
* `TokenVesting`: removed. Pending a replacement that is being discussed in https://github.com/OpenZeppelin/openzeppelin-contracts/issues/1214[`#1214`].
|
||||
* xref:api:utils.adoc#Counters[`Counters`]: moved to xref:api:utils.adoc[`utils`].
|
||||
* xref:api:utils.adoc#Strings[`Strings`]: moved to xref:api:utils.adoc[`utils`].
|
||||
* xref:api:utils.adoc#SignedSafeMath[`SignedSafeMath`]: moved to xref:api:utils.adoc[`utils`].
|
||||
|
||||
Removed contracts are still available on the v2.5 release of OpenZeppelin Contracts, which you can install by running:
|
||||
|
||||
```console
|
||||
$ npm install @openzeppelin/contracts@v2.5
|
||||
```
|
||||
|
||||
Refer to the xref:2.x@contracts:api:drafts.adoc[v2.x documentation] when working with them.
|
||||
@ -52,7 +52,7 @@ If your project already has a live token that does not include ERC20Votes and is
|
||||
include::api:example$governance/MyTokenWrapped.sol[]
|
||||
```
|
||||
|
||||
NOTE: The only other source of voting power available in OpenZeppelin Contracts currently is xref:api:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]. ERC-721 tokens that don't provide this functionality can be wrapped into a voting tokens using a combination of xref:api:token/ERC721.adoc#ERC721Votes[`ERC721Votes`] and xref:api:token/ERC721Wrapper.adoc#ERC721Wrapper[`ERC721Wrapper`].
|
||||
NOTE: The only other source of voting power available in OpenZeppelin Contracts currently is xref:api:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]. ERC-721 tokens that don't provide this functionality can be wrapped into a voting tokens using a combination of xref:api:token/ERC721.adoc#ERC721Votes[`ERC721Votes`] and xref:api:token/ERC721.adoc#ERC721Wrapper[`ERC721Wrapper`].
|
||||
|
||||
NOTE: The internal clock used by the token to store voting balances will dictate the operating mode of the Governor contract attached to it. By default, block numbers are used. Since v4.9, developers can override the xref:api:interfaces.adoc#IERC6372[IERC6372] clock to use timestamps instead of block numbers.
|
||||
|
||||
|
||||
4
docs/templates/contract.hbs
vendored
4
docs/templates/contract.hbs
vendored
@ -2,6 +2,10 @@
|
||||
:{{name}}: pass:normal[xref:#{{anchor}}[`++{{name}}++`]]
|
||||
{{/each}}
|
||||
|
||||
{{#each functions}}
|
||||
:{{fullname}}: pass:normal[xref:#{{anchor}}[`++{{name}}++`]]
|
||||
{{/each}}
|
||||
|
||||
[.contract]
|
||||
[[{{anchor}}]]
|
||||
=== `++{{name}}++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v{{oz-version}}/{{__item_context.file.absolutePath}}[{github-icon},role=heading-link]
|
||||
|
||||
16
docs/templates/properties.js
vendored
16
docs/templates/properties.js
vendored
@ -17,6 +17,22 @@ module.exports.anchor = function anchor({ item, contract }) {
|
||||
return res;
|
||||
};
|
||||
|
||||
module.exports.fullname = function fullname({ item }) {
|
||||
let res = '';
|
||||
res += item.name;
|
||||
if ('parameters' in item) {
|
||||
const signature = item.parameters.parameters.map(v => v.typeName.typeDescriptions.typeString).join(',');
|
||||
res += slug('(' + signature + ')');
|
||||
}
|
||||
if (isNodeType('VariableDeclaration', item)) {
|
||||
res += '-' + slug(item.typeName.typeDescriptions.typeString);
|
||||
}
|
||||
if (res.charAt(res.length - 1) === '-') {
|
||||
return res.slice(0, -1);
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
module.exports.inheritance = function ({ item, build }) {
|
||||
if (!isNodeType('ContractDefinition', item)) {
|
||||
throw new Error('used inherited-items on non-contract');
|
||||
|
||||
Reference in New Issue
Block a user