Skip to content

Commit

Permalink
Merge pull request #465 from nervosnetwork/merge-develop
Browse files Browse the repository at this point in the history
Merge develop
  • Loading branch information
RetricSu authored Oct 8, 2024
2 parents 01aef10 + 72ea5a9 commit 067e3bc
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 62 deletions.
88 changes: 44 additions & 44 deletions examples/simple-lock/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/simple-lock/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@ckb-ccc/core": "^0.0.14-alpha.0",
"next": "14.2.3",
"next": "14.2.10",
"react": "^18",
"react-dom": "^18"
},
Expand Down
20 changes: 11 additions & 9 deletions website/docs/ecosystem/EcoCardContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ const ecoCardContents: EcoCardProps[] = [
},
],
},
{
title: "Nervos Scan",
description: "A CKB Explorer produced with love by 7774.bit",
href: "https://nervosscan.com/",
bannerSrc: "nervosscan",
tags: ["Explorer"],
links: [{ label: "website", link: "https://nervosscan.com/" }],
},
{
title: "Neuron",
description:
Expand All @@ -247,7 +239,17 @@ const ecoCardContents: EcoCardProps[] = [
},
],
},

{
title: "NervDAO",
description: "A Universal Wallet-Interfaced Nervos DAO Portal",
href: "https://www.nervdao.com/",
bannerSrc: "nervdao",
tags: ["DApp"],
links: [
{ label: "website", link: "https://www.nervdao.com/" },
{ label: "github", link: "https://github.com/ckb-ecofund/nervdao" },
],
},
{
title: "CKBull",
description:
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started/how-ckb-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ A Script in CKB is a binary executable that can be executed on-chain. It is a

There’re two main types of Scripts:

- **Lock Script**: A required Script controlling the ownership and access to a Cell, ensuring only authorized users can spend its contents.
- **Lock Script**: A required Script controlling the ownership and access to a Cell, ensuring only authorized users can spend/consume the Cell.
- **Type Script**: An optional Script dictating how a Cell can be used or modified in a transaction.

### CKB System Script
Expand Down
4 changes: 2 additions & 2 deletions website/docs/script/intro-to-script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ A Script can be one of two types:
- **Lock Script** - Used to control ownership and access to a Cell.
- **Type Script** - Used to control how a Cell is used in a transaction.

In most cases, Lock Script works the same with Type Script. The difference is that, only the Lock Script from the input Cells will be executed in the transaction, while the Type Script from both the input Cells and output Cells will be executed in the transaction.
In most cases, Lock Script and Type Script function similarly. The only key difference is that, the output Cells' Lock Scripts will NOT be executed in a transaction, whereas the input Cells' Lock Scripts, the input Cells' Type Scripts, and the output Cells' Type Scripts will be executed.

This difference has lead to the different usecases of Lock Script and Type Script as we have mentioned above. Lock Script is often used to control owner ship of a Cell while Type Script defines what kinds of changes of a Cell is valid for the transaction.
This difference has led to the different usecases of Lock Script and Type Script as we have mentioned above. Lock Script is often used to control owner ship of a Cell while Type Script defines what kinds of changes of a Cell is valid for the transaction.

## Script Structure

Expand Down
2 changes: 1 addition & 1 deletion website/docs/sdk-and-devtool/cli-tool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Command-line tools are often used by developers to perform specific blockchain t

[ckb-cli](https://github.com/nervosnetwork/ckb-cli) is a CKB command-line tool developed in Rust.

If you need to interact with Mainnet blockchain from the command line, `ckb-cli` is an ideal choice to manager accounts, deploy Scripts and send Transactions.
If you need to interact with Mainnet blockchain from the command line, `ckb-cli` is an ideal choice to manage accounts, deploy Scripts and send Transactions.

### Features

Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs.nervos.org",
"version": "2.10.0",
"version": "2.11.0",
"description": "Official docs website for Nervos CKB",
"license": "MIT",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions website/static/svg/banner-nervape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 067e3bc

Please sign in to comment.