Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acala-network/contracts

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acala-network/contracts - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

262

build/contracts/Context.json

@@ -21,10 +21,10 @@ {

"Context": [
9286
6646
]
},
"id": 9287,
"id": 6647,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9261,
"id": 6621,
"literals": [

@@ -37,3 +37,3 @@ "solidity",

"nodeType": "PragmaDirective",
"src": "0:23:36"
"src": "0:23:28"
},

@@ -47,5 +47,5 @@ {

"fullyImplemented": true,
"id": 9286,
"id": 6646,
"linearizedBaseContracts": [
9286
6646
],

@@ -57,9 +57,9 @@ "name": "Context",

"body": {
"id": 9264,
"id": 6624,
"nodeType": "Block",
"src": "726:3:36",
"src": "726:3:28",
"statements": []
},
"documentation": null,
"id": 9265,
"id": 6625,
"implemented": true,

@@ -72,15 +72,15 @@ "kind": "constructor",

"parameters": {
"id": 9262,
"id": 6622,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:2:36"
"src": "714:2:28"
},
"returnParameters": {
"id": 9263,
"id": 6623,
"nodeType": "ParameterList",
"parameters": [],
"src": "726:0:36"
"src": "726:0:28"
},
"scope": 9286,
"src": "702:27:36",
"scope": 6646,
"src": "702:27:28",
"stateMutability": "nonpayable",

@@ -92,5 +92,5 @@ "virtual": false,

"body": {
"id": 9273,
"id": 6633,
"nodeType": "Block",
"src": "805:34:36",
"src": "805:34:28",
"statements": [

@@ -102,3 +102,3 @@ {

"argumentTypes": null,
"id": 9270,
"id": 6630,
"name": "msg",

@@ -108,3 +108,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "822:3:36",
"src": "822:3:28",
"typeDescriptions": {

@@ -115,3 +115,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9271,
"id": 6631,
"isConstant": false,

@@ -124,3 +124,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "822:10:36",
"src": "822:10:28",
"typeDescriptions": {

@@ -131,6 +131,6 @@ "typeIdentifier": "t_address_payable",

},
"functionReturnParameters": 9269,
"id": 9272,
"functionReturnParameters": 6629,
"id": 6632,
"nodeType": "Return",
"src": "815:17:36"
"src": "815:17:28"
}

@@ -140,3 +140,3 @@ ]

"documentation": null,
"id": 9274,
"id": 6634,
"implemented": true,

@@ -149,9 +149,9 @@ "kind": "function",

"parameters": {
"id": 9266,
"id": 6626,
"nodeType": "ParameterList",
"parameters": [],
"src": "754:2:36"
"src": "754:2:28"
},
"returnParameters": {
"id": 9269,
"id": 6629,
"nodeType": "ParameterList",

@@ -161,8 +161,8 @@ "parameters": [

"constant": false,
"id": 9268,
"id": 6628,
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9274,
"src": "788:15:36",
"scope": 6634,
"src": "788:15:28",
"stateVariable": false,

@@ -175,6 +175,6 @@ "storageLocation": "default",

"typeName": {
"id": 9267,
"id": 6627,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "788:15:36",
"src": "788:15:28",
"stateMutability": "payable",

@@ -190,6 +190,6 @@ "typeDescriptions": {

],
"src": "787:17:36"
"src": "787:17:28"
},
"scope": 9286,
"src": "735:104:36",
"scope": 6646,
"src": "735:104:28",
"stateMutability": "view",

@@ -201,5 +201,5 @@ "virtual": true,

"body": {
"id": 9284,
"id": 6644,
"nodeType": "Block",
"src": "910:165:36",
"src": "910:165:28",
"statements": [

@@ -209,3 +209,3 @@ {

"argumentTypes": null,
"id": 9279,
"id": 6639,
"name": "this",

@@ -215,11 +215,11 @@ "nodeType": "Identifier",

"referencedDeclaration": -28,
"src": "920:4:36",
"src": "920:4:28",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Context_$9286",
"typeIdentifier": "t_contract$_Context_$6646",
"typeString": "contract Context"
}
},
"id": 9280,
"id": 6640,
"nodeType": "ExpressionStatement",
"src": "920:4:36"
"src": "920:4:28"
},

@@ -231,3 +231,3 @@ {

"argumentTypes": null,
"id": 9281,
"id": 6641,
"name": "msg",

@@ -237,3 +237,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "1060:3:36",
"src": "1060:3:28",
"typeDescriptions": {

@@ -244,3 +244,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9282,
"id": 6642,
"isConstant": false,

@@ -253,3 +253,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "1060:8:36",
"src": "1060:8:28",
"typeDescriptions": {

@@ -260,6 +260,6 @@ "typeIdentifier": "t_bytes_calldata_ptr",

},
"functionReturnParameters": 9278,
"id": 9283,
"functionReturnParameters": 6638,
"id": 6643,
"nodeType": "Return",
"src": "1053:15:36"
"src": "1053:15:28"
}

@@ -269,3 +269,3 @@ ]

"documentation": null,
"id": 9285,
"id": 6645,
"implemented": true,

@@ -278,9 +278,9 @@ "kind": "function",

"parameters": {
"id": 9275,
"id": 6635,
"nodeType": "ParameterList",
"parameters": [],
"src": "862:2:36"
"src": "862:2:28"
},
"returnParameters": {
"id": 9278,
"id": 6638,
"nodeType": "ParameterList",

@@ -290,8 +290,8 @@ "parameters": [

"constant": false,
"id": 9277,
"id": 6637,
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9285,
"src": "896:12:36",
"scope": 6645,
"src": "896:12:28",
"stateVariable": false,

@@ -304,6 +304,6 @@ "storageLocation": "memory",

"typeName": {
"id": 9276,
"id": 6636,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "896:5:36",
"src": "896:5:28",
"typeDescriptions": {

@@ -318,6 +318,6 @@ "typeIdentifier": "t_bytes_storage_ptr",

],
"src": "895:14:36"
"src": "895:14:28"
},
"scope": 9286,
"src": "845:230:36",
"scope": 6646,
"src": "845:230:28",
"stateMutability": "view",

@@ -328,7 +328,7 @@ "virtual": true,

],
"scope": 9287,
"src": "525:552:36"
"scope": 6647,
"src": "525:552:28"
}
],
"src": "0:1078:36"
"src": "0:1078:28"
},

@@ -339,10 +339,10 @@ "legacyAST": {

"Context": [
9286
6646
]
},
"id": 9287,
"id": 6647,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9261,
"id": 6621,
"literals": [

@@ -355,3 +355,3 @@ "solidity",

"nodeType": "PragmaDirective",
"src": "0:23:36"
"src": "0:23:28"
},

@@ -365,5 +365,5 @@ {

"fullyImplemented": true,
"id": 9286,
"id": 6646,
"linearizedBaseContracts": [
9286
6646
],

@@ -375,9 +375,9 @@ "name": "Context",

"body": {
"id": 9264,
"id": 6624,
"nodeType": "Block",
"src": "726:3:36",
"src": "726:3:28",
"statements": []
},
"documentation": null,
"id": 9265,
"id": 6625,
"implemented": true,

@@ -390,15 +390,15 @@ "kind": "constructor",

"parameters": {
"id": 9262,
"id": 6622,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:2:36"
"src": "714:2:28"
},
"returnParameters": {
"id": 9263,
"id": 6623,
"nodeType": "ParameterList",
"parameters": [],
"src": "726:0:36"
"src": "726:0:28"
},
"scope": 9286,
"src": "702:27:36",
"scope": 6646,
"src": "702:27:28",
"stateMutability": "nonpayable",

@@ -410,5 +410,5 @@ "virtual": false,

"body": {
"id": 9273,
"id": 6633,
"nodeType": "Block",
"src": "805:34:36",
"src": "805:34:28",
"statements": [

@@ -420,3 +420,3 @@ {

"argumentTypes": null,
"id": 9270,
"id": 6630,
"name": "msg",

@@ -426,3 +426,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "822:3:36",
"src": "822:3:28",
"typeDescriptions": {

@@ -433,3 +433,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9271,
"id": 6631,
"isConstant": false,

@@ -442,3 +442,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "822:10:36",
"src": "822:10:28",
"typeDescriptions": {

@@ -449,6 +449,6 @@ "typeIdentifier": "t_address_payable",

},
"functionReturnParameters": 9269,
"id": 9272,
"functionReturnParameters": 6629,
"id": 6632,
"nodeType": "Return",
"src": "815:17:36"
"src": "815:17:28"
}

@@ -458,3 +458,3 @@ ]

"documentation": null,
"id": 9274,
"id": 6634,
"implemented": true,

@@ -467,9 +467,9 @@ "kind": "function",

"parameters": {
"id": 9266,
"id": 6626,
"nodeType": "ParameterList",
"parameters": [],
"src": "754:2:36"
"src": "754:2:28"
},
"returnParameters": {
"id": 9269,
"id": 6629,
"nodeType": "ParameterList",

@@ -479,8 +479,8 @@ "parameters": [

"constant": false,
"id": 9268,
"id": 6628,
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9274,
"src": "788:15:36",
"scope": 6634,
"src": "788:15:28",
"stateVariable": false,

@@ -493,6 +493,6 @@ "storageLocation": "default",

"typeName": {
"id": 9267,
"id": 6627,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "788:15:36",
"src": "788:15:28",
"stateMutability": "payable",

@@ -508,6 +508,6 @@ "typeDescriptions": {

],
"src": "787:17:36"
"src": "787:17:28"
},
"scope": 9286,
"src": "735:104:36",
"scope": 6646,
"src": "735:104:28",
"stateMutability": "view",

@@ -519,5 +519,5 @@ "virtual": true,

"body": {
"id": 9284,
"id": 6644,
"nodeType": "Block",
"src": "910:165:36",
"src": "910:165:28",
"statements": [

@@ -527,3 +527,3 @@ {

"argumentTypes": null,
"id": 9279,
"id": 6639,
"name": "this",

@@ -533,11 +533,11 @@ "nodeType": "Identifier",

"referencedDeclaration": -28,
"src": "920:4:36",
"src": "920:4:28",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Context_$9286",
"typeIdentifier": "t_contract$_Context_$6646",
"typeString": "contract Context"
}
},
"id": 9280,
"id": 6640,
"nodeType": "ExpressionStatement",
"src": "920:4:36"
"src": "920:4:28"
},

@@ -549,3 +549,3 @@ {

"argumentTypes": null,
"id": 9281,
"id": 6641,
"name": "msg",

@@ -555,3 +555,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "1060:3:36",
"src": "1060:3:28",
"typeDescriptions": {

@@ -562,3 +562,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9282,
"id": 6642,
"isConstant": false,

@@ -571,3 +571,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "1060:8:36",
"src": "1060:8:28",
"typeDescriptions": {

@@ -578,6 +578,6 @@ "typeIdentifier": "t_bytes_calldata_ptr",

},
"functionReturnParameters": 9278,
"id": 9283,
"functionReturnParameters": 6638,
"id": 6643,
"nodeType": "Return",
"src": "1053:15:36"
"src": "1053:15:28"
}

@@ -587,3 +587,3 @@ ]

"documentation": null,
"id": 9285,
"id": 6645,
"implemented": true,

@@ -596,9 +596,9 @@ "kind": "function",

"parameters": {
"id": 9275,
"id": 6635,
"nodeType": "ParameterList",
"parameters": [],
"src": "862:2:36"
"src": "862:2:28"
},
"returnParameters": {
"id": 9278,
"id": 6638,
"nodeType": "ParameterList",

@@ -608,8 +608,8 @@ "parameters": [

"constant": false,
"id": 9277,
"id": 6637,
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9285,
"src": "896:12:36",
"scope": 6645,
"src": "896:12:28",
"stateVariable": false,

@@ -622,6 +622,6 @@ "storageLocation": "memory",

"typeName": {
"id": 9276,
"id": 6636,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "896:5:36",
"src": "896:5:28",
"typeDescriptions": {

@@ -636,6 +636,6 @@ "typeIdentifier": "t_bytes_storage_ptr",

],
"src": "895:14:36"
"src": "895:14:28"
},
"scope": 9286,
"src": "845:230:36",
"scope": 6646,
"src": "845:230:28",
"stateMutability": "view",

@@ -646,7 +646,7 @@ "virtual": true,

],
"scope": 9287,
"src": "525:552:36"
"scope": 6647,
"src": "525:552:28"
}
],
"src": "0:1078:36"
"src": "0:1078:28"
},

@@ -659,3 +659,3 @@ "compiler": {

"schemaVersion": "3.3.1",
"updatedAt": "2021-04-19T01:50:55.764Z",
"updatedAt": "2021-04-19T22:49:01.836Z",
"devdoc": {

@@ -662,0 +662,0 @@ "methods": {}

@@ -29,10 +29,10 @@ {

"IMultiCurrency": [
8595
5955
]
},
"id": 8596,
"id": 5956,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 8589,
"id": 5949,
"literals": [

@@ -45,3 +45,3 @@ "solidity",

"nodeType": "PragmaDirective",
"src": "39:23:30"
"src": "39:23:22"
},

@@ -55,5 +55,5 @@ {

"fullyImplemented": false,
"id": 8595,
"id": 5955,
"linearizedBaseContracts": [
8595
5955
],

@@ -67,3 +67,3 @@ "name": "IMultiCurrency",

"functionSelector": "1feeece2",
"id": 8594,
"id": 5954,
"implemented": false,

@@ -76,9 +76,9 @@ "kind": "function",

"parameters": {
"id": 8590,
"id": 5950,
"nodeType": "ParameterList",
"parameters": [],
"src": "114:2:30"
"src": "114:2:22"
},
"returnParameters": {
"id": 8593,
"id": 5953,
"nodeType": "ParameterList",

@@ -88,8 +88,8 @@ "parameters": [

"constant": false,
"id": 8592,
"id": 5952,
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 8594,
"src": "140:7:30",
"scope": 5954,
"src": "140:7:22",
"stateVariable": false,

@@ -102,6 +102,6 @@ "storageLocation": "default",

"typeName": {
"id": 8591,
"id": 5951,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "140:7:30",
"src": "140:7:22",
"typeDescriptions": {

@@ -116,6 +116,6 @@ "typeIdentifier": "t_uint256",

],
"src": "139:9:30"
"src": "139:9:22"
},
"scope": 8595,
"src": "95:54:30",
"scope": 5955,
"src": "95:54:22",
"stateMutability": "view",

@@ -126,7 +126,7 @@ "virtual": false,

],
"scope": 8596,
"src": "64:87:30"
"scope": 5956,
"src": "64:87:22"
}
],
"src": "39:113:30"
"src": "39:113:22"
},

@@ -137,10 +137,10 @@ "legacyAST": {

"IMultiCurrency": [
8595
5955
]
},
"id": 8596,
"id": 5956,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 8589,
"id": 5949,
"literals": [

@@ -153,3 +153,3 @@ "solidity",

"nodeType": "PragmaDirective",
"src": "39:23:30"
"src": "39:23:22"
},

@@ -163,5 +163,5 @@ {

"fullyImplemented": false,
"id": 8595,
"id": 5955,
"linearizedBaseContracts": [
8595
5955
],

@@ -175,3 +175,3 @@ "name": "IMultiCurrency",

"functionSelector": "1feeece2",
"id": 8594,
"id": 5954,
"implemented": false,

@@ -184,9 +184,9 @@ "kind": "function",

"parameters": {
"id": 8590,
"id": 5950,
"nodeType": "ParameterList",
"parameters": [],
"src": "114:2:30"
"src": "114:2:22"
},
"returnParameters": {
"id": 8593,
"id": 5953,
"nodeType": "ParameterList",

@@ -196,8 +196,8 @@ "parameters": [

"constant": false,
"id": 8592,
"id": 5952,
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 8594,
"src": "140:7:30",
"scope": 5954,
"src": "140:7:22",
"stateVariable": false,

@@ -210,6 +210,6 @@ "storageLocation": "default",

"typeName": {
"id": 8591,
"id": 5951,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "140:7:30",
"src": "140:7:22",
"typeDescriptions": {

@@ -224,6 +224,6 @@ "typeIdentifier": "t_uint256",

],
"src": "139:9:30"
"src": "139:9:22"
},
"scope": 8595,
"src": "95:54:30",
"scope": 5955,
"src": "95:54:22",
"stateMutability": "view",

@@ -234,7 +234,7 @@ "virtual": false,

],
"scope": 8596,
"src": "64:87:30"
"scope": 5956,
"src": "64:87:22"
}
],
"src": "39:113:30"
"src": "39:113:22"
},

@@ -247,3 +247,3 @@ "compiler": {

"schemaVersion": "3.3.1",
"updatedAt": "2021-04-19T01:50:55.753Z",
"updatedAt": "2021-04-19T22:49:01.826Z",
"devdoc": {

@@ -250,0 +250,0 @@ "methods": {}

@@ -293,3 +293,3 @@ {

"schemaVersion": "3.3.1",
"updatedAt": "2021-04-19T01:50:55.657Z",
"updatedAt": "2021-04-19T22:49:01.758Z",
"devdoc": {

@@ -296,0 +296,0 @@ "methods": {}

@@ -1578,3 +1578,3 @@ {

"schemaVersion": "3.3.1",
"updatedAt": "2021-04-19T01:50:55.658Z",
"updatedAt": "2021-04-19T22:49:01.760Z",
"devdoc": {

@@ -1581,0 +1581,0 @@ "methods": {}

@@ -1220,3 +1220,3 @@ {

"schemaVersion": "3.3.1",
"updatedAt": "2021-04-19T01:50:55.667Z",
"updatedAt": "2021-04-19T22:49:01.768Z",
"devdoc": {

@@ -1223,0 +1223,0 @@ "methods": {}

@@ -47,4 +47,4 @@ {

"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610064578063fdacd576146100ae575b600080fd5b61004e6100dc565b6040518082815260200191505060405180910390f35b61006c6100e2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100da600480360360208110156100c457600080fd5b8101908080359060200190929190505050610107565b005b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806101b76033913960400191505060405180910390fd5b806001819055505056fe546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572a26469706673582212208e1a980bbbc4be81db6a9c18f24dc2dfc66159a1fb7a8f6c4aeedbcca68b2eb264736f6c63430006020033",
"sourceMap": "66:352:34:-:0;;;113:10;90:33;;;;;;;;;;;;;;;;;;;;66:352;8:9:-1;5:2;;;30:1;27;20:12;5:2;66:352:34;;;;;;;",
"deployedSourceMap": "66:352:34:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66:352:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;127:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;90:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;313:103;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;313:103:34;;;;;;;;;;;;;;;;;:::i;:::-;;127:36;;;;:::o;90:33::-;;;;;;;;;;;;;:::o;313:103::-;225:5;;;;;;;;;;;211:19;;:10;:19;;;196:101;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;402:9:::1;375:24;:36;;;;313:103:::0;:::o",
"sourceMap": "66:352:26:-:0;;;113:10;90:33;;;;;;;;;;;;;;;;;;;;66:352;8:9:-1;5:2;;;30:1;27;20:12;5:2;66:352:26;;;;;;;",
"deployedSourceMap": "66:352:26:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66:352:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;127:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;90:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;313:103;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;313:103:26;;;;;;;;;;;;;;;;;:::i;:::-;;127:36;;;;:::o;90:33::-;;;;;;;;;;;;;:::o;313:103::-;225:5;;;;;;;;;;;211:19;;:10;:19;;;196:101;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;402:9:::1;375:24;:36;;;;313:103:::0;:::o",
"source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.4.22 <0.8.0;\n\ncontract Migrations {\n address public owner = msg.sender;\n uint public last_completed_migration;\n\n modifier restricted() {\n require(\n msg.sender == owner,\n \"This function is restricted to the contract's owner\"\n );\n _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n}\n",

@@ -56,10 +56,10 @@ "sourcePath": "/home/runner/work/Acala/Acala/predeploy-contracts/contracts/utils/Migrations.sol",

"Migrations": [
9172
6532
]
},
"id": 9173,
"id": 6533,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9141,
"id": 6501,
"literals": [

@@ -75,3 +75,3 @@ "solidity",

"nodeType": "PragmaDirective",
"src": "32:32:34"
"src": "32:32:26"
},

@@ -85,5 +85,5 @@ {

"fullyImplemented": true,
"id": 9172,
"id": 6532,
"linearizedBaseContracts": [
9172
6532
],

@@ -96,8 +96,8 @@ "name": "Migrations",

"functionSelector": "8da5cb5b",
"id": 9145,
"id": 6505,
"name": "owner",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9172,
"src": "90:33:34",
"scope": 6532,
"src": "90:33:26",
"stateVariable": true,

@@ -110,6 +110,6 @@ "storageLocation": "default",

"typeName": {
"id": 9142,
"id": 6502,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "90:7:34",
"src": "90:7:26",
"stateMutability": "nonpayable",

@@ -125,3 +125,3 @@ "typeDescriptions": {

"argumentTypes": null,
"id": 9143,
"id": 6503,
"name": "msg",

@@ -131,3 +131,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "113:3:34",
"src": "113:3:26",
"typeDescriptions": {

@@ -138,3 +138,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9144,
"id": 6504,
"isConstant": false,

@@ -147,3 +147,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "113:10:34",
"src": "113:10:26",
"typeDescriptions": {

@@ -159,8 +159,8 @@ "typeIdentifier": "t_address_payable",

"functionSelector": "445df0ac",
"id": 9147,
"id": 6507,
"name": "last_completed_migration",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9172,
"src": "127:36:34",
"scope": 6532,
"src": "127:36:26",
"stateVariable": true,

@@ -173,6 +173,6 @@ "storageLocation": "default",

"typeName": {
"id": 9146,
"id": 6506,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "127:4:34",
"src": "127:4:26",
"typeDescriptions": {

@@ -188,5 +188,5 @@ "typeIdentifier": "t_uint256",

"body": {
"id": 9158,
"id": 6518,
"nodeType": "Block",
"src": "190:119:34",
"src": "190:119:26",
"statements": [

@@ -203,3 +203,3 @@ {

},
"id": 9153,
"id": 6513,
"isConstant": false,

@@ -213,3 +213,3 @@ "isLValue": false,

"argumentTypes": null,
"id": 9150,
"id": 6510,
"name": "msg",

@@ -219,3 +219,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "211:3:34",
"src": "211:3:26",
"typeDescriptions": {

@@ -226,3 +226,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9151,
"id": 6511,
"isConstant": false,

@@ -235,3 +235,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "211:10:34",
"src": "211:10:26",
"typeDescriptions": {

@@ -246,8 +246,8 @@ "typeIdentifier": "t_address_payable",

"argumentTypes": null,
"id": 9152,
"id": 6512,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9145,
"src": "225:5:34",
"referencedDeclaration": 6505,
"src": "225:5:26",
"typeDescriptions": {

@@ -258,3 +258,3 @@ "typeIdentifier": "t_address",

},
"src": "211:19:34",
"src": "211:19:26",
"typeDescriptions": {

@@ -268,3 +268,3 @@ "typeIdentifier": "t_bool",

"hexValue": "546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572",
"id": 9154,
"id": 6514,
"isConstant": false,

@@ -276,3 +276,3 @@ "isLValue": false,

"nodeType": "Literal",
"src": "238:53:34",
"src": "238:53:26",
"subdenomination": null,

@@ -297,3 +297,3 @@ "typeDescriptions": {

],
"id": 9149,
"id": 6509,
"name": "require",

@@ -306,3 +306,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -18,
"src": "196:7:34",
"src": "196:7:26",
"typeDescriptions": {

@@ -313,3 +313,3 @@ "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",

},
"id": 9155,
"id": 6515,
"isConstant": false,

@@ -322,3 +322,3 @@ "isLValue": false,

"nodeType": "FunctionCall",
"src": "196:101:34",
"src": "196:101:26",
"tryCall": false,

@@ -330,10 +330,10 @@ "typeDescriptions": {

},
"id": 9156,
"id": 6516,
"nodeType": "ExpressionStatement",
"src": "196:101:34"
"src": "196:101:26"
},
{
"id": 9157,
"id": 6517,
"nodeType": "PlaceholderStatement",
"src": "303:1:34"
"src": "303:1:26"
}

@@ -343,3 +343,3 @@ ]

"documentation": null,
"id": 9159,
"id": 6519,
"name": "restricted",

@@ -349,8 +349,8 @@ "nodeType": "ModifierDefinition",

"parameters": {
"id": 9148,
"id": 6508,
"nodeType": "ParameterList",
"parameters": [],
"src": "187:2:34"
"src": "187:2:26"
},
"src": "168:141:34",
"src": "168:141:26",
"virtual": false,

@@ -361,5 +361,5 @@ "visibility": "internal"

"body": {
"id": 9170,
"id": 6530,
"nodeType": "Block",
"src": "369:47:34",
"src": "369:47:26",
"statements": [

@@ -369,3 +369,3 @@ {

"argumentTypes": null,
"id": 9168,
"id": 6528,
"isConstant": false,

@@ -377,8 +377,8 @@ "isLValue": false,

"argumentTypes": null,
"id": 9166,
"id": 6526,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9147,
"src": "375:24:34",
"referencedDeclaration": 6507,
"src": "375:24:26",
"typeDescriptions": {

@@ -393,8 +393,8 @@ "typeIdentifier": "t_uint256",

"argumentTypes": null,
"id": 9167,
"id": 6527,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9161,
"src": "402:9:34",
"referencedDeclaration": 6521,
"src": "402:9:26",
"typeDescriptions": {

@@ -405,3 +405,3 @@ "typeIdentifier": "t_uint256",

},
"src": "375:36:34",
"src": "375:36:26",
"typeDescriptions": {

@@ -412,5 +412,5 @@ "typeIdentifier": "t_uint256",

},
"id": 9169,
"id": 6529,
"nodeType": "ExpressionStatement",
"src": "375:36:34"
"src": "375:36:26"
}

@@ -421,3 +421,3 @@ ]

"functionSelector": "fdacd576",
"id": 9171,
"id": 6531,
"implemented": true,

@@ -428,11 +428,11 @@ "kind": "function",

"arguments": null,
"id": 9164,
"id": 6524,
"modifierName": {
"argumentTypes": null,
"id": 9163,
"id": 6523,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9159,
"src": "358:10:34",
"referencedDeclaration": 6519,
"src": "358:10:26",
"typeDescriptions": {

@@ -444,3 +444,3 @@ "typeIdentifier": "t_modifier$__$",

"nodeType": "ModifierInvocation",
"src": "358:10:34"
"src": "358:10:26"
}

@@ -452,3 +452,3 @@ ],

"parameters": {
"id": 9162,
"id": 6522,
"nodeType": "ParameterList",

@@ -458,8 +458,8 @@ "parameters": [

"constant": false,
"id": 9161,
"id": 6521,
"name": "completed",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9171,
"src": "335:14:34",
"scope": 6531,
"src": "335:14:26",
"stateVariable": false,

@@ -472,6 +472,6 @@ "storageLocation": "default",

"typeName": {
"id": 9160,
"id": 6520,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "335:4:34",
"src": "335:4:26",
"typeDescriptions": {

@@ -486,12 +486,12 @@ "typeIdentifier": "t_uint256",

],
"src": "334:16:34"
"src": "334:16:26"
},
"returnParameters": {
"id": 9165,
"id": 6525,
"nodeType": "ParameterList",
"parameters": [],
"src": "369:0:34"
"src": "369:0:26"
},
"scope": 9172,
"src": "313:103:34",
"scope": 6532,
"src": "313:103:26",
"stateMutability": "nonpayable",

@@ -502,7 +502,7 @@ "virtual": false,

],
"scope": 9173,
"src": "66:352:34"
"scope": 6533,
"src": "66:352:26"
}
],
"src": "32:387:34"
"src": "32:387:26"
},

@@ -513,10 +513,10 @@ "legacyAST": {

"Migrations": [
9172
6532
]
},
"id": 9173,
"id": 6533,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9141,
"id": 6501,
"literals": [

@@ -532,3 +532,3 @@ "solidity",

"nodeType": "PragmaDirective",
"src": "32:32:34"
"src": "32:32:26"
},

@@ -542,5 +542,5 @@ {

"fullyImplemented": true,
"id": 9172,
"id": 6532,
"linearizedBaseContracts": [
9172
6532
],

@@ -553,8 +553,8 @@ "name": "Migrations",

"functionSelector": "8da5cb5b",
"id": 9145,
"id": 6505,
"name": "owner",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9172,
"src": "90:33:34",
"scope": 6532,
"src": "90:33:26",
"stateVariable": true,

@@ -567,6 +567,6 @@ "storageLocation": "default",

"typeName": {
"id": 9142,
"id": 6502,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "90:7:34",
"src": "90:7:26",
"stateMutability": "nonpayable",

@@ -582,3 +582,3 @@ "typeDescriptions": {

"argumentTypes": null,
"id": 9143,
"id": 6503,
"name": "msg",

@@ -588,3 +588,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "113:3:34",
"src": "113:3:26",
"typeDescriptions": {

@@ -595,3 +595,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9144,
"id": 6504,
"isConstant": false,

@@ -604,3 +604,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "113:10:34",
"src": "113:10:26",
"typeDescriptions": {

@@ -616,8 +616,8 @@ "typeIdentifier": "t_address_payable",

"functionSelector": "445df0ac",
"id": 9147,
"id": 6507,
"name": "last_completed_migration",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9172,
"src": "127:36:34",
"scope": 6532,
"src": "127:36:26",
"stateVariable": true,

@@ -630,6 +630,6 @@ "storageLocation": "default",

"typeName": {
"id": 9146,
"id": 6506,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "127:4:34",
"src": "127:4:26",
"typeDescriptions": {

@@ -645,5 +645,5 @@ "typeIdentifier": "t_uint256",

"body": {
"id": 9158,
"id": 6518,
"nodeType": "Block",
"src": "190:119:34",
"src": "190:119:26",
"statements": [

@@ -660,3 +660,3 @@ {

},
"id": 9153,
"id": 6513,
"isConstant": false,

@@ -670,3 +670,3 @@ "isLValue": false,

"argumentTypes": null,
"id": 9150,
"id": 6510,
"name": "msg",

@@ -676,3 +676,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -15,
"src": "211:3:34",
"src": "211:3:26",
"typeDescriptions": {

@@ -683,3 +683,3 @@ "typeIdentifier": "t_magic_message",

},
"id": 9151,
"id": 6511,
"isConstant": false,

@@ -692,3 +692,3 @@ "isLValue": false,

"referencedDeclaration": null,
"src": "211:10:34",
"src": "211:10:26",
"typeDescriptions": {

@@ -703,8 +703,8 @@ "typeIdentifier": "t_address_payable",

"argumentTypes": null,
"id": 9152,
"id": 6512,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9145,
"src": "225:5:34",
"referencedDeclaration": 6505,
"src": "225:5:26",
"typeDescriptions": {

@@ -715,3 +715,3 @@ "typeIdentifier": "t_address",

},
"src": "211:19:34",
"src": "211:19:26",
"typeDescriptions": {

@@ -725,3 +725,3 @@ "typeIdentifier": "t_bool",

"hexValue": "546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572",
"id": 9154,
"id": 6514,
"isConstant": false,

@@ -733,3 +733,3 @@ "isLValue": false,

"nodeType": "Literal",
"src": "238:53:34",
"src": "238:53:26",
"subdenomination": null,

@@ -754,3 +754,3 @@ "typeDescriptions": {

],
"id": 9149,
"id": 6509,
"name": "require",

@@ -763,3 +763,3 @@ "nodeType": "Identifier",

"referencedDeclaration": -18,
"src": "196:7:34",
"src": "196:7:26",
"typeDescriptions": {

@@ -770,3 +770,3 @@ "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",

},
"id": 9155,
"id": 6515,
"isConstant": false,

@@ -779,3 +779,3 @@ "isLValue": false,

"nodeType": "FunctionCall",
"src": "196:101:34",
"src": "196:101:26",
"tryCall": false,

@@ -787,10 +787,10 @@ "typeDescriptions": {

},
"id": 9156,
"id": 6516,
"nodeType": "ExpressionStatement",
"src": "196:101:34"
"src": "196:101:26"
},
{
"id": 9157,
"id": 6517,
"nodeType": "PlaceholderStatement",
"src": "303:1:34"
"src": "303:1:26"
}

@@ -800,3 +800,3 @@ ]

"documentation": null,
"id": 9159,
"id": 6519,
"name": "restricted",

@@ -806,8 +806,8 @@ "nodeType": "ModifierDefinition",

"parameters": {
"id": 9148,
"id": 6508,
"nodeType": "ParameterList",
"parameters": [],
"src": "187:2:34"
"src": "187:2:26"
},
"src": "168:141:34",
"src": "168:141:26",
"virtual": false,

@@ -818,5 +818,5 @@ "visibility": "internal"

"body": {
"id": 9170,
"id": 6530,
"nodeType": "Block",
"src": "369:47:34",
"src": "369:47:26",
"statements": [

@@ -826,3 +826,3 @@ {

"argumentTypes": null,
"id": 9168,
"id": 6528,
"isConstant": false,

@@ -834,8 +834,8 @@ "isLValue": false,

"argumentTypes": null,
"id": 9166,
"id": 6526,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9147,
"src": "375:24:34",
"referencedDeclaration": 6507,
"src": "375:24:26",
"typeDescriptions": {

@@ -850,8 +850,8 @@ "typeIdentifier": "t_uint256",

"argumentTypes": null,
"id": 9167,
"id": 6527,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9161,
"src": "402:9:34",
"referencedDeclaration": 6521,
"src": "402:9:26",
"typeDescriptions": {

@@ -862,3 +862,3 @@ "typeIdentifier": "t_uint256",

},
"src": "375:36:34",
"src": "375:36:26",
"typeDescriptions": {

@@ -869,5 +869,5 @@ "typeIdentifier": "t_uint256",

},
"id": 9169,
"id": 6529,
"nodeType": "ExpressionStatement",
"src": "375:36:34"
"src": "375:36:26"
}

@@ -878,3 +878,3 @@ ]

"functionSelector": "fdacd576",
"id": 9171,
"id": 6531,
"implemented": true,

@@ -885,11 +885,11 @@ "kind": "function",

"arguments": null,
"id": 9164,
"id": 6524,
"modifierName": {
"argumentTypes": null,
"id": 9163,
"id": 6523,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9159,
"src": "358:10:34",
"referencedDeclaration": 6519,
"src": "358:10:26",
"typeDescriptions": {

@@ -901,3 +901,3 @@ "typeIdentifier": "t_modifier$__$",

"nodeType": "ModifierInvocation",
"src": "358:10:34"
"src": "358:10:26"
}

@@ -909,3 +909,3 @@ ],

"parameters": {
"id": 9162,
"id": 6522,
"nodeType": "ParameterList",

@@ -915,8 +915,8 @@ "parameters": [

"constant": false,
"id": 9161,
"id": 6521,
"name": "completed",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 9171,
"src": "335:14:34",
"scope": 6531,
"src": "335:14:26",
"stateVariable": false,

@@ -929,6 +929,6 @@ "storageLocation": "default",

"typeName": {
"id": 9160,
"id": 6520,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "335:4:34",
"src": "335:4:26",
"typeDescriptions": {

@@ -943,12 +943,12 @@ "typeIdentifier": "t_uint256",

],
"src": "334:16:34"
"src": "334:16:26"
},
"returnParameters": {
"id": 9165,
"id": 6525,
"nodeType": "ParameterList",
"parameters": [],
"src": "369:0:34"
"src": "369:0:26"
},
"scope": 9172,
"src": "313:103:34",
"scope": 6532,
"src": "313:103:26",
"stateMutability": "nonpayable",

@@ -959,7 +959,7 @@ "virtual": false,

],
"scope": 9173,
"src": "66:352:34"
"scope": 6533,
"src": "66:352:26"
}
],
"src": "32:387:34"
"src": "32:387:26"
},

@@ -972,3 +972,3 @@ "compiler": {

"schemaVersion": "3.3.1",
"updatedAt": "2021-04-19T01:50:55.762Z",
"updatedAt": "2021-04-19T22:49:01.835Z",
"devdoc": {

@@ -975,0 +975,0 @@ "methods": {}

{
"name": "@acala-network/contracts",
"version": "1.0.16",
"version": "1.0.17",
"description": "AcalaNetwork Smart Contract library for Solidity",

@@ -5,0 +5,0 @@ "files": [

@@ -5,9 +5,3 @@ export const ACA: "0x0000000000000000000000000000000001000000";

export const LDOT: "0x0000000000000000000000000000000001000003";
export const XBTC: "0x0000000000000000000000000000000001000004";
export const RENBTC: "0x0000000000000000000000000000000001000005";
export const POLKABTC: "0x0000000000000000000000000000000001000006";
export const PLM: "0x0000000000000000000000000000000001000007";
export const PHA: "0x0000000000000000000000000000000001000008";
export const HDT: "0x0000000000000000000000000000000001000009";
export const BCG: "0x000000000000000000000000000000000100000B";
export const RENBTC: "0x0000000000000000000000000000000001000004";
export const KAR: "0x0000000000000000000000000000000001000080";

@@ -17,4 +11,2 @@ export const KUSD: "0x0000000000000000000000000000000001000081";

export const LKSM: "0x0000000000000000000000000000000001000083";
export const SDN: "0x0000000000000000000000000000000001000087";
export const KILT: "0x000000000000000000000000000000000100008A";
export const StateRent: "0x0000000000000000000000000000000000000800";

@@ -21,0 +13,0 @@ export const Oracle: "0x0000000000000000000000000000000000000801";

@@ -5,9 +5,3 @@ const ACA = '0x0000000000000000000000000000000001000000';

const LDOT = '0x0000000000000000000000000000000001000003';
const XBTC = '0x0000000000000000000000000000000001000004';
const RENBTC = '0x0000000000000000000000000000000001000005';
const POLKABTC = '0x0000000000000000000000000000000001000006';
const PLM = '0x0000000000000000000000000000000001000007';
const PHA = '0x0000000000000000000000000000000001000008';
const HDT = '0x0000000000000000000000000000000001000009';
const BCG = '0x000000000000000000000000000000000100000B';
const RENBTC = '0x0000000000000000000000000000000001000004';
const KAR = '0x0000000000000000000000000000000001000080';

@@ -17,4 +11,2 @@ const KUSD = '0x0000000000000000000000000000000001000081';

const LKSM = '0x0000000000000000000000000000000001000083';
const SDN = '0x0000000000000000000000000000000001000087';
const KILT = '0x000000000000000000000000000000000100008A';
const StateRent = '0x0000000000000000000000000000000000000800';

@@ -30,9 +22,3 @@ const Oracle = '0x0000000000000000000000000000000000000801';

LDOT,
XBTC,
RENBTC,
POLKABTC,
PLM,
PHA,
HDT,
BCG,
KAR,

@@ -42,4 +28,2 @@ KUSD,

LKSM,
SDN,
KILT,
StateRent,

@@ -46,0 +30,0 @@ Oracle,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc