Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transaction receipts to responses #145

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions examples/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,18 @@ function divider() {

divider();

const extendStoringResult = await DkgClient.asset.extendStoringPeriod(createAssetResult.UAL, 2);
console.log(`======================== ASSET STORING PERIOD EXTENDED`);
console.log(extendStoringResult);

divider();

const addTokensResult = await DkgClient.asset.addTokens(createAssetResult.UAL, {tokenAmount: 1000});
console.log(`======================== ADD TOKENS FOR AN ASSET`);
console.log(addTokensResult);

divider();

const newOwner = '0x2ACa90078563133db78085F66e6B8Cf5531623Ad';
const transferResult = await DkgClient.asset.transfer(createAssetResult.UAL, newOwner);
console.log(`======================== ASSET TRANSFERRED TO ${newOwner}`);
Expand Down
5 changes: 3 additions & 2 deletions examples/paranet-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ function divider() {
console.log(paranetServiceUAL);
divider();

await DkgClient.paranet.addServices(paranetAssetResult.UAL, [ createServiceKAResult.UAL]);
const addServiceToParanet = await DkgClient.paranet.addServices(paranetAssetResult.UAL, [createServiceKAResult.UAL,]);
console.log('======================== SERVICE ADDED TO PARANET');
console.log(addServiceToParanet);
divider();

content = {
Expand Down Expand Up @@ -154,7 +155,7 @@ function divider() {
divider();

let claimable = await DkgClient.paranet.getClaimableMinerReward(paranetAssetResult.UAL);
console.log('======================== KA MINER REWARD TO CLAIM')
console.log('======================== KA MINER REWARD TO CLAIM');
console.log(claimable);
divider();

Expand Down
Loading