@leofcoin/chain 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chain.browser.js +26563 -9162
- package/dist/chain.js +479 -118
- package/dist/node.browser.js +3603 -3912
- package/dist/node.js +1 -1
- package/dist/protons.browser.js +7818 -175
- package/dist/wrtc.browser.js +1 -1
- package/docs/@leofcoin/chain/1.0.22/chain.js.html +377 -223
- package/docs/@leofcoin/chain/1.0.22/contracts_factory.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_nameService.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_proxies_factoryProxy.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_proxies_nameServiceProxy.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_proxies_nativeTokenProxy.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_proxies_validatorsProxy.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_proxies_votingProxy.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/contracts_validators.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-Bold-webfont.svg +1829 -1829
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-BoldItalic-webfont.svg +1829 -1829
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-Italic-webfont.svg +1829 -1829
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-Light-webfont.svg +1830 -1830
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-LightItalic-webfont.svg +1834 -1834
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-Regular-webfont.svg +1830 -1830
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-Semibold-webfont.svg +1829 -1829
- package/docs/@leofcoin/chain/1.0.22/fonts/OpenSans-SemiboldItalic-webfont.svg +1829 -1829
- package/docs/@leofcoin/chain/1.0.22/global.html +1804 -1152
- package/docs/@leofcoin/chain/1.0.22/icons/home.svg +3 -3
- package/docs/@leofcoin/chain/1.0.22/icons/search.svg +3 -3
- package/docs/@leofcoin/chain/1.0.22/index.html +124 -124
- package/docs/@leofcoin/chain/1.0.22/machine.js.html +133 -129
- package/docs/@leofcoin/chain/1.0.22/scripts/linenumber.js +23 -23
- package/docs/@leofcoin/chain/1.0.22/scripts/pagelocation.js +89 -89
- package/docs/@leofcoin/chain/1.0.22/standards_roles.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/standards_token.js.html +123 -123
- package/docs/@leofcoin/chain/1.0.22/styles/collapse.css +27 -27
- package/docs/@leofcoin/chain/1.0.22/styles/jsdoc-default.css +953 -953
- package/docs/@leofcoin/chain/1.0.22/styles/prettify-jsdoc.css +111 -111
- package/docs/@leofcoin/chain/1.0.22/styles/prettify-tomorrow.css +138 -138
- package/package.json +8 -5
- package/rollup.config.js +1 -2
- package/src/chain.js +254 -100
- package/src/config/config.js +6 -2
- package/src/machine.js +10 -6
- package/src/node.js +2 -34
- package/src/state.js +8 -3
- package/src/transactions/transaction.js +3 -0
- package/test/chain.js +39 -60
- package/webpack.config.js +3 -3
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
$(document).ready(function () {
|
|
4
|
-
var currentSectionNav, target;
|
|
5
|
-
|
|
6
|
-
// If an anchor hash is in the URL highlight the menu item
|
|
7
|
-
highlightActiveHash();
|
|
8
|
-
// If a specific page section is in the URL highlight the menu item
|
|
9
|
-
highlightActiveSection();
|
|
10
|
-
|
|
11
|
-
// If a specific page section is in the URL scroll that section up to the top
|
|
12
|
-
currentSectionNav = $('#' + getCurrentSectionName() + '-nav');
|
|
13
|
-
|
|
14
|
-
if (currentSectionNav.position()) {
|
|
15
|
-
$('nav').scrollTop(currentSectionNav.position().top);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// function to scroll to anchor when clicking an anchor linl
|
|
19
|
-
$('a[href*="#"]:not([href="#"])').click(function () {
|
|
20
|
-
/* eslint-disable no-invalid-this */
|
|
21
|
-
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
|
|
22
|
-
target = $(this.hash);
|
|
23
|
-
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
|
24
|
-
if (target.length) {
|
|
25
|
-
$('html, body').animate({
|
|
26
|
-
scrollTop: target.offset().top
|
|
27
|
-
}, 1000);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/* eslint-enable no-invalid-this */
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
// If a new anchor section is selected, change the hightlighted menu item
|
|
35
|
-
$(window).bind('hashchange', function (event) {
|
|
36
|
-
highlightActiveHash(event);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
function highlightActiveHash(event) {
|
|
40
|
-
var oldUrl, oldSubSectionElement;
|
|
41
|
-
|
|
42
|
-
// check for and remove old hash active state
|
|
43
|
-
if (event && event.originalEvent.oldURL) {
|
|
44
|
-
oldUrl = event.originalEvent.oldURL;
|
|
45
|
-
|
|
46
|
-
if (oldUrl.indexOf('#') > -1) {
|
|
47
|
-
oldSubSectionElement = $('#' + getCurrentSectionName() + '-' + oldUrl.substring(oldUrl.indexOf('#') + 1) + '-nav');
|
|
48
|
-
|
|
49
|
-
if (oldSubSectionElement) {
|
|
50
|
-
oldSubSectionElement.removeClass('active');
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (getCurrentHashName()) {
|
|
56
|
-
$('#' + getCurrentSectionName() + '-' + getCurrentHashName() + '-nav').addClass('active');
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function highlightActiveSection() {
|
|
61
|
-
var pageId = getCurrentSectionName();
|
|
62
|
-
|
|
63
|
-
$('#' + pageId + '-nav').addClass('active');
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function getCurrentSectionName() {
|
|
67
|
-
var path = window.location.pathname;
|
|
68
|
-
var pageUrl = path.split('/').pop();
|
|
69
|
-
|
|
70
|
-
var sectionName = pageUrl.substring(0, pageUrl.indexOf('.'));
|
|
71
|
-
|
|
72
|
-
// remove the wodr module- if its in the url
|
|
73
|
-
sectionName = sectionName.replace('module-', '');
|
|
74
|
-
|
|
75
|
-
return sectionName;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function getCurrentHashName() {
|
|
79
|
-
var pageSubSectionId;
|
|
80
|
-
var pageSubSectionHash = window.location.hash;
|
|
81
|
-
|
|
82
|
-
if (pageSubSectionHash) {
|
|
83
|
-
pageSubSectionId = pageSubSectionHash.substring(1).replace('.', '');
|
|
84
|
-
|
|
85
|
-
return pageSubSectionId;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
$(document).ready(function () {
|
|
4
|
+
var currentSectionNav, target;
|
|
5
|
+
|
|
6
|
+
// If an anchor hash is in the URL highlight the menu item
|
|
7
|
+
highlightActiveHash();
|
|
8
|
+
// If a specific page section is in the URL highlight the menu item
|
|
9
|
+
highlightActiveSection();
|
|
10
|
+
|
|
11
|
+
// If a specific page section is in the URL scroll that section up to the top
|
|
12
|
+
currentSectionNav = $('#' + getCurrentSectionName() + '-nav');
|
|
13
|
+
|
|
14
|
+
if (currentSectionNav.position()) {
|
|
15
|
+
$('nav').scrollTop(currentSectionNav.position().top);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// function to scroll to anchor when clicking an anchor linl
|
|
19
|
+
$('a[href*="#"]:not([href="#"])').click(function () {
|
|
20
|
+
/* eslint-disable no-invalid-this */
|
|
21
|
+
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
|
|
22
|
+
target = $(this.hash);
|
|
23
|
+
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
|
24
|
+
if (target.length) {
|
|
25
|
+
$('html, body').animate({
|
|
26
|
+
scrollTop: target.offset().top
|
|
27
|
+
}, 1000);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/* eslint-enable no-invalid-this */
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// If a new anchor section is selected, change the hightlighted menu item
|
|
35
|
+
$(window).bind('hashchange', function (event) {
|
|
36
|
+
highlightActiveHash(event);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
function highlightActiveHash(event) {
|
|
40
|
+
var oldUrl, oldSubSectionElement;
|
|
41
|
+
|
|
42
|
+
// check for and remove old hash active state
|
|
43
|
+
if (event && event.originalEvent.oldURL) {
|
|
44
|
+
oldUrl = event.originalEvent.oldURL;
|
|
45
|
+
|
|
46
|
+
if (oldUrl.indexOf('#') > -1) {
|
|
47
|
+
oldSubSectionElement = $('#' + getCurrentSectionName() + '-' + oldUrl.substring(oldUrl.indexOf('#') + 1) + '-nav');
|
|
48
|
+
|
|
49
|
+
if (oldSubSectionElement) {
|
|
50
|
+
oldSubSectionElement.removeClass('active');
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (getCurrentHashName()) {
|
|
56
|
+
$('#' + getCurrentSectionName() + '-' + getCurrentHashName() + '-nav').addClass('active');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function highlightActiveSection() {
|
|
61
|
+
var pageId = getCurrentSectionName();
|
|
62
|
+
|
|
63
|
+
$('#' + pageId + '-nav').addClass('active');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function getCurrentSectionName() {
|
|
67
|
+
var path = window.location.pathname;
|
|
68
|
+
var pageUrl = path.split('/').pop();
|
|
69
|
+
|
|
70
|
+
var sectionName = pageUrl.substring(0, pageUrl.indexOf('.'));
|
|
71
|
+
|
|
72
|
+
// remove the wodr module- if its in the url
|
|
73
|
+
sectionName = sectionName.replace('module-', '');
|
|
74
|
+
|
|
75
|
+
return sectionName;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function getCurrentHashName() {
|
|
79
|
+
var pageSubSectionId;
|
|
80
|
+
var pageSubSectionHash = window.location.hash;
|
|
81
|
+
|
|
82
|
+
if (pageSubSectionHash) {
|
|
83
|
+
pageSubSectionId = pageSubSectionHash.substring(1).replace('.', '');
|
|
84
|
+
|
|
85
|
+
return pageSubSectionId;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<!DOCTYPE html>
|
|
4
|
-
<html lang="en">
|
|
5
|
-
<head>
|
|
6
|
-
|
|
7
|
-
<meta charset="utf-8">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
-
|
|
10
|
-
<title>
|
|
11
|
-
standards/roles.js - Documentation
|
|
12
|
-
</title>
|
|
13
|
-
|
|
14
|
-
<link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
|
|
15
|
-
|
|
16
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
|
|
17
|
-
<script>hljs.initHighlightingOnLoad();</script>
|
|
18
|
-
|
|
19
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
|
|
20
|
-
|
|
21
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
22
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
23
|
-
|
|
24
|
-
<link type="text/css" rel="stylesheet" href="styles/collapse.css">
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<!-- start Mixpanel -->
|
|
30
|
-
<script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
|
|
31
|
-
0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
|
|
32
|
-
for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
|
|
33
|
-
mixpanel.init("1919205b2da72e4da3b9b6639b444d59");</script>
|
|
34
|
-
<!-- end Mixpanel -->
|
|
35
|
-
</head>
|
|
36
|
-
|
|
37
|
-
<body>
|
|
38
|
-
<svg style="display: none;">
|
|
39
|
-
<defs>
|
|
40
|
-
<symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
41
|
-
<path d="M0 0h24v24H0z" fill="none"/>
|
|
42
|
-
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
|
|
43
|
-
</symbol>
|
|
44
|
-
</defs>
|
|
45
|
-
</svg>
|
|
46
|
-
|
|
47
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
48
|
-
<label for="nav-trigger" class="navicon-button x">
|
|
49
|
-
<div class="navicon"></div>
|
|
50
|
-
</label>
|
|
51
|
-
|
|
52
|
-
<label for="nav-trigger" class="overlay"></label>
|
|
53
|
-
|
|
54
|
-
<div class="top-nav-wrapper">
|
|
55
|
-
<ul>
|
|
56
|
-
<li >
|
|
57
|
-
<a href="index.html">
|
|
58
|
-
|
|
59
|
-
<svg fill="#6D6D6D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
60
|
-
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
|
|
61
|
-
<path d="M0 0h24v24H0z" fill="none"/>
|
|
62
|
-
</svg>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</a>
|
|
66
|
-
</li>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</ul>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<nav>
|
|
74
|
-
<h3 class="reference-title">
|
|
75
|
-
@leofcoin/chain
|
|
76
|
-
</h3>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<h3>
|
|
80
|
-
Resources
|
|
81
|
-
</h3>
|
|
82
|
-
|
|
83
|
-
<a href="https://github.com/arteontoken/monorepo/tree/main/chain">github</a>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<h3 id="global-nav">Global</h3><ul><li><a href="global.html#addContract">addContract</a></li><li><a href="global.html#createTransaction">createTransaction</a></li><li><a href="global.html#createTransactionFrom">createTransactionFrom</a></li><li><a href="global.html#deployContract">deployContract</a></li><li><a href="global.html#lookup">lookup</a></li><li><a href="global.html#state">state</a></li></ul>
|
|
88
|
-
</nav>
|
|
89
|
-
|
|
90
|
-
<div id="main">
|
|
91
|
-
|
|
92
|
-
<h1 class="page-title">
|
|
93
|
-
standards/roles.js
|
|
94
|
-
</h1>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<section>
|
|
101
|
-
<article>
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
|
|
7
|
+
<meta charset="utf-8">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
+
|
|
10
|
+
<title>
|
|
11
|
+
standards/roles.js - Documentation
|
|
12
|
+
</title>
|
|
13
|
+
|
|
14
|
+
<link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
|
|
15
|
+
|
|
16
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
|
|
17
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
|
18
|
+
|
|
19
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
|
|
20
|
+
|
|
21
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
22
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
23
|
+
|
|
24
|
+
<link type="text/css" rel="stylesheet" href="styles/collapse.css">
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<!-- start Mixpanel -->
|
|
30
|
+
<script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
|
|
31
|
+
0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
|
|
32
|
+
for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
|
|
33
|
+
mixpanel.init("1919205b2da72e4da3b9b6639b444d59");</script>
|
|
34
|
+
<!-- end Mixpanel -->
|
|
35
|
+
</head>
|
|
36
|
+
|
|
37
|
+
<body>
|
|
38
|
+
<svg style="display: none;">
|
|
39
|
+
<defs>
|
|
40
|
+
<symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
41
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
42
|
+
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
|
|
43
|
+
</symbol>
|
|
44
|
+
</defs>
|
|
45
|
+
</svg>
|
|
46
|
+
|
|
47
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
48
|
+
<label for="nav-trigger" class="navicon-button x">
|
|
49
|
+
<div class="navicon"></div>
|
|
50
|
+
</label>
|
|
51
|
+
|
|
52
|
+
<label for="nav-trigger" class="overlay"></label>
|
|
53
|
+
|
|
54
|
+
<div class="top-nav-wrapper">
|
|
55
|
+
<ul>
|
|
56
|
+
<li >
|
|
57
|
+
<a href="index.html">
|
|
58
|
+
|
|
59
|
+
<svg fill="#6D6D6D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
60
|
+
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
|
|
61
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
62
|
+
</svg>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</a>
|
|
66
|
+
</li>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</ul>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<nav>
|
|
74
|
+
<h3 class="reference-title">
|
|
75
|
+
@leofcoin/chain
|
|
76
|
+
</h3>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<h3>
|
|
80
|
+
Resources
|
|
81
|
+
</h3>
|
|
82
|
+
|
|
83
|
+
<a href="https://github.com/arteontoken/monorepo/tree/main/chain">github</a>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<h3 id="global-nav">Global</h3><ul><li><a href="global.html#addContract">addContract</a></li><li><a href="global.html#createRawTransaction">createRawTransaction</a></li><li><a href="global.html#createTransaction">createTransaction</a></li><li><a href="global.html#createTransactionFrom">createTransactionFrom</a></li><li><a href="global.html#createTransactionHash">createTransactionHash</a></li><li><a href="global.html#deployContract">deployContract</a></li><li><a href="global.html#lookup">lookup</a></li><li><a href="global.html#state">state</a></li></ul>
|
|
88
|
+
</nav>
|
|
89
|
+
|
|
90
|
+
<div id="main">
|
|
91
|
+
|
|
92
|
+
<h1 class="page-title">
|
|
93
|
+
standards/roles.js
|
|
94
|
+
</h1>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<section>
|
|
101
|
+
<article>
|
|
102
102
|
<pre class="prettyprint source linenums"><code>export default class Roles {
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -164,25 +164,25 @@
|
|
|
164
164
|
this.#revokeRole(address, role)
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
</code></pre>
|
|
168
|
-
</article>
|
|
169
|
-
</section>
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
<br class="clear">
|
|
177
|
-
|
|
178
|
-
<footer>
|
|
179
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.
|
|
180
|
-
</footer>
|
|
181
|
-
|
|
182
|
-
<script src="scripts/linenumber.js"></script>
|
|
183
|
-
<script src="scripts/pagelocation.js"></script>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</body>
|
|
188
|
-
</html>
|
|
167
|
+
</code></pre>
|
|
168
|
+
</article>
|
|
169
|
+
</section>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<br class="clear">
|
|
177
|
+
|
|
178
|
+
<footer>
|
|
179
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
|
|
180
|
+
</footer>
|
|
181
|
+
|
|
182
|
+
<script src="scripts/linenumber.js"></script>
|
|
183
|
+
<script src="scripts/pagelocation.js"></script>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</body>
|
|
188
|
+
</html>
|