Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
69505316
Unverified
Commit
69505316
authored
8 years ago
by
RJ Catalano
Browse files
Options
Downloads
Patches
Plain Diff
update description and use uint64 rather than int256 to be consistent with golang implementation
Signed-off-by:
RJ Catalano
<
rj@monax.io
>
parent
d65acbdf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manager/eris-mint/evm/snative.go
+8
-8
8 additions, 8 deletions
manager/eris-mint/evm/snative.go
with
8 additions
and
8 deletions
manager/eris-mint/evm/snative.go
+
8
−
8
View file @
69505316
...
...
@@ -43,10 +43,10 @@ type SNativeFuncDescription struct {
/* The solidity interface used to generate the abi function ids below
contract Permissions {
function has_base(address addr, int permFlag) constant returns (bool value) {}
function set_base(address addr, int permFlag, bool value) constant returns (bool val) {}
function unset_base(address addr, int permFlag) constant returns (int pf) {}
function set_global(
address addr,
int permFlag, bool value) constant returns (int pf) {}
function has_base(address addr,
u
int
64
permFlag) constant returns (bool value) {}
function set_base(address addr,
u
int
64
permFlag, bool value) constant returns (bool val) {}
function unset_base(address addr,
u
int
64
permFlag) constant returns (
u
int
64
pf) {}
function set_global(
u
int
64
permFlag, bool value) constant returns (
u
int
64
pf) {}
function has_role(address addr, string role) constant returns (bool val) {}
function add_role(address addr, string role) constant returns (bool added) {}
function rm_role(address addr, string role) constant returns (bool removed) {}
...
...
@@ -56,11 +56,11 @@ contract Permissions {
// function identifiers from the solidity abi
var
PermsMap
=
map
[
string
]
SNativeFuncDescription
{
getFuncIdentifiersFromSignature
(
"has_role(address,bytes32)"
)
:
SNativeFuncDescription
{
"has_role"
,
2
,
ptypes
.
HasRole
,
has_role
},
getFuncIdentifiersFromSignature
(
"unset_base(address,int
25
6)"
)
:
SNativeFuncDescription
{
"unset_base"
,
2
,
ptypes
.
UnsetBase
,
unset_base
},
getFuncIdentifiersFromSignature
(
"set_global(int
25
6,bool)"
)
:
SNativeFuncDescription
{
"set_global"
,
2
,
ptypes
.
SetGlobal
,
set_global
},
getFuncIdentifiersFromSignature
(
"unset_base(address,
u
int6
4
)"
)
:
SNativeFuncDescription
{
"unset_base"
,
2
,
ptypes
.
UnsetBase
,
unset_base
},
getFuncIdentifiersFromSignature
(
"set_global(
u
int6
4
,bool)"
)
:
SNativeFuncDescription
{
"set_global"
,
2
,
ptypes
.
SetGlobal
,
set_global
},
getFuncIdentifiersFromSignature
(
"add_role(address,bytes32)"
)
:
SNativeFuncDescription
{
"add_role"
,
2
,
ptypes
.
AddRole
,
add_role
},
getFuncIdentifiersFromSignature
(
"set_base(address,int
25
6,bool"
)
:
SNativeFuncDescription
{
"set_base"
,
3
,
ptypes
.
SetBase
,
set_base
},
getFuncIdentifiersFromSignature
(
"has_base(address,int
25
6)"
)
:
SNativeFuncDescription
{
"has_base"
,
2
,
ptypes
.
HasBase
,
has_base
},
getFuncIdentifiersFromSignature
(
"set_base(address,
u
int6
4
,bool"
)
:
SNativeFuncDescription
{
"set_base"
,
3
,
ptypes
.
SetBase
,
set_base
},
getFuncIdentifiersFromSignature
(
"has_base(address,
u
int6
4
)"
)
:
SNativeFuncDescription
{
"has_base"
,
2
,
ptypes
.
HasBase
,
has_base
},
getFuncIdentifiersFromSignature
(
"rm_role(address,bytes32)"
)
:
SNativeFuncDescription
{
"rm_role"
,
2
,
ptypes
.
RmRole
,
rm_role
},
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment