Skip to content
Open
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
10 changes: 10 additions & 0 deletions assets/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"..\\node_modules\\mermaid\\*"
]
}
}
}
8 changes: 8 additions & 0 deletions config/_default/languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@
titleHome = "Doks thema"
footer = "Mogelijk gemaakt door <a href=\"https://www.netlify.com/\">Netlify</a>, <a href=\"https://gohugo.io/\">Hugo</a>, en <a href=\"https://getdoks.org/\">Doks</a>"
alertText = "Introductie van het Doks-kinderthema, verschillende DX + UX-updates en meer! <a class=\"alert-link stretched-link\" href=\"https://getdoks.org/blog/doks-v0.2/\">Bekijk Doks v0.2</a>"

[ko]
languageName = "Korean"
contentDir = "content/ko"
weight = 25
[ko.params]
languageISO = "Ko"
languageTag = "ko-KR"
156 changes: 156 additions & 0 deletions config/_default/menus/menus.ko.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
## Learn
[[main]]
name = "학습"
weight = 10
identifier = "learn"

[[main]]
parent = "learn"
name = "XPLA 체인에 대해서"
weight = 11
url = "/learn/learn/about-xpla-chain"

[[main]]
parent = "learn"
name = "브랜드 자산"
weight = 12
url = "/learn/learn/brand-assets"

[[main]]
parent = "learn"
name = "수수료"
weight = 13
url = "/learn/learn/fees"

[[main]]
parent = "learn"
name = "XPLA 볼트"
weight = 14
url = "/learn/learn/xpla-vault/contracts"

[[main]]
parent = "learn"
name = "용어집"
weight = 15
url = "/learn/learn/glossary"

## Develop
[[main]]
name = "개발"
weight = 20
identifier = "develop"

[[main]]
parent = "develop"
name = "시작하기"
weight = 21
url = "/develop/develop/get-started"

[[main]]
parent = "develop"
name = "가이드"
weight = 22
url = "/develop/develop/guides/sign-with-a-multisig-account"

[[main]]
parent = "develop"
name = "스마트 컨트랙트"
weight = 23
url = "/develop/develop/smart-contract-guide/overview"

[[main]]
parent = "develop"
name = "도구"
weight = 24
url = "/develop/develop/tools/which-tools-to-use"

[[main]]
parent = "develop"
name = "코어 모듈"
weight = 25
url = "/develop/develop/core-modules/overview"

[[main]]
parent = "develop"
name = "개발 레퍼런스"
weight = 25
url = "/develop/develop/dev-reference/developer-resources"

## Full Node
[[main]]
name = "풀 노드"
weight = 30
identifier = "full-node"

[[main]]
parent = "full-node"
name = "풀 노드 실행"
weight = 31
url = "/full-node/full-node/run-a-full-node/overview"

[[main]]
parent = "full-node"
name = "밸리데이터 관리"
weight = 32
url = "/full-node/full-node/manage-a-validator/overview"

[[main]]
parent = "full-node"
name = "리소스"
weight = 33
url = "/full-node/full-node/resources/text-tutorials"

## Guide
[[main]]
name = "가이드"
weight = 40
identifier = "guide"

[[main]]
parent = "guide"
name = "토큰 마이그레이션"
weight = 41
url = "/guide/guide/token-migration/about-token-migration"

## Ecosystem
[[main]]
name = "에코 시스템"
weight = 50
identifier = "ecosystem"

[[main]]
parent = "ecosystem"
name = "함께 만들기"
weight = 51
url = "/ecosystem/ecosystem/make-together"

[[main]]
parent = "ecosystem"
name = "기여하기"
weight = 52
url = "/ecosystem/ecosystem/discover-contribution"

[[main]]
parent = "ecosystem"
name = "행동 강령"
weight = 53
url = "/ecosystem/ecosystem/code-of-conduct"



[[social]]
name = "X"
pre = '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 4l11.733 16h4.267l-11.733 -16z"></path><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"></path></svg>'
url = "https://twitter.com/xpla_official"
weight = 10

[[social]]
name = "GitHub"
pre = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-github\"><path d=\"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22\"></path></svg>"
url = "https://github.com/xpladev/xpla"
weight = 30

# [[footer]]
# name = "Privacy"
# url = "/privacy-policy/"
# weight = 10
3 changes: 3 additions & 0 deletions content/ko/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title : "XPLA 문서"
---
4 changes: 4 additions & 0 deletions content/ko/develop/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: docs-develop
type: docs
---
5 changes: 5 additions & 0 deletions content/ko/develop/develop/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
weight: 20
title: Develop
type: docs
---
5 changes: 5 additions & 0 deletions content/ko/develop/develop/core-modules/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
weight: 40
title: Core Modules
type: docs
---
88 changes: 88 additions & 0 deletions content/ko/develop/develop/core-modules/auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
title: Auth
weight: 20
type: docs
---

{{< alert >}}
**Note**

XPLA Chain's auth module inherits from Cosmos SDK's [`auth`](https://docs.cosmos.network/v0.45/modules/auth/) module. This document is a stub and covers mainly important XPLA Chain-specific notes about how it is used.
{{< /alert >}}

XPLA Chain's Auth module extends the functionality from Cosmos SDK's `auth` module with a modified ante handler, which applies basic transaction validity checks, such as signatures, nonces, and auxiliary fields. This module also defines a special vesting account type that handles the logic for token vesting from the XPLA presale.

## Concepts

**Note:** The auth module is different from the [authz module]({{< ref "authz" >}}).

The differences are:

* `auth` - authentication of accounts and transactions for Cosmos SDK applications and is responsible for specifying the base transaction and account types.
* `authz` - authorization for accounts to perform actions on behalf of other accounts and enables a granter to grant authorizations to a grantee that allows the grantee to execute messages on behalf of the granter.

### Gas & Fees

Fees serve two purposes for an operator of the network.

Fees limit the growth of the state stored by every full node and allow for general purpose censorship of transactions of little economic value. Fees are best suited as an anti-spam mechanism where validators are disinterested in the use of the network and identities of users.

Fees are determined by the gas limits and gas prices transactions provide, where `fees = ceil(gasLimit * gasPrices)`. Txs incur gas costs for all state reads/writes, signature verification, as well as costs proportional to the tx size. Operators should set minimum gas prices when starting their nodes. They must set the unit costs of gas in each token denomination they wish to support:

`xplad start ... --minimum-gas-prices=850000000000axpla`

When adding transactions to mempool or gossipping transactions, validators check if the transaction's gas prices, which are determined by the provided fees, meet any of the validator's minimum gas prices. In other words, a transaction must provide a fee of at least one denomination that matches a validator's minimum gas price.

Tendermint does not currently provide fee based mempool prioritization, and fee based mempool filtering is local to node and not part of consensus. But with minimum gas prices set, such a mechanism could be implemented by node operators.

Because the market value for tokens will fluctuate, validators are expected to dynamically adjust their minimum gas prices to a level that would encourage the use of the network.


## Parameters

The subspace for the Auth module is `auth`.

```go
type Params struct {
MaxMemoCharacters uint64 `json:"max_memo_characters" yaml:"max_memo_characters"`
TxSigLimit uint64 `json:"tx_sig_limit" yaml:"tx_sig_limit"`
TxSizeCostPerByte uint64 `json:"tx_size_cost_per_byte" yaml:"tx_size_cost_per_byte"`
SigVerifyCostED25519 uint64 `json:"sig_verify_cost_ed25519" yaml:"sig_verify_cost_ed25519"`
SigVerifyCostSecp256k1 uint64 `json:"sig_verify_cost_secp256k1" yaml:"sig_verify_cost_secp256k1"`
}
```

### MaxMemoCharacters

The maximum permitted number of characters in the memo of a transaction.

- type: `uint64`
- genesis: `512`

### TxSigLimit

The maximum number of signers in a transaction. A single transaction can have multiple messages and multiple signers.

- type: `uint64`
- default: `7`

### TxSizeCostPerByte

The cost per byte used to compute the gas consumption of a transaction. `TxSizeCostPerByte * txsize`.

- type: `uint64`
- default: `10`

### SigVerifyCostED25519

The gas cost for verifying ED25519 signatures.

- type: `uint64`
- default: `590`

### SigVerifyCostSecp256k1

The gas cost for verifying Secp256k1 signatures.

- type: `uint64`
- default: `1000`
Loading