Skip to content

Commit

Permalink
Merge pull request #149 from OriginTrail/release/v6.5.3
Browse files Browse the repository at this point in the history
dkg.js Release v6.5.3
  • Loading branch information
u-hubar authored Sep 23, 2024
2 parents b1b46f5 + 44fcf86 commit 5d7e61a
Show file tree
Hide file tree
Showing 12 changed files with 209 additions and 81 deletions.
9 changes: 9 additions & 0 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ const DEFAULT_PROXIMITY_SCORE_FUNCTIONS_PAIR_IDS = {
},
};

const DEFAULT_NEUROWEB_FINALITY_PARAMETERS = {
WAIT_NEUROWEB_TX_FINALIZATION: false,
TX_FINALITY_POLLING_INTERVAL: 6_000,
TX_FINALITY_MAX_WAIT_TIME: 60_000,
TX_REMINING_POLLING_INTERVAL: 6_000,
TX_REMINING_MAX_WAIT_TIME: 60_000,
};

const DEFAULT_PARAMETERS = {
ENVIRONMENT: 'mainnet',
PORT: 8900,
Expand Down Expand Up @@ -257,6 +265,7 @@ module.exports = {
OPERATIONS_STEP_STATUS,
DEFAULT_GET_LOCAL_STORE_RESULT_FREQUENCY,
DEFAULT_PROXIMITY_SCORE_FUNCTIONS_PAIR_IDS,
DEFAULT_NEUROWEB_FINALITY_PARAMETERS,
DEFAULT_PARAMETERS,
DEFAULT_GAS_PRICE,
LOW_BID_SUGGESTION,
Expand Down
2 changes: 1 addition & 1 deletion dist/dkg.min.js

Large diffs are not rendered by default.

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

0 comments on commit 5d7e61a

Please sign in to comment.