Skip to content

SOURC3XYZ/Sourc3-Web-Client

 
 

Repository files navigation

Build

Running SOURC3 Web Client

Run web client extension

npm install npm run build

Enable developer mode in Chrome chrome://extensions/ Import unpacked extension from ./dist

Web wallet integration with DAPP

Utils.initialize({
  "appname": "DAPP NAME",
  "min_api_version": "6.2",
  "headless": false,
  "apiResultHandler": (error, result, full) => {
    console.log('api result data: ', result, full);
  }
}, (err) => {
    Utils.download("./PATH_TO_SHADER.wasm", (err, bytes) => {
        // subscribe to the state change event
        Utils.callApi("ev_subunsub", {ev_system_state: true}, 
          (error, result, full) => {
          
          }
        );
    })
});
Utils.callApi("METHOD_NAME", PARAMS, (error, result, full) => {});
  • Invoke contract methods
Utils.invokeContract("role=manager,action=view,cid=" + CID, (error, result, full) => {});

Examples:

DAO Voting App

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.5%
  • Other 1.5%