Solidity
From Wikipedia, the free encyclopedia
| 登場時期 | |
|---|---|
| 最新リリース | 0.8.32、0.8.33 / 2025年12月18日[1] |
| 影響を受けた言語 | JavaScript, C++, Eiffel, Python |
| ライセンス |
GPL 3.0 |
| ウェブサイト | |
| テンプレートを表示 | |
Solidityとは、ブロックチェーン上で実行されるスマート・コントラクトを記述するための手続き型プログラミング言語である。キャビン・ウッドによって作成された。JavaScriptやC++に似た構文を持つとされる[2]。SolidityによってコンパイルしたプログラムはEthereum Virtual Machine上での実行が想定されている[3]。オープンソースでもある。
Solidityのプログラムの例は以下のようになっている[4]。
pragma solidity >= 0.7.0 <0.8.0;
contract Coin {
// The keyword "public" makes variables
// accessible from other contracts
address public minter;
mapping (address => uint) public balances;
// Events allow clients to react to specific
// contract changes you declare
event Sent (address from, address to, uint amount);
// Constructor code is only run when the contract
// is created
constructor() public {
minter = msg.sender;
}
// Sends an amount of newly created coins to an address
// Can only be called by the contract creator
function mint(address receiver, uint amount) public {
require(msg.sender == minter);
require(amount < 1e60);
balances[receiver] += amount;
}
// Sends an amount of existing coins
// from any caller to an address
function send(address receiver, uint amount) public {
require(amount <= balances[msg.sender], "Insufficient balance.");
balances[msg.sender] -= amount;
balances[receiver] += amount;
emit Sent (msg.sender, receiver, amount);
}
}
実行環境
脚注
- ↑ 出典URL: https://github.com/argotorg/solidity/releases/tag/v0.8.32, 閲覧日: 2025年12月19日, 出版日: 2025年12月18日, 題名: Release 0.8.32
- ↑ Antonopoulos, Andreas『マスタリング・イーサリアム ―スマートコントラクトとDAppの構築』Gavin Wood, 宇野 雅晴, 鳩貝 淳一郎, 中城 元臣, 落合 渉悟, 落合 庸介(1st edition)、オイラリージャパン、[Erscheinungsort nicht ermittelbar]、2019年、xxxix頁。ISBN 978-4-87311-896-3。OCLC 1226442243。https://www.worldcat.org/oclc/1226442243。
- ↑ “Hyperledger Fabric code pattern - Create a blockchain app for loyalty points” (英語). IBM Developer. 2021年12月29日閲覧。
- ↑ “Introduction to Smart Contracts — Solidity 0.5.14 documentation”. docs.soliditylang.org. 2021年12月29日閲覧。
- ↑ Antonopoulos, Andreas『マスタリング・イーサリアム ―スマートコントラクトとDAppの構築』Gavin Wood, 宇野 雅晴, 鳩貝 淳一郎, 中城 元臣, 落合 渉悟, 落合 庸介(1st edition)、オイラリージャパン、[Erscheinungsort nicht ermittelbar]、2019年、139頁。ISBN 978-4-87311-896-3。OCLC 1226442243。https://www.worldcat.org/oclc/1226442243。
- ↑ binance-chain/bsc, binance-chain, (2021-12-29), https://github.com/binance-chain/bsc 2021年12月29日閲覧。
- ↑ “What is Tendermint | Tendermint Core”. docs.tendermint.com. 2021年12月29日閲覧。
- ↑ Vigna, Michael J. Casey and Paul (2014年11月12日). “BitBeat: Bitcoin 2.0 Firm Counterparty Adopts Ethereum’s Software” (英語). Wall Street Journal. ISSN 0099-9660. https://www.wsj.com/articles/BL-MBB-29630 2021年12月29日閲覧。
- ↑ Swan, Melanie (2015). Blockchain : blueprint for a new economy (First edition ed.). [Sebastopol, Calif.]. ISBN 978-1-4919-2047-3. OCLC 900781291. https://www.worldcat.org/oclc/900781291
- ↑ “What is Avalanche? | Avalanche Docs” (英語). docs.avax.network. 2021年12月29日閲覧。
- ↑ https://dcspark.gitbook.io/milkomeda/
| 日本国内取引所上場 暗号通貨 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| テクノロジー | |||||||||||||
| 合意形成メカニズム | |||||||||||||
| Proof-of-work (PoW) 暗号通貨 |
| ||||||||||||
| Proof-of-Stake (PoS) 暗号通貨 | |||||||||||||
| Proof-of-Personhood(PoP)(英語版) 暗号通貨 | |||||||||||||
| ERC-20トークン | |||||||||||||
| ミームコイン | |||||||||||||
| ステーブルコイン | |||||||||||||
| その他 暗号通貨 | |||||||||||||
| 関連項目 | |||||||||||||