forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolidity-cheat-sheet.json
More file actions
101 lines (101 loc) · 5.19 KB
/
Copy pathsolidity-cheat-sheet.json
File metadata and controls
101 lines (101 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"id": "solidity-cheat-sheet",
"title": "ইথেরিয়াম সলিডিটি",
"slug": "solidity-cheat-sheet",
"description": "ইথেরিয়াম স্মার্ট কন্ট্রাক্ট লিখার জন্য সলিডিটি প্রোগ্রামিং ল্যাংগুয়েজের এর চিটশিট",
"colorPref": "#3c3c3d",
"contents": [
{
"title": "ল্যাংগুয়েজ ভার্শন",
"items": [
{
"definition": "সলিডিটির ভার্শন ডিফাইন করা",
"code": "pragma solidity ^0.5.0;"
}
]
}, {
"title": "ফাইল ইম্পোর্ট",
"items": [
{
"definition": "ফাইল ইম্পোর্ট করা",
"code": "import \"filename\";"
}, {
"definition": "সিম্বল নেইম হিসেবে ফাইল ইম্পোর্ট করা",
"code": "import * as symbolName from \"filename\"; \n অথবা import \"filename\" as symbolName;"
}, {
"definition": "এলাইস হিসেবে ফাইল ইম্পোর্ট করা",
"code": "import {symbol1 as alias, symbol2} from \"filename\";"
}
]
}, {
"title": "ডেটা টাইপ",
"items": [
{
"definition": "বুলিয়ান",
"code": "bool : true OR false"
}, {
"definition": "ইন্টেজার - আনসাইন",
"code": "uint8 থেকে uint256(uint)"
}, {
"definition": "ইন্টেজার - সাইন",
"code": "int8 থেকে int256(uint)"
}, {
"definition": "এড্রেস - ইথারিয়াম এড্রেস হোল্ড করা",
"code": "address"
}, {
"definition": "অ্যারে - ফিক্সড সাইজ",
"code": "uint[n] array-name; (n হচ্ছে অ্যারের সাইজ)"
}, {
"definition": "অ্যারে - ডায়নামিক সাইজ",
"code": "uint[] array-name;"
}, {
"definition": "ম্যাপিং",
"code": "mapping(_keyType => _valueType)"
}
]
}, {
"title": "অপারেটরস",
"items": [
{
"definition": "বুলিয়ান - লজিক্যাল অপারেটরস",
"code": "!, &&, ||"
}, {
"definition": "কম্পায়ার করা",
"code": "<=, <, ==, !=, >=, >"
}, {
"definition": "ইন্টেজার - বিট অপারেটর",
"code": "&, |, ^ and ~"
}, {
"definition": "ইন্টেজার - অ্যারিতম্যাটিক অপারেটর",
"code": "+, -, unary -, unary +, *, /, %, **, <<, >>"
}
]
}, {
"title": "এড্রেস ম্যাথোড",
"items": [
{
"definition": "পয়সা যেভাবে টাকার অংশ, Wei হচ্ছে Ethereum এর অংশ",
"code": "Wei"
}, {
"definition": "Wei এড্রেস এর ব্যালেন্স দেখা",
"code": "<address>.balance (uint256)"
}, {
"definition": "নির্দিষ্ট পরিমানের Wei এড্রেসে ট্রান্সফার করা",
"code": "<address>.transfer (uint256 amount)"
}, {
"definition": "নির্দিষ্ট পরিমানের Wei এড্রেসে ট্রান্সফার করা, ফেইল হলে false রিটার্ন করবে",
"code": "<address>.send (uint256 amount) returns (bool)"
}, {
"definition": "লো-লেভেল কল ইস্যু করা",
"code": "<address>.call(...) returns (bool)"
}, {
"definition": "লো-লেভেল ডেলিগেট কল ইস্যু করা",
"code": "<address>.delegatecall(...) returns (bool)"
}, {
"definition": "লো-লেভেল কলকোড ইস্যু করা",
"code": "<address>.callcode(...) returns (bool)"
}
]
}
]
}