EmbarkJS/src/embark.js

23 lines
515 B
JavaScript
Raw Normal View History

import Storage from './storage.js';
import Names from './names.js';
import Messages from './messages.js';
import Contract from './contracts.js';
import Utils from './utils.js';
2018-07-11 20:51:08 +00:00
2018-07-06 00:26:27 +00:00
var EmbarkJS = {
onReady: function (cb) {
if (typeof (__embarkContext) === 'undefined') {
return cb();
}
return __embarkContext.execWhenReady(cb);
}
};
EmbarkJS.Contract = Contract;
EmbarkJS.Storage = Storage;
EmbarkJS.Names = Names;
EmbarkJS.Messages = Messages;
EmbarkJS.Utils = Utils;
2018-07-06 00:26:27 +00:00
export default EmbarkJS;