FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-bitshares/bitsharesbase/operationids.py at develop · jhtitor/python-bitshares · GitHub
jhtitor
/
python-bitshares
Public
forked from
bitshares/python-bitshares
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-bitshares
/
bitsharesbase
/
operationids.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (58 loc) · 1.45 KB
Breadcrumbs
python-bitshares
/
bitsharesbase
/
operationids.py
Copy path
File metadata and controls
60 lines (58 loc) · 1.45 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#: Operation ids
ops
=
[
"transfer"
,
"limit_order_create"
,
"limit_order_cancel"
,
"call_order_update"
,
"fill_order"
,
"account_create"
,
"account_update"
,
"account_whitelist"
,
"account_upgrade"
,
"account_transfer"
,
"asset_create"
,
"asset_update"
,
"asset_update_bitasset"
,
"asset_update_feed_producers"
,
"asset_issue"
,
"asset_reserve"
,
"asset_fund_fee_pool"
,
"asset_settle"
,
"asset_global_settle"
,
"asset_publish_feed"
,
"witness_create"
,
"witness_update"
,
"proposal_create"
,
"proposal_update"
,
"proposal_delete"
,
"withdraw_permission_create"
,
"withdraw_permission_update"
,
"withdraw_permission_claim"
,
"withdraw_permission_delete"
,
"committee_member_create"
,
"committee_member_update"
,
"committee_member_update_global_parameters"
,
"vesting_balance_create"
,
"vesting_balance_withdraw"
,
"worker_create"
,
"custom"
,
"assert"
,
"balance_claim"
,
"override_transfer"
,
"transfer_to_blind"
,
"blind_transfer"
,
"transfer_from_blind"
,
"asset_settle_cancel"
,
"asset_claim_fees"
,
"fba_distribute"
,
"bid_collateral"
,
"execute_bid"
,
]
operations
=
{
o
:
ops
.
index
(
o
)
for
o
in
ops
}
def
getOperationNameForId
(
i
):
""" Convert an operation id into the corresponding string
"""
for
key
in
operations
:
if
int
(
operations
[
key
])
is
int
(
i
):
return
key
return
"Unknown Operation ID %d"
%
i
Back
|
FazBrowse Home
|
New Git URL