-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
318 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
|
||
var _exists = _interopRequireDefault(require("./exists")); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
/** @const {object} assets bind assets constant to variable */ | ||
var assets = _exists.default ? window.NOS.ASSETS : { | ||
NEO: 'c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b', | ||
GAS: '602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7' | ||
}; | ||
var _default = assets; | ||
exports.default = _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
|
||
/** @const {boolean} exists check whether nOS is defined */ | ||
var exists = !!window.NOS; | ||
var _default = exists; | ||
exports.default = _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,25 +3,21 @@ | |
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
Object.defineProperty(exports, "assets", { | ||
enumerable: true, | ||
get: function get() { | ||
return _assets.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "nos", { | ||
enumerable: true, | ||
get: function get() { | ||
return _nos.default; | ||
} | ||
}); | ||
|
||
var _bindings = require("./bindings"); | ||
var _assets = _interopRequireDefault(require("./assets")); | ||
|
||
var _lib = require("./lib"); | ||
var _nos = _interopRequireDefault(require("./nos")); | ||
|
||
/** | ||
* @nosplatform/api-functions | ||
* API bindings (with fallback) and types for nOS dApps | ||
* @author Jeroen Peeters <[email protected]> | ||
*/ | ||
var _default = { | ||
claimGas: _bindings.claimGas, | ||
exists: _lib.exists, | ||
getAddress: _bindings.getAddress, | ||
getBalance: _bindings.getBalance, | ||
getStorage: _bindings.getStorage, | ||
invoke: _bindings.invoke, | ||
send: _bindings.send, | ||
testInvoke: _bindings.testInvoke | ||
}; | ||
exports.default = _default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.