Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Gcharang #124

Merged
merged 6 commits into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ yarn-error.log*

# Local build files
/docs/.vuepress/dist/

# Dev files
/docs/.vuepress/algolia-secret.js
6 changes: 4 additions & 2 deletions algolia-key.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh

echo 'var algoliaSecret = { key : "'$ALGOLIAKEY'" }' > ./docs/.vuepress/algolia-secret.js
echo "module.exports = algoliaSecret;" >> ./docs/.vuepress/algolia-secret.js
file="./docs/.vuepress/algolia-secret.js"
rm -f $file
echo 'var algoliaSecret = { key : "'$ALGOLIAKEY'" }' > $file
echo "module.exports = algoliaSecret;" >> $file
2 changes: 2 additions & 0 deletions docs/.vuepress/algolia-secret.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var algoliaSecret = { key : process.env.apiKey }
module.exports = algoliaSecret;
37 changes: 36 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,41 @@ module.exports = {
rel: "icon",
href: "KMD_Mark_Black.png"
}
],
[
"meta",
{
name: "twitter:card",
content: "summary_large_image"
}
],
[
"meta",
{
name: "twitter:site",
content: "@komodoplatform"
}
],
[
"meta",
{
name: "twitter:title",
content: "Komodo Developer Documentation"
}
],
[
"meta",
{
name: "twitter:description",
content: "Documentation for developers building on the Komodo Platform"
}
],
[
"meta",
{
name: "twitter:image",
content: "https://developers.komodoplatform.com/start-here-pics/Dev_Docs_Introduction_small.png"
}
]
],
title: "Komodo Documentation",
Expand Down Expand Up @@ -58,4 +93,4 @@ module.exports = {
"/": sidebarImport
}
}
};
};
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
8 changes: 4 additions & 4 deletions docs/basic-docs/antara/antara-setup/antara-customizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This makes the process of lowering the difficulty easier and faster, as the DAA

###### After the 31st of October, 2019

- all the newly created Smart Chains that are 100% PoW have AdaptivePoW enabled by default
- all the newly created Smart Chains that are 100% PoW have AdaptivePoW enabled by default
- a newly created Smart Chain that does not want this feature should set the parameter as follows: `-ac_adaptivepow=-1`
- existing Smart Chains are not affected

Expand Down Expand Up @@ -134,7 +134,7 @@ However, coins are not fungible, and therefore cannot be transferred between blo

Setting the value of `ac_cc` to any value greater than or equal to `100` will permit cross-chain interaction with any Smart Chain that has the same `ac_cc` value and is secured by notary nodes with the same `pubkey`.

All Smart Chains that have the same `ac_cc (>= 100)` value form a cluster, where the base tokens of all the chains in the cluster are fungible via the burn protocol.
All Smart Chains that have the same `ac_cc (>= 100)` value form a cluster, where the base tokens of all the chains in the cluster are fungible via the [burn protocol](../../smart-chains/smart-chain-api/crosschain.html).

For example, a Smart Chain set to `ac_cc=201` in its parameters can interact with other Smart Chains with `ac_cc=201` on the same notary-node network, but cannot interact with a Smart Chain set to `ac_cc=301`.

Expand All @@ -146,7 +146,7 @@ For example, a Smart Chain set to `ac_cc=201` in its parameters can interact wit
- If <b>N > 0</b>, Antara is enabled
- If <b>N = 1</b>, on-chain Antara is active, cross-chain validation is disabled
- If <b>N >= 2 and <= 99</b>, the chain allows for cross-chain contracts between all other chains bearing the same N value. The base coins in each Smart Chain are non-fungible across chains.
- If <b>N >= 100</b>, the chain can form a cluster with all other chains with the same N value and on the same dPoW notarization network. The base coins of all chains in the cluster are fungible via the burn protocol.
- If <b>N >= 100</b>, the chain can form a cluster with all other chains with the same N value and on the same dPoW notarization network. The base coins of all chains in the cluster are fungible via the [burn protocol](../../smart-chains/smart-chain-api/crosschain.html).
:::

#### :pushpin: Examples
Expand Down Expand Up @@ -407,7 +407,7 @@ Use `ac_script` to send the founder's reward to a multi-signature address.

Set `ac_founders=1` to stay compatible with most stratum implementations. Any other value requires team member @blackjok3r's fork of knomp using the [disable-cb feature](https://github.com/blackjok3rtt/knomp#disable-coinbase-mode). Please reach out to our team on [discord](https://komodoplatform.com/discord) if you have further questions about how to set up a stratum.

## ac_founders_reward
## ac\_founders\_reward

The `ac_founders_reward` parameter functions in a manner that is similar to a combination of the `ac_perc` and `ac_founders` parameters.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ As the eval code must range between `0` and `255`, a Smart Chain can have up to

The developer adds validation code that will be executed any time the daemon encounters a transaction bearing the relevant module's eval code.

This is where the true power of CC begins. When validating a normal transaction, the daemon has access only to information included in the transaction itself. With a CC transaction, however, the daemon is running arbitrary code, and therefore anything is possible. The validation code can look trough the blockchain history, observe transactions in the mempool, and even utilize Antara's cross-chain technology.
This is where the true power of CC begins. When validating a normal transaction, the daemon has access only to information included in the transaction itself. With a CC transaction, however, the daemon is running arbitrary code, and therefore anything is possible. The validation code can look through the blockchain history, observe transactions in the mempool, and even utilize Antara's cross-chain technology.

Technically, OP_CCC scripts do not have a required structure. The scripts only need to follow the general structure of the initial layout. The developer may follow the general guideline, as provided in our templates and tutorials. This allows the developer to code and debug their OP_CCC related modules in an efficient manner.

Expand Down
3 changes: 2 additions & 1 deletion docs/basic-docs/smart-chains/smart-chain-setup/nspv.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ git clone https://github.com/jl777/libnspv
cd libnspv
./autogen.sh
./configure
+./onetime # compiles cc support
make
```

Expand Down Expand Up @@ -142,7 +143,7 @@ curl --data-binary '{"jsonrpc": "2.0", "id":"curltest", "method": "spentinfo", "

#### Accessing localhost in the Browser

To access an nSPV client using a browser, create a url that uses `http://126.0.0.1:<insert_port>/api/` as the base url, and add the `rpc_name/` and any relevant additional `parameters/` as additional url directions. See the example below.
To access an nSPV client using a browser, create a url that uses `http://127.0.0.1:<insert_port>/api/` as the base url, and add the `rpc_name/` and any relevant additional `parameters/` as additional url directions. See the example below.

##### Example

Expand Down