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

@acala-network/contracts

Package Overview
Dependencies
Maintainers
5
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 3.2.0 to 3.3.0

build/contracts/ADDRESS.dbg.json

291

build/contracts/IOracle.json
{
"_format": "hh-sol-artifact-1",
"contractName": "IOracle",
"sourceName": "contracts/oracle/IOracle.sol",
"abi": [

@@ -24,289 +26,6 @@ {

],
"metadata": "{\"compiler\":{\"version\":\"0.7.0+commit.9e61f92b\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/oracle/IOracle.sol\":\"IOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/oracle/IOracle.sol\":{\"keccak256\":\"0x4fb9706b3fdb681247399225a7d40c186a17fc2813f800243f7e98ebacb13adf\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://018ffc5e9056fd0080515d84db58e9416fe9b947ae9d18204ae2f7917df6a27c\",\"dweb:/ipfs/QmR22Jr7oRMoG87EyxL3VWTqSsHAA1nEKjcFUwpthusABP\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.7.0;\n\ninterface IOracle {\n // Get the price of the currency_id.\n // Returns the price.\n function getPrice(address token) external view returns (uint256);\n}\n",
"sourcePath": "/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/oracle/IOracle.sol",
"ast": {
"absolutePath": "/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/oracle/IOracle.sol",
"exportedSymbols": {
"IOracle": [
1252
]
},
"id": 1253,
"license": "GPL-3.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1244,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "46:23:5"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1252,
"linearizedBaseContracts": [
1252
],
"name": "IOracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "41976e09",
"id": 1251,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPrice",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1247,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1246,
"mutability": "mutable",
"name": "token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1251,
"src": "180:13:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1245,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "180:7:5",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "179:15:5"
},
"returnParameters": {
"id": 1250,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1249,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1251,
"src": "218:7:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1248,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "218:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "217:9:5"
},
"scope": 1252,
"src": "162:65:5",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 1253,
"src": "71:158:5"
}
],
"src": "46:184:5"
},
"legacyAST": {
"absolutePath": "/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/oracle/IOracle.sol",
"exportedSymbols": {
"IOracle": [
1252
]
},
"id": 1253,
"license": "GPL-3.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1244,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "46:23:5"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1252,
"linearizedBaseContracts": [
1252
],
"name": "IOracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "41976e09",
"id": 1251,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPrice",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1247,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1246,
"mutability": "mutable",
"name": "token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1251,
"src": "180:13:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1245,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "180:7:5",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "179:15:5"
},
"returnParameters": {
"id": 1250,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1249,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1251,
"src": "218:7:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1248,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "218:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "217:9:5"
},
"scope": 1252,
"src": "162:65:5",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 1253,
"src": "71:158:5"
}
],
"src": "46:184:5"
},
"compiler": {
"name": "solc",
"version": "0.7.0+commit.9e61f92b.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.1",
"updatedAt": "2022-03-18T10:12:13.172Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
"linkReferences": {},
"deployedLinkReferences": {}
}
{
"_format": "hh-sol-artifact-1",
"contractName": "ISchedule",
"sourceName": "contracts/schedule/ISchedule.sol",
"abi": [

@@ -70,38 +72,13 @@ {

{
"internalType": "address",
"name": "contract_address",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "gas_limit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "storage_limit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "min_delay",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "input_data",
"name": "task_id",
"type": "bytes"
}
],
"name": "scheduleCall",
"name": "cancelCall",
"outputs": [
{
"internalType": "bytes",
"internalType": "bool",
"name": "",
"type": "bytes"
"type": "bool"
}

@@ -115,2 +92,7 @@ ],

{
"internalType": "uint256",
"name": "min_delay",
"type": "uint256"
},
{
"internalType": "bytes",

@@ -121,3 +103,3 @@ "name": "task_id",

],
"name": "cancelCall",
"name": "rescheduleCall",
"outputs": [

@@ -136,3 +118,23 @@ {

{
"internalType": "address",
"name": "contract_address",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "gas_limit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "storage_limit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "min_delay",

@@ -143,12 +145,12 @@ "type": "uint256"

"internalType": "bytes",
"name": "task_id",
"name": "input_data",
"type": "bytes"
}
],
"name": "rescheduleCall",
"name": "scheduleCall",
"outputs": [
{
"internalType": "bool",
"internalType": "bytes",
"name": "",
"type": "bool"
"type": "bytes"
}

@@ -160,1477 +162,6 @@ ],

],
"metadata": "{\"compiler\":{\"version\":\"0.7.0+commit.9e61f92b\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"task_id\",\"type\":\"bytes\"}],\"name\":\"CanceledCall\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"task_id\",\"type\":\"bytes\"}],\"name\":\"RescheduledCall\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"contract_address\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"task_id\",\"type\":\"bytes\"}],\"name\":\"ScheduledCall\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"task_id\",\"type\":\"bytes\"}],\"name\":\"cancelCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"min_delay\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"task_id\",\"type\":\"bytes\"}],\"name\":\"rescheduleCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contract_address\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gas_limit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"storage_limit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"min_delay\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"input_data\",\"type\":\"bytes\"}],\"name\":\"scheduleCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/schedule/ISchedule.sol\":\"ISchedule\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/schedule/ISchedule.sol\":{\"keccak256\":\"0x9b6f0d7df03d557f9b61c3cde075496ebff07edd0db4a49052612d3fd5fb99fb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://7a3be725973e2e146ab49acdf29437b04acd5e7834b7a374e5e07608c56e10fd\",\"dweb:/ipfs/QmRGjTsjQEDAGqVqP6byWjUEtgT72VeFrP7ei4HESzRJNV\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.7.0;\n\ninterface ISchedule {\n event ScheduledCall(address indexed sender, address indexed contract_address, bytes task_id);\n event CanceledCall(address indexed sender, bytes task_id);\n event RescheduledCall(address indexed sender, bytes task_id);\n\n // Schedule call the contract.\n // Returns a boolean value indicating whether the operation succeeded.\n function scheduleCall(\n address contract_address, // The contract address to be called in future.\n uint256 value, // How much native token to send alone with the call.\n uint256 gas_limit, // The gas limit for the call. Corresponding fee will be reserved upfront and refunded after call.\n uint256 storage_limit, // The storage limit for the call. Corresponding fee will be reserved upfront and refunded after call.\n uint256 min_delay, // Minimum number of blocks before the scheduled call will be called.\n bytes calldata input_data // The input data to the call.\n )\n external\n returns (bytes memory); // Returns a bytes value equal to the task_id of the task created.\n\n // Cancel schedule call the contract.\n // Returns a boolean value indicating whether the operation succeeded.\n function cancelCall(\n bytes calldata task_id // The task id of the scheduler. Get it from the `ScheduledCall` event.\n )\n external\n returns (bool); // Returns a boolean value indicating whether the operation succeeded.\n\n // Reschedule call the contract.\n // Returns a boolean value indicating whether the operation succeeded.\n function rescheduleCall(\n uint256 min_delay, // Minimum number of blocks before the scheduled call will be called.\n bytes calldata task_id // The task id of the scheduler. Get it from the `ScheduledCall` event.\n )\n external\n returns (bool); // Returns a boolean value indicating whether the operation succeeded.\n}\n",
"sourcePath": "/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/schedule/ISchedule.sol",
"ast": {
"absolutePath": "/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/schedule/ISchedule.sol",
"exportedSymbols": {
"ISchedule": [
1362
]
},
"id": 1363,
"license": "GPL-3.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1308,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "46:23:7"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1362,
"linearizedBaseContracts": [
1362
],
"name": "ISchedule",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 1316,
"name": "ScheduledCall",
"nodeType": "EventDefinition",
"parameters": {
"id": 1315,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1310,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1316,
"src": "117:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1309,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "117:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1312,
"indexed": true,
"mutability": "mutable",
"name": "contract_address",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1316,
"src": "141:32:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1311,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "141:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1314,
"indexed": false,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1316,
"src": "175:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1313,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "175:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "116:73:7"
},
"src": "97:93:7"
},
{
"anonymous": false,
"documentation": null,
"id": 1322,
"name": "CanceledCall",
"nodeType": "EventDefinition",
"parameters": {
"id": 1321,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1318,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1322,
"src": "214:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1317,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "214:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1320,
"indexed": false,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1322,
"src": "238:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1319,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "238:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "213:39:7"
},
"src": "195:58:7"
},
{
"anonymous": false,
"documentation": null,
"id": 1328,
"name": "RescheduledCall",
"nodeType": "EventDefinition",
"parameters": {
"id": 1327,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1324,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1328,
"src": "280:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1323,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "280:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1326,
"indexed": false,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1328,
"src": "304:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1325,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "304:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "279:39:7"
},
"src": "258:61:7"
},
{
"body": null,
"documentation": null,
"functionSelector": "168d560d",
"id": 1345,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "scheduleCall",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1341,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1330,
"mutability": "mutable",
"name": "contract_address",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "466:24:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1329,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "466:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1332,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "548:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1331,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "548:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1334,
"mutability": "mutable",
"name": "gas_limit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "625:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1333,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "625:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1336,
"mutability": "mutable",
"name": "storage_limit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "751:21:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1335,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "751:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1338,
"mutability": "mutable",
"name": "min_delay",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "885:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1337,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "885:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1340,
"mutability": "mutable",
"name": "input_data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "982:25:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1339,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "982:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "456:588:7"
},
"returnParameters": {
"id": 1344,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1343,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "1071:12:7",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1342,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1071:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1070:14:7"
},
"scope": 1362,
"src": "435:650:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "ed67982b",
"id": 1352,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelCall",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1348,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1347,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1352,
"src": "1304:22:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1346,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1304:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1294:110:7"
},
"returnParameters": {
"id": 1351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1350,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1352,
"src": "1431:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1349,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1431:4:7",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1430:6:7"
},
"scope": 1362,
"src": "1275:162:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "80770aa2",
"id": 1361,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "rescheduleCall",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1357,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1354,
"mutability": "mutable",
"name": "min_delay",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1361,
"src": "1659:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1353,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1659:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1356,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1361,
"src": "1756:22:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1355,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1756:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1649:207:7"
},
"returnParameters": {
"id": 1360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1359,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1361,
"src": "1883:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1358,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1883:4:7",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1882:6:7"
},
"scope": 1362,
"src": "1626:263:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 1363,
"src": "71:1891:7"
}
],
"src": "46:1917:7"
},
"legacyAST": {
"absolutePath": "/home/runner/work/predeploy-contracts/predeploy-contracts/contracts/schedule/ISchedule.sol",
"exportedSymbols": {
"ISchedule": [
1362
]
},
"id": 1363,
"license": "GPL-3.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1308,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "46:23:7"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1362,
"linearizedBaseContracts": [
1362
],
"name": "ISchedule",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 1316,
"name": "ScheduledCall",
"nodeType": "EventDefinition",
"parameters": {
"id": 1315,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1310,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1316,
"src": "117:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1309,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "117:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1312,
"indexed": true,
"mutability": "mutable",
"name": "contract_address",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1316,
"src": "141:32:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1311,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "141:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1314,
"indexed": false,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1316,
"src": "175:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1313,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "175:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "116:73:7"
},
"src": "97:93:7"
},
{
"anonymous": false,
"documentation": null,
"id": 1322,
"name": "CanceledCall",
"nodeType": "EventDefinition",
"parameters": {
"id": 1321,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1318,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1322,
"src": "214:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1317,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "214:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1320,
"indexed": false,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1322,
"src": "238:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1319,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "238:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "213:39:7"
},
"src": "195:58:7"
},
{
"anonymous": false,
"documentation": null,
"id": 1328,
"name": "RescheduledCall",
"nodeType": "EventDefinition",
"parameters": {
"id": 1327,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1324,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1328,
"src": "280:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1323,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "280:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1326,
"indexed": false,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1328,
"src": "304:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1325,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "304:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "279:39:7"
},
"src": "258:61:7"
},
{
"body": null,
"documentation": null,
"functionSelector": "168d560d",
"id": 1345,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "scheduleCall",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1341,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1330,
"mutability": "mutable",
"name": "contract_address",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "466:24:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1329,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "466:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1332,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "548:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1331,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "548:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1334,
"mutability": "mutable",
"name": "gas_limit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "625:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1333,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "625:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1336,
"mutability": "mutable",
"name": "storage_limit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "751:21:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1335,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "751:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1338,
"mutability": "mutable",
"name": "min_delay",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "885:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1337,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "885:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1340,
"mutability": "mutable",
"name": "input_data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "982:25:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1339,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "982:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "456:588:7"
},
"returnParameters": {
"id": 1344,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1343,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1345,
"src": "1071:12:7",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1342,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1071:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1070:14:7"
},
"scope": 1362,
"src": "435:650:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "ed67982b",
"id": 1352,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelCall",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1348,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1347,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1352,
"src": "1304:22:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1346,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1304:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1294:110:7"
},
"returnParameters": {
"id": 1351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1350,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1352,
"src": "1431:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1349,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1431:4:7",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1430:6:7"
},
"scope": 1362,
"src": "1275:162:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "80770aa2",
"id": 1361,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "rescheduleCall",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 1357,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1354,
"mutability": "mutable",
"name": "min_delay",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1361,
"src": "1659:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1353,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1659:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1356,
"mutability": "mutable",
"name": "task_id",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1361,
"src": "1756:22:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1355,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1756:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1649:207:7"
},
"returnParameters": {
"id": 1360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1359,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 1361,
"src": "1883:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1358,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1883:4:7",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1882:6:7"
},
"scope": 1362,
"src": "1626:263:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 1363,
"src": "71:1891:7"
}
],
"src": "46:1917:7"
},
"compiler": {
"name": "solc",
"version": "0.7.0+commit.9e61f92b.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.1",
"updatedAt": "2022-03-18T10:12:13.173Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
"linkReferences": {},
"deployedLinkReferences": {}
}
{
"name": "@acala-network/contracts",
"version": "3.2.0",
"version": "3.3.0",
"description": "AcalaNetwork Smart Contract library for Solidity",

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

@@ -17,3 +17,3 @@ # Predeploy-contracts

The token list for ERC20 smart contracts is in `./resources/tokens.json`. symbol and address are needed for each token, for instance:
The token list for ERC20 smart contracts is in `./resources/acala_tokens.json` and `./resources/karura_tokens.json`. symbol and address are needed for each token, for instance:

@@ -26,3 +26,3 @@ ```

```
All of the tokens and predeployed system contracts have generated code in `./contracts/utils/Address.sol` and `./contracts/utils/Address.js`, we can use it directly.
All of the tokens and predeployed system contracts have generated code in `./contracts/utils/AcalaAddress.sol` and `./contracts/utils/AcalaAddress.js` for Acala, `./contracts/utils/KaruraAddress.sol` and `./contracts/utils/KaruraAddress.js` for Karura, we can use it directly.

@@ -34,3 +34,3 @@

These ERC20 contracts make native and cross-chain tokens available inside Acala EVM.
- Mirrored Token contract address: `ADDRESS.ACA`, `ADDRESS.AUSD`...(`./contracts/utils/Address.sol`)
- Mirrored Token contract address: `ADDRESS.ACA`, `ADDRESS.AUSD`...(`./contracts/utils/AcalaAddress.sol` or `./contracts/utils/KaruraAddress.sol`)
```

@@ -132,2 +132,3 @@ // Returns the currencyId of the token.

```
### On-chain Automatic Scheduler

@@ -153,11 +154,15 @@ - ScheduleCall contract address: `ADDRESS.Schedule`

// Get liquidity of the currency_id_a and currency_id_b.
// Returns (liquidity_a, liquidity_b)
// Returns (liquidity_a, liquidity_b).
function getLiquidity(address tokenA, address tokenB) public view returns (uint256, uint256)
// Get Liquidity token address.
// Returns (liquidity_token_address). Return address(0x0) if the liquidity token address is not mapped.
function getLiquidityTokenAddress(address tokenA, address tokenB) external view returns (address);
// Get swap target amount.
// Returns (target_amount)
// Returns (target_amount). Returns 0 if getting the target amount fails.
function getSwapTargetAmount(address[] calldata path, uint256 supplyAmount) external view returns (uint256);
// Get swap supply amount.
// Returns (supply_amount)
// Returns (supply_amount). Returns 0 if getting the supply amount fails.
function getSwapSupplyAmount(address[] calldata path, uint256 targetAmount) external view returns (uint256);

@@ -182,3 +187,111 @@

### Homa Liquid Staking Protocol
- Homa contract address: `ADDRESS.Homa`
```
// Mint liquid currency with staking currency.
// Returns a boolean value indicating whether the operation succeeded.
function mint(uint256 mintAmount) external returns (bool);
// Request to redeem liquid curency for staking currency
// Returns a boolean value indicating whether the operation succeeded.
function requestRedeem(uint256 redeemAmount, bool fastMatch) external returns (bool);
// Get exchange rate
// returns (exchange_rate) is a FixedU128 representing a decimal
function getExchangeRate() external view returns (uint256);
// Get estimated reward rate
// returns (reward_rate) is a FixedU128 representing a decimal value
function getEstimatedRewardRate() external view returns (uint256);
// Get commission rate
// returns (commission_rate) is a FixedU128 representing a decimal
function getCommissionRate() external view returns (uint256);
// Get fast match fee rate
// returns (fast_match_fee) is a FixedU128 representing a decimal
function getFastMatchFee() external view returns (uint256);
```
### EVM Accounts
- EVMAccounts contract address: `ADDRESS.EVMAccounts`
```
event ClaimAccount(address indexed sender, bytes32 indexed accountId, address indexed evmAddress);
// Get the AccountId used to generate the given EvmAddress.
// Returns (accountId).
function getAccountId(address evmAddress) external view returns (bytes32);
// Returns the EvmAddress associated with a given AccountId or the underlying EvmAddress of the AccountId.
// Returns (evmAddress). Return address(0x0) if the AccountId is not mapped.
function getEvmAddress(bytes32 accountId) external view returns (address);
// Claim account mapping between AccountId and a generated EvmAddress based off of the AccountId.
// Returns a boolean value indicating whether the operation succeeded.
function claimDefaultEvmAddress(bytes32 accountId) external returns (bool);
```
### Honzon Protocol
- Honzon contract address: `ADDRESS.Honzon`
```
// Adjust CDP position
// Returns a boolean value indicating whether the operation succeeded.
function adjustLoan(address currencyId, int128 collateralAdjustment, int128 debitAdjustment) external returns (bool);
// Close CDP position with DEX
// Returns a boolean value indicating whether the operation succeeded.
function closeLoanByDex(address currencyId, uint256 maxCollateralAmount) external returns (bool);
// Get an open CDP position
// returns (collateral_amount, debit_amount)
function getPosition(address who, address currencyId) external view returns (uint256, uint256);
// Get liquidation ratio for a currencyId
// returns (liquidation_ratio) is a FixedU128 representing a decimal value
function getLiquidationRatio(address currencyId) external view returns (uint256);
// Get current collateral ratio for a particular CDP position
// returns (current_collateral_ratio) is a FixedU128 representing a decimal value
function getCurrentCollateralRatio(address who, address currencyId) external view returns (uint256);
// Get exchange rate of debit units to debit value for a currency_id
// returns (exchange_rate) is a FixedU128 representing a decimal value
function getDebitExchangeRate(address currencyId) external view returns (uint256);
```
### Incentives
- Incentives contract address: `ADDRESS.Incentives`
```
enum PoolId { LOANS, DEX }
// Gets reward amount in `rewardCurrency` added per period
// Returns (reward_amount)
function getIncentiveRewardAmount(PoolId pool, address poolCurrencyId, address rewardCurrencyId) external view returns (uint256);
// Fixed reward rate for dex reward pool per period
// Returns (dex_reward_rate) as a FixedU128 representing a decimal
function getDexRewardRate(address currencyId) external view returns (uint256);
// Stake LP token to add shares to PoolId::Dex
// Returns a boolean value indicating whether the operation succeeded.
function depositDexShare(address currencyId, uint256 amount) external returns (bool);
// Unstake LP token to remove shares from PoolId::Dex
// Returns a boolean value indicating whether the operation succeeded.
function withdrawDexShare(address currencyId, uint256 amount) external returns (bool);
// Claim all avalible multi currencies rewards for specific PoolId
// Returns a boolean value indicating whether the operation succeeded.
function claimRewards(PoolId pool, address poolCurrencyId) external returns (bool);
// Gets deduction rate for claiming reward early
// returns (claim_reward_deduction_rate) as a FixedU128 representing a decimal value
function getClaimRewardDeductionRate(PoolId pool, address poolCurrencyId) external view returns (uint256);
// Gets the pending rewards for a pool, actual reward could be deducted.
// returns (balances), an array of reward balances corresponding to currencyIds
function getPendingRewards(address[] calldata currencyIds, PoolId pool, address poolCurrencyId, address who) external view returns (uint256[] memory);
```
## DeFi Contracts (Coming Soon)
These contracts will make Acala's DeFi primitives (stablecoin, staking derivative, and DeX) available in Acala EVM.

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

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