trxpricecoin
『壹』 波場發幣教程TRC20發幣教程TRX發幣教程波場代幣智能合約發幣教程
波場鏈的幣種叫TRC20代幣,部署到TRX的主網上,波場發幣教程也很簡單,一起學習下吧,波場發幣教程TRC20發幣教程TRX發幣教程波場代幣智能合約發幣教程,不會的退出閱讀模式,我幫你代發
TRC-20
TRC-20是用於TRON區塊鏈上的智能合約的技術標准,用於使用TRON虛擬機(TVM)實施代幣。
實現規則
3 個可選項
通證名稱
string public constant name = 「TRONEuropeRewardCoin」;
通證縮寫
string public constant symbol = 「TERC」;
通證精度
uint8 public constant decimals = 6;
6 個必選項
contract TRC20 {
function totalSupply() constant returns (uint theTotalSupply);
function balanceOf(address _owner) constant returns (uint balance);
function transfer(address _to, uint _value) returns (bool success);
function transferFrom(address _from, address _to, uint _value) returns (bool success);
function approve(address _spender, uint _value) returns (bool success);
function allowance(address _owner, address _spender) constant returns (uint remaining);
event Transfer(address indexed _from, address indexed _to, uint _value);
event Approval(address indexed _owner, address indexed _spender, uint _value);
}
totalSupply()
這個方法返回通證總的發行量。
balanceOf()
這個方法返回查詢賬戶的通證余額。
transfer()
這個方法用來從智能合約地址里轉賬通證到指定賬戶。
approve()
這個方法用來授權第三方(例如DAPP合約)從通證擁有者賬戶轉賬通證。
transferFrom()
這個方法可供第三方從通證擁有者賬戶轉賬通證。需要配合approve()方法使用。
allowance()
這個方法用來查詢可供第三方轉賬的查詢賬戶的通證余額。
2 個事件函數
當通證被成功轉賬後,會觸發轉賬事件。
event Transfer(address indexed _from, address indexed _to, uint256 _value)
當approval()方法被成功調用後,會觸發Approval事件。
event Approval(address indexed _owner, address indexed _spender, uint256 _value)
合約示例
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract TokenTRC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
// This generates a public event on the blockchain that will notify clients
event Transfer(address indexed from, address indexed to, uint256 value);
// This notifies clients about the amount burnt
event Burn(address indexed from, uint256 value);
/**
* Constructor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/
function TokenTRC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
name = tokenName; // Set the name for display purposes
symbol = tokenSymbol; // Set the symbol for display purposes
}
/**
* Internal transfer, only can be called by this contract
*/
function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balanceOf[_to]);
// Save this for an assertion in the future
uint previousBalances = balanceOf[_from] + balanceOf[_to];
// Subtract from the sender
balanceOf[_from] -= _value;
// Add the same to the recipient
balanceOf[_to] += _value;
emit Transfer(_from, _to, _value);
// Asserts are used to use static analysis to find bugs in your code. They should never fail
assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
}
/**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
/**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
/**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/
function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
return true;
}
/**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to send to the approved contract
*/
function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
/**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/
function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender, _value);
return true;
}
/**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/
function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Subtract from the targeted balance
allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance
totalSupply -= _value; // Update totalSupply
emit Burn(_from, _value);
return true;
}
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
}
Next Previous
就是這么簡單,你學會了嗎?
『貳』 vgc幣提幣需要的TRX怎麼獲取
登錄VGC官網下載app,創建錢包,加入礦區,開始挖礦。
VGC是近期推出的最新數字加密幣種,如果錯過了Pi,那VGC是最早入場的機會了。VGC,VirtualGameCoin,虛擬游戲幣,在幣圈被稱為維圖爾游戲幣,據說是模仿Pi幣的模式又加入自己的特色。首幣推出時間:今年6月中旬剛產出首幣,現階段處於單位時間產量最高的紅利時期,後面隨著人數的增加而陸續減半,所以現在布局很有前期優勢。官方預產總量:10億枚(BTC比特幣21億枚),總量越少越稀缺啊,越稀缺單個幣價格有機會越高。
『叄』 外國古錢幣等級
ME 紀念章 Medals
D.E.C. 試鑄幣 Die Essay Coins
C.P. 浮雕精鑄幣 Cameo Proof
TO 代幣 Tokens
T.S.C. 試打幣 Trial Strike Coins
T 氧化 Toned
CO 錢幣 Coins
E.P. 實驗幣 Experimental piece
F.P. 霜面精鑄幣 Frosted Proof
C.C. 流通幣 Circulating coins
M.T.R. 合面幣 Mule Coin with Two Reverses
S.F. 緞面精鑄幣 Satin Finishes
C.C.C. 流通紀念幣 Circulating Commemorative Coins
M.T.O. 合背幣 Mule Coin with Two Obverses
B.U. 普鑄幣 Brilliant U.N.C.
C.O.C. 紀念幣 Commemorative Coins
E.C. 變體幣 Error Coins
CL.C. 包覆幣 Claded Coins
B.C. 雙金屬幣 Bimetal Coins
O.M.S. 異質幣 Off-metal Strikes
PL.C. 鍍金屬幣 Plated Coins
L.C. 領銜幣 Leading Coins
FA 戲鑄幣 Fantasy
DE. 面值 Denomination
P.C. 加厚幣 Piefort Coins
CF.C. 彩色幣 Colorful Coins
M.S. 俱造幣廠原鑄光澤 Mint State
PA 樣幣 Pattern
M.P. 霧狀精鑄幣 Matte Proof
PR. 鏡面精鑄 Proof
HO. 雷射幣 Hologram
P.L. 准精鑄幣 Proof Like
CM. 戳記 Chopmarks
agw(actual gold weight) 實際含金量。
amulet 吉祥錢,壓勝錢。
an (l'an) [法語]年。
anchor coinage 錨幣(指英國在19世紀初期為模里西斯、西印度群島等殖民地製造的四 種面值銀幣,以船錨圖像得名)。
asw (actual silver weight)實際含銀量。
ana (american numismatic association) 美國錢幣協會。
anepigraphic 無字幣。
authentication (錢幣真偽)鑒定。
b
bagmark (未流通幣的)袋損。
banknote 紙幣,鈔票。
base metal 普通金屬,非貴重金屬。
bi-metal (coin) 雙金屬(幣)。
billon 低含量(小於50%)銀幣。
bit 小分割幣,1/8(西班牙)比索。
bid-buy sale 投標售幣。
blank 幣坯。
bracteate 薄片幣。
bullion 金或銀錠,純金幣,純銀幣。
bullion value (bv) 純金屬原值。
c
cased set 盒裝套幣。
cash 文,銅錢。
cast coin 鑄幣,用澆鑄方法製造的硬幣。
cfa franc central 中非法郎。
cfa franc west 西非法朗。
chambre de commerce (法國)商業部。
chop (幣上的)戳記。
criculation coins 流通(硬)幣。
civil war coins 內戰時期硬幣。
clean, cleaning 清洗。
clipped coin 剪邊幣。
cob (不規則形狀的)銀塊幣(使用於16世紀--18世紀西班牙在美洲的殖民地)。
coin 硬幣。
coin album 集幣冊,幣薄。
coin alignment 硬幣型正背面(指硬幣的正背面鉛垂線互成180度,即↑↓型)
coin dealer 錢幣商。
coin shop 錢幣店。
coinage 1)硬幣,錢幣(集合名詞);2)造幣,硬幣製造。
collect, collecting 收集,集藏。
collection 集藏品,收集品(指全部藏品)。
collector 收集者,集藏家。
colonial issues 殖民地錢幣。
colonial coins 殖民地硬幣。
coloured coins 彩色幣。
commemorative coin 紀念幣,收藏幣。
condition (of coins) (硬幣的)品相。
conjoined busts 疊(頭)像(幣)。
counter 籌碼。
counterfeit 偽造,贗幣。
countermarked (c/m) 加蓋(戳記)的,帶復壓印記的。
cowrie 貝幣。
crown 克朗,克朗型硬幣(指直徑為33毫米--42毫米,重量為20克--50克的金屬幣)。
current coins 流通幣。
cut 切割,硬幣切塊。
d
date 年代。
debasement 貶值,貶值幣。
decimal 十進制。
decimal coinage 十進制錢幣。
denomination 面值。
design 圖案,圖像;設計。
diademed 戴冠頭像。
die 幣模,印模。
double die 重模幣。
double-struck 重壓幣。
cat 歐洲中世紀貿易金銀幣。
mp (澳大利亞大孔環幣的)幣芯。
e
ecd (east caribbean dollar) 東加勒比元。
ecu (european currency unit) 歐洲貨幣單位,歐元,埃居。
edge inscription 邊文。
edge ornament 邊飾。
eic (east india company) 東印度公司。
effigy (幣面上的)頭像。
ek (edge-knocked) 邊緣被磕碰的,磕邊的。
electrum 琥珀金(金銀自然合金)。
elongated coin 壓長幣。
emergency coinage 緊急時期錢幣。
enamelled coin 琺琅幣。
engraver 刻模師。
enlarged size 放大的尺寸。
errors 殘錯幣。
essay (essai [法語]), trial piece 試模幣,試制幣。
exonomia 廣義錢幣學,類錢幣學。
f
face 幣面。
face value (f.v.) 面值。
fake 偽幣,贗幣。
fantasy 臆造幣
field (幣面上圖像和文字外的)空白底子。
fineness (貴金屬)純度,成色。
flan 幣坯。
fdc (fleur de coin) [法語] 全新未流通幣。
foreign coins 外國硬幣,外幣。
forgery 偽造,造假。
frosting (幣面)凝霜。
g
ghetto coins 猶太人集中區幣。
german silver 德國銀。
genuine 真品,非為造的。
grade 品級,品相級別。
grading (品相)定級。
gun money 槍幣,用廢舊槍炮上的金屬製作的硬幣(特指1689年--1691年英王詹姆斯二世在愛爾蘭發行的緊急時期幣)。
h
hammered coins 手工錘制幣,打壓幣。
hard time tokens 1834年--1844年間美國發行的緊急時期分幣。
hand-made coins 手工製造幣。
hobo nickels (美國30年代流浪改刻5分印第安人頭像的)改刻幣。
hog money 豬幣(特指1616年英國為百慕大群島發行的幾枚幣)。
holey dollar (1813年澳大利亞發行的)大孔環幣。
homeland issues 本土發行供殖民地使用的硬幣。
hub (用以壓制工作模的)母模。
i
imitation 偽造幣。
included above. (inc. ab.) 已計入上數。
incuse 陰文。
inflation money 通貨膨脹幣。
ingot 錠。
inscription (幣上的)文字或縮寫字。
intrinsic value 錢幣上的金屬原值。
invest, investment 投資。
issue price 發行價。
j
jeton, jetton [法語]籌碼。
joint coinage (兩地)聯合發行的錢幣。
k
klippe 方坯幣。
kriegsgeld [德語]德國在第一次世界大戰期間發行的地方幣。
kruggerrand 南非克魯格爾蘭特(金幣)。
l
legal tender 法幣,法定貨幣。
legend (leg.) 硬幣上的文字(多指硬幣外圈文字)。
leper coins 麻風病隔離區的錢幣。
lettered edge 帶字的(幣)邊。
local issues 地方幣。
louis d'or (法國)路易金元,金路易。
lustre (硬幣上的)光澤。
machine-made coins, machine-struck coins 機制幣。
mail-bid sale 信函投標售幣。
market value (mkt. val.) 市價。
matte 粗精製幣。
maundy money (英國)濯足節幣。
maverick 待考幣(常指未鑒別的代用幣)。
medal 章,紀念章。
medal alignment 型正背面(指硬幣的正背面鉛垂線相重合,互成0度,即↑↓型)。
medallic issues 紀念章,章幣。
milled coins 機制幣。
mint 造幣廠。
mint set 造幣廠發行的未流通套幣。
mint mark 造幣廠標志、印記。
mintmaster's initials 造幣廠廠長姓名首字縮寫。
mintage 發行量。
mirror-like surface 鏡面。
monetary reform 貨幣改革,幣制改革。
monetary system 幣制,貨幣制度。
monetary unit 貨幣單位。
monogram 首字縮寫,花押。
motto 銘文,箴言。
mule (因正反面模具錯用而產生的)騾幣。
n
n.d. (no date) 無年代(幣)。
n.c.l.t. (non-circulating legal tender) 未進入流通領域的法幣,非流通法幣。
nick 邊緣磕碰。
non-circulating 不流通的。
notgeld [德語](德國第一次世界大戰中和戰後年代的)緊爭時期幣。
numismatic coins 供收藏用的錢幣。
numismatic society 錢幣學會。
numismatics 錢幣學。
numismatist 錢幣學家,錢幣研究者。
o
obv. (obverse) 正面。
off-metal strike (ofs) 非正規金屬壓制的硬幣。
overdate coin 變更原模年代的錢幣。
p
paper money 紙幣。
patina 銅銹。
pattern 樣(品)幣。
pcs(pieces) 枚(硬幣單位,此為復數)。
piedfort 加厚幣。
plastic holder (裝硬幣的)小塑料袋。
plain edge 光邊。
plaster 石膏模。
plated coin 鍍覆硬幣。
plugged coin 塞芯幣。
porcelain coin 陶瓷幣。
precious metal 貴金屬。
premium 升水(即價格與面值的差別)。
prestige proof set 豪華版精製套幣。
pricelist (幣商印製的)售品目錄,價格表。
private coin 私鑄幣。
privy mark (幣上的)暗記。
proof 精製(幣),拋光(幣)。
proof set 精製套(幣)。
proof-like 半精製(幣),類精製(幣)。
provas 樣品。
r
rare 稀缺,珍稀。
rarity 稀缺(度)。
real size 原大,真實大小。
reced size 縮小的尺寸。
recing machine 縮刻機。
reeded edge 滾邊(幣)。
regional issue 地區幣。
relief 陽文,凸出的文字或圖形。
rev. (reverse) 反面。
relative scarcity 相對稀缺(度)。
rentenmark [德語]德國1923年開始發行的地產抵押馬克。
restrike (用原模在以後年代壓制的)重製幣。
revenue (印花)。
rubbing 拓印,拓片。
s
sale catalogue 售品目錄。
sandwich coins 夾心(金屬)幣。
scratch 擦痕,劃道。
sede vacante 梵蒂岡教皇缺位時發行的硬幣,缺位幣。
seignorage 制幣利潤,即原值與面值的差別。
sigeg money 圍城(時期發行的緊急)幣。
series 系列,(一)組(幣)。
serrated 齒邊。
set 套。
sovereign 蘇弗林(英國金幣)。
special selects (品相極好的)精選幣。
special uncirculated 精製的未流通幣。
specimen 樣幣;幣。
specimen set 樣品套幣。
state of preservation 品相,保存狀態。
sterling 英鎊;成色足的。
sycee 銀錠,馬蹄銀。
t
tael (中國)兩。
token 代用幣,代價幣。
token issues 代用向,代價幣。
tone, toning (金屬幣)氧化,變色。
toughra 花押。
trade coins 貿易幣。
transitional issues 過渡時期錢幣。
trial strike 試制(幣)。
troy weight 金衡量。
truncation (幣面人像下的)空白處。
type set (同一類型便不同年代的)套幣。
u
uncirculated 未流通的,沒有使用過的。
uniface 單面幣。
unique 孤品,獨一無二的。
v
voc 荷屬東印度公司(首字縮寫)。 (荷蘭文為vereenigde oostindische compagnie)
variety (幣面設計的)變型。
vis-a-vis coin 面對面的雙頭像幣。
w
w/,w/o (with, without) 有,無。
wooden nickels 木質代用幣(一種游戲幣)。
world coins 世界硬幣。
y
yest set 年度套幣(造幣廠發行的同一年代不同面值的套幣,多指未進入流通領域供收藏用的套幣)。