@simbachain/libsimba-js
Version:
libsimba-js is a library simplifying the use of SIMBAChain APIs. We aim to abstract away the various blockchain concepts, reducing the necessary time needed to get to working code.
1,043 lines • 23 kB
JSON
{
"type": "File",
"start": 0,
"end": 170,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 170,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 30
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
},
"identifierName": "Wallet"
},
"name": "Wallet"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 29
}
},
"extra": {
"rawValue": "./wallet",
"raw": "'./wallet'"
},
"value": "./wallet"
}
},
{
"type": "ImportDeclaration",
"start": 32,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 39,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 18
}
},
"local": {
"type": "Identifier",
"start": 39,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 18
},
"identifierName": "LocalWallet"
},
"name": "LocalWallet"
}
}
],
"source": {
"type": "StringLiteral",
"start": 56,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 39
}
},
"extra": {
"rawValue": "./localwallet",
"raw": "'./localwallet'"
},
"value": "./localwallet"
}
},
{
"type": "ImportDeclaration",
"start": 74,
"end": 108,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 34
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 81,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 81,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "PKWallet"
},
"name": "PKWallet"
}
}
],
"source": {
"type": "StringLiteral",
"start": 95,
"end": 107,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 33
}
},
"extra": {
"rawValue": "./pkwallet",
"raw": "'./pkwallet'"
},
"value": "./pkwallet"
}
},
{
"type": "ExportNamedDeclaration",
"start": 112,
"end": 168,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"declaration": null,
"specifiers": [
{
"type": "ExportSpecifier",
"start": 126,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
}
},
"local": {
"type": "Identifier",
"start": 126,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
},
"identifierName": "Wallet"
},
"name": "Wallet"
},
"exported": {
"type": "Identifier",
"start": 126,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
},
"identifierName": "Wallet"
},
"name": "Wallet"
}
},
{
"type": "ExportSpecifier",
"start": 139,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 139,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
},
"identifierName": "LocalWallet"
},
"name": "LocalWallet"
},
"exported": {
"type": "Identifier",
"start": 139,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
},
"identifierName": "LocalWallet"
},
"name": "LocalWallet"
}
},
{
"type": "ExportSpecifier",
"start": 157,
"end": 165,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 157,
"end": 165,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 12
},
"identifierName": "PKWallet"
},
"name": "PKWallet"
},
"exported": {
"type": "Identifier",
"start": 157,
"end": 165,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 12
},
"identifierName": "PKWallet"
},
"name": "PKWallet"
}
}
],
"source": null
}
],
"directives": []
},
"comments": [],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Wallet",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 14,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./wallet",
"start": 19,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 29,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 32,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "LocalWallet",
"start": 39,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 51,
"end": 55,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 23
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./localwallet",
"start": 56,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 71,
"end": 72,
"loc": {
"start": {
"line": 2,
"column": 39
},
"end": {
"line": 2,
"column": 40
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 74,
"end": 80,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PKWallet",
"start": 81,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 90,
"end": 94,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 20
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./pkwallet",
"start": 95,
"end": 107,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 107,
"end": 108,
"loc": {
"start": {
"line": 3,
"column": 33
},
"end": {
"line": 3,
"column": 34
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 112,
"end": 118,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 119,
"end": 120,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Wallet",
"start": 126,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 132,
"end": 133,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "LocalWallet",
"start": 139,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 150,
"end": 151,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PKWallet",
"start": 157,
"end": 165,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 167,
"end": 168,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 170,
"end": 170,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 10,
"column": 0
}
}
}
]
}