Skip to content

Commit

Permalink
feat: update links for docs.kaia.io/learn
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TanHoang committed Oct 10, 2024
1 parent a8c8c75 commit 4dd843d
Show file tree
Hide file tree
Showing 27 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/rpc/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function main() {
let provider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io/");

// The full list of JSON-RPC is available at:
// https://archive-docs.klaytn.foundation/content/dapp/json-rpc/api-references
// https://docs.kaia.io/references/json-rpc/references
const num = await provider.klay.blockNumber();
console.log("klay.blockNumber", num);

Expand Down
2 changes: 1 addition & 1 deletion ethers-ext/example/v6/rpc/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function main() {
let provider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io/");

// The full list of JSON-RPC is available at:
// https://archive-docs.klaytn.foundation/content/dapp/json-rpc/api-references
// https://docs.kaia.io/references/json-rpc/references
const num = await provider.klay.blockNumber();
console.log("klay.blockNumber", num);

Expand Down
12 changes: 6 additions & 6 deletions js-ext-core/src/accountkey/accountkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AccountKeyType, HexStr, RLP } from "../util";

import { AccountKey } from "./factory";

// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts#accountkeynil
// https://docs.kaia.io/learn/accounts/#accountkeynil-
export class AccountKeyNil extends AccountKey {
static type = AccountKeyType.Nil;
static typeName = "AccountKeyNil";
Expand All @@ -25,7 +25,7 @@ export class AccountKeyNil extends AccountKey {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts#accountkeylegacy
// https://docs.kaia.io/learn/accounts/#accountkeylegacy-
export class AccountKeyLegacy extends AccountKey {
static type = AccountKeyType.Legacy;
static typeName = "AccountKeyLegacy";
Expand All @@ -45,7 +45,7 @@ export class AccountKeyLegacy extends AccountKey {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts#accountkeypublic
// https://docs.kaia.io/learn/accounts/#accountkeypublic-
export class AccountKeyPublic extends AccountKey {
static type = AccountKeyType.Public;
static typeName = "AccountKeyPublic";
Expand All @@ -72,7 +72,7 @@ export class AccountKeyPublic extends AccountKey {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts#accountkeyfail
// https://docs.kaia.io/learn/accounts/#accountkeyfail-
export class AccountKeyFail extends AccountKey {
static type = AccountKeyType.Fail;
static typeName = "AccountKeyFail";
Expand All @@ -92,7 +92,7 @@ export class AccountKeyFail extends AccountKey {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts#accountkeyweightedmultisig
// https://docs.kaia.io/learn/accounts/#accountkeyweightedmultisig-
export class AccountKeyWeightedMultiSig extends AccountKey {
static type = AccountKeyType.WeightedMultiSig;
static typeName = "AccountKeyWeightedMultiSig";
Expand Down Expand Up @@ -124,7 +124,7 @@ export class AccountKeyWeightedMultiSig extends AccountKey {
}


// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts#accountkeyrolebased
// https://docs.kaia.io/learn/accounts/#accountkeyrolebased-
export class AccountKeyRoleBased extends AccountKey {
static type = AccountKeyType.RoleBased;
static typeName = "AccountKeyRoleBased";
Expand Down
4 changes: 2 additions & 2 deletions js-ext-core/src/accountkey/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { hexValue } from "@ethersproject/bytes";
import { FieldSet, FieldSetFactory, Fields } from "../field";
import { AccountKeyType, HexStr, RLP, getTypePrefix, isKlaytnAccountKeyType } from "../util";

// A typed AccountKey for Klatyn is a FieldSet.
// https://archive-docs.klaytn.foundation/content/klaytn/design/accounts
// A typed AccountKey for Kaia is a FieldSet.
// https://docs.kaia.io/learn/accounts/
export abstract class AccountKey extends FieldSet {
// RLP encoding for constructing AccountUpdate transactions.
abstract toRLP(): string;
Expand Down
12 changes: 6 additions & 6 deletions js-ext-core/src/tx/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { TxType } from "../util";

import { KlaytnTx } from "./factory";

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypevaluetransfer
// https://docs.kaia.io/learn/transactions/basic#txtypevaluetransfer-
export class TxTypeValueTransfer extends KlaytnTx {
static type = TxType.ValueTransfer;
static typeName = "TxTypeValueTransfer";
Expand Down Expand Up @@ -48,7 +48,7 @@ export class TxTypeValueTransfer extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypevaluetransfermemo
// https://docs.kaia.io/learn/transactions/basic#txtypevaluetransfermemo-
export class TxTypeValueTransferMemo extends KlaytnTx {
static type = TxType.ValueTransferMemo;
static typeName = "TxTypeValueTransferMemo";
Expand Down Expand Up @@ -85,7 +85,7 @@ export class TxTypeValueTransferMemo extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypesmartcontractdeploy
// https://docs.kaia.io/learn/transactions/basic#txtypesmartcontractdeploy-
export class TxTypeSmartContractDeploy extends KlaytnTx {
static type = TxType.SmartContractDeploy;
static typeName = "TxTypeSmartContractDeploy";
Expand Down Expand Up @@ -124,7 +124,7 @@ export class TxTypeSmartContractDeploy extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypesmartcontractexecution
// https://docs.kaia.io/learn/transactions/basic#txtypesmartcontractexecution-
export class TxTypeSmartContractExecution extends KlaytnTx {
static type = TxType.SmartContractExecution;
static typeName = "TxTypeSmartContractExecution";
Expand Down Expand Up @@ -161,7 +161,7 @@ export class TxTypeSmartContractExecution extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypeaccountupdate
// https://docs.kaia.io/learn/transactions/basic#txtypeaccountupdate-
export class TxTypeAccountUpdate extends KlaytnTx {
static type = TxType.AccountUpdate;
static typeName = "TxTypeAccountUpdate";
Expand Down Expand Up @@ -196,7 +196,7 @@ export class TxTypeAccountUpdate extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypecancel
// https://docs.kaia.io/learn/transactions/basic#txtypecancel-
export class TxTypeCancel extends KlaytnTx {
static type = TxType.Cancel;
static typeName = "TxTypeCancel";
Expand Down
12 changes: 6 additions & 6 deletions js-ext-core/src/tx/feedelegated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { RLP, TxType } from "../util";

import { KlaytnTx } from "./factory";

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/fee-delegation#txtypefeedelegatedvaluetransfer
// https://docs.kaia.io/learn/transactions/fee-delegation#txtypefeedelegatedvaluetransfer-
export class TxTypeFeeDelegatedValueTransfer extends KlaytnTx {
static type = TxType.FeeDelegatedValueTransfer;
static typeName = "TxTypeFeeDelegatedValueTransfer";
Expand Down Expand Up @@ -65,7 +65,7 @@ export class TxTypeFeeDelegatedValueTransfer extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/fee-delegation#txtypefeedelegatedvaluetransfermemo
// https://docs.kaia.io/learn/transactions/fee-delegation#txtypefeedelegatedvaluetransfermemo-
export class TxTypeFeeDelegatedValueTransferMemo extends KlaytnTx {
static type = TxType.FeeDelegatedValueTransferMemo;
static typeName = "TxTypeFeeDelegatedValueTransferMemo";
Expand Down Expand Up @@ -119,7 +119,7 @@ export class TxTypeFeeDelegatedValueTransferMemo extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/fee-delegation#txtypefeedelegatedsmartcontractdeploy
// https://docs.kaia.io/learn/transactions/fee-delegation#txtypefeedelegatedsmartcontractdeploy-
export class TxTypeFeeDelegatedSmartContractDeploy extends KlaytnTx {
static type = TxType.FeeDelegatedSmartContractDeploy;
static typeName = "TxTypeFeeDelegatedSmartContractDeploy";
Expand Down Expand Up @@ -176,7 +176,7 @@ export class TxTypeFeeDelegatedSmartContractDeploy extends KlaytnTx {
}


// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/fee-delegation#txtypefeedelegatedsmartcontractexecution
// https://docs.kaia.io/learn/transactions/fee-delegation#txtypefeedelegatedsmartcontractexecution-
export class TxTypeFeeDelegatedSmartContractExecution extends KlaytnTx {
static type = TxType.FeeDelegatedSmartContractExecution;
static typeName = "TxTypeFeeDelegatedSmartContractExecution";
Expand Down Expand Up @@ -230,7 +230,7 @@ export class TxTypeFeeDelegatedSmartContractExecution extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/fee-delegation#txtypefeedelegatedaccountupdate
// https://docs.kaia.io/learn/transactions/fee-delegation#txtypefeedelegatedaccountupdate-
export class TxTypeFeeDelegatedAccountUpdate extends KlaytnTx {
static type = TxType.FeeDelegatedAccountUpdate;
static typeName = "TxTypeFeeDelegatedAccountUpdate";
Expand Down Expand Up @@ -282,7 +282,7 @@ export class TxTypeFeeDelegatedAccountUpdate extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/fee-delegation#txtypefeedelegatedcancel
// https://docs.kaia.io/learn/transactions/fee-delegation#txtypefeedelegatedcancel-
export class TxTypeFeeDelegatedCancel extends KlaytnTx {
static type = TxType.FeeDelegatedCancel;
static typeName = "TxTypeFeeDelegatedCancel";
Expand Down
12 changes: 6 additions & 6 deletions js-ext-core/src/tx/partialfeedelegated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { RLP, TxType } from "../util";
import { KlaytnTx } from "./factory";


// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/partial-fee-delegation#txtypefeedelegatedvaluetransferwithratio
// https://docs.kaia.io/learn/transactions/partial-fee-delegation#txtypefeedelegatedvaluetransferwithratio-
export class TxTypeFeeDelegatedValueTransferWithRatio extends KlaytnTx {
static type = TxType.FeeDelegatedValueTransferWithRatio;
static typeName = "TxTypeFeeDelegatedValueTransferWithRatio";
Expand Down Expand Up @@ -67,7 +67,7 @@ export class TxTypeFeeDelegatedValueTransferWithRatio extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/partial-fee-delegation#txtypefeedelegatedvaluetransfermemowithratio
// https://docs.kaia.io/learn/transactions/partial-fee-delegation#txtypefeedelegatedvaluetransfermemowithratio-
export class TxTypeFeeDelegatedValueTransferMemoWithRatio extends KlaytnTx {
static type = TxType.FeeDelegatedValueTransferMemoWithRatio;
static typeName = "TxTypeFeeDelegatedValueTransferMemoWithRatio";
Expand Down Expand Up @@ -122,7 +122,7 @@ export class TxTypeFeeDelegatedValueTransferMemoWithRatio extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/partial-fee-delegation#txtypefeedelegatedsmartcontractdeploywithratio
// https://docs.kaia.io/learn/transactions/partial-fee-delegation#txtypefeedelegatedsmartcontractdeploywithratio-
export class TxTypeFeeDelegatedSmartContractDeployWithRatio extends KlaytnTx {
static type = TxType.FeeDelegatedSmartContractDeployWithRatio;
static typeName = "TxTypeFeeDelegatedSmartContractDeployWithRatio";
Expand Down Expand Up @@ -179,7 +179,7 @@ export class TxTypeFeeDelegatedSmartContractDeployWithRatio extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/partial-fee-delegation#txtypefeedelegatedsmartcontractexecutionwithratio
// https://docs.kaia.io/learn/transactions/partial-fee-delegation#txtypefeedelegatedsmartcontractexecutionwithratio-
export class TxTypeFeeDelegatedSmartContractExecutionWithRatio extends KlaytnTx {
static type = TxType.FeeDelegatedSmartContractExecutionWithRatio;
static typeName = "TxTypeFeeDelegatedSmartContractExecutionWithRatio";
Expand Down Expand Up @@ -235,7 +235,7 @@ export class TxTypeFeeDelegatedSmartContractExecutionWithRatio extends KlaytnTx
}


// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/partial-fee-delegation#txtypefeedelegatedaccountupdatewithratio
// https://docs.kaia.io/learn/transactions/partial-fee-delegation#txtypefeedelegatedaccountupdatewithratio-
export class TxTypeFeeDelegatedAccountUpdateWithRatio extends KlaytnTx {
static type = TxType.FeeDelegatedAccountUpdateWithRatio;
static typeName = "TxTypeFeeDelegatedAccountUpdateWithRatio";
Expand Down Expand Up @@ -288,7 +288,7 @@ export class TxTypeFeeDelegatedAccountUpdateWithRatio extends KlaytnTx {
}
}

// https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/partial-fee-delegation#txtypefeedelegatedcancelwithratio
// https://docs.kaia.io/learn/transactions/partial-fee-delegation#txtypefeedelegatedcancelwithratio-
export class TxTypeFeeDelegatedCancelWithRatio extends KlaytnTx {
static type = TxType.FeeDelegatedCancelWithRatio;
static typeName = "TxTypeFeeDelegatedCancelWithRatio";
Expand Down
2 changes: 1 addition & 1 deletion js-ext-core/test/tx.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface TestCase {
txHashRLP: string,
}

// Test cases from https://archive-docs.klaytn.foundation/content/klaytn/design/transactions
// Test cases from https://docs.kaia.io/learn/transactions-
const testcases: TestCase[] = [
{
clazz: TxTypeValueTransfer,
Expand Down
2 changes: 1 addition & 1 deletion web3js-ext/example/rpc/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const web3 = new Web3(provider);

async function main() {
// The full list of JSON-RPC is available at:
// https://archive-docs.klaytn.foundation/content/dapp/json-rpc/api-references
// https://docs.kaia.io/references/json-rpc/references
const num = await web3.klay.blockNumber();
console.log("klay.blockNumber", num);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
class AccountUpdateTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypeaccountupdate
https://docs.kaia.io/learn/transactions/basic#txtypeaccountupdate-
"""

transaction_type = 32 # '0x08'
Expand Down Expand Up @@ -251,7 +251,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-sendertxhash-5
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-sendertxhash-5-
"""
if "key" not in self.dictionary:
raise KeyError("not found key field in AccountUpdateTransaction")
Expand Down
4 changes: 2 additions & 2 deletions web3py-ext/web3py_ext/transaction/basic/cancel_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
class CancelTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypecancel
https://docs.kaia.io/learn/transactions/basic#txtypecancel-
"""

transaction_type = 56 # '0x38'
Expand Down Expand Up @@ -240,7 +240,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-signature-1
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-signature-1-
"""
# Remove signature and chainId fields.
transaction_without_signature_fields = dissoc(self.dictionary, "signatures", "chainId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
class ChaindataAnchoringTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypechaindataanchoring
https://docs.kaia.io/learn/transactions/basic#txtypechaindataanchoring-
"""

transaction_type = 72 # '0x48'
Expand Down Expand Up @@ -246,7 +246,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-signature-1
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-signature-1-
"""
# Remove signature and chainId fields.
transaction_without_signature_fields = dissoc(self.dictionary, "signatures", "chainId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
class SmartContractDeployTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypevaluetransfer
https://docs.kaia.io/learn/transactions/basic#txtypevaluetransfer-
"""

transaction_type = 40 # '0x28'
Expand Down Expand Up @@ -266,7 +266,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-sendertxhash-3
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-sendertxhash-3-
"""
# Remove signature fields.
transaction_without_signature_fields = dissoc(self.dictionary, "signatures", "chainId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
class SmartContractExecutionTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypevaluetransfermemo
https://docs.kaia.io/learn/transactions/basic#txtypevaluetransfermemo-
"""

transaction_type = 48 # '0x30'
Expand Down Expand Up @@ -259,7 +259,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-sendertxhash-4
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-sendertxhash-4-
"""
# Remove signature and chainId fields.
transaction_without_signature_fields = dissoc(self.dictionary, "signatures", "chainId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
class ValueTransferTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypevaluetransfer
https://docs.kaia.io/learn/transactions/basic#txtypevaluetransfer-
"""

transaction_type = 8 # '0x08'
Expand Down Expand Up @@ -243,7 +243,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-signature-1
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-signature-1-
"""
# Remove signature and chainId fields.
transaction_without_signature_fields = dissoc(self.dictionary, "signatures", "chainId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
class ValueTransferWithMemoTransaction(_TypedTransactionImplementation):
"""
Represents a klaytn value transafer transaction type.
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#txtypevaluetransfermemo
https://docs.kaia.io/learn/transactions/basic#txtypevaluetransfermemo-
"""

transaction_type = 16 # '0x10'
Expand Down Expand Up @@ -251,7 +251,7 @@ def as_dict(self) -> Dict[str, Any]:

def hash(self) -> bytes:
"""
https://archive-docs.klaytn.foundation/content/klaytn/design/transactions/basic#rlp-encoding-for-sendertxhash-2
https://docs.kaia.io/learn/transactions/basic#rlp-encoding-for-sendertxhash-2-
"""
# Remove signature and chainId fields.
transaction_without_signature_fields = dissoc(self.dictionary, "signatures", "chainId")
Expand Down
Loading

0 comments on commit 4dd843d

Please sign in to comment.