diff --git a/cspell.json b/cspell.json index f2c80806dd..4d32d01c48 100644 --- a/cspell.json +++ b/cspell.json @@ -81,7 +81,6 @@ "preendorsements", "prevalidated", "prevalidation", - "println", "Protofire", "ProxfordY", "PtNairobi", diff --git a/docs/complex_parameters.md b/docs/complex_parameters.md index 26031f5ae1..e0ac50e707 100644 --- a/docs/complex_parameters.md +++ b/docs/complex_parameters.md @@ -93,11 +93,11 @@ importKey(Tezos, secretKey) validators : validatorsMap }}) }).then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }).then((contract) => { - println(`Origination completed.`); -}).catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Origination completed.`); +}).catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Calling the function of a contract having a complex object as a parameter @@ -145,8 +145,8 @@ importKey(Tezos, secretKey) owner: 'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', parent: 'FFFF', ttl: { Some: '10' }}).toTransferParams(); - println(JSON.stringify(inspect, null, 2)) -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(JSON.stringify(inspect, null, 2)) +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when all the arguments are defined @@ -172,11 +172,11 @@ importKey(Tezos, secretKey) ttl: { Some: '10' } }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when optional arguments are null @@ -203,9 +203,9 @@ importKey(Tezos, secretKey) ttl: null }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/contract-test-collection.md b/docs/contract-test-collection.md index 25ea85fc76..2043138481 100644 --- a/docs/contract-test-collection.md +++ b/docs/contract-test-collection.md @@ -494,7 +494,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -506,10 +506,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/drain_account.md b/docs/drain_account.md index c57e3be73c..5086d56569 100644 --- a/docs/drain_account.md +++ b/docs/drain_account.md @@ -29,7 +29,7 @@ Tezos.signer .publicKeyHash() .then((address) => { Tezos.tz.getBalance(address).then((balance) => { - println( + console.log( `The account we want to drain is ${address}.\nIts initial balance is ${ balance.toNumber() / 1000000 } ꜩ.` @@ -44,7 +44,7 @@ Tezos.signer const maxAmount = balance.minus( estimate.suggestedFeeMutez + getRevealFee(address) ).toNumber(); - println( + console.log( `The estimated fees related to the emptying operation are ${ estimate.suggestedFeeMutez } mutez.\nThe fees related to the reveal operation are ${ @@ -63,19 +63,19 @@ Tezos.signer }); }) .then((op) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Draining originated accounts (KT1) @@ -118,24 +118,24 @@ Tezos.signer init: { string: address }, }) .then((contractOrigination) => { - println( + console.log( `Waiting for confirmation of origination for ${contractOrigination.contractAddress}...` ); return contractOrigination.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); Tezos.tz.getBalance(contract.address).then((balance) => { - println(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); const estimateOp = contract.methodsObject .do(transferImplicit('tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', balance.toNumber())) .toTransferParams({}); - println(`Waiting for the estimation of the smart contract call...`); + console.log(`Waiting for the estimation of the smart contract call...`); Tezos.estimate .transfer(estimateOp) .then((estimate) => { //Will be deducted from manager's address - println( + console.log( `The estimated fees related to the emptying operation are ${estimate.suggestedFeeMutez} mutez.` ); return contract.methodsObject @@ -143,18 +143,18 @@ Tezos.signer .send({ amount: 0 }); }) .then((operation) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return operation.confirmation(1).then(() => operation.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(contract.address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/estimate.md b/docs/estimate.md index d8e8f61971..509bf3ee60 100644 --- a/docs/estimate.md +++ b/docs/estimate.md @@ -48,11 +48,11 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -73,11 +73,11 @@ Tezos.estimate const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -116,11 +116,11 @@ Tezos.contract return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -145,11 +145,11 @@ Tezos.wallet return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -180,7 +180,7 @@ values={[ // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -191,7 +191,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -199,7 +199,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -210,7 +210,7 @@ Tezos.estimate // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -221,7 +221,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -229,7 +229,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/inmemory_signer.md b/docs/inmemory_signer.md index 503b949641..1beaf8d42a 100644 --- a/docs/inmemory_signer.md +++ b/docs/inmemory_signer.md @@ -50,9 +50,9 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -67,9 +67,9 @@ InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNF return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` When required, Taquito offers the `b58cencode` function allowing to encode the secret in base58. The parameters of the function are the secret, that can be a `hex string` or an `Uint8Array`, and the desired prefix. Here is an example with a `hex string`: @@ -84,7 +84,7 @@ const b58encodedSecret = b58cencode( '7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d', prefix[Prefix.P2SK] ); -println( +console.log( `The secret is encoded in base58 and the prefix "p2sk" is added to it: ${b58encodedSecret}.` ); //We take the encoded secret to configure the signer. @@ -95,9 +95,9 @@ InMemorySigner.fromSecretKey(b58encodedSecret) return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ### Loading an encrypted private key with a passphrase @@ -131,9 +131,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -151,9 +151,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -171,9 +171,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,9 +202,9 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` With a non-default derivation path non-hardened with a tz2 address @@ -225,9 +225,9 @@ With a non-default derivation path non-hardened with a tz2 address Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` ### Using a testnet faucet key diff --git a/docs/lambda_view.md b/docs/lambda_view.md index d9d797fbcd..0f3277dd4a 100644 --- a/docs/lambda_view.md +++ b/docs/lambda_view.md @@ -57,9 +57,9 @@ Tezos.contract return contract.views.getTotalSupply(UnitValue).read(); }) .then((response) => { - println(response); + console.log(response); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` **More examples:** @@ -85,9 +85,9 @@ Tezos.contract .read(); }) .then((response) => { - println(JSON.stringify(response, null, 2)); + console.log(JSON.stringify(response, null, 2)); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/ledger_signer.md b/docs/ledger_signer.md index 9a5dff3274..1e91f88b90 100644 --- a/docs/ledger_signer.md +++ b/docs/ledger_signer.md @@ -226,13 +226,13 @@ function getAddressInfo(transport, index) { return Tezos.signer.publicKeyHash().then((pkh) => { Tezos.tz.getBalance(pkh).then((balance) => { Tezos.rpc.getManagerKey(pkh).then((getPublicKey) => { - println( + console.log( `The public key hash related to the derivation path having the index ${index} is ${pkh}.` ); if (getPublicKey) { - println(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); + console.log(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); } else { - println('This account is not revealed.\n'); + console.log('This account is not revealed.\n'); } }); }); diff --git a/docs/maps_bigmaps.md b/docs/maps_bigmaps.md index 34a7cb0ee4..4dc71ebabe 100644 --- a/docs/maps_bigmaps.md +++ b/docs/maps_bigmaps.md @@ -55,13 +55,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -85,13 +85,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -120,13 +120,13 @@ Tezos.contract }), }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -146,13 +146,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -181,7 +181,7 @@ Tezos.contract .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -191,25 +191,25 @@ Tezos.contract return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -224,7 +224,7 @@ Tezos.wallet .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -234,25 +234,25 @@ Tezos.wallet return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -326,13 +326,13 @@ Tezos.contract }, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -383,13 +383,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -422,10 +422,10 @@ Tezos.contract 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -442,10 +442,10 @@ Tezos.wallet 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -519,13 +519,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -571,13 +571,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -617,9 +617,9 @@ Tezos.contract 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -643,9 +643,9 @@ Tezos.wallet 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -717,13 +717,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -774,13 +774,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -810,7 +810,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -822,10 +822,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -843,7 +843,7 @@ Tezos.wallet 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -855,10 +855,10 @@ Tezos.wallet }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -908,11 +908,11 @@ values={[ Tezos.contract .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -922,10 +922,10 @@ Tezos.contract }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` @@ -938,11 +938,11 @@ Tezos.contract Tezos.wallet .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -952,10 +952,10 @@ Tezos.wallet }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` diff --git a/docs/metadata-tzip16.md b/docs/metadata-tzip16.md index 1e31f2cced..2268343d3e 100644 --- a/docs/metadata-tzip16.md +++ b/docs/metadata-tzip16.md @@ -104,13 +104,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -128,13 +128,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -162,13 +162,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -185,13 +185,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -218,13 +218,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -242,13 +242,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -276,13 +276,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -300,13 +300,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -366,18 +366,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -395,18 +395,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -437,19 +437,19 @@ Tezos.contract .at(contractAddress, tzip16) .then((contract) => { return contract.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -468,19 +468,19 @@ Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { return wallet.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -526,10 +526,10 @@ Tezos.contract ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -563,10 +563,10 @@ Tezos.wallet ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/docs/michel_codec.md b/docs/michel_codec.md index 1deda205f2..010409f11e 100644 --- a/docs/michel_codec.md +++ b/docs/michel_codec.md @@ -44,14 +44,14 @@ Tezos.contract .at("KT1BJadpDyLCACMH7Tt9xtpx4dQZVKw9cDF7") .then(contract => { const code = p.parseJSON(contract.script.code); - println("Pretty print Michelson smart contract:"); - println(emitMicheline(code, {indent:" ", newline: "\n",})); + console.log("Pretty print Michelson smart contract:"); + console.log(emitMicheline(code, {indent:" ", newline: "\n",})); const storage = p.parseJSON(contract.script.storage); - println("Pretty print Storage:"); - println(emitMicheline(storage, {indent:" ", newline: "\n",})); + console.log("Pretty print Storage:"); + console.log(emitMicheline(storage, {indent:" ", newline: "\n",})); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ### parseMichelineExpression - Parse Micheline and convert it to JSON Michelson @@ -64,11 +64,11 @@ const p = new Parser(); const michelineScript = `{parameter unit; storage unit; code {CDR; NIL operation; PAIR};}` const script = p.parseMichelineExpression(michelineScript); -println('JSON Michelson script: ' + JSON.stringify(script) + '\n'); +console.log('JSON Michelson script: ' + JSON.stringify(script) + '\n'); const michelineData = `(IF_LEFT { IF_LEFT { SWAP ; SUB } { ADD } })`; const data = p.parseMichelineExpression(michelineData); -println('JSON Michelson data: ' + JSON.stringify(data)); +console.log('JSON Michelson data: ' + JSON.stringify(data)); ``` ## PACK and UNPACK locally diff --git a/docs/michelson_encoder.md b/docs/michelson_encoder.md index bf64c5d3c3..73ae5050dd 100644 --- a/docs/michelson_encoder.md +++ b/docs/michelson_encoder.md @@ -81,7 +81,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- When there is no annotation, the keys of the object are indexes starting from 0. @@ -101,7 +101,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- Here is another example using a complex storage: @@ -242,7 +242,7 @@ const storageType = }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` ### The Typecheck method @@ -269,7 +269,7 @@ const typecheck = storageSchema.Typecheck({ threshold: 5, keys: ['edpkuLxx9PQD8fZ45eUzrK3yhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(typecheck); +console.log(typecheck); ``` ### The Encode method @@ -297,7 +297,7 @@ const michelsonData = storageSchema.Encode({ threshold: 5, keys: ['edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g', 'edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### The Execute method @@ -345,7 +345,7 @@ const dataMichelson = { ] } const data = storageSchema.Execute(dataMichelson) -println(JSON.stringify(data, null, 2)); +console.log(JSON.stringify(data, null, 2)); ``` The `Execute` method takes an optional parameter of type `Semantic`. It allows overriding the default representation returned by the Michelson Encoder for specific types. @@ -359,12 +359,12 @@ const schema = new Schema({ prim: 'big_map', args: [{ prim: 'address' }, { prim: const dataMichelson = { int: 123456 } const data = schema.Execute(dataMichelson) -println(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); +console.log(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); // instead of returning the big map id, we can override it // we return an object in this case const dataCustom = schema.Execute(dataMichelson, { big_map: (val) => Object({ id: val.int })}) -println(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); ``` --- Here is an example for the `ticket` type: @@ -374,10 +374,10 @@ const schema = new Schema({"prim":"ticket","args":[{"prim":"string"}]}); const dataMichelson = {"prim":"Pair","args":[{"string":"KT1PVuv7af4VkPsZVZ8oZz9GSSdGnGBCbFWw"},{"string":"test"},{"int":"2"}]} const data = schema.Execute(dataMichelson) -println(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); +console.log(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); const dataCustom = schema.Execute(dataMichelson, { ticket: (val) => val.args[1].string}) -println(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); ``` ### How the Schema class is used inside Taquito @@ -404,7 +404,7 @@ const michelsonData = parameterSchema.Encode( 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', '12' ) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` --- Here is an example of `encodeObject`: @@ -414,7 +414,7 @@ const michelsonData = parameterSchema.EncodeObject({ spender: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', value: '12' }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### How the ParameterSchema class is used inside Taquito @@ -442,7 +442,7 @@ const storageSchema = new Schema({ ] }); const annotatedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(annotatedSchema, null, 2)); +console.log(JSON.stringify(annotatedSchema, null, 2)); ``` --- We can also have a similar definition without the annotations: @@ -461,7 +461,7 @@ const storageSchema = new Schema({ ] }); const noAnnotationsSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(noAnnotationsSchema, null, 2)); +console.log(JSON.stringify(noAnnotationsSchema, null, 2)); ``` In Taquito, we will flatten these nested `pair`s to make it easier to use them in typescript dApps. Please note how the result of `generateSchema` is different in the annotated vs non-annotated cases: @@ -510,7 +510,7 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` ### Unions @@ -531,5 +531,5 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` diff --git a/docs/on_chain_views.md b/docs/on_chain_views.md index 09aeb69119..8652d2dfe0 100644 --- a/docs/on_chain_views.md +++ b/docs/on_chain_views.md @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; ## On-chain views description -- The `On-chain views` feature was introduced in the Hangzhou protocol. +- The `On-chain views` feature was introduced in the Hangzhou protocol. - Views are meant to be called by a contract. It can be the contract where the view is defined or another contract. - Views help to avoid the need to use callbacks in contracts. - Views take arguments as input and may depend on the contract's storage declaring the view. @@ -89,8 +89,8 @@ view "fib" nat nat } } } -``` - +``` + ## Calling an on-chain view Views are meant to be called by a contract using the Michelson Instruction `View` followed by the view name and its result type. @@ -110,7 +110,7 @@ code { **Example of calling a contract entrypoint that makes a call to a view using Taquito:** -The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). +The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). The example first shows the initial storage of the contract `contractCallFib`. It calls the default entry point of `contractCallFib` with the value of its storage + 1 and the address of the contract `contractTopLevelViews`. A call is made to the `fib` view of `contractTopLevelViews` with the `storage + 1` as argument. The view returns the value of the Fibonacci sequence at the position represented by `storage + 1`. The storage of `contractCallFib` is updated to the result of the view. @@ -130,23 +130,23 @@ Tezos.contract.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -159,32 +159,32 @@ Tezos.wallet.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` ## How to simulate a view execution using Taquito -Taquito offers the ability to simulate the result of on-chain views. +Taquito offers the ability to simulate the result of on-chain views. -The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. +The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. *`contractViews` is an object where the key is the view name, and the value is a function that takes the view arguments as a parameter and returns an instance of `OnChainView` class.* @@ -192,7 +192,7 @@ If the view takes multiple arguments, the view parameter is expected in an objec *Note for reference, the flattened arguments are the expected format when calling a contract entry point using the `methods` member, but we plan to move away from this format in favor the object one, which is also used for the storage when deploying a contract [see the difference between `methodsObject` and `methods` members of the `ContractAbstraction`](smartcontracts.md#choosing-between-the-methods-or-methodsobject-members-to-interact-with-smart-contracts).* -A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. +A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. The `executeView` method of the `OnChainView` class allows simulating the view. It takes a `viewCaller` as a parameter representing the contract address which is the caller of the view, and an optional `source` which is the public key hash of the account that initialized this view execution. @@ -215,10 +215,10 @@ Tezos.contract.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -233,11 +233,11 @@ Tezos.wallet.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` diff --git a/docs/originate.md b/docs/originate.md index 5ee4d99235..215fb5be8f 100644 --- a/docs/originate.md +++ b/docs/originate.md @@ -108,13 +108,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -138,13 +138,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,13 +175,13 @@ Tezos.contract init: `(Pair 0 (Pair 1 { "edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t" }))`, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -201,13 +201,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -248,13 +248,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -286,13 +286,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/quick_start.md b/docs/quick_start.md index 3db98ac188..10e2e0b4e2 100644 --- a/docs/quick_start.md +++ b/docs/quick_start.md @@ -61,8 +61,8 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please Tezos.tz .getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY') - .then((balance) => println(`${balance.toNumber() / 1000000} ꜩ`)) - .catch((error) => println(JSON.stringify(error))); + .then((balance) => console.log(`${balance.toNumber() / 1000000} ꜩ`)) + .catch((error) => console.log(JSON.stringify(error))); ``` ### Using the inMemory Signer and Importing a key @@ -104,15 +104,15 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.contract .transfer({ to: address, amount: amount }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -122,16 +122,16 @@ Tezos.contract const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.wallet .transfer({ to: address, amount: amount }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -155,15 +155,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,15 +175,15 @@ Tezos.wallet .then((wallet) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return wallet.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/sapling.md b/docs/sapling.md index 69d41588bd..139751cb09 100644 --- a/docs/sapling.md +++ b/docs/sapling.md @@ -96,11 +96,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice balance in the shielded pool...`); + console.log(`Fetching Alice balance in the shielded pool...`); return txViewer.getBalance(); }) - .then((balance) => println(`Alice's balance is ${balance.toString()} mutez`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((balance) => console.log(`Alice's balance is ${balance.toString()} mutez`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to retrieve my transaction history? @@ -129,11 +129,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice's history of transactions in the shielded pool...`); + console.log(`Fetching Alice's history of transactions in the shielded pool...`); return txViewer.getIncomingAndOutgoingTransactions(); }) - .then((history) => println(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((history) => console.log(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to prepare a shielded transaction? @@ -174,12 +174,12 @@ const saplingToolkit = new SaplingToolkit( inMemorySpendingKey.getSaplingViewingKeyProvider() .then((inMemoryViewingKey) => { - println(`Fetching a payment address for Alice (zet)...`); + console.log(`Fetching a payment address for Alice (zet)...`); return inMemoryViewingKey.getAddress(); }) .then((paymentAddress) => { - println(`Alice's payment address is: ${paymentAddress.address}`); - println(`Preparing the shielded transaction...`); + console.log(`Alice's payment address is: ${paymentAddress.address}`); + console.log(`Preparing the shielded transaction...`); return saplingToolkit.prepareShieldedTransaction([{ to: paymentAddress.address, amount: 3, @@ -188,20 +188,20 @@ inMemorySpendingKey.getSaplingViewingKeyProvider() }]); }) .then((shieldedTx) => { - println(`The sapling transaction parameter is: ${shieldedTx}`); + console.log(`The sapling transaction parameter is: ${shieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); // The amount MUST be specified in the send method to transfer the 3 tez to the shielded pool return saplingContract.methodsObject.default([shieldedTx]).send({ amount: 3 }); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) - .catch((error) => println(`Error: ${(error)}`)); + .catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare a Sapling transaction? @@ -244,7 +244,7 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the sapling transaction...`); +console.log(`Preparing the sapling transaction...`); saplingToolkit.prepareSaplingTransaction([{ to: 'zet14CMN2T4x1f8sgXeAGWQwczSf6SJ8bm8nyP2Tg7HJn2VmtPtB2nE2q7MMgdmMEwpGQ', amount: 3, @@ -252,19 +252,19 @@ saplingToolkit.prepareSaplingTransaction([{ mutez: false // set to false by default }]) .then((saplingTx) => { - println(`The sapling transaction parameter is: ${saplingTx}`); + console.log(`The sapling transaction parameter is: ${saplingTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([saplingTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare an unshielded transaction? @@ -302,26 +302,26 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the unshielded transaction...`); +console.log(`Preparing the unshielded transaction...`); saplingToolkit.prepareUnshieldedTransaction({ to: 'tz1hDFKpVkT7jzYncaLma4vxh4Gg6JNqvdtB', amount: 20, mutez: true // set to false by default }) .then((unshieldedTx) => { - println(`The sapling transaction parameter is: ${unshieldedTx}`); + console.log(`The sapling transaction parameter is: ${unshieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([unshieldedTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` # SaplingTransactionViewer diff --git a/docs/sapling_in_memory_viewing_key.md b/docs/sapling_in_memory_viewing_key.md index b7772ad39b..da378c3158 100644 --- a/docs/sapling_in_memory_viewing_key.md +++ b/docs/sapling_in_memory_viewing_key.md @@ -7,7 +7,7 @@ The `InMemoryViewingKey` class can be instantiated from a viewing or spending ke ### Instantiation from a viewing key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( '000000000000000000977d725fc96387e8ec1e603e7ae60c6e63529fb84e36e126770e9db9899d7f2344259fd700dc80120d3c9ca65d698f6064043b048b079caa4f198aed96271740b1d6fd523d71b15cd0b3d75644afbe9abfedb6883e299165665ab692c14ca5c835c61a0e53de553a751c78fbc42d5e7eca807fd441206651c84bf88de803efba837583145a5f338b1a7af8a5f9bec4783054f9d063d365f2352f72cbced95e0a' @@ -23,9 +23,9 @@ InMemoryViewingKey.fromSpendingKey( 'sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L', ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -39,9 +39,9 @@ InMemoryViewingKey.fromSpendingKey( 'test' // password ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -57,6 +57,6 @@ const inMemoryViewingKey = new InMemoryViewingKey( ); inMemoryViewingKey.getAddress() -.then((address) => println(`The address is ${JSON.stringify(address, null, 2)}`)) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.then((address) => console.log(`The address is ${JSON.stringify(address, null, 2)}`)) +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/docs/signing.md b/docs/signing.md index 022ee1021a..94330f955c 100644 --- a/docs/signing.md +++ b/docs/signing.md @@ -167,8 +167,8 @@ const packed = packDataBytes( ); Tezos.signer .sign(packed.bytes) - .then((signed) => println(JSON.stringify(signed, null, 2))) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((signed) => console.log(JSON.stringify(signed, null, 2))) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` First, you provide the Michelson code to be signed as a string along with its type. diff --git a/docs/smartcontracts.md b/docs/smartcontracts.md index f4228884de..779e83b550 100644 --- a/docs/smartcontracts.md +++ b/docs/smartcontracts.md @@ -81,7 +81,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -96,7 +96,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -129,7 +129,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -143,7 +143,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -174,15 +174,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(3).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -195,15 +195,15 @@ Tezos.wallet .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(3).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -235,8 +235,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methodsObject.set_child_record().getSignature(), null, @@ -244,7 +244,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an object giving indication on how to structure the parameter when calling the`set_child_record` method. Here is an example where the `set_child_record` method is called by passing the parameter in an object format: @@ -270,11 +270,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -287,8 +287,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methods.set_child_record().getSignature(), null, @@ -296,7 +296,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an array which contains the different possible signatures. Different signatures are possible as the `set_child_record` method contains some optional arguments. In the following example the `set_child_record` method is called by passing the arguments in the flattened way: @@ -323,11 +323,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/docs/storage_annotations.md b/docs/storage_annotations.md index 998103c9ac..f889263eba 100644 --- a/docs/storage_annotations.md +++ b/docs/storage_annotations.md @@ -50,13 +50,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -77,13 +77,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -125,13 +125,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -152,13 +152,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,13 +202,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -230,13 +230,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/docs/taquito_utils.md b/docs/taquito_utils.md index 02ebed525a..236fb758b9 100644 --- a/docs/taquito_utils.md +++ b/docs/taquito_utils.md @@ -43,12 +43,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -63,12 +63,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -83,7 +83,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -98,12 +98,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -116,12 +116,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -134,12 +134,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -152,12 +152,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -169,12 +169,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -186,12 +186,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -208,5 +208,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/docs/tzip12.md b/docs/tzip12.md index 4d130dddcb..bcbc463059 100644 --- a/docs/tzip12.md +++ b/docs/tzip12.md @@ -9,7 +9,7 @@ The `@taquito/tzip12` package allows retrieving metadata associated with tokens ## How to use the tzip12 package -The package can act as an extension to the well-known Taquito contract abstraction. +The package can act as an extension to the well-known Taquito contract abstraction. 1. **We first need to create an instance of `Tzip12Module` and add it as an extension to our `TezosToolkit`** @@ -32,8 +32,8 @@ Tezos.addExtension(new Tzip12Module()); const contract = await Tezos.contract.at("contractAddress", tzip12) ``` -**The compose function** -The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. +**The compose function** +The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. Thus, all methods of the `ContractAbstraction`, `Tzip12ContractAbstraction` and `Tzip16ContractAbstraction` classes will be available on the contract abstraction instance. ```js @@ -50,7 +50,7 @@ await contract.tzip16().getMetadata(); // Tzip16ContractAbstraction method There are two scenarios to obtain the metadata of a token: 1. They can be obtained from executing an off-chain view named `token_metadata` present in the contract metadata -2. or from a big map named `token_metadata` in the contract storage. +2. or from a big map named `token_metadata` in the contract storage. The `getTokenMetadata` method of the `Tzip12ContractAbstraction` class will find the token metadata with precedence for the off-chain view, if there is one, as specified in the standard. @@ -97,13 +97,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, compose(tzip12, tzip16)) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -121,14 +121,14 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, compose(tzip12, tzip16)) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -154,19 +154,19 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip16) .then(contract => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -183,20 +183,20 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip16) .then(wallet => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -211,7 +211,7 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ @@ -229,15 +229,15 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ ``` prim: 'big_map', args: [ - { prim: 'nat' }, + { prim: 'nat' }, { prim: 'pair', args: [ - { prim: 'nat' , annots: ['%token_id']}, + { prim: 'nat' , annots: ['%token_id']}, { prim: "map", args: [{ prim: 'string' }, { prim: 'bytes' }], annots: ['%token_info'] }] }], annots: ['%token_metadata'] ``` - + Otherwise, the token metadata won't be found by the `getTokenMetadata` method, and a `TokenMetadataNotFound` error will be thrown. ::: @@ -262,13 +262,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip12) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -285,17 +285,17 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip12) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` -#### For more information on the contracts used in the examples: +#### For more information on the contracts used in the examples: integration-tests/tzip12-token-metadata.spec.ts \ No newline at end of file diff --git a/docs/validators.md b/docs/validators.md index dc1c5a0f36..d26f673290 100644 --- a/docs/validators.md +++ b/docs/validators.md @@ -26,12 +26,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -46,12 +46,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -66,7 +66,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -81,12 +81,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -99,12 +99,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -117,12 +117,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -135,12 +135,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -152,12 +152,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -169,12 +169,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -191,5 +191,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/docs/version.md b/docs/version.md index 705e323944..f2c9f94d9e 100644 --- a/docs/version.md +++ b/docs/version.md @@ -6,16 +6,16 @@ author: Jev Bjorsell # Taquito v20.0.0 ## Summary -### Paris(B) Protocol Support +### Paris(B) Protocol Support Paris(B) Protocol has new Adaptive Issuance features, including staking pseudo-operations and rpc endpoints. -⚠️ Warning ⚠️ +⚠️ Warning ⚠️ Adaptive Issuance, Staking, and Adaptive slashing will be in effect roughly two weeks (5 cycles) after the proposal is activated on Mainnet. The new AI features will not be usable until then. ### ⚠️ Breaking Changes ⚠️ ### Beacon Migration -As of Beacon version 4.2.0, Beacon has migrated from using `dAppClient.getActiveAccount()` to using an event subscription method `BeaconEvent.ACTIVE_ACCOUNT_SET` for handling active account changes. +As of Beacon version 4.2.0, Beacon has migrated from using `dAppClient.getActiveAccount()` to using an event subscription method `BeaconEvent.ACTIVE_ACCOUNT_SET` for handling active account changes. **IF YOU ARE STILL USING THE `eventHandlers` PROPERTY WHEN INITIALIZING A DAPP CLIENT, PLEASE UPDATE YOUR CODE.** @@ -62,10 +62,10 @@ New behaviour - inner object's field number will start with '0' - `@taquito/rpc` - Removed `getEndorsingRights` RPC endpoint along with its related type definition and tests #2884 - `@taquito/rpc` - Updated RPC types for `AttestationWithDal` and `EndorsementWithDal` #2880 - `@taquito/rpc` - Updated RPC response types to support DAL types #2882 -- `@taquito/rpc` - Updated RPC response type for the new manager op `dal_publish_commitment` #2881 +- `@taquito/rpc` - Updated RPC response type for the new manager op `dal_publish_commitment` #2881 - `@taquito/rpc` - Added a new RPC endpoint called `getAllDelegates` #2976 - `@taquito/local-forging` - Added local forging support for `AttestationWithDal` operation #2880 -- `@taquito/local-forging` - Added local forging support for the new manager operation `dal_publish_commitment` #2881 +- `@taquito/local-forging` - Added local forging support for the new manager operation `dal_publish_commitment` #2881 - `@taquito/michel-codec` - Updated Michelson type definitions and validators to include the new Paris protocol ticket literals [PR#2940](https://github.com/ecadlabs/taquito/pull/2940) ### Internals @@ -127,10 +127,10 @@ await op.confirmation(); # Taquito v19.1.0 -**Potential Breaking Changes**: +**Potential Breaking Changes**: - `@taquito/rpc` - replaced `OperationBalanceUpdatesItem` in favour of `OperationMetadataBalanceUpdates` #2817 #2827 - `@taquito/taquito` - Several optimizations made to fees and estimation in Taquito #2532 - - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details + - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details - Added a small buffer to `gasLimit` (varying depending on operations) - Reduced `suggestedFeeMutez` buffer from 100 to 20 per op - Refined `gasLimit` and `storageLimit` according to `simulate_operation` results from the octez-client @@ -139,12 +139,12 @@ await op.confirmation(); ### New Features - `@taquito/taquito` - Added smart rollup execute outbox message operation #2321 (please note that this feature is not fully tested due to some parts requiring the use of `octez-client`) -`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 +`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 ### Improvement - `@taquito/michelson-encoder` - replaced references of `[['unit']]` to be `UnitValue` instead [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) -- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 -- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 +- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 +- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 ### Documentation - Added michel-codec to Typedoc documentation #2806 @@ -152,7 +152,7 @@ await op.confirmation(); - Removed `giganode` references from Taquito documentation [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) ### Deprecation -- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 +- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 - `@taquito/taquito` - Deprecated `methods` in favour of `methodsObject`. `methodsObject`'s syntax is more consistent with storage params, supports all Michelson data types, and will be maintained going forward #2813 ### Internals @@ -180,7 +180,7 @@ await op.confirmation(); # Taquito v19.0.0 :::info -You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. +You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. - Oxford - v18 - Oxford2 - v19 @@ -211,7 +211,7 @@ Oxford2 changes: # Taquito 17.5.0 **Important Note:** -In this version, we replaced instances of `Axios` in favour of `Fetch`. +In this version, we replaced instances of `Axios` in favour of `Fetch`. We are not expecting any breaking changes, but if there are any issues that you see regarding this, please reach out to the Taquito team. @@ -225,7 +225,7 @@ We are not expecting any breaking changes, but if there are any issues that you ### Documentation - Updated RPC nodes on the website [PR#2732](https://github.com/ecadlabs/taquito/pull/2732 - Updated Michelson encoder documentation to reference `generateSchema` instead of the outdated `extractSchema` #2630 -- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 +- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 ### Internals - Removed archive node, and references to it in Taquito [PR#2743](https://github.com/ecadlabs/taquito/pull/2743) @@ -245,7 +245,7 @@ With this change we hope for a more stable HTTP handler in Taquito while reducin # Taquito v17.4.0 -**Potential Breaking Changes** : +**Potential Breaking Changes** : We have updated various dependencies to the latest version in this release. Please update and test our packages for compatibility. We encourage all users to get in touch with the Taquito team if you encounter any unexpected behaviours and/or side effects. ## Summary @@ -2435,7 +2435,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta, the returned value was:* ```typescript= @@ -2485,7 +2485,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta the returned value was:* ```json= diff --git a/docs/wallet_API.md b/docs/wallet_API.md index 04ad53a32c..f5b1111c05 100644 --- a/docs/wallet_API.md +++ b/docs/wallet_API.md @@ -118,7 +118,7 @@ Make sure you have the Beacon browser extension installed (the extension offers wallet .requestPermissions() .then((_) => wallet.getPKH()) - .then((address) => println(`Your address: ${address}`)); + .then((address) => console.log(`Your address: ${address}`)); Tezos.setWalletProvider(wallet); ``` @@ -217,7 +217,7 @@ TempleWallet.isAvailable() return myWallet.getPKH(); }) .then((pkh) => { - println(`Your address: ${pkh}`); + console.log(`Your address: ${pkh}`); }); }) .catch((err) => console.log(err)); @@ -234,18 +234,18 @@ Tezos.wallet .transfer({ to: 'tz1NhNv9g7rtcjyNsH8Zqu79giY5aTqDDrzB', amount: 0.2 }) .send() .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); op.confirmation() .then((result) => { console.log(result); if (result.completed) { - println('Transaction correctly processed!'); + console.log('Transaction correctly processed!'); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) - .catch((err) => println(err)); + .catch((err) => console.log(err)); }); ``` @@ -258,11 +258,11 @@ Tezos.wallet .transfer({ to: 'KT1TBxaaeikEUcVN2qdQY7n9Q21ykcX1NLzY', amount: 0.2 }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash); }) - .then(() => println(`Operation injected!`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then(() => console.log(`Operation injected!`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example. @@ -292,17 +292,17 @@ Tezos.wallet .at('KT1SHiNUNmqBFGNysX9pmh1DC2tQ5pGmRagC') .then((contract) => contract.methodsObject.areYouThere(true).send()) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); @@ -317,17 +317,17 @@ Tezos.wallet contract.methodsObject.addName({0: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', 1: 'Alice'}).send() ) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); diff --git a/package-lock.json b/package-lock.json index 94e12b5844..7a68ce0cd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "name": "taquito", "workspaces": [ "packages/*", "packages/taquito-michel-codec/pack-test-tool", @@ -8124,11 +8125,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -11350,9 +11351,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -23301,9 +23302,9 @@ } }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "engines": { "node": ">=8.3.0" }, diff --git a/website/package-lock.json b/website/package-lock.json index e4709b9443..40db011851 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -69,17 +69,17 @@ }, "../packages/taquito": { "name": "@taquito/taquito", - "version": "20.0.0", + "version": "20.0.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@taquito/core": "^20.0.0", - "@taquito/http-utils": "^20.0.0", - "@taquito/local-forging": "^20.0.0", - "@taquito/michel-codec": "^20.0.0", - "@taquito/michelson-encoder": "^20.0.0", - "@taquito/rpc": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/http-utils": "^20.0.1", + "@taquito/local-forging": "^20.0.1", + "@taquito/michel-codec": "^20.0.1", + "@taquito/michelson-encoder": "^20.0.1", + "@taquito/rpc": "^20.0.1", + "@taquito/utils": "^20.0.1", "bignumber.js": "^9.1.2", "rxjs": "^7.8.1" }, @@ -127,12 +127,12 @@ }, "../packages/taquito-beacon-wallet": { "name": "@taquito/beacon-wallet", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { "@airgap/beacon-dapp": "^4.2.2", - "@taquito/core": "^20.0.0", - "@taquito/taquito": "^20.0.0" + "@taquito/core": "^20.0.1", + "@taquito/taquito": "^20.0.1" }, "devDependencies": { "@types/bluebird": "^3.5.40", @@ -172,7 +172,7 @@ }, "../packages/taquito-core": { "name": "@taquito/core", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { "json-stringify-safe": "^5.0.1" @@ -188,10 +188,10 @@ }, "../packages/taquito-http-utils": { "name": "@taquito/http-utils", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@taquito/core": "^20.0.0", + "@taquito/core": "^20.0.1", "node-fetch": "^2.7.0" }, "devDependencies": { @@ -229,14 +229,14 @@ }, "../packages/taquito-ledger-signer": { "name": "@taquito/ledger-signer", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { "@ledgerhq/hw-transport": "^6.30.5", "@stablelib/blake2b": "^1.0.1", - "@taquito/core": "^20.0.0", - "@taquito/taquito": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/taquito": "^20.0.1", + "@taquito/utils": "^20.0.1", "buffer": "^6.0.3" }, "devDependencies": { @@ -273,10 +273,10 @@ }, "../packages/taquito-michel-codec": { "name": "@taquito/michel-codec", - "version": "20.0.0", + "version": "20.0.1", "license": "MIT", "dependencies": { - "@taquito/core": "^20.0.0" + "@taquito/core": "^20.0.1" }, "devDependencies": { "@types/bluebird": "^3.5.40", @@ -306,12 +306,12 @@ }, "../packages/taquito-michelson-encoder": { "name": "@taquito/michelson-encoder", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@taquito/core": "^20.0.0", - "@taquito/rpc": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/rpc": "^20.0.1", + "@taquito/utils": "^20.0.1", "bignumber.js": "^9.1.2", "fast-json-stable-stringify": "^2.1.0" }, @@ -348,15 +348,15 @@ }, "../packages/taquito-remote-signer": { "name": "@taquito/remote-signer", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/ed25519": "^1.0.3", - "@taquito/core": "^20.0.0", - "@taquito/http-utils": "^20.0.0", - "@taquito/taquito": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/http-utils": "^20.0.1", + "@taquito/taquito": "^20.0.1", + "@taquito/utils": "^20.0.1", "typedarray-to-buffer": "^4.0.0" }, "devDependencies": { @@ -393,12 +393,12 @@ }, "../packages/taquito-rpc": { "name": "@taquito/rpc", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@taquito/core": "^20.0.0", - "@taquito/http-utils": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/http-utils": "^20.0.1", + "@taquito/utils": "^20.0.1", "bignumber.js": "^9.1.2" }, "devDependencies": { @@ -434,7 +434,7 @@ }, "../packages/taquito-signer": { "name": "@taquito/signer", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { "@stablelib/blake2b": "^1.0.1", @@ -443,9 +443,9 @@ "@stablelib/nacl": "^1.0.4", "@stablelib/pbkdf2": "^1.0.1", "@stablelib/sha512": "^1.0.1", - "@taquito/core": "^20.0.0", - "@taquito/taquito": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/taquito": "^20.0.1", + "@taquito/utils": "^20.0.1", "@types/bn.js": "^5.1.2", "bip39": "3.1.0", "elliptic": "^6.5.4", @@ -488,13 +488,13 @@ }, "../packages/taquito-tzip12": { "name": "@taquito/tzip12", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@taquito/core": "^20.0.0", - "@taquito/michelson-encoder": "^20.0.0", - "@taquito/taquito": "^20.0.0", - "@taquito/tzip16": "^20.0.0" + "@taquito/core": "^20.0.1", + "@taquito/michelson-encoder": "^20.0.1", + "@taquito/taquito": "^20.0.1", + "@taquito/tzip16": "^20.0.1" }, "devDependencies": { "@types/bluebird": "^3.5.40", @@ -530,15 +530,15 @@ }, "../packages/taquito-tzip16": { "name": "@taquito/tzip16", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@taquito/core": "^20.0.0", - "@taquito/http-utils": "^20.0.0", - "@taquito/michelson-encoder": "^20.0.0", - "@taquito/rpc": "^20.0.0", - "@taquito/taquito": "^20.0.0", - "@taquito/utils": "^20.0.0", + "@taquito/core": "^20.0.1", + "@taquito/http-utils": "^20.0.1", + "@taquito/michelson-encoder": "^20.0.1", + "@taquito/rpc": "^20.0.1", + "@taquito/taquito": "^20.0.1", + "@taquito/utils": "^20.0.1", "bignumber.js": "^9.1.2", "crypto-js": "^4.2.0" }, @@ -577,12 +577,12 @@ }, "../packages/taquito-utils": { "name": "@taquito/utils", - "version": "20.0.0", + "version": "20.0.1", "license": "Apache-2.0", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/ed25519": "^1.0.3", - "@taquito/core": "^20.0.0", + "@taquito/core": "^20.0.1", "@types/bs58check": "^2.1.0", "bignumber.js": "^9.1.2", "blakejs": "^1.2.1", @@ -4615,9 +4615,9 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==" }, "node_modules/@grpc/grpc-js": { - "version": "1.9.14", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.14.tgz", - "integrity": "sha512-nOpuzZ2G3IuMFN+UPPpKrC6NsLmWsTqSsm66IRfnBt1D4pwTqE27lmbpcPM+l2Ua4gE7PfjRHI6uedAy7hoXUw==", + "version": "1.9.15", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.15.tgz", + "integrity": "sha512-nqE7Hc0AzI+euzUwDAy0aY5hCp10r734gMGRdU+qOPX0XSceI2ULrcXB5U2xSc5VkWwalCj4M7GzCAygZl2KoQ==", "dependencies": { "@grpc/proto-loader": "^0.7.8", "@types/node": ">=12.12.47" @@ -7935,11 +7935,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -11348,9 +11348,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -15095,26 +15095,26 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, "node_modules/netlify-cli": { - "version": "17.23.5", - "resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-17.23.5.tgz", - "integrity": "sha512-Ft0APl1Yg2yhLXLKsvH2+KQ6oX7Uk5k/iPdIoF0ZrwgAAEcyFzdeZRLAi1rEbeJJJO1f1eXHi3XYNmcap2MFww==", + "version": "17.29.0", + "resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-17.29.0.tgz", + "integrity": "sha512-XASN7ZCbq8V3o9Tftty1O+quAzl9ApnpYqnunW0aR+COv0scHAw+OGjuzD3TAbI+TwxlJywsbkN2fG+dUgcQJA==", "dev": true, "hasInstallScript": true, "hasShrinkwrap": true, "dependencies": { "@bugsnag/js": "7.23.0", - "@fastify/static": "6.12.0", + "@fastify/static": "7.0.4", "@netlify/blobs": "7.3.0", - "@netlify/build": "29.41.5", + "@netlify/build": "29.48.2", "@netlify/build-info": "7.13.2", - "@netlify/config": "20.12.5", + "@netlify/config": "20.15.3", "@netlify/edge-bundler": "12.0.1", - "@netlify/edge-functions": "2.7.0", + "@netlify/edge-functions": "2.8.1", "@netlify/local-functions-proxy": "1.1.1", - "@netlify/zip-it-and-ship-it": "9.32.2", - "@octokit/rest": "19.0.13", + "@netlify/zip-it-and-ship-it": "9.37.1", + "@octokit/rest": "20.1.1", "@opentelemetry/api": "1.8.0", - "ansi-escapes": "6.2.1", + "ansi-escapes": "7.0.0", "ansi-styles": "6.2.1", "ansi-to-html": "0.7.2", "ascii-table": "0.0.9", @@ -15123,7 +15123,7 @@ "boxen": "7.1.1", "chalk": "5.3.0", "chokidar": "3.6.0", - "ci-info": "3.9.0", + "ci-info": "4.0.0", "clean-deep": "3.4.0", "commander": "10.0.1", "comment-json": "4.2.3", @@ -15131,11 +15131,10 @@ "configstore": "6.0.0", "content-type": "1.0.5", "cookie": "0.6.0", - "copy-template-dir": "1.4.0", "cron-parser": "4.9.0", - "debug": "4.3.4", + "debug": "4.3.5", "decache": "4.6.2", - "dot-prop": "7.2.0", + "dot-prop": "9.0.0", "dotenv": "16.4.5", "env-paths": "3.0.0", "envinfo": "7.13.0", @@ -15146,7 +15145,7 @@ "extract-zip": "2.0.1", "fastest-levenshtein": "1.0.16", "fastify": "4.27.0", - "find-up": "6.3.0", + "find-up": "7.0.0", "flush-write-stream": "2.0.0", "folder-walker": "3.2.0", "from2-array": "0.0.4", @@ -15164,28 +15163,30 @@ "inquirer-autocomplete-prompt": "1.4.0", "ipx": "2.1.0", "is-docker": "3.0.0", - "is-stream": "3.0.0", - "is-wsl": "2.2.0", - "isexe": "2.0.0", + "is-stream": "4.0.1", + "is-wsl": "3.1.0", + "isexe": "3.1.1", "js-yaml": "4.1.0", "jsonwebtoken": "9.0.2", - "jwt-decode": "3.1.2", + "jwt-decode": "4.0.0", "lambda-local": "2.2.0", - "listr2": "7.0.2", + "listr2": "8.2.1", "locate-path": "7.2.0", "lodash": "4.17.21", - "log-symbols": "5.1.0", - "log-update": "5.0.1", + "log-symbols": "6.0.0", + "log-update": "6.0.0", + "maxstache": "1.0.7", + "maxstache-stream": "1.0.4", "multiparty": "4.2.3", - "netlify": "13.1.16", + "netlify": "13.1.19", "netlify-headers-parser": "7.1.4", "netlify-redirect-parser": "14.3.0", "netlify-redirector": "0.5.0", - "node-fetch": "2.7.0", + "node-fetch": "3.3.2", "node-version-alias": "3.4.1", - "ora": "6.3.1", - "p-filter": "3.0.0", - "p-map": "5.5.0", + "ora": "8.0.1", + "p-filter": "4.1.0", + "p-map": "7.0.2", "p-wait-for": "5.0.2", "parallel-transform": "1.2.0", "parse-github-url": "1.0.2", @@ -15195,24 +15196,25 @@ "pump": "3.0.0", "raw-body": "2.5.2", "read-package-up": "11.0.0", + "readdirp": "3.6.0", "semver": "7.6.2", "source-map-support": "0.5.21", "strip-ansi-control-characters": "2.0.0", "tabtab": "3.0.2", "tempy": "3.1.0", "terminal-link": "3.0.0", - "through2-filter": "3.0.0", - "through2-map": "3.0.0", + "through2-filter": "4.0.0", + "through2-map": "4.0.0", "to-readable-stream": "3.0.0", "toml": "3.0.0", "tomlify-j0.4": "3.0.0", "ulid": "2.3.0", "unixify": "1.0.0", - "update-notifier": "6.0.2", + "update-notifier": "7.0.0", "uuid": "9.0.1", "wait-port": "1.1.0", "write-file-atomic": "5.0.1", - "ws": "8.17.0", + "ws": "8.17.1", "zod": "3.23.8" }, "bin": { @@ -15224,101 +15226,46 @@ } }, "node_modules/netlify-cli/node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/netlify-cli/node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/netlify-cli/node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/netlify-cli/node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/netlify-cli/node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/netlify-cli/node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/netlify-cli/node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/netlify-cli/node_modules/@babel/helper-validator-identifier": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", - "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/netlify-cli/node_modules/@babel/highlight": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.13.tgz", - "integrity": "sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.24.7", "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" @@ -15381,9 +15328,9 @@ } }, "node_modules/netlify-cli/node_modules/@babel/parser": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", - "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -15392,6 +15339,20 @@ "node": ">=6.0.0" } }, + "node_modules/netlify-cli/node_modules/@babel/types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.6.tgz", + "integrity": "sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.6", + "@babel/helper-validator-identifier": "^7.24.6", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/netlify-cli/node_modules/@bugsnag/browser": { "version": "7.22.7", "resolved": "https://registry.npmjs.org/@bugsnag/browser/-/browser-7.22.7.tgz", @@ -15483,13 +15444,13 @@ } }, "node_modules/netlify-cli/node_modules/@dependents/detective-less": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-4.0.0.tgz", - "integrity": "sha512-0udn+HKjGUzTX4Z+0vXdEJVsO28gxy5QxWjeChK4ZH+bwdvIXLuztiGZk8wLyAG1+LNZ5haVHKr5j1XfJnAkyQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-4.1.0.tgz", + "integrity": "sha512-KrkT6qO5NxqNfy68sBl6CTSoJ4SNDIS5iQArkibhlbGU4LaDukZ3q2HIkh8aUKDio6o4itU4xDR7t82Y2eP1Bg==", "dev": true, "dependencies": { "gonzales-pe": "^4.3.0", - "node-source-walk": "^6.0.0" + "node-source-walk": "^6.0.1" }, "engines": { "node": ">=14" @@ -15980,17 +15941,17 @@ } }, "node_modules/netlify-cli/node_modules/@fastify/static": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@fastify/static/-/static-6.12.0.tgz", - "integrity": "sha512-KK1B84E6QD/FcQWxDI2aiUCwHxMJBI1KeCUzm1BwYpPY1b742+jeKruGHP2uOluuM6OkBPI8CIANrXcCRtC2oQ==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/@fastify/static/-/static-7.0.4.tgz", + "integrity": "sha512-p2uKtaf8BMOZWLs6wu+Ihg7bWNBdjNgCwDza4MJtTqg+5ovKmcbgbR9Xs5/smZ1YISfzKOCNYmZV8LaCj+eJ1Q==", "dev": true, "dependencies": { "@fastify/accept-negotiator": "^1.0.0", "@fastify/send": "^2.0.0", "content-disposition": "^0.5.3", "fastify-plugin": "^4.0.0", - "glob": "^8.0.1", - "p-limit": "^3.1.0" + "fastq": "^1.17.0", + "glob": "^10.3.4" } }, "node_modules/netlify-cli/node_modules/@fastify/static/node_modules/brace-expansion": { @@ -16003,34 +15964,80 @@ } }, "node_modules/netlify-cli/node_modules/@fastify/static/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "version": "10.3.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz", + "integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.6", + "minimatch": "^9.0.1", + "minipass": "^7.0.4", + "path-scurry": "^1.11.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=12" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/netlify-cli/node_modules/@fastify/static/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/netlify-cli/node_modules/@fastify/static/node_modules/minipass": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", + "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/netlify-cli/node_modules/@grpc/grpc-js": { + "version": "1.10.9", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.9.tgz", + "integrity": "sha512-5tcgUctCG0qoNyfChZifz2tJqbRbXVO9J7X6duFcOjY3HUNCxg5D0ZCK7EP9vIcZ0zRpLU9bWkyCqVCLZ46IbQ==", + "dev": true, + "dependencies": { + "@grpc/proto-loader": "^0.7.13", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@grpc/proto-loader": { + "version": "0.7.13", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", + "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "dev": true, + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" } }, "node_modules/netlify-cli/node_modules/@humanwhocodes/momoa": { @@ -16228,6 +16235,16 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/netlify-cli/node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, "node_modules/netlify-cli/node_modules/@lukeed/ms": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@lukeed/ms/-/ms-2.0.1.tgz", @@ -16270,6 +16287,26 @@ "node": ">= 6" } }, + "node_modules/netlify-cli/node_modules/@mapbox/node-pre-gyp/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/netlify-cli/node_modules/@netlify/binary-info": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@netlify/binary-info/-/binary-info-1.0.0.tgz", @@ -16286,23 +16323,23 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/build": { - "version": "29.41.5", - "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.41.5.tgz", - "integrity": "sha512-MWSB8eBp11vLvW6TAM6h1DjERVdiJQBKUHtOQ6TKjNPseRisW8IZqZ0DBi1Dv0StiTIZ7HLkmQgN6BmR4ZVgCw==", + "version": "29.48.2", + "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.48.2.tgz", + "integrity": "sha512-QuBVXKTjQohncI6drs3MRVeoNKRfRW9B6TpuXd3h6YjgX7bXqWSPa5Ma0xsa0r/QVfIbvucIaKDEGxAE+1KhJw==", "dev": true, "dependencies": { "@bugsnag/js": "^7.0.0", "@netlify/blobs": "^7.3.0", "@netlify/cache-utils": "^5.1.5", - "@netlify/config": "^20.12.5", + "@netlify/config": "^20.15.3", "@netlify/edge-bundler": "12.0.1", - "@netlify/framework-info": "^9.8.12", - "@netlify/functions-utils": "^5.2.56", + "@netlify/framework-info": "^9.8.13", + "@netlify/functions-utils": "^5.2.69", "@netlify/git-utils": "^5.1.1", "@netlify/opentelemetry-utils": "^1.2.1", - "@netlify/plugins-list": "^6.78.0", + "@netlify/plugins-list": "^6.80.0", "@netlify/run-utils": "^5.1.1", - "@netlify/zip-it-and-ship-it": "9.32.2", + "@netlify/zip-it-and-ship-it": "9.37.1", "@sindresorhus/slugify": "^2.0.0", "ansi-escapes": "^6.0.0", "chalk": "^5.0.0", @@ -16398,6 +16435,37 @@ "balanced-match": "^1.0.0" } }, + "node_modules/netlify-cli/node_modules/@netlify/build-info/node_modules/dot-prop": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-7.2.0.tgz", + "integrity": "sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA==", + "dev": true, + "dependencies": { + "type-fest": "^2.11.2" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/@netlify/build-info/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "dev": true, + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/build-info/node_modules/minimatch": { "version": "9.0.3", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", @@ -16413,6 +16481,15 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/netlify-cli/node_modules/@netlify/build-info/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/netlify-cli/node_modules/@netlify/build-info/node_modules/read-pkg": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-7.1.0.tgz", @@ -16443,28 +16520,16 @@ "node": ">= 14" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/@sindresorhus/is": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", - "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/ansi-escapes": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-6.2.1.tgz", + "integrity": "sha512-4nJ3yixlEthEJ9Rk4vPcdBRkZvQZlYyu8j4/Mqz5sgIkddmEnH2Yj2ZrnP9S3tQOvSNRUIgVNF/1yPpRAGNRig==", "dev": true, "engines": { "node": ">=14.16" }, "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "dev": true, - "dependencies": { - "defer-to-connect": "^2.0.1" - }, - "engines": { - "node": ">=14.16" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/brace-expansion": { @@ -16476,33 +16541,6 @@ "balanced-match": "^1.0.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/cacheable-lookup": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", - "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", - "dev": true, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/cacheable-request": { - "version": "10.2.14", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", - "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", - "dev": true, - "dependencies": { - "@types/http-cache-semantics": "^4.0.2", - "get-stream": "^6.0.1", - "http-cache-semantics": "^4.1.1", - "keyv": "^4.5.3", - "mimic-response": "^4.0.0", - "normalize-url": "^8.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - } - }, "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -16560,42 +16598,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", "dev": true, "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" }, "engines": { - "node": ">=14.16" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/http2-wrapper": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz", - "integrity": "sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==", - "dev": true, - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/human-signals": { @@ -16619,10 +16635,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/lowercase-keys": { + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/is-stream": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" @@ -16643,18 +16659,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/mimic-response": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", - "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/minimatch": { "version": "9.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", @@ -16670,43 +16674,43 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", "dev": true, "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" + "path-key": "^4.0.0" }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/normalize-url": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz", - "integrity": "sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==", + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, "engines": { - "node": ">=14.16" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/p-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-3.0.0.tgz", + "integrity": "sha512-QtoWLjXAW++uTX67HZQz1dbTpqBfiidsB6VtQUC9iR85S120+s0T5sO6s+B5MLzFcZkrEd/DGMmCjR+f2Qpxwg==", "dev": true, "dependencies": { - "path-key": "^4.0.0" + "p-map": "^5.1.0" }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" @@ -16715,13 +16719,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/p-filter/node_modules/p-map": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", + "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", "dev": true, "dependencies": { - "mimic-fn": "^4.0.0" + "aggregate-error": "^4.0.0" }, "engines": { "node": ">=12" @@ -16730,15 +16734,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", - "dev": true, - "engines": { - "node": ">=12.20" - } - }, "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/p-limit": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", @@ -16817,21 +16812,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/responselike": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", - "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", - "dev": true, - "dependencies": { - "lowercase-keys": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/@netlify/build/node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", @@ -16933,9 +16913,9 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/config": { - "version": "20.12.5", - "resolved": "https://registry.npmjs.org/@netlify/config/-/config-20.12.5.tgz", - "integrity": "sha512-G3On0L/c3tG5Hl3U9hWbxjuqt/A/quWnr7JiD8pijIezZN1rrX2BuiZLh/rqm6uEWqMb9agZw4nX1eqPNlesVg==", + "version": "20.15.3", + "resolved": "https://registry.npmjs.org/@netlify/config/-/config-20.15.3.tgz", + "integrity": "sha512-+aLUs5t8wSKfauEs0W4cs8wTJOTEqNrWsoqzbCJoZoVrGr2+t1X7JmF5al/eJjKPR9m0BMP2yCJaJOVZugM11w==", "dev": true, "dependencies": { "@iarna/toml": "^2.2.5", @@ -16952,7 +16932,7 @@ "is-plain-obj": "^4.0.0", "js-yaml": "^4.0.0", "map-obj": "^5.0.0", - "netlify": "^13.1.16", + "netlify": "^13.1.19", "netlify-headers-parser": "^7.1.4", "netlify-redirect-parser": "^14.3.0", "node-fetch": "^3.3.1", @@ -16970,6 +16950,21 @@ "node": "^14.16.0 || >=16.0.0" } }, + "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/dot-prop": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-7.2.0.tgz", + "integrity": "sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA==", + "dev": true, + "dependencies": { + "type-fest": "^2.11.2" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/escape-string-regexp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", @@ -17021,6 +17016,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "dev": true, + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/human-signals": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz", @@ -17042,10 +17053,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/map-obj": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-5.0.2.tgz", - "integrity": "sha512-K6K2NgKnTXimT3779/4KxSvobxOtMmx1LBZ3NwRxT/MDIR3Br/fQ4Q+WCX5QxjyUR8zg5+RV9Tbf2c5pAWTD2A==", + "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" @@ -17054,22 +17065,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/map-obj": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-5.0.2.tgz", + "integrity": "sha512-K6K2NgKnTXimT3779/4KxSvobxOtMmx1LBZ3NwRxT/MDIR3Br/fQ4Q+WCX5QxjyUR8zg5+RV9Tbf2c5pAWTD2A==", "dev": true, - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/npm-run-path": { @@ -17132,6 +17137,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/netlify-cli/node_modules/@netlify/config/node_modules/path-type": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", @@ -17570,32 +17584,6 @@ "node": ">=12" } }, - "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/@vercel/nft": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.27.0.tgz", - "integrity": "sha512-W5pValyhToK9hbgEUAM6sLRUIl1I++RsFnXKHXtND50P1+vZ+OYPCzq1OOz0Ok6ghK6aOwae8G/rEAXkLedC+w==", - "dev": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.5", - "@rollup/pluginutils": "^4.0.0", - "acorn": "^8.6.0", - "acorn-import-attributes": "^1.9.5", - "async-sema": "^3.1.1", - "bindings": "^1.4.0", - "estree-walker": "2.0.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.2", - "node-gyp-build": "^4.2.2", - "resolve-from": "^5.0.0" - }, - "bin": { - "nft": "out/cli.js" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/ajv": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", @@ -17682,6 +17670,22 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "dev": true, + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/get-port": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/get-port/-/get-port-6.1.2.tgz", @@ -17715,30 +17719,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" + "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/npm-run-path": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", @@ -17796,6 +17794,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/strip-final-newline": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", @@ -17809,15 +17816,15 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/edge-functions": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@netlify/edge-functions/-/edge-functions-2.7.0.tgz", - "integrity": "sha512-SplDdzmq161OR648P3sGOZ0vW9wo4/GFCQYWGmq3iepDuKl7J1eHaQxLk76cIFuZ3TivK49xFUs7x2DrYkEzAQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/@netlify/edge-functions/-/edge-functions-2.8.1.tgz", + "integrity": "sha512-BoAz/gCWHLn9DVugGViORbWFDqaqrB/JHM+9N+ahk7U6C3EwaFojnnGKCMrQ65f2YOi6Wwlue1ZZO+8mq43RZA==", "dev": true }, "node_modules/netlify-cli/node_modules/@netlify/framework-info": { - "version": "9.8.12", - "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-9.8.12.tgz", - "integrity": "sha512-tk7sQFEO9CW5+1jcAqObvgzmJdyBsDMnQvNgXOIlVKSlBbEfMIgyyMad+fQ4ddnaLx+MmQuroJN5G80IkqJ7+Q==", + "version": "9.8.13", + "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-9.8.13.tgz", + "integrity": "sha512-ZZXCggokY/y5Sz93XYbl/Lig1UAUSWPMBiQRpkVfbrrkjmW2ZPkYS/BgrM2/MxwXRvYhc/TQpZX6y5JPe3quQg==", "dev": true, "dependencies": { "ajv": "^8.12.0", @@ -17828,7 +17835,7 @@ "p-filter": "^3.0.0", "p-locate": "^6.0.0", "process": "^0.11.10", - "read-package-up": "^11.0.0", + "read-pkg-up": "^9.1.0", "semver": "^7.3.8" }, "engines": { @@ -17851,12 +17858,43 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "dev": true, + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, + "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/p-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-3.0.0.tgz", + "integrity": "sha512-QtoWLjXAW++uTX67HZQz1dbTpqBfiidsB6VtQUC9iR85S120+s0T5sO6s+B5MLzFcZkrEd/DGMmCjR+f2Qpxwg==", + "dev": true, + "dependencies": { + "p-map": "^5.1.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/p-limit": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", @@ -17887,6 +17925,30 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/p-map": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", + "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", + "dev": true, + "dependencies": { + "aggregate-error": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/netlify-cli/node_modules/@netlify/framework-info/node_modules/yocto-queue": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", @@ -17900,12 +17962,12 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/functions-utils": { - "version": "5.2.56", - "resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-5.2.56.tgz", - "integrity": "sha512-CPYrG3v/1w5GeBEI2t3tCrrLxACm3ecvj0X10PPPFAv++4dy1M7L9PqlTjGz15kektBSOIL9a82/4T74/OBhng==", + "version": "5.2.69", + "resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-5.2.69.tgz", + "integrity": "sha512-001B2R7BWqh7C7uRiK7hpM554hbBBYsucHPbdsD7dNy/MbqX8TSt3NkfgM2KvSigtWUnFGFAF4GUhfdQQ+XlBw==", "dev": true, "dependencies": { - "@netlify/zip-it-and-ship-it": "9.32.2", + "@netlify/zip-it-and-ship-it": "9.37.1", "cpy": "^9.0.0", "path-exists": "^5.0.0" }, @@ -17970,6 +18032,18 @@ "node": ">=12.20.0" } }, + "node_modules/netlify-cli/node_modules/@netlify/git-utils/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/git-utils/node_modules/map-obj": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-5.0.2.tgz", @@ -18255,9 +18329,9 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/open-api": { - "version": "2.30.0", - "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.30.0.tgz", - "integrity": "sha512-SMRzNwaG6/2MTIBe/RThLQRm3kNpiwb90te+iDJgMLLfTdVA33P/oiinTypBMyQU4Cm3IvQm7P5zD2mXZacSsg==", + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.33.0.tgz", + "integrity": "sha512-GGIoUb/ARY4pxVgxp8RWDBV4nm1iMzJTuhYpQoOwWoJPKYlCykOMm0PpL0MLuPHzwrF/Q6N3C+fit5nQIVJ83g==", "dev": true, "engines": { "node": ">=14" @@ -18276,9 +18350,9 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/plugins-list": { - "version": "6.78.0", - "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.78.0.tgz", - "integrity": "sha512-VHd1G7oQKJ0oTowb2Sohu91CcYBR2lpLJ0E5Ep5NTwWYR7ymuoP+DAHlIbWlBznSS/AfHFR6SKdcShBOhqdgww==", + "version": "6.80.0", + "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.80.0.tgz", + "integrity": "sha512-bCKLI51UZ70ziIWsf2nvgPd4XuG6m8AMCoHiYtl/BSsiaSBfmryZnTTqdRXerH09tBRpbPPwzaEgUJwyU9o8Qw==", "dev": true, "engines": { "node": "^14.14.0 || >=16.0.0" @@ -18328,6 +18402,18 @@ "node": ">=12.20.0" } }, + "node_modules/netlify-cli/node_modules/@netlify/run-utils/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/run-utils/node_modules/npm-run-path": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", @@ -18371,16 +18457,16 @@ } }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it": { - "version": "9.32.2", - "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-9.32.2.tgz", - "integrity": "sha512-0AHtKKTWlVgbYD46/8ns3/55uVefbPgun8omYEoVYeW50t2j380D+sq3O+2x6cH9a6zjuxH1IDvRoppBZGWAkw==", + "version": "9.37.1", + "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-9.37.1.tgz", + "integrity": "sha512-RxPkeLXnNEolJh3dfJ9DMBOpJ3RGhpGFMmFITase5aLSwy+MBae9n1M58dnpWHEQUNeuQ1fLRrkCsp5DD0JelA==", "dev": true, "dependencies": { "@babel/parser": "^7.22.5", - "@babel/types": "7.24.5", + "@babel/types": "7.24.6", "@netlify/binary-info": "^1.0.0", - "@netlify/serverless-functions-api": "^1.18.1", - "@vercel/nft": "^0.23.0", + "@netlify/serverless-functions-api": "^1.18.4", + "@vercel/nft": "^0.27.1", "archiver": "^7.0.0", "common-path-prefix": "^3.0.0", "cp-file": "^10.0.0", @@ -18408,198 +18494,165 @@ "toml": "^3.0.0", "unixify": "^1.0.0", "urlpattern-polyfill": "8.0.2", - "yargs": "^17.0.0" + "yargs": "^17.0.0", + "zod": "^3.23.8" }, "bin": { - "zip-it-and-ship-it": "dist/bin.js" + "zip-it-and-ship-it": "bin.js" }, "engines": { "node": "^14.18.0 || >=16.0.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@babel/types": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", - "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.24.1", - "@babel/helper-validator-identifier": "^7.24.5", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@netlify/serverless-functions-api": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.18.1.tgz", - "integrity": "sha512-DrSvivchuwsuQW03zbVPT3nxCQa5tn7m4aoPOsQKibuJXIuSbfxzCBxPLz0+LchU5ds7YyOaCc9872Y32ngYzg==", + "version": "1.18.4", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.18.4.tgz", + "integrity": "sha512-5R0kOKrOqhlFFrA7oduzJS+LQRjnX2CX8kJaYI9PQKIpNvzF18n+LNGWTS42YxPfIpAE64yaHbppeAigms2QTw==", "dev": true, "dependencies": { "@netlify/node-cookies": "^0.1.0", "@opentelemetry/core": "^1.23.0", - "@opentelemetry/otlp-transformer": "^0.50.0", + "@opentelemetry/otlp-transformer": "^0.52.0", "@opentelemetry/resources": "^1.23.0", - "@opentelemetry/sdk-trace-base": "^1.23.0", - "@opentelemetry/semantic-conventions": "^1.23.0", + "@opentelemetry/sdk-node": "^0.52.0", + "@opentelemetry/sdk-trace-node": "^1.24.1", "urlpattern-polyfill": "8.0.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/archiver": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz", - "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", "dev": true, "dependencies": { - "archiver-utils": "^5.0.2", - "async": "^3.2.4", - "buffer-crc32": "^1.0.0", - "readable-stream": "^4.0.0", - "readdir-glob": "^1.1.2", - "tar-stream": "^3.0.0", - "zip-stream": "^6.0.1" + "@opentelemetry/api": "^1.0.0" }, "engines": { - "node": ">= 14" + "node": ">=14" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/archiver-utils": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-5.0.2.tgz", - "integrity": "sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", "dev": true, "dependencies": { - "glob": "^10.0.0", - "graceful-fs": "^4.2.0", - "is-stream": "^2.0.1", - "lazystream": "^1.0.0", - "lodash": "^4.17.15", - "normalize-path": "^3.0.0", - "readable-stream": "^4.0.0" + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { - "node": ">= 14" + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/archiver-utils/node_modules/glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/otlp-transformer": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.52.0.tgz", + "integrity": "sha512-40acy3JxCAqQYcYepypF/64GVB8jerC6Oiz1HRUXxiSTVwg+ud7UtywfOkPRpc9bjHiyJouWxTjiUPQ9VBMKbg==", "dev": true, "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.10.2" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "protobufjs": "^7.3.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=14" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/archiver-utils/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, "engines": { - "node": ">=8" + "node": ">=14" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", "dev": true, "dependencies": { - "balanced-match": "^1.0.0" + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/buffer-crc32": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", - "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", - "dev": true, + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "lodash.merge": "^4.6.2" + }, "engines": { - "node": ">=8.0.0" + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/compress-commons": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz", - "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", "dev": true, "dependencies": { - "crc-32": "^1.2.0", - "crc32-stream": "^6.0.0", - "is-stream": "^2.0.1", - "normalize-path": "^3.0.0", - "readable-stream": "^4.0.0" + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { - "node": ">= 14" + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/compress-commons/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", "dev": true, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=14" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/crc32-stream": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz", - "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "dependencies": { - "crc-32": "^1.2.0", - "readable-stream": "^4.0.0" - }, - "engines": { - "node": ">= 14" + "balanced-match": "^1.0.0" } }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/execa": { @@ -18625,38 +18678,27 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, "engines": { - "node": ">=14" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/glob": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", @@ -18705,6 +18747,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/minimatch": { "version": "9.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", @@ -18720,15 +18774,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/minipass": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.0.tgz", - "integrity": "sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==", - "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/npm-run-path": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", @@ -18759,58 +18804,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/path-exists": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", - "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/p-map": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", + "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", "dev": true, "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" + "aggregate-error": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/strip-final-newline": { @@ -18825,20 +18840,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/node_modules/zip-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz", - "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==", - "dev": true, - "dependencies": { - "archiver-utils": "^5.0.0", - "compress-commons": "^6.0.2", - "readable-stream": "^4.0.0" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/netlify-cli/node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -18875,214 +18876,158 @@ } }, "node_modules/netlify-cli/node_modules/@octokit/auth-token": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-3.0.1.tgz", - "integrity": "sha512-/USkK4cioY209wXRpund6HZzHo9GmjakpV9ycOkpMcMxMk7QVcVFVyCMtzvXYiHsB2crgDgrtNYSELYFBXhhaA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", + "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", "dev": true, - "dependencies": { - "@octokit/types": "^7.0.0" - }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/netlify-cli/node_modules/@octokit/core": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.2.1.tgz", - "integrity": "sha512-tEDxFx8E38zF3gT7sSMDrT1tGumDgsw5yPG6BBh/X+5ClIQfMH/Yqocxz1PnHx6CHyF6pxmovUTOfZAUvQ0Lvw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz", + "integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==", "dev": true, "dependencies": { - "@octokit/auth-token": "^3.0.0", - "@octokit/graphql": "^5.0.0", - "@octokit/request": "^6.0.0", - "@octokit/request-error": "^3.0.0", - "@octokit/types": "^9.0.0", + "@octokit/auth-token": "^4.0.0", + "@octokit/graphql": "^7.1.0", + "@octokit/request": "^8.3.1", + "@octokit/request-error": "^5.1.0", + "@octokit/types": "^13.0.0", "before-after-hook": "^2.2.0", "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14" - } - }, - "node_modules/netlify-cli/node_modules/@octokit/core/node_modules/@octokit/openapi-types": { - "version": "18.1.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.1.1.tgz", - "integrity": "sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw==", - "dev": true - }, - "node_modules/netlify-cli/node_modules/@octokit/core/node_modules/@octokit/types": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz", - "integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^18.0.0" + "node": ">= 18" } }, "node_modules/netlify-cli/node_modules/@octokit/endpoint": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.2.tgz", - "integrity": "sha512-8/AUACfE9vpRpehE6ZLfEtzkibe5nfsSwFZVMsG8qabqRt1M81qZYUFRZa1B8w8lP6cdfDJfRq9HWS+MbmR7tw==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz", + "integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==", "dev": true, "dependencies": { - "@octokit/types": "^7.0.0", - "is-plain-object": "^5.0.0", + "@octokit/types": "^13.1.0", "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/netlify-cli/node_modules/@octokit/graphql": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.1.tgz", - "integrity": "sha512-sxmnewSwAixkP1TrLdE6yRG53eEhHhDTYUykUwdV9x8f91WcbhunIHk9x1PZLALdBZKRPUO2HRcm4kezZ79HoA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz", + "integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==", "dev": true, "dependencies": { - "@octokit/request": "^6.0.0", - "@octokit/types": "^7.0.0", + "@octokit/request": "^8.3.0", + "@octokit/types": "^13.0.0", "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/netlify-cli/node_modules/@octokit/openapi-types": { - "version": "13.13.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", - "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "version": "22.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz", + "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==", "dev": true }, "node_modules/netlify-cli/node_modules/@octokit/plugin-paginate-rest": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-6.1.2.tgz", - "integrity": "sha512-qhrmtQeHU/IivxucOV1bbI/xZyC/iOBhclokv7Sut5vnejAIAEXVcGQeRpQlU39E0WwK9lNvJHphHri/DB6lbQ==", + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.3.1.tgz", + "integrity": "sha512-ryqobs26cLtM1kQxqeZui4v8FeznirUsksiA+RYemMPJ7Micju0WSkv50dBksTuZks9O5cg4wp+t8fZ/cLY56g==", "dev": true, "dependencies": { - "@octokit/tsconfig": "^1.0.2", - "@octokit/types": "^9.2.3" + "@octokit/types": "^13.5.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=4" - } - }, - "node_modules/netlify-cli/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { - "version": "18.1.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.1.1.tgz", - "integrity": "sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw==", - "dev": true - }, - "node_modules/netlify-cli/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz", - "integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^18.0.0" + "@octokit/core": "5" } }, "node_modules/netlify-cli/node_modules/@octokit/plugin-request-log": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", - "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz", + "integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==", "dev": true, + "engines": { + "node": ">= 18" + }, "peerDependencies": { - "@octokit/core": ">=3" + "@octokit/core": "5" } }, "node_modules/netlify-cli/node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.1.2.tgz", - "integrity": "sha512-R0oJ7j6f/AdqPLtB9qRXLO+wjI9pctUn8Ka8UGfGaFCcCv3Otx14CshQ89K4E88pmyYZS8p0rNTiprML/81jig==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.2.tgz", + "integrity": "sha512-EI7kXWidkt3Xlok5uN43suK99VWqc8OaIMktY9d9+RNKl69juoTyxmLoWPIZgJYzi41qj/9zU7G/ljnNOJ5AFA==", "dev": true, "dependencies": { - "@octokit/types": "^9.2.3", - "deprecation": "^2.3.1" + "@octokit/types": "^13.5.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/netlify-cli/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { - "version": "18.1.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.1.1.tgz", - "integrity": "sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw==", - "dev": true - }, - "node_modules/netlify-cli/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz", - "integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^18.0.0" + "@octokit/core": "^5" } }, "node_modules/netlify-cli/node_modules/@octokit/request": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-6.2.1.tgz", - "integrity": "sha512-gYKRCia3cpajRzDSU+3pt1q2OcuC6PK8PmFIyxZDWCzRXRSIBH8jXjFJ8ZceoygBIm0KsEUg4x1+XcYBz7dHPQ==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz", + "integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==", "dev": true, "dependencies": { - "@octokit/endpoint": "^7.0.0", - "@octokit/request-error": "^3.0.0", - "@octokit/types": "^7.0.0", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.7", + "@octokit/endpoint": "^9.0.1", + "@octokit/request-error": "^5.1.0", + "@octokit/types": "^13.1.0", "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/netlify-cli/node_modules/@octokit/request-error": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-3.0.1.tgz", - "integrity": "sha512-ym4Bp0HTP7F3VFssV88WD1ZyCIRoE8H35pXSKwLeMizcdZAYc/t6N9X9Yr9n6t3aG9IH75XDnZ6UeZph0vHMWQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz", + "integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==", "dev": true, "dependencies": { - "@octokit/types": "^7.0.0", + "@octokit/types": "^13.1.0", "deprecation": "^2.0.0", "once": "^1.4.0" }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/netlify-cli/node_modules/@octokit/rest": { - "version": "19.0.13", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.13.tgz", - "integrity": "sha512-/EzVox5V9gYGdbAI+ovYj3nXQT1TtTHRT+0eZPcuC05UFSWO3mdO9UY1C0i2eLF9Un1ONJkAk+IEtYGAC+TahA==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-20.1.1.tgz", + "integrity": "sha512-MB4AYDsM5jhIHro/dq4ix1iWTLGToIGk6cWF5L6vanFaMble5jTX/UBQyiv05HsWnwUtY8JrfHy2LWfKwihqMw==", "dev": true, "dependencies": { - "@octokit/core": "^4.2.1", - "@octokit/plugin-paginate-rest": "^6.1.2", - "@octokit/plugin-request-log": "^1.0.4", - "@octokit/plugin-rest-endpoint-methods": "^7.1.2" + "@octokit/core": "^5.0.2", + "@octokit/plugin-paginate-rest": "11.3.1", + "@octokit/plugin-request-log": "^4.0.0", + "@octokit/plugin-rest-endpoint-methods": "13.2.2" }, "engines": { - "node": ">= 14" + "node": ">= 18" } }, - "node_modules/netlify-cli/node_modules/@octokit/tsconfig": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", - "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", - "dev": true - }, "node_modules/netlify-cli/node_modules/@octokit/types": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", - "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz", + "integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==", "dev": true, "dependencies": { - "@octokit/openapi-types": "^13.11.0" + "@octokit/openapi-types": "^22.2.0" } }, "node_modules/netlify-cli/node_modules/@opentelemetry/api": { @@ -19094,124 +19039,1117 @@ "node": ">=8.0.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/api-logs": { - "version": "0.50.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.50.0.tgz", - "integrity": "sha512-JdZuKrhOYggqOpUljAq4WWNi5nB10PmgoF0y2CvedLGXd0kSawb/UBnWT8gg1ND3bHCNHStAIVT0ELlxJJRqrA==", + "node_modules/netlify-cli/node_modules/@opentelemetry/context-async-hooks": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-1.25.0.tgz", + "integrity": "sha512-sBW313mnMyFg0cp/40BRzrZBWG+581s2j5gIsa5fgGadswyILk4mNFATsqrCOpAx945RDuZ2B7ThQLgor9OpfA==", + "dev": true, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-grpc/-/exporter-trace-otlp-grpc-0.52.0.tgz", + "integrity": "sha512-Ln3HU54/ytTeEMrDGNDj01357YV8Kk9PkGDHvBRo1n7bWhwZoTEnX/cTuXLYOiygBIJJjCCM+VMfWCnvtFl4Kw==", + "dev": true, + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.52.0", + "@opentelemetry/otlp-transformer": "0.52.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/otlp-transformer": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.52.0.tgz", + "integrity": "sha512-40acy3JxCAqQYcYepypF/64GVB8jerC6Oiz1HRUXxiSTVwg+ud7UtywfOkPRpc9bjHiyJouWxTjiUPQ9VBMKbg==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "protobufjs": "^7.3.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "lodash.merge": "^4.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.52.0.tgz", + "integrity": "sha512-umj9tOSEAuUdqw2EZua1Dby3c+FZ6xWGT2OF/KGLFLtyIvxhtTOSeMfBy/9CaxHn4vF8mAynmAP5MvVKnRYunA==", "dev": true, "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/otlp-exporter-base": "0.52.0", + "@opentelemetry/otlp-transformer": "0.52.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/otlp-transformer": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.52.0.tgz", + "integrity": "sha512-40acy3JxCAqQYcYepypF/64GVB8jerC6Oiz1HRUXxiSTVwg+ud7UtywfOkPRpc9bjHiyJouWxTjiUPQ9VBMKbg==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "protobufjs": "^7.3.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/core": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.23.0.tgz", - "integrity": "sha512-hdQ/a9TMzMQF/BO8Cz1juA43/L5YGtCSiKoOHmrTEf7VMDAZgy8ucpWx3eQTnQ3gBloRcWtzvcrMZABC3PTSKQ==", + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", "dev": true, "dependencies": { - "@opentelemetry/semantic-conventions": "1.23.0" + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.9.0" + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "lodash.merge": "^4.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-proto/-/exporter-trace-otlp-proto-0.52.0.tgz", + "integrity": "sha512-mpMEZFGaGnvon5pbjLieh7ffE9BuYnrG7qd4O5P3j1fk/4PCR3BcGfGhIfyZi0X8kBcjEhipiBfaHYqI7rxcXg==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/otlp-exporter-base": "0.52.0", + "@opentelemetry/otlp-transformer": "0.52.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/otlp-transformer": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.52.0.tgz", + "integrity": "sha512-40acy3JxCAqQYcYepypF/64GVB8jerC6Oiz1HRUXxiSTVwg+ud7UtywfOkPRpc9bjHiyJouWxTjiUPQ9VBMKbg==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "protobufjs": "^7.3.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "lodash.merge": "^4.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-zipkin": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-zipkin/-/exporter-zipkin-1.25.0.tgz", + "integrity": "sha512-nnhY0e5DHg8BfUSNCQZoGZnGeqz+zMTeEUOh1dfgtaXmF99uM0QPuTa1i2lH+eZqebP8w1WDWZlewu9FUlHqIg==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/instrumentation": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.52.0.tgz", + "integrity": "sha512-LPwSIrw+60cheWaXsfGL8stBap/AppKQJFE+qqRvzYrgttXFH2ofoIMxWadeqPTq4BYOXM/C7Bdh/T+B60xnlQ==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@types/shimmer": "^1.0.2", + "import-in-the-middle": "1.8.0", + "require-in-the-middle": "^7.1.1", + "semver": "^7.5.2", + "shimmer": "^1.2.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.52.0.tgz", + "integrity": "sha512-rlyg5UKW9yMTNMUxYYib9XxEE/krpH7Q6mIuJNOBMbjLwmqe1WQ2MNKNzobVZTKop/FX4CvyNN3wUEl/6gnvfw==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/otlp-transformer": "0.52.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/otlp-transformer": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.52.0.tgz", + "integrity": "sha512-40acy3JxCAqQYcYepypF/64GVB8jerC6Oiz1HRUXxiSTVwg+ud7UtywfOkPRpc9bjHiyJouWxTjiUPQ9VBMKbg==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "protobufjs": "^7.3.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "lodash.merge": "^4.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-grpc-exporter-base/-/otlp-grpc-exporter-base-0.52.0.tgz", + "integrity": "sha512-iVq3wCElOoKUkxBOuvV8cfaELG8WO/zfLWIZil6iw/6hj6rktLodnJ7kVOneVmLki7Po1BjE1K7JOp2G3UPgYg==", + "dev": true, + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/otlp-exporter-base": "0.52.0", + "@opentelemetry/otlp-transformer": "0.52.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/otlp-transformer": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.52.0.tgz", + "integrity": "sha512-40acy3JxCAqQYcYepypF/64GVB8jerC6Oiz1HRUXxiSTVwg+ud7UtywfOkPRpc9bjHiyJouWxTjiUPQ9VBMKbg==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "protobufjs": "^7.3.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "lodash.merge": "^4.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/propagator-b3": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-b3/-/propagator-b3-1.25.0.tgz", + "integrity": "sha512-/A+1Tbnf0uwnP51OkoaQlrb9YILdHsoqIISna1MNXpZRzf42xm6LVLb49i+m/zlJoW1e8P4ekcrditR5pfmwog==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/propagator-b3/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/propagator-b3/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/propagator-jaeger": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-jaeger/-/propagator-jaeger-1.25.0.tgz", + "integrity": "sha512-uwA5xqaPISXeX+YutqbjmzENnCGCvrIXlqIXP5gRoA5N6S3W28p+ExL77TugMKHN5gXklapF67jDfz7lq5ETzQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/propagator-jaeger/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/propagator-jaeger/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-node/-/sdk-node-0.52.0.tgz", + "integrity": "sha512-3RNnsoHGutya3oVsoc2WRrk/TKlxr+R2uN6H4boNJvW7kc8yxS4QrOI6DlbQYAgEMeC1PMu95jW9LirPOWcMGw==", + "dev": true, + "dependencies": { + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.52.0", + "@opentelemetry/exporter-trace-otlp-http": "0.52.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.52.0", + "@opentelemetry/exporter-zipkin": "1.25.0", + "@opentelemetry/instrumentation": "0.52.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/sdk-logs": "0.52.0", + "@opentelemetry/sdk-metrics": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "@opentelemetry/sdk-trace-node": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/api-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.0.tgz", + "integrity": "sha512-HxjD7xH9iAE4OyhNaaSec65i1H6QZYBWSwWkowFfsc5YAcDvJG30/J1sRKXEQqdmUcKTXEAnA66UciqZha/4+Q==", + "dev": true, + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/otlp-transformer": { - "version": "0.50.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.50.0.tgz", - "integrity": "sha512-s0sl1Yfqd5q1Kjrf6DqXPWzErL+XHhrXOfejh4Vc/SMTNqC902xDsC8JQxbjuramWt/+hibfguIvi7Ns8VLolA==", + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", "dev": true, "dependencies": { - "@opentelemetry/api-logs": "0.50.0", - "@opentelemetry/core": "1.23.0", - "@opentelemetry/resources": "1.23.0", - "@opentelemetry/sdk-logs": "0.50.0", - "@opentelemetry/sdk-metrics": "1.23.0", - "@opentelemetry/sdk-trace-base": "1.23.0" + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.9.0" + "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/resources": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.23.0.tgz", - "integrity": "sha512-iPRLfVfcEQynYGo7e4Di+ti+YQTAY0h5mQEUJcHlU9JOqpb4x965O6PZ+wMcwYVY63G96KtdS86YCM1BF1vQZg==", + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", "dev": true, "dependencies": { - "@opentelemetry/core": "1.23.0", - "@opentelemetry/semantic-conventions": "1.23.0" + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.9.0" + "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-logs": { - "version": "0.50.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.50.0.tgz", - "integrity": "sha512-PeUEupBB29p9nlPNqXoa1PUWNLsZnxG0DCDj3sHqzae+8y76B/A5hvZjg03ulWdnvBLYpnJslqzylG9E0IL87g==", + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/sdk-logs": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.52.0.tgz", + "integrity": "sha512-Dp6g7w7WglrDZMn2yHBMAKRGqQy8C0PUbFovkSwcSsmL47n4FSEc3eeGblZTtueOUW+rTsPJpLHoUpEdS0Wibw==", "dev": true, "dependencies": { - "@opentelemetry/core": "1.23.0", - "@opentelemetry/resources": "1.23.0" + "@opentelemetry/api-logs": "0.52.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.4.0 <1.9.0", - "@opentelemetry/api-logs": ">=0.39.1" + "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-metrics": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.23.0.tgz", - "integrity": "sha512-4OkvW6+wST4h6LFG23rXSTf6nmTf201h9dzq7bE0z5R9ESEVLERZz6WXwE7PSgg1gdjlaznm1jLJf8GttypFDg==", + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/sdk-metrics": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.25.0.tgz", + "integrity": "sha512-IF+Sv4VHgBr/BPMKabl+GouJIhEqAOexCHgXVTISdz3q9P9H/uA8ScCF+22gitQ69aFtESbdYOV+Fen5+avQng==", "dev": true, "dependencies": { - "@opentelemetry/core": "1.23.0", - "@opentelemetry/resources": "1.23.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", "lodash.merge": "^4.6.2" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.9.0" + "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-trace-base": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.23.0.tgz", - "integrity": "sha512-PzBmZM8hBomUqvCddF/5Olyyviayka44O5nDWq673np3ctnvwMOvNrsUORZjKja1zJbwEuD9niAGbnVrz3jwRQ==", + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", "dev": true, "dependencies": { - "@opentelemetry/core": "1.23.0", - "@opentelemetry/resources": "1.23.0", - "@opentelemetry/semantic-conventions": "1.23.0" + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.9.0" + "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, - "node_modules/netlify-cli/node_modules/@opentelemetry/semantic-conventions": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.23.0.tgz", - "integrity": "sha512-MiqFvfOzfR31t8cc74CTP1OZfz7MbqpAnLCra8NqQoaHJX6ncIRTdYOQYBDQ2uFISDq0WY8Y9dDTWvsgzzBYRg==", + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-trace-node": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-1.25.0.tgz", + "integrity": "sha512-sYdZmNCkqthPpjwCxAJk5aQNLxCOQjT1u3JMGvO6rb3Ic8uFdnzXavP13Md9uYPcZBo+KxetyDhCf0x8wJGRng==", + "dev": true, + "dependencies": { + "@opentelemetry/context-async-hooks": "1.25.0", + "@opentelemetry/core": "1.25.0", + "@opentelemetry/propagator-b3": "1.25.0", + "@opentelemetry/propagator-jaeger": "1.25.0", + "@opentelemetry/sdk-trace-base": "1.25.0", + "semver": "^7.5.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.25.0.tgz", + "integrity": "sha512-n0B3s8rrqGrasTgNkXLKXzN0fXo+6IYP7M5b7AMsrZM33f/y6DS6kJ0Btd7SespASWq8bgL3taLo0oe0vB52IQ==", + "dev": true, + "dependencies": { + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/resources": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.25.0.tgz", + "integrity": "sha512-iHjydPMYJ+Li1auveJCq2rp5U2h6Mhq8BidiyE0jfVlDTFyR1ny8AfJHfmFzJ/RAM8vT8L7T21kcmGybxZC7lQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.25.0.tgz", + "integrity": "sha512-6+g2fiRQUG39guCsKVeY8ToeuUf3YUnPkN6DXRA1qDmFLprlLvZm9cS6+chgbW70cZJ406FTtSCDnJwxDC5sGQ==", + "dev": true, + "dependencies": { + "@opentelemetry/core": "1.25.0", + "@opentelemetry/resources": "1.25.0", + "@opentelemetry/semantic-conventions": "1.25.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/netlify-cli/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.0.tgz", + "integrity": "sha512-M+kkXKRAIAiAP6qYyesfrC5TOmDpDVtsxuGfPcqd9B/iBrac+E14jYwrgm0yZBUIbIP2OnqC3j+UgkXLm1vxUQ==", "dev": true, "engines": { "node": ">=14" @@ -19575,6 +20513,70 @@ "node": ">=12" } }, + "node_modules/netlify-cli/node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dev": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/netlify-cli/node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "dev": true + }, "node_modules/netlify-cli/node_modules/@rollup/pluginutils": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", @@ -19588,6 +20590,18 @@ "node": ">= 8.0.0" } }, + "node_modules/netlify-cli/node_modules/@sindresorhus/is": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", + "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, "node_modules/netlify-cli/node_modules/@sindresorhus/slugify": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@sindresorhus/slugify/-/slugify-2.2.1.tgz", @@ -19644,6 +20658,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/@szmarczak/http-timer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", + "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", + "dev": true, + "dependencies": { + "defer-to-connect": "^2.0.1" + }, + "engines": { + "node": ">=14.16" + } + }, "node_modules/netlify-cli/node_modules/@tokenizer/token": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", @@ -19734,9 +20760,9 @@ } }, "node_modules/netlify-cli/node_modules/@types/http-cache-semantics": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz", - "integrity": "sha512-FD+nQWA2zJjh4L9+pFXqWOi0Hs1ryBCfI+985NjluQ1p8EYtoLvjLOKidXBtZ4/IcxDX4o8/E8qDS3540tNliw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", + "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", "dev": true }, "node_modules/netlify-cli/node_modules/@types/http-proxy": { @@ -19781,9 +20807,9 @@ "peer": true }, "node_modules/netlify-cli/node_modules/@types/node": { - "version": "20.9.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz", - "integrity": "sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==", + "version": "20.14.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.2.tgz", + "integrity": "sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -19829,6 +20855,12 @@ "@types/node": "*" } }, + "node_modules/netlify-cli/node_modules/@types/shimmer": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/shimmer/-/shimmer-1.0.5.tgz", + "integrity": "sha512-9Hp0ObzwwO57DpLFF0InUjUm/II8GmKAvzbefxQTihCb7KI6yc9yzf0nLc4mVdby5N4DRCgQM2wCup9KTieeww==", + "dev": true + }, "node_modules/netlify-cli/node_modules/@types/yargs-parser": { "version": "20.2.1", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.1.tgz", @@ -19846,14 +20878,15 @@ } }, "node_modules/netlify-cli/node_modules/@vercel/nft": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.23.1.tgz", - "integrity": "sha512-NE0xSmGWVhgHF1OIoir71XAd0W0C1UE3nzFyhpFiMr3rVhetww7NvM1kc41trBsPG37Bh+dE5FYCTMzM/gBu0w==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.27.2.tgz", + "integrity": "sha512-7LeioS1yE5hwPpQfD3DdH04tuugKjo5KrJk3yK5kAI3Lh76iSsK/ezoFQfzuT08X3ZASQOd1y9ePjLNI9+TxTQ==", "dev": true, "dependencies": { "@mapbox/node-pre-gyp": "^1.0.5", "@rollup/pluginutils": "^4.0.0", "acorn": "^8.6.0", + "acorn-import-attributes": "^1.9.5", "async-sema": "^3.1.1", "bindings": "^1.4.0", "estree-walker": "2.0.2", @@ -19867,7 +20900,7 @@ "nft": "out/cli.js" }, "engines": { - "node": ">=14" + "node": ">=16" } }, "node_modules/netlify-cli/node_modules/@xhmikosr/archive-type": { @@ -19914,6 +20947,18 @@ "node": "^14.14.0 || >=16.0.0" } }, + "node_modules/netlify-cli/node_modules/@xhmikosr/decompress-tar/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@xhmikosr/decompress-tarbz2": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@xhmikosr/decompress-tarbz2/-/decompress-tarbz2-7.0.0.tgz", @@ -19930,6 +20975,18 @@ "node": "^14.14.0 || >=16.0.0" } }, + "node_modules/netlify-cli/node_modules/@xhmikosr/decompress-tarbz2/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@xhmikosr/decompress-targz": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@xhmikosr/decompress-targz/-/decompress-targz-7.0.0.tgz", @@ -19944,6 +21001,18 @@ "node": "^14.14.0 || >=16.0.0" } }, + "node_modules/netlify-cli/node_modules/@xhmikosr/decompress-targz/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/@xhmikosr/decompress-unzip": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/@xhmikosr/decompress-unzip/-/decompress-unzip-6.0.0.tgz", @@ -20000,57 +21069,6 @@ "node": "^14.14.0 || >=16.0.0" } }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/@sindresorhus/is": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", - "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "dev": true, - "dependencies": { - "defer-to-connect": "^2.0.1" - }, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/cacheable-lookup": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", - "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", - "dev": true, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/cacheable-request": { - "version": "10.2.14", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", - "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", - "dev": true, - "dependencies": { - "@types/http-cache-semantics": "^4.0.2", - "get-stream": "^6.0.1", - "http-cache-semantics": "^4.1.1", - "keyv": "^4.5.3", - "mimic-response": "^4.0.0", - "normalize-url": "^8.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - } - }, "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/escape-string-regexp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", @@ -20092,104 +21110,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", - "dev": true, - "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", - "dev": true, - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/lowercase-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/mimic-response": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", - "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/normalize-url": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.0.tgz", - "integrity": "sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", - "dev": true, - "engines": { - "node": ">=12.20" - } - }, - "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/responselike": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", - "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", - "dev": true, - "dependencies": { - "lowercase-keys": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/@xhmikosr/downloader/node_modules/strip-outer": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-2.0.0.tgz", @@ -20428,12 +21348,15 @@ } }, "node_modules/netlify-cli/node_modules/ansi-escapes": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-6.2.1.tgz", - "integrity": "sha512-4nJ3yixlEthEJ9Rk4vPcdBRkZvQZlYyu8j4/Mqz5sgIkddmEnH2Yj2ZrnP9S3tQOvSNRUIgVNF/1yPpRAGNRig==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz", + "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==", "dev": true, + "dependencies": { + "environment": "^1.0.0" + }, "engines": { - "node": ">=14.16" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -20503,6 +21426,274 @@ "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", "dev": true }, + "node_modules/netlify-cli/node_modules/archiver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz", + "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==", + "dev": true, + "dependencies": { + "archiver-utils": "^5.0.2", + "async": "^3.2.4", + "buffer-crc32": "^1.0.0", + "readable-stream": "^4.0.0", + "readdir-glob": "^1.1.2", + "tar-stream": "^3.0.0", + "zip-stream": "^6.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-5.0.2.tgz", + "integrity": "sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==", + "dev": true, + "dependencies": { + "glob": "^10.0.0", + "graceful-fs": "^4.2.0", + "is-stream": "^2.0.1", + "lazystream": "^1.0.0", + "lodash": "^4.17.15", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/glob": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.1.tgz", + "integrity": "sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/jackspeak": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.1.2.tgz", + "integrity": "sha512-kWmLKn2tRtfYMF/BakihVVRzBKOxz4gJMiL2Rj91WnAB5TPZumSH99R/Yf1qE1u4uRimvCSJfm6hnxohXeEXjQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/netlify-cli/node_modules/archiver-utils/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/netlify-cli/node_modules/archiver/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/netlify-cli/node_modules/archiver/node_modules/buffer-crc32": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", + "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/netlify-cli/node_modules/archiver/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/netlify-cli/node_modules/archiver/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/netlify-cli/node_modules/archiver/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/netlify-cli/node_modules/archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", @@ -20534,33 +21725,6 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/netlify-cli/node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", @@ -20582,15 +21746,6 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/arrify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/arrify/-/arrify-3.0.0.tgz", @@ -20609,15 +21764,6 @@ "integrity": "sha1-BqZgTWpV1L9BqaR9mHLXp42jHnM=", "dev": true }, - "node_modules/netlify-cli/node_modules/assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/ast-module-types": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-5.0.0.tgz", @@ -20639,18 +21785,6 @@ "integrity": "sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==", "dev": true }, - "node_modules/netlify-cli/node_modules/atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true, - "bin": { - "atob": "bin/atob.js" - }, - "engines": { - "node": ">= 4.5.0" - } - }, "node_modules/netlify-cli/node_modules/atomic-sleep": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", @@ -20696,36 +21830,6 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, - "node_modules/netlify-cli/node_modules/base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "dependencies": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/base/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -21103,9 +22207,9 @@ } }, "node_modules/netlify-cli/node_modules/builtins": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.0.tgz", - "integrity": "sha512-aizhtbxgT1Udg0Fj6GssXshAVK+nxbtCV+1OtTrMNy67jffDFBY6CUBAkhO4owbleAx6fdbnWdpsmmcXydbzNw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz", + "integrity": "sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==", "dev": true, "dependencies": { "semver": "^7.0.0" @@ -21129,24 +22233,31 @@ "node": ">= 0.8" } }, - "node_modules/netlify-cli/node_modules/cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "node_modules/netlify-cli/node_modules/cacheable-lookup": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", + "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", + "dev": true, + "engines": { + "node": ">=14.16" + } + }, + "node_modules/netlify-cli/node_modules/cacheable-request": { + "version": "10.2.14", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", + "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", "dev": true, "dependencies": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" + "@types/http-cache-semantics": "^4.0.2", + "get-stream": "^6.0.1", + "http-cache-semantics": "^4.1.1", + "keyv": "^4.5.3", + "mimic-response": "^4.0.0", + "normalize-url": "^8.0.0", + "responselike": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=14.16" } }, "node_modules/netlify-cli/node_modules/cachedir": { @@ -21244,9 +22355,9 @@ } }, "node_modules/netlify-cli/node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.0.0.tgz", + "integrity": "sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==", "dev": true, "funding": [ { @@ -21267,45 +22378,11 @@ "consola": "^3.2.3" } }, - "node_modules/netlify-cli/node_modules/class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "dependencies": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/class-utils/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/class-utils/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } + "node_modules/netlify-cli/node_modules/cjs-module-lexer": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true }, "node_modules/netlify-cli/node_modules/clean-deep": { "version": "3.4.0", @@ -21385,9 +22462,9 @@ } }, "node_modules/netlify-cli/node_modules/cli-spinners": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", - "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "dev": true, "engines": { "node": ">=6" @@ -21397,39 +22474,39 @@ } }, "node_modules/netlify-cli/node_modules/cli-truncate": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", - "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", + "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==", "dev": true, "dependencies": { "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" + "string-width": "^7.0.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/cli-truncate/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz", + "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", "dev": true }, "node_modules/netlify-cli/node_modules/cli-truncate/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.1.0.tgz", + "integrity": "sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==", "dev": true, "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -21502,16 +22579,13 @@ "node": ">=16.17.0" } }, - "node_modules/netlify-cli/node_modules/clipboardy/node_modules/is-wsl": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", - "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", + "node_modules/netlify-cli/node_modules/clipboardy/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, - "dependencies": { - "is-inside-container": "^1.0.0" - }, "engines": { - "node": ">=16" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -21571,15 +22645,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, "node_modules/netlify-cli/node_modules/cluster-key-slot": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", @@ -21589,19 +22654,6 @@ "node": ">=0.10.0" } }, - "node_modules/netlify-cli/node_modules/collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "dependencies": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/color": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", @@ -21735,11 +22787,102 @@ "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==", "dev": true }, - "node_modules/netlify-cli/node_modules/component-emitter": { + "node_modules/netlify-cli/node_modules/compress-commons": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz", + "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==", + "dev": true, + "dependencies": { + "crc-32": "^1.2.0", + "crc32-stream": "^6.0.0", + "is-stream": "^2.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/netlify-cli/node_modules/compress-commons/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/netlify-cli/node_modules/compress-commons/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/compress-commons/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/netlify-cli/node_modules/compress-commons/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/netlify-cli/node_modules/compress-commons/node_modules/string_decoder": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", - "dev": true + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } }, "node_modules/netlify-cli/node_modules/concat-map": { "version": "0.0.1", @@ -21905,201 +23048,6 @@ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", "dev": true }, - "node_modules/netlify-cli/node_modules/copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/copy-template-dir/-/copy-template-dir-1.4.0.tgz", - "integrity": "sha512-xkXSJhvKz4MfLbVkZ7GyCaFo4ciB3uKI/HHzkGwj1eyTH5+7RTFxW5CE0irWAZgV5oFcO9hd6+NVXAtY9hlo7Q==", - "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "graceful-fs": "^4.1.3", - "maxstache": "^1.0.0", - "maxstache-stream": "^1.0.0", - "mkdirp": "^0.5.1", - "noop2": "^2.0.0", - "pump": "^1.0.0", - "readdirp": "^2.0.0", - "run-parallel": "^1.1.4" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/pump": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", - "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", - "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/netlify-cli/node_modules/copy-template-dir/node_modules/to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", - "dev": true, - "dependencies": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -22197,6 +23145,36 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/cpy/node_modules/p-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-3.0.0.tgz", + "integrity": "sha512-QtoWLjXAW++uTX67HZQz1dbTpqBfiidsB6VtQUC9iR85S120+s0T5sO6s+B5MLzFcZkrEd/DGMmCjR+f2Qpxwg==", + "dev": true, + "dependencies": { + "p-map": "^5.1.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/cpy/node_modules/p-map": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", + "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", + "dev": true, + "dependencies": { + "aggregate-error": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/cpy/node_modules/p-timeout": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", @@ -22233,6 +23211,88 @@ "node": ">=0.8" } }, + "node_modules/netlify-cli/node_modules/crc32-stream": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz", + "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==", + "dev": true, + "dependencies": { + "crc-32": "^1.2.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/netlify-cli/node_modules/crc32-stream/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/netlify-cli/node_modules/crc32-stream/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/netlify-cli/node_modules/crc32-stream/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/netlify-cli/node_modules/crc32-stream/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/netlify-cli/node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -22323,61 +23383,6 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/netlify-cli/node_modules/css-select/node_modules/dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "dev": true, - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/css-select/node_modules/domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "dev": true, - "dependencies": { - "domelementtype": "^2.3.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/css-select/node_modules/domutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", - "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", - "dev": true, - "dependencies": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/css-select/node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, "node_modules/netlify-cli/node_modules/css-tree": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", @@ -22470,9 +23475,9 @@ } }, "node_modules/netlify-cli/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", "dev": true, "dependencies": { "ms": "2.1.2" @@ -22501,15 +23506,6 @@ "callsite": "^1.0.0" } }, - "node_modules/netlify-cli/node_modules/decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, "node_modules/netlify-cli/node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -22546,30 +23542,15 @@ "node": ">=4.0.0" } }, - "node_modules/netlify-cli/node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, "node_modules/netlify-cli/node_modules/deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/netlify-cli/node_modules/defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", - "dev": true, - "dependencies": { - "clone": "^1.0.2" - } - }, "node_modules/netlify-cli/node_modules/defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", @@ -22588,19 +23569,6 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/defu": { "version": "6.1.4", "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", @@ -22663,15 +23631,15 @@ } }, "node_modules/netlify-cli/node_modules/detective-amd": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-5.0.1.tgz", - "integrity": "sha512-e7n0E0Wte78U9lcpl3hsTh1ZJ+zp/rgEbdbzGLgTowSbbSemuHnM8olp4KHMF1eCaurrCE50IU9VkoV13ezK4A==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-5.0.2.tgz", + "integrity": "sha512-XFd/VEQ76HSpym80zxM68ieB77unNuoMwopU2TFT/ErUk5n4KvUTwW4beafAVUugrjV48l4BmmR0rh2MglBaiA==", "dev": true, "dependencies": { "ast-module-types": "^5.0.0", "escodegen": "^2.0.0", - "get-amd-module-type": "^5.0.0", - "node-source-walk": "^6.0.0" + "get-amd-module-type": "^5.0.1", + "node-source-walk": "^6.0.1" }, "bin": { "detective-amd": "bin/cli.js" @@ -22755,15 +23723,15 @@ } }, "node_modules/netlify-cli/node_modules/detective-typescript": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/detective-typescript/-/detective-typescript-11.0.1.tgz", - "integrity": "sha512-pVCuFWdEAyHI16zO3NBWSAULV8pevSkX3gwK8w3y9RrBGUrig6wDvwv6vUpnu+HfOr0MDmjMkmJGNWaTb6+HkA==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/detective-typescript/-/detective-typescript-11.2.0.tgz", + "integrity": "sha512-ARFxjzizOhPqs1fYC/2NMC3N4jrQ6HvVflnXBTRqNEqJuXwyKLRr9CrJwkRcV/SnZt1sNXgsF6FPm0x57Tq0rw==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "^5.59.2", + "@typescript-eslint/typescript-estree": "^5.62.0", "ast-module-types": "^5.0.0", - "node-source-walk": "^6.0.0", - "typescript": "^5.0.4" + "node-source-walk": "^6.0.2", + "typescript": "^5.4.4" }, "engines": { "node": "^14.14.0 || >=16.0.0" @@ -22838,6 +23806,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/netlify-cli/node_modules/detective-typescript/node_modules/typescript": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/netlify-cli/node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -22850,6 +23831,20 @@ "node": ">=8" } }, + "node_modules/netlify-cli/node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dev": true, + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, "node_modules/netlify-cli/node_modules/domelementtype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", @@ -22862,16 +23857,57 @@ } ] }, + "node_modules/netlify-cli/node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dev": true, + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/netlify-cli/node_modules/domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "dev": true, + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, "node_modules/netlify-cli/node_modules/dot-prop": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-7.2.0.tgz", - "integrity": "sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-9.0.0.tgz", + "integrity": "sha512-1gxPBJpI/pcjQhKgIU91II6Wkay+dLcN3M6rf2uwP8hRur3HtQXjVrdAK3sjC0piaEuxzMwjXChcETiJl47lAQ==", "dev": true, "dependencies": { - "type-fest": "^2.11.2" + "type-fest": "^4.18.2" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/dot-prop/node_modules/type-fest": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.18.2.tgz", + "integrity": "sha512-+suCYpfJLAe4OXS6+PPXjW3urOS4IoP9waSiLuXfLgqZODKw/aWwASvzqE886wA0kQgGy0mIWyhd87VpqIy6Xg==", + "dev": true, + "engines": { + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -22940,6 +23976,18 @@ "once": "^1.4.0" } }, + "node_modules/netlify-cli/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/netlify-cli/node_modules/env-paths": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", @@ -22964,6 +24012,18 @@ "node": ">=4" } }, + "node_modules/netlify-cli/node_modules/environment": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz", + "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -22983,9 +24043,9 @@ } }, "node_modules/netlify-cli/node_modules/es-module-lexer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.0.3.tgz", - "integrity": "sha512-iC67eXHToclrlVhQfpRawDiF8D8sQxNxmbqw5oebegOaJkyx/w9C/k57/5e6yJR2zIByRt9OXdqX50DV2t6ZKw==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.3.tgz", + "integrity": "sha512-i1gCgmR9dCl6Vil6UKPI/trA69s08g/syhiDK9TG0Nf1RJjjFI+AzoWW7sPufzkgYAn861skuCwJa0pIIHYxvg==", "dev": true }, "node_modules/netlify-cli/node_modules/es6-promisify": { @@ -23060,15 +24120,14 @@ "dev": true }, "node_modules/netlify-cli/node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", "dev": true, "dependencies": { "esprima": "^4.0.1", "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" + "esutils": "^2.0.2" }, "bin": { "escodegen": "bin/escodegen.js", @@ -23081,67 +24140,6 @@ "source-map": "~0.6.1" } }, - "node_modules/netlify-cli/node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/netlify-cli/node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/netlify-cli/node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/netlify-cli/node_modules/escodegen/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/netlify-cli/node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -23247,85 +24245,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "dependencies": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/expand-brackets/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/netlify-cli/node_modules/expand-brackets/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/expand-brackets/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/expand-brackets/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/netlify-cli/node_modules/expand-brackets/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/expand-brackets/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, "node_modules/netlify-cli/node_modules/expand-template": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", @@ -23474,19 +24393,6 @@ "node": ">=4" } }, - "node_modules/netlify-cli/node_modules/extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", - "dev": true, - "dependencies": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", @@ -23501,58 +24407,6 @@ "node": ">=4" } }, - "node_modules/netlify-cli/node_modules/extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "dependencies": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/extglob/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/extglob/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", @@ -23701,12 +24555,6 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, - "node_modules/netlify-cli/node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, "node_modules/netlify-cli/node_modules/fast-querystring": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fast-querystring/-/fast-querystring-1.0.0.tgz", @@ -24003,57 +24851,6 @@ "node": ">=14.18.0" } }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/@sindresorhus/is": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", - "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "dev": true, - "dependencies": { - "defer-to-connect": "^2.0.1" - }, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/cacheable-lookup": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", - "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", - "dev": true, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/cacheable-request": { - "version": "10.2.14", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", - "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", - "dev": true, - "dependencies": { - "@types/http-cache-semantics": "^4.0.2", - "get-stream": "^6.0.1", - "http-cache-semantics": "^4.1.1", - "keyv": "^4.5.3", - "mimic-response": "^4.0.0", - "normalize-url": "^8.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - } - }, "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/colors-option": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/colors-option/-/colors-option-4.5.0.tgz", @@ -24095,104 +24892,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", - "dev": true, - "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", - "dev": true, - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/lowercase-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/mimic-response": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", - "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/normalize-url": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.0.tgz", - "integrity": "sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", - "dev": true, - "engines": { - "node": ">=12.20" - } - }, - "node_modules/netlify-cli/node_modules/fetch-node-website/node_modules/responselike": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", - "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", - "dev": true, - "dependencies": { - "lowercase-keys": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -24312,16 +25011,17 @@ } }, "node_modules/netlify-cli/node_modules/find-up": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", - "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-7.0.0.tgz", + "integrity": "sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==", "dev": true, "dependencies": { - "locate-path": "^7.1.0", - "path-exists": "^5.0.0" + "locate-path": "^7.2.0", + "path-exists": "^5.0.0", + "unicorn-magic": "^0.1.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -24393,13 +25093,32 @@ } } }, - "node_modules/netlify-cli/node_modules/for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "node_modules/netlify-cli/node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/netlify-cli/node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/netlify-cli/node_modules/form-data-encoder": { @@ -24432,18 +25151,6 @@ "node": ">= 0.6" } }, - "node_modules/netlify-cli/node_modules/fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "dependencies": { - "map-cache": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", @@ -24609,6 +25316,18 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/netlify-cli/node_modules/get-east-asian-width": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.2.0.tgz", + "integrity": "sha512-2nk+7SIVb14QrgXFHcm84tD4bKQz0RxPuMT8Ag5KPOq7J5fEmAg0UbXdTOSHqNuHSU28k55qnceesxXRZGzKWA==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", @@ -24662,15 +25381,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/gh-release-fetch": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-4.0.3.tgz", @@ -24685,24 +25395,6 @@ "node": "^14.18.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/netlify-cli/node_modules/gh-release-fetch/node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "dev": true, - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, "node_modules/netlify-cli/node_modules/git-repo-info": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/git-repo-info/-/git-repo-info-2.1.1.tgz", @@ -24822,6 +25514,31 @@ "node": ">=0.6.0" } }, + "node_modules/netlify-cli/node_modules/got": { + "version": "12.6.1", + "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", + "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", + "dev": true, + "dependencies": { + "@sindresorhus/is": "^5.2.0", + "@szmarczak/http-timer": "^5.0.1", + "cacheable-lookup": "^7.0.0", + "cacheable-request": "^10.2.8", + "decompress-response": "^6.0.0", + "form-data-encoder": "^2.1.2", + "get-stream": "^6.0.1", + "http2-wrapper": "^2.1.10", + "lowercase-keys": "^3.0.0", + "p-cancelable": "^3.0.0", + "responselike": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, "node_modules/netlify-cli/node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -24893,81 +25610,6 @@ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", "dev": true }, - "node_modules/netlify-cli/node_modules/has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", - "dev": true, - "dependencies": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", - "dev": true, - "dependencies": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/has-values/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/has-values/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/has-values/node_modules/kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/has-yarn": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-3.0.0.tgz", - "integrity": "sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/hasbin": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/hasbin/-/hasbin-1.2.3.tgz", @@ -25023,18 +25665,6 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/netlify-cli/node_modules/hosted-git-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", @@ -25150,6 +25780,19 @@ "node": ">= 0.12.0" } }, + "node_modules/netlify-cli/node_modules/http2-wrapper": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz", + "integrity": "sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==", + "dev": true, + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.2.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, "node_modules/netlify-cli/node_modules/https-proxy-agent": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", @@ -25231,6 +25874,18 @@ "integrity": "sha512-ZBGjl0ZMEMeOC3Ns0wUF/5UdUmr3qQhBSCniT0LxOgGGIRHiNFOkMtIHB7EOznRU47V2AxPgiVP+s+0/UCU0Hg==", "dev": true }, + "node_modules/netlify-cli/node_modules/import-in-the-middle": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.8.0.tgz", + "integrity": "sha512-/xQjze8szLNnJ5rvHSzn+dcVXqCAU6Plbk4P24U/jwPmg1wy7IIp9OjKIO5tYue8GSPhDpPDiApQjvBUmWwhsQ==", + "dev": true, + "dependencies": { + "acorn": "^8.8.2", + "acorn-import-attributes": "^1.9.5", + "cjs-module-lexer": "^1.2.2", + "module-details-from-path": "^1.0.3" + } + }, "node_modules/netlify-cli/node_modules/import-lazy": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", @@ -25277,15 +25932,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/netlify-cli/node_modules/ini": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", - "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/netlify-cli/node_modules/inquirer": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", @@ -25727,18 +26373,6 @@ "url": "https://github.com/sponsors/brc-dd" } }, - "node_modules/netlify-cli/node_modules/is-accessor-descriptor": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", - "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/netlify-cli/node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -25757,12 +26391,6 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, "node_modules/netlify-cli/node_modules/is-builtin-module": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", @@ -25775,18 +26403,6 @@ "node": ">=6" } }, - "node_modules/netlify-cli/node_modules/is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", - "dev": true, - "dependencies": { - "ci-info": "^3.2.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, "node_modules/netlify-cli/node_modules/is-core-module": { "version": "2.13.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", @@ -25799,31 +26415,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/netlify-cli/node_modules/is-data-descriptor": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", - "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/netlify-cli/node_modules/is-descriptor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", - "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/netlify-cli/node_modules/is-docker": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", @@ -25839,30 +26430,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/is-extendable/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -25896,6 +26463,21 @@ "node": ">=0.10.0" } }, + "node_modules/netlify-cli/node_modules/is-in-ci": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-0.1.0.tgz", + "integrity": "sha512-d9PXLEY0v1iJ64xLiQMJ51J128EYHAaOR4yZqQi8aHGfw6KgifM3/Viw1oZZ1GCVmb3gBuyhLyHj0HgR2DhSXQ==", + "dev": true, + "bin": { + "is-in-ci": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/is-inside-container": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", @@ -25945,6 +26527,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/is-installed-globally/node_modules/ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/netlify-cli/node_modules/is-interactive": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", @@ -26008,22 +26599,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", "dev": true, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -26065,51 +26647,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", + "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", "dev": true, "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/netlify-cli/node_modules/is-wsl/node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" + "is-inside-container": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/is-yarn-global": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.1.tgz", - "integrity": "sha512-/kppl+R+LO5VmhYSEWARUFjodS25D68gvj8W7z0I7OWhUla5xWu8KL6CtB2V0R6yqhnRgbcaREMr4EEM6htLPQ==", - "dev": true, - "engines": { - "node": ">=12" - } - }, "node_modules/netlify-cli/node_modules/is64bit": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is64bit/-/is64bit-2.0.0.tgz", @@ -26138,18 +26690,12 @@ "dev": true }, "node_modules/netlify-cli/node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/netlify-cli/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=16" } }, "node_modules/netlify-cli/node_modules/jackspeak": { @@ -26392,10 +26938,13 @@ } }, "node_modules/netlify-cli/node_modules/jwt-decode": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", - "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==", - "dev": true + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz", + "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==", + "dev": true, + "engines": { + "node": ">=18" + } }, "node_modules/netlify-cli/node_modules/keep-func-props": { "version": "4.0.1", @@ -26410,9 +26959,9 @@ } }, "node_modules/netlify-cli/node_modules/keyv": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", - "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, "dependencies": { "json-buffer": "3.0.1" @@ -26555,26 +27104,26 @@ } }, "node_modules/netlify-cli/node_modules/listr2": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-7.0.2.tgz", - "integrity": "sha512-rJysbR9GKIalhTbVL2tYbF2hVyDnrf7pFUZBwjPaMIdadYHmeT+EVi/Bu3qd7ETQPahTotg2WRCatXwRBW554g==", + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.2.1.tgz", + "integrity": "sha512-irTfvpib/rNiD637xeevjO2l3Z5loZmuaRi0L0YE5LfijwVY96oyVn0DFD3o/teAok7nfobMG1THvvcHh/BP6g==", "dev": true, "dependencies": { - "cli-truncate": "^3.1.0", + "cli-truncate": "^4.0.0", "colorette": "^2.0.20", "eventemitter3": "^5.0.1", - "log-update": "^5.0.1", - "rfdc": "^1.3.0", - "wrap-ansi": "^8.1.0" + "log-update": "^6.0.0", + "rfdc": "^1.3.1", + "wrap-ansi": "^9.0.0" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/netlify-cli/node_modules/listr2/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz", + "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", "dev": true }, "node_modules/netlify-cli/node_modules/listr2/node_modules/eventemitter3": { @@ -26584,34 +27133,34 @@ "dev": true }, "node_modules/netlify-cli/node_modules/listr2/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.1.0.tgz", + "integrity": "sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==", "dev": true, "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/listr2/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", "dev": true, "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/chalk/wrap-ansi?sponsor=1" @@ -26686,6 +27235,12 @@ "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", "dev": true }, + "node_modules/netlify-cli/node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, "node_modules/netlify-cli/node_modules/lodash.deburr": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/lodash.deburr/-/lodash.deburr-4.1.0.tgz", @@ -26835,50 +27390,47 @@ } }, "node_modules/netlify-cli/node_modules/log-symbols": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz", - "integrity": "sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", + "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", "dev": true, "dependencies": { - "chalk": "^5.0.0", - "is-unicode-supported": "^1.1.0" + "chalk": "^5.3.0", + "is-unicode-supported": "^1.3.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/log-update": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-5.0.1.tgz", - "integrity": "sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.0.0.tgz", + "integrity": "sha512-niTvB4gqvtof056rRIrTZvjNYE4rCUzO6X/X+kYjd7WFxXeJ0NwEFnRxX6ehkvv3jTwrXnNdtAak5XYZuIyPFw==", "dev": true, "dependencies": { - "ansi-escapes": "^5.0.0", + "ansi-escapes": "^6.2.0", "cli-cursor": "^4.0.0", - "slice-ansi": "^5.0.0", - "strip-ansi": "^7.0.1", - "wrap-ansi": "^8.0.1" + "slice-ansi": "^7.0.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/log-update/node_modules/ansi-escapes": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-5.0.0.tgz", - "integrity": "sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-6.2.1.tgz", + "integrity": "sha512-4nJ3yixlEthEJ9Rk4vPcdBRkZvQZlYyu8j4/Mqz5sgIkddmEnH2Yj2ZrnP9S3tQOvSNRUIgVNF/1yPpRAGNRig==", "dev": true, - "dependencies": { - "type-fest": "^1.0.2" - }, "engines": { - "node": ">=12" + "node": ">=14.16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -26900,11 +27452,26 @@ } }, "node_modules/netlify-cli/node_modules/log-update/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz", + "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", "dev": true }, + "node_modules/netlify-cli/node_modules/log-update/node_modules/is-fullwidth-code-point": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz", + "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==", + "dev": true, + "dependencies": { + "get-east-asian-width": "^1.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/log-update/node_modules/restore-cursor": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz", @@ -26921,47 +27488,51 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/log-update/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/netlify-cli/node_modules/log-update/node_modules/slice-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz", + "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==", "dev": true, "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "ansi-styles": "^6.2.1", + "is-fullwidth-code-point": "^5.0.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/netlify-cli/node_modules/log-update/node_modules/type-fest": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", - "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "node_modules/netlify-cli/node_modules/log-update/node_modules/string-width": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.1.0.tgz", + "integrity": "sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==", "dev": true, + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/log-update/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", "dev": true, "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/chalk/wrap-ansi?sponsor=1" @@ -26980,6 +27551,24 @@ "triple-beam": "^1.3.0" } }, + "node_modules/netlify-cli/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/lowercase-keys": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", + "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -27043,37 +27632,16 @@ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "node_modules/netlify-cli/node_modules/map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "dependencies": { - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/maxstache": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/maxstache/-/maxstache-1.0.7.tgz", - "integrity": "sha1-IjHVGAung9Xs/DHEX+2seuQnaYQ=", + "integrity": "sha512-53ZBxHrZM+W//5AcRVewiLpDunHnucfdzZUGz54Fnvo4tE+J3p8EL66kBrs2UhBXvYKTWckWYYWBqJqoTcenqg==", "dev": true }, "node_modules/netlify-cli/node_modules/maxstache-stream": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/maxstache-stream/-/maxstache-stream-1.0.4.tgz", - "integrity": "sha1-nH9cq35f3S2Q2oYUO06WMeoygEA=", + "integrity": "sha512-v8qlfPN0pSp7bdSoLo1NTjG43GXGqk5W2NWFnOCq2GlmFFqebGzPCjLKSbShuqIOVorOtZSAy7O/S1OCCRONUw==", "dev": true, "dependencies": { "maxstache": "^1.0.0", @@ -27280,6 +27848,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/mimic-response": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", + "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -27335,19 +27915,6 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", - "dev": true, - "dependencies": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/mkdirp": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", @@ -27394,6 +27961,12 @@ "node": ">=14" } }, + "node_modules/netlify-cli/node_modules/module-details-from-path": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", + "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", + "dev": true + }, "node_modules/netlify-cli/node_modules/moize": { "version": "6.1.3", "resolved": "https://registry.npmjs.org/moize/-/moize-6.1.3.tgz", @@ -27508,28 +28081,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/netlify-cli/node_modules/nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/napi-build-utils": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", @@ -27552,12 +28103,12 @@ "dev": true }, "node_modules/netlify-cli/node_modules/netlify": { - "version": "13.1.16", - "resolved": "https://registry.npmjs.org/netlify/-/netlify-13.1.16.tgz", - "integrity": "sha512-DMqurowUwUk2pPcWlVKvj/gj9NHZJgrTlh/lCArCa82zuMEp++4/hYQAJ2R8ZYfRVZpwg11NT/kkq/vKuImlhA==", + "version": "13.1.19", + "resolved": "https://registry.npmjs.org/netlify/-/netlify-13.1.19.tgz", + "integrity": "sha512-po4fWl2QcN+A4lFRMDHdq2D6gWNE1cqavD3rW++dVTakDzibmkHRJZ4L5C7SfI5ovbU0hAEeERjWnYgESA3/3g==", "dev": true, "dependencies": { - "@netlify/open-api": "^2.30.0", + "@netlify/open-api": "^2.33.0", "lodash-es": "^4.17.21", "micro-api-client": "^3.3.0", "node-fetch": "^3.0.0", @@ -27650,24 +28201,6 @@ "integrity": "sha512-4zdzIP+6muqPCuE8avnrgDJ6KW/2+UpHTRcTbMXCIRxiRmyrX+IZ4WSJGZdHPWF3WmQpXpy603XxecZ9iygN7w==", "dev": true }, - "node_modules/netlify-cli/node_modules/netlify/node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "dev": true, - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, "node_modules/netlify-cli/node_modules/netlify/node_modules/p-timeout": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz", @@ -27736,23 +28269,21 @@ } }, "node_modules/netlify-cli/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "dev": true, "dependencies": { - "whatwg-url": "^5.0.0" + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" } }, "node_modules/netlify-cli/node_modules/node-fetch-native": { @@ -27782,9 +28313,9 @@ } }, "node_modules/netlify-cli/node_modules/node-source-walk": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-6.0.1.tgz", - "integrity": "sha512-QUlkJYzrNewUCp4c7CCPN8Mh8c+pwNs23JsQfHKUwIkCxYa6c0AFLuUJIZxU6BdnarfytPSGKm1YMAz06hj9cw==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-6.0.2.tgz", + "integrity": "sha512-jn9vOIK/nfqoFCcpK89/VCVaLg1IHE6UVfDOzvqmANaJ/rWCTEdH8RZ1V278nv2jr36BJdyQXIAavBLXpzdlag==", "dev": true, "dependencies": { "@babel/parser": "^7.21.8" @@ -27832,12 +28363,6 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, - "node_modules/netlify-cli/node_modules/noop2": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/noop2/-/noop2-2.0.0.tgz", - "integrity": "sha1-S2NgFemIK1R4PAK0EvaZ2MXNCls=", - "dev": true - }, "node_modules/netlify-cli/node_modules/nopt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", @@ -27891,6 +28416,18 @@ "node": ">=0.10.0" } }, + "node_modules/netlify-cli/node_modules/normalize-url": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz", + "integrity": "sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -27945,57 +28482,6 @@ "node": ">=0.10.0" } }, - "node_modules/netlify-cli/node_modules/object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "dependencies": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/object-copy/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/object-copy/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/netlify-cli/node_modules/object-copy/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/object-inspect": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", @@ -28005,30 +28491,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/netlify-cli/node_modules/object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "dependencies": { - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/ofetch": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.3.tgz", @@ -28156,24 +28618,36 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/open/node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/netlify-cli/node_modules/ora": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-6.3.1.tgz", - "integrity": "sha512-ERAyNnZOfqM+Ao3RAvIXkYh5joP220yf59gVe2X/cI6SiCxIdi4c9HZKZD8R6q/RDXEje1THBju6iExiSsgJaQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-8.0.1.tgz", + "integrity": "sha512-ANIvzobt1rls2BDny5fWZ3ZVKyD6nscLvfFRpQgfWsythlcsVUC9kL0zq6j2Z5z9wwp1kd7wpsD/T9qNPVLCaQ==", "dev": true, "dependencies": { - "chalk": "^5.0.0", + "chalk": "^5.3.0", "cli-cursor": "^4.0.0", - "cli-spinners": "^2.6.1", + "cli-spinners": "^2.9.2", "is-interactive": "^2.0.0", - "is-unicode-supported": "^1.1.0", - "log-symbols": "^5.1.0", - "stdin-discarder": "^0.1.0", - "strip-ansi": "^7.0.1", - "wcwidth": "^1.0.1" + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -28194,6 +28668,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/ora/node_modules/emoji-regex": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz", + "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", + "dev": true + }, + "node_modules/netlify-cli/node_modules/ora/node_modules/is-unicode-supported": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.0.0.tgz", + "integrity": "sha512-FRdAyx5lusK1iHG0TWpVtk9+1i+GjrzRffhDg4ovQ7mcidMQ6mj+MhKPmvh7Xwyv5gIS06ns49CA7Sqg7lC22Q==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/ora/node_modules/restore-cursor": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz", @@ -28210,6 +28702,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/ora/node_modules/string-width": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.1.0.tgz", + "integrity": "sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==", + "dev": true, + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/os-name": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/os-name/-/os-name-5.0.1.tgz", @@ -28235,6 +28744,15 @@ "node": ">=0.10.0" } }, + "node_modules/netlify-cli/node_modules/p-cancelable": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", + "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", + "dev": true, + "engines": { + "node": ">=12.20" + } + }, "node_modules/netlify-cli/node_modules/p-event": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/p-event/-/p-event-5.0.1.tgz", @@ -28284,15 +28802,15 @@ } }, "node_modules/netlify-cli/node_modules/p-filter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-3.0.0.tgz", - "integrity": "sha512-QtoWLjXAW++uTX67HZQz1dbTpqBfiidsB6VtQUC9iR85S120+s0T5sO6s+B5MLzFcZkrEd/DGMmCjR+f2Qpxwg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-4.1.0.tgz", + "integrity": "sha512-37/tPdZ3oJwHaS3gNJdenCDB3Tz26i9sjhnguBtvN0vYlRIiDNnvTWkuh+0hETV9rLPdJ3rlL3yVOYPIAnM8rw==", "dev": true, "dependencies": { - "p-map": "^5.1.0" + "p-map": "^7.0.1" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -28307,31 +28825,13 @@ "node": ">=4" } }, - "node_modules/netlify-cli/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/p-map": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", - "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.2.tgz", + "integrity": "sha512-z4cYYMMdKHzw4O5UkWJImbZynVIo0lSGTXc7bzB1e/rrDqkgGUNysK/o4bTr+0+xKvvLoTyGqYC4Fgljy9qe1Q==", "dev": true, - "dependencies": { - "aggregate-error": "^4.0.0" - }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -28410,155 +28910,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/@sindresorhus/is": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", - "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "dev": true, - "dependencies": { - "defer-to-connect": "^2.0.1" - }, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/cacheable-lookup": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", - "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", - "dev": true, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/cacheable-request": { - "version": "10.2.14", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", - "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", - "dev": true, - "dependencies": { - "@types/http-cache-semantics": "^4.0.2", - "get-stream": "^6.0.1", - "http-cache-semantics": "^4.1.1", - "keyv": "^4.5.3", - "mimic-response": "^4.0.0", - "normalize-url": "^8.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", - "dev": true, - "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", - "dev": true, - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/lowercase-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/mimic-response": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", - "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/normalize-url": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.0.tgz", - "integrity": "sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", - "dev": true, - "engines": { - "node": ">=12.20" - } - }, - "node_modules/netlify-cli/node_modules/package-json/node_modules/responselike": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", - "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", - "dev": true, - "dependencies": { - "lowercase-keys": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/netlify-cli/node_modules/parallel-transform": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", @@ -28645,15 +28996,6 @@ "node": ">= 0.8" } }, - "node_modules/netlify-cli/node_modules/pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -28682,16 +29024,16 @@ "dev": true }, "node_modules/netlify-cli/node_modules/path-scurry": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz", - "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -28775,15 +29117,6 @@ "pathe": "^1.1.0" } }, - "node_modules/netlify-cli/node_modules/posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/postcss": { "version": "8.4.38", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", @@ -28896,23 +29229,23 @@ } }, "node_modules/netlify-cli/node_modules/precinct": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/precinct/-/precinct-11.0.2.tgz", - "integrity": "sha512-UuhB1q0nEFf80iMGcs7IoT0o1GnNFWT4CjZjcMsHDXAIsW/aiLovOSbeMJ2Ejg6raRsplsriZZkoBUh0h/IHlw==", + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/precinct/-/precinct-11.0.5.tgz", + "integrity": "sha512-oHSWLC8cL/0znFhvln26D14KfCQFFn4KOLSw6hmLhd+LQ2SKt9Ljm89but76Pc7flM9Ty1TnXyrA2u16MfRV3w==", "dev": true, "dependencies": { - "@dependents/detective-less": "^4.0.0", + "@dependents/detective-less": "^4.1.0", "commander": "^10.0.1", - "detective-amd": "^5.0.1", + "detective-amd": "^5.0.2", "detective-cjs": "^5.0.1", - "detective-es6": "^4.0.0", + "detective-es6": "^4.0.1", "detective-postcss": "^6.1.3", - "detective-sass": "^5.0.0", - "detective-scss": "^4.0.0", + "detective-sass": "^5.0.3", + "detective-scss": "^4.0.3", "detective-stylus": "^4.0.0", - "detective-typescript": "^11.0.1", - "module-definition": "^5.0.0", - "node-source-walk": "^6.0.1" + "detective-typescript": "^11.1.0", + "module-definition": "^5.0.1", + "node-source-walk": "^6.0.2" }, "bin": { "precinct": "bin/cli.js" @@ -29005,6 +29338,30 @@ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", "dev": true }, + "node_modules/netlify-cli/node_modules/protobufjs": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", + "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/netlify-cli/node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -29330,6 +29687,66 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/netlify-cli/node_modules/read-pkg-up": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-9.1.0.tgz", + "integrity": "sha512-vaMRR1AC1nrd5CQM0PhlRsO5oc2AAigqr7cCrZ/MW/Rsaflz4RlgzkpL4qoU/z1F6wrbd85iFv1OQj/y5RdGvg==", + "dev": true, + "dependencies": { + "find-up": "^6.3.0", + "read-pkg": "^7.1.0", + "type-fest": "^2.5.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/read-pkg-up/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "dev": true, + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/netlify-cli/node_modules/read-pkg-up/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/netlify-cli/node_modules/read-pkg-up/node_modules/read-pkg": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-7.1.0.tgz", + "integrity": "sha512-5iOehe+WF75IccPc30bWTbpdDQLOCc3Uu8bi3Dte3Eueij81yx1Mrufk8qBx/YAbR4uL1FdUr+7BKXDwEtisXg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.1", + "normalize-package-data": "^3.0.2", + "parse-json": "^5.2.0", + "type-fest": "^2.0.0" + }, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/netlify-cli/node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -29432,28 +29849,6 @@ "node": ">=4" } }, - "node_modules/netlify-cli/node_modules/regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "dependencies": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/regex-not/node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", - "dev": true, - "dependencies": { - "ret": "~0.1.10" - } - }, "node_modules/netlify-cli/node_modules/registry-auth-token": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz", @@ -29487,15 +29882,6 @@ "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", "dev": true }, - "node_modules/netlify-cli/node_modules/repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", @@ -29523,10 +29909,41 @@ "node": ">=0.10.0" } }, + "node_modules/netlify-cli/node_modules/require-in-the-middle": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.3.0.tgz", + "integrity": "sha512-nQFEv9gRw6SJAwWD2LrL0NmQvAcO7FBwJbwmr2ttPAacfy0xuiOjE5zt+zM4xDyuyvUaxBi/9gb2SoCyNEVJcw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "module-details-from-path": "^1.0.3", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/netlify-cli/node_modules/require-in-the-middle/node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/netlify-cli/node_modules/require-package-name": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/require-package-name/-/require-package-name-2.0.1.tgz", - "integrity": "sha1-wR6XJ2tluOKSP3Xav1+y7ww4Qbk=", + "integrity": "sha512-uuoJ1hU/k6M0779t3VMVIYpb2VMJk05cehCaABFhXaibcbvfgR8wKiozLjVFSzJPmQMRqIcO0HMyTFqfV09V6Q==", "dev": true }, "node_modules/netlify-cli/node_modules/requires-port": { @@ -29567,12 +29984,20 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "deprecated": "https://github.com/lydell/resolve-url#deprecated", - "dev": true + "node_modules/netlify-cli/node_modules/responselike": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", + "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", + "dev": true, + "dependencies": { + "lowercase-keys": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/netlify-cli/node_modules/restore-cursor": { "version": "2.0.0", @@ -29608,15 +30033,6 @@ "node": ">=4" } }, - "node_modules/netlify-cli/node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true, - "engines": { - "node": ">=0.12" - } - }, "node_modules/netlify-cli/node_modules/retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", @@ -29637,9 +30053,9 @@ } }, "node_modules/netlify-cli/node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz", + "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==", "dev": true }, "node_modules/netlify-cli/node_modules/rimraf": { @@ -29889,54 +30305,6 @@ "integrity": "sha512-1jeBGaKNGdEq4FgIrORu/N570dwoPYio8lSoYLWmX7sQ//0JY08Xh9o5pBcgmHQ/MbsYp/aZnOe1s1lIsbLprQ==", "dev": true }, - "node_modules/netlify-cli/node_modules/set-value": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", - "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/set-value/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/set-value/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/set-value/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", @@ -30024,6 +30392,12 @@ "node": ">=8" } }, + "node_modules/netlify-cli/node_modules/shimmer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz", + "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==", + "dev": true + }, "node_modules/netlify-cli/node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", @@ -30129,136 +30503,6 @@ "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/netlify-cli/node_modules/snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "dependencies": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "dependencies": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon-node/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "dependencies": { - "kind-of": "^3.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon-util/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/snapdragon/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, "node_modules/netlify-cli/node_modules/sort-keys": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", @@ -30293,9 +30537,9 @@ } }, "node_modules/netlify-cli/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, "engines": { "node": ">=0.10.0" @@ -30310,20 +30554,6 @@ "node": ">=0.10.0" } }, - "node_modules/netlify-cli/node_modules/source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", - "dev": true, - "dependencies": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, "node_modules/netlify-cli/node_modules/source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", @@ -30334,22 +30564,6 @@ "source-map": "^0.6.0" } }, - "node_modules/netlify-cli/node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/source-map-url": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", - "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", - "deprecated": "See https://github.com/lydell/source-map-url#deprecated", - "dev": true - }, "node_modules/netlify-cli/node_modules/spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -30382,18 +30596,6 @@ "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==", "dev": true }, - "node_modules/netlify-cli/node_modules/split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "dependencies": { - "extend-shallow": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/stack-generator": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/stack-generator/-/stack-generator-2.0.10.tgz", @@ -30424,44 +30626,6 @@ "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==", "dev": true }, - "node_modules/netlify-cli/node_modules/static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "dependencies": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/static-extend/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/static-extend/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/netlify-cli/node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -30478,55 +30642,17 @@ "dev": true }, "node_modules/netlify-cli/node_modules/stdin-discarder": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.1.0.tgz", - "integrity": "sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", + "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", "dev": true, - "dependencies": { - "bl": "^5.0.0" - }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/stdin-discarder/node_modules/bl": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz", - "integrity": "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==", - "dev": true, - "dependencies": { - "buffer": "^6.0.3", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/netlify-cli/node_modules/stdin-discarder/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, "node_modules/netlify-cli/node_modules/streamx": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.0.tgz", @@ -30846,9 +30972,9 @@ } }, "node_modules/netlify-cli/node_modules/tar-stream": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", - "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dev": true, "dependencies": { "b4a": "^1.6.4", @@ -30868,6 +30994,15 @@ "node": ">=10" } }, + "node_modules/netlify-cli/node_modules/temp-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-3.0.0.tgz", + "integrity": "sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==", + "dev": true, + "engines": { + "node": ">=14.16" + } + }, "node_modules/netlify-cli/node_modules/tempy": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/tempy/-/tempy-3.1.0.tgz", @@ -30886,13 +31021,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/tempy/node_modules/temp-dir": { + "node_modules/netlify-cli/node_modules/tempy/node_modules/is-stream": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-3.0.0.tgz", - "integrity": "sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, "engines": { - "node": ">=14.16" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/netlify-cli/node_modules/terminal-link": { @@ -30950,74 +31088,37 @@ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, - "node_modules/netlify-cli/node_modules/through2-filter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", - "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", - "dev": true, - "dependencies": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - } - }, - "node_modules/netlify-cli/node_modules/through2-filter/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "node_modules/netlify-cli/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "readable-stream": "3" } }, - "node_modules/netlify-cli/node_modules/through2-filter/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "node_modules/netlify-cli/node_modules/through2-filter": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-4.0.0.tgz", + "integrity": "sha512-P8IpQL19bSdXqGLvLdbidYRxERXgHEXGcQofPxbLpPkqS1ieOrUrocdYRTNv8YwSukaDJWr71s6F2kZ3bvgEhA==", "dev": true, "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "through2": "^4.0.2" + }, + "engines": { + "node": ">= 6" } }, "node_modules/netlify-cli/node_modules/through2-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/through2-map/-/through2-map-3.0.0.tgz", - "integrity": "sha512-Ms68QPbSJKjRYY7fmqZHB0VGt+vD0/tjmDHUWgxltjifCof6hZWWeQAEi27Wjbs7jyNlIIyerQw/TVj7gHkd/Q==", - "dev": true, - "dependencies": { - "through2": "~2.0.0", - "xtend": "^4.0.0" - } - }, - "node_modules/netlify-cli/node_modules/through2-map/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/netlify-cli/node_modules/through2-map/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/through2-map/-/through2-map-4.0.0.tgz", + "integrity": "sha512-+rpmDB5yckiBGEuqJSsWYWMs9e1zdksypDKvByysEyN+knhsPXV9Z6O2mA9meczIa6AON7bi2G3xWk5T8UG4zQ==", "dev": true, "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "through2": "^4.0.2" + }, + "engines": { + "node": ">= 6" } }, "node_modules/netlify-cli/node_modules/time-zone": { @@ -31071,30 +31172,6 @@ "node": ">=4" } }, - "node_modules/netlify-cli/node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/to-object-path/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/to-readable-stream": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-3.0.0.tgz", @@ -31107,21 +31184,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "dependencies": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -31134,15 +31196,6 @@ "node": ">=8.0" } }, - "node_modules/netlify-cli/node_modules/to-regex/node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", - "dev": true, - "dependencies": { - "ret": "~0.1.10" - } - }, "node_modules/netlify-cli/node_modules/toad-cache": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/toad-cache/-/toad-cache-3.7.0.tgz", @@ -31420,30 +31473,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/union-value": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", - "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", - "dev": true, - "dependencies": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/union-value/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/unique-string": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz", @@ -31460,9 +31489,9 @@ } }, "node_modules/netlify-cli/node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", "dev": true }, "node_modules/netlify-cli/node_modules/unix-dgram": { @@ -31513,54 +31542,6 @@ "node": ">= 0.8" } }, - "node_modules/netlify-cli/node_modules/unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "dependencies": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/unset-value/node_modules/has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", - "dev": true, - "dependencies": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/unset-value/node_modules/has-value/node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", - "dev": true, - "dependencies": { - "isarray": "1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/netlify-cli/node_modules/unset-value/node_modules/has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/untildify": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/untildify/-/untildify-3.0.3.tgz", @@ -31585,28 +31566,26 @@ } }, "node_modules/netlify-cli/node_modules/update-notifier": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz", - "integrity": "sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-7.0.0.tgz", + "integrity": "sha512-Hv25Bh+eAbOLlsjJreVPOs4vd51rrtCrmhyOJtbpAojro34jS4KQaEp4/EvlHJX7jSO42VvEFpkastVyXyIsdQ==", "dev": true, "dependencies": { - "boxen": "^7.0.0", - "chalk": "^5.0.1", + "boxen": "^7.1.1", + "chalk": "^5.3.0", "configstore": "^6.0.0", - "has-yarn": "^3.0.0", "import-lazy": "^4.0.0", - "is-ci": "^3.0.1", + "is-in-ci": "^0.1.0", "is-installed-globally": "^0.4.0", "is-npm": "^6.0.0", - "is-yarn-global": "^0.4.0", "latest-version": "^7.0.0", "pupa": "^3.1.0", - "semver": "^7.3.7", + "semver": "^7.5.4", "semver-diff": "^4.0.0", "xdg-basedir": "^5.1.0" }, "engines": { - "node": ">=14.16" + "node": ">=18" }, "funding": { "url": "https://github.com/yeoman/update-notifier?sponsor=1" @@ -31627,28 +31606,12 @@ "punycode": "^2.1.0" } }, - "node_modules/netlify-cli/node_modules/urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "deprecated": "Please see https://github.com/lydell/urix#deprecated", - "dev": true - }, "node_modules/netlify-cli/node_modules/urlpattern-polyfill": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", "integrity": "sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==", "dev": true }, - "node_modules/netlify-cli/node_modules/use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -31801,15 +31764,6 @@ "node": ">=8" } }, - "node_modules/netlify-cli/node_modules/wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", - "dev": true, - "dependencies": { - "defaults": "^1.0.3" - } - }, "node_modules/netlify-cli/node_modules/web-streams-polyfill": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.0.tgz", @@ -31859,6 +31813,12 @@ "node": ">= 8" } }, + "node_modules/netlify-cli/node_modules/which/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, "node_modules/netlify-cli/node_modules/wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", @@ -31978,15 +31938,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/netlify-cli/node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/netlify-cli/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -32144,9 +32095,9 @@ } }, "node_modules/netlify-cli/node_modules/ws": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.0.tgz", - "integrity": "sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "dev": true, "engines": { "node": ">=10.0.0" @@ -32294,16 +32245,87 @@ "node": ">=6" } }, - "node_modules/netlify-cli/node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "node_modules/netlify-cli/node_modules/zip-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz", + "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==", "dev": true, + "dependencies": { + "archiver-utils": "^5.0.0", + "compress-commons": "^6.0.2", + "readable-stream": "^4.0.0" + }, "engines": { - "node": ">=10" + "node": ">= 14" + } + }, + "node_modules/netlify-cli/node_modules/zip-stream/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/netlify-cli/node_modules/zip-stream/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/netlify-cli/node_modules/zip-stream/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/netlify-cli/node_modules/zip-stream/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" } }, "node_modules/netlify-cli/node_modules/zod": { @@ -39413,9 +39435,9 @@ } }, "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "engines": { "node": ">=10.0.0" }, diff --git a/website/src/theme/Playground/index.js b/website/src/theme/Playground/index.js index 33d1f30d5b..ad30778705 100755 --- a/website/src/theme/Playground/index.js +++ b/website/src/theme/Playground/index.js @@ -63,15 +63,10 @@ class SemiLiveProvider extends LiveProvider { } } - // The following piece of code provides additional functionality to the user code such as prinln function and key import + // The following piece of code provides additional functionality to the user code such as console.log and key import const code = ` -let _printlnBuffer = ""; -function println(value) { - _printlnBuffer += value + "\\n"; - - render(_printlnBuffer); -} +let console = {log: value => render("" + value + "\\n")}; ${template()} diff --git a/website/versioned_docs/version-17.5.0/complex_parameters.md b/website/versioned_docs/version-17.5.0/complex_parameters.md index 346e58141a..df8da2414e 100644 --- a/website/versioned_docs/version-17.5.0/complex_parameters.md +++ b/website/versioned_docs/version-17.5.0/complex_parameters.md @@ -93,11 +93,11 @@ importKey(Tezos, secretKey) validators : validatorsMap }}) }).then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }).then((contract) => { - println(`Origination completed.`); -}).catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Origination completed.`); +}).catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Calling the function of a contract having a complex object as a parameter @@ -145,8 +145,8 @@ importKey(Tezos, secretKey) owner: 'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', parent: 'FFFF', ttl: { Some: '10' }}).toTransferParams(); - println(JSON.stringify(inspect, null, 2)) -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(JSON.stringify(inspect, null, 2)) +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when all the arguments are defined @@ -172,11 +172,11 @@ importKey(Tezos, secretKey) ttl: { Some: '10' } }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when optional arguments are null @@ -203,9 +203,9 @@ importKey(Tezos, secretKey) ttl: null }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/contract-test-collection.md b/website/versioned_docs/version-17.5.0/contract-test-collection.md index cd0f92b754..f8b7d5bee6 100644 --- a/website/versioned_docs/version-17.5.0/contract-test-collection.md +++ b/website/versioned_docs/version-17.5.0/contract-test-collection.md @@ -494,7 +494,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -506,10 +506,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/drain_account.md b/website/versioned_docs/version-17.5.0/drain_account.md index d8eeb6a7de..b7513fa2a8 100644 --- a/website/versioned_docs/version-17.5.0/drain_account.md +++ b/website/versioned_docs/version-17.5.0/drain_account.md @@ -29,7 +29,7 @@ Tezos.signer .publicKeyHash() .then((address) => { Tezos.tz.getBalance(address).then((balance) => { - println( + console.log( `The account we want to drain is ${address}.\nIts initial balance is ${ balance.toNumber() / 1000000 } ꜩ.` @@ -44,7 +44,7 @@ Tezos.signer const maxAmount = balance.minus( estimate.suggestedFeeMutez + DEFAULT_FEE.REVEAL ).toNumber(); - println( + console.log( `The estimated fees related to the emptying operation are ${ estimate.suggestedFeeMutez } mutez.\nThe fees related to the reveal operation are ${ @@ -63,19 +63,19 @@ Tezos.signer }); }) .then((op) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Draining originated accounts (KT1) @@ -118,24 +118,24 @@ Tezos.signer init: { string: address }, }) .then((contractOrigination) => { - println( + console.log( `Waiting for confirmation of origination for ${contractOrigination.contractAddress}...` ); return contractOrigination.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); Tezos.tz.getBalance(contract.address).then((balance) => { - println(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); const estimateOp = contract.methodsObject .do(transferImplicit('tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', balance.toNumber())) .toTransferParams({}); - println(`Waiting for the estimation of the smart contract call...`); + console.log(`Waiting for the estimation of the smart contract call...`); Tezos.estimate .transfer(estimateOp) .then((estimate) => { //Will be deducted from manager's address - println( + console.log( `The estimated fees related to the emptying operation are ${estimate.suggestedFeeMutez} mutez.` ); return contract.methodsObject @@ -143,18 +143,18 @@ Tezos.signer .send({ amount: 0 }); }) .then((operation) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return operation.confirmation(1).then(() => operation.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(contract.address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/estimate.md b/website/versioned_docs/version-17.5.0/estimate.md index 8fb8e1e385..4e532e360c 100644 --- a/website/versioned_docs/version-17.5.0/estimate.md +++ b/website/versioned_docs/version-17.5.0/estimate.md @@ -44,11 +44,11 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -69,11 +69,11 @@ Tezos.estimate const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -112,11 +112,11 @@ Tezos.contract return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -141,11 +141,11 @@ Tezos.wallet return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -176,7 +176,7 @@ values={[ // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -187,7 +187,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -195,7 +195,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -206,7 +206,7 @@ Tezos.estimate // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -217,7 +217,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -225,7 +225,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/inmemory_signer.md b/website/versioned_docs/version-17.5.0/inmemory_signer.md index bb720c37e8..f5296841e0 100644 --- a/website/versioned_docs/version-17.5.0/inmemory_signer.md +++ b/website/versioned_docs/version-17.5.0/inmemory_signer.md @@ -50,9 +50,9 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -67,9 +67,9 @@ InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNF return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` When required, Taquito offers the `b58cencode` function allowing to encode the secret in base58. The parameters of the function are the secret, that can be a `hex string` or an `Uint8Array`, and the desired prefix. Here is an example with a `hex string`: @@ -84,7 +84,7 @@ const b58encodedSecret = b58cencode( '7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d', prefix[Prefix.P2SK] ); -println( +console.log( `The secret is encoded in base58 and the prefix "p2sk" is added to it: ${b58encodedSecret}.` ); //We take the encoded secret to configure the signer. @@ -95,9 +95,9 @@ InMemorySigner.fromSecretKey(b58encodedSecret) return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ### Loading an encrypted private key with a passphrase @@ -131,9 +131,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -151,9 +151,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -171,9 +171,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,9 +202,9 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` With a non-default derivation path non-hardened with a tz2 address @@ -225,9 +225,9 @@ With a non-default derivation path non-hardened with a tz2 address Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` ### Using a testnet faucet key diff --git a/website/versioned_docs/version-17.5.0/lambda_view.md b/website/versioned_docs/version-17.5.0/lambda_view.md index 3a18cba0ba..cf8754e8d4 100644 --- a/website/versioned_docs/version-17.5.0/lambda_view.md +++ b/website/versioned_docs/version-17.5.0/lambda_view.md @@ -57,9 +57,9 @@ Tezos.contract return contract.views.getTotalSupply([['Unit']]).read(); }) .then((response) => { - println(response); + console.log(response); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` **More examples:** @@ -85,9 +85,9 @@ Tezos.contract .read(); }) .then((response) => { - println(JSON.stringify(response, null, 2)); + console.log(JSON.stringify(response, null, 2)); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/ledger_signer.md b/website/versioned_docs/version-17.5.0/ledger_signer.md index c5d0f6c4de..d0f8d7d82a 100644 --- a/website/versioned_docs/version-17.5.0/ledger_signer.md +++ b/website/versioned_docs/version-17.5.0/ledger_signer.md @@ -57,12 +57,12 @@ const ledgerSigner = new LedgerSigner(transport); The constructor of the `LedgerSigner` class can take three other parameters. If none are specified, the default values are used. -- path: **default value is "44'/1729'/0'/0'"** - You can use as a parameter the `HDPathTemplate` which refers to `44'/1729'/${account}'/0'`. You have to specify what is the index of the account you want to use. Or you can also use a complete path as a parameter. +- path: **default value is "44'/1729'/0'/0'"** + You can use as a parameter the `HDPathTemplate` which refers to `44'/1729'/${account}'/0'`. You have to specify what is the index of the account you want to use. Or you can also use a complete path as a parameter. _More details about paths below_ -- prompt: **default is true** +- prompt: **default is true** If true, you will be asked on your Ledger device to send your public key for validation. -- derivationType: **default is DerivationType.ED25519** +- derivationType: **default is DerivationType.ED25519** It can be DerivationType.ED25519 | DerivationType.BIP32_ED25519 (tz1), DerivationType.SECP256K1 (tz2) or DerivationType.P256 (tz3). ```js @@ -162,7 +162,7 @@ Where `purpose` is a constant set to `44'` and `coin_type` is set to `1729'` for The path always begins with `44'/1729'` and we see some difference for the three other indexes across the Tezos ecosystem. We can notice that changing any number for the three last indexes of the path (`account' / change / address_index`) will lead to different accounts. **But, to ensure consistency, it is important trying to follow the same convention regarding the structure of the path and which index to increase to access the next address.** In Tezos, we generally see a slight difference in the path compared to the BIP44 specification. It is common to see path made of 4 indexes instead of 5 (default path being `44'/1729'/0'/0'` instead of `44'/1729'/0'/0'/0'`). For example, the default path used by tezos-client is `44'/1729'/0'/0'`. -Based on what is done by the Tezos-client, the default path used by Taquito in the `LedgerSigner` is also `44'/1729'/0'/0'`. Taquito offers a template for the path called `HDPathTemplate`. This template uses four indexes and suggests doing the iteration on the `account` index. +Based on what is done by the Tezos-client, the default path used by Taquito in the `LedgerSigner` is also `44'/1729'/0'/0'`. Taquito offers a template for the path called `HDPathTemplate`. This template uses four indexes and suggests doing the iteration on the `account` index. For example, you can use HDPathTemplate(0) (equivalent to `44'/1729'/0'/0'`) to access the first address, HDPathTemplate(1) equivalent to `44'/1729'/1'/0'`) to access the second address, HDPathTemplate(2) (equivalent to `44'/1729'/2'/0'`) to access the third address... _In order to meet the needs of each user, this template is not imposed by Taquito_. We can see other implementations that use `44'/1729'/0'/0'/0'`, where the next address is accessed by incrementing `account` or `address_index`. @@ -192,7 +192,7 @@ https://medium.com/mycrypto/wtf-is-a-derivation-path-c3493ca2eb52 ## Live example that iterates from the path `44'/1729'/0'/0'` to `44'/1729'/9'/0'` -Having your Ledger device connected to your computer and the `Tezos Wallet App` opened, you can run the following code example. It will scan your Ledger from path `44'/1729'/0'/0'` to `44'/1729'/9'/0'` to get public key hashes and the balance for revealed accounts. Confirmations will be asked on your Ledger to send the public keys. +Having your Ledger device connected to your computer and the `Tezos Wallet App` opened, you can run the following code example. It will scan your Ledger from path `44'/1729'/0'/0'` to `44'/1729'/9'/0'` to get public key hashes and the balance for revealed accounts. Confirmations will be asked on your Ledger to send the public keys. _Note that this example is not intended to be a complete example of paths scanning but only a rough outline of what it is possible to do._ ```js live noInline @@ -226,13 +226,13 @@ function getAddressInfo(transport, index) { return Tezos.signer.publicKeyHash().then((pkh) => { Tezos.tz.getBalance(pkh).then((balance) => { Tezos.rpc.getManagerKey(pkh).then((getPublicKey) => { - println( + console.log( `The public key hash related to the derivation path having the index ${index} is ${pkh}.` ); if (getPublicKey) { - println(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); + console.log(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); } else { - println('This account is not revealed.\n'); + console.log('This account is not revealed.\n'); } }); }); diff --git a/website/versioned_docs/version-17.5.0/maps_bigmaps.md b/website/versioned_docs/version-17.5.0/maps_bigmaps.md index 34a7cb0ee4..4dc71ebabe 100644 --- a/website/versioned_docs/version-17.5.0/maps_bigmaps.md +++ b/website/versioned_docs/version-17.5.0/maps_bigmaps.md @@ -55,13 +55,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -85,13 +85,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -120,13 +120,13 @@ Tezos.contract }), }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -146,13 +146,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -181,7 +181,7 @@ Tezos.contract .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -191,25 +191,25 @@ Tezos.contract return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -224,7 +224,7 @@ Tezos.wallet .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -234,25 +234,25 @@ Tezos.wallet return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -326,13 +326,13 @@ Tezos.contract }, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -383,13 +383,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -422,10 +422,10 @@ Tezos.contract 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -442,10 +442,10 @@ Tezos.wallet 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -519,13 +519,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -571,13 +571,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -617,9 +617,9 @@ Tezos.contract 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -643,9 +643,9 @@ Tezos.wallet 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -717,13 +717,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -774,13 +774,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -810,7 +810,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -822,10 +822,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -843,7 +843,7 @@ Tezos.wallet 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -855,10 +855,10 @@ Tezos.wallet }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -908,11 +908,11 @@ values={[ Tezos.contract .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -922,10 +922,10 @@ Tezos.contract }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` @@ -938,11 +938,11 @@ Tezos.contract Tezos.wallet .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -952,10 +952,10 @@ Tezos.wallet }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` diff --git a/website/versioned_docs/version-17.5.0/metadata-tzip16.md b/website/versioned_docs/version-17.5.0/metadata-tzip16.md index 606fd676a3..162daa6209 100644 --- a/website/versioned_docs/version-17.5.0/metadata-tzip16.md +++ b/website/versioned_docs/version-17.5.0/metadata-tzip16.md @@ -104,13 +104,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -128,13 +128,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -162,13 +162,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -185,13 +185,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -218,13 +218,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -242,13 +242,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -276,13 +276,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -300,13 +300,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -366,18 +366,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytes2Char(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytes2Char(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -395,18 +395,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytes2Char(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytes2Char(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -437,19 +437,19 @@ Tezos.contract .at(contractAddress, tzip16) .then((contract) => { return contract.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -468,19 +468,19 @@ Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { return wallet.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -526,10 +526,10 @@ Tezos.contract ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -563,10 +563,10 @@ Tezos.wallet ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-17.5.0/michelson_encoder.md b/website/versioned_docs/version-17.5.0/michelson_encoder.md index bf64c5d3c3..73ae5050dd 100644 --- a/website/versioned_docs/version-17.5.0/michelson_encoder.md +++ b/website/versioned_docs/version-17.5.0/michelson_encoder.md @@ -81,7 +81,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- When there is no annotation, the keys of the object are indexes starting from 0. @@ -101,7 +101,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- Here is another example using a complex storage: @@ -242,7 +242,7 @@ const storageType = }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` ### The Typecheck method @@ -269,7 +269,7 @@ const typecheck = storageSchema.Typecheck({ threshold: 5, keys: ['edpkuLxx9PQD8fZ45eUzrK3yhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(typecheck); +console.log(typecheck); ``` ### The Encode method @@ -297,7 +297,7 @@ const michelsonData = storageSchema.Encode({ threshold: 5, keys: ['edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g', 'edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### The Execute method @@ -345,7 +345,7 @@ const dataMichelson = { ] } const data = storageSchema.Execute(dataMichelson) -println(JSON.stringify(data, null, 2)); +console.log(JSON.stringify(data, null, 2)); ``` The `Execute` method takes an optional parameter of type `Semantic`. It allows overriding the default representation returned by the Michelson Encoder for specific types. @@ -359,12 +359,12 @@ const schema = new Schema({ prim: 'big_map', args: [{ prim: 'address' }, { prim: const dataMichelson = { int: 123456 } const data = schema.Execute(dataMichelson) -println(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); +console.log(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); // instead of returning the big map id, we can override it // we return an object in this case const dataCustom = schema.Execute(dataMichelson, { big_map: (val) => Object({ id: val.int })}) -println(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); ``` --- Here is an example for the `ticket` type: @@ -374,10 +374,10 @@ const schema = new Schema({"prim":"ticket","args":[{"prim":"string"}]}); const dataMichelson = {"prim":"Pair","args":[{"string":"KT1PVuv7af4VkPsZVZ8oZz9GSSdGnGBCbFWw"},{"string":"test"},{"int":"2"}]} const data = schema.Execute(dataMichelson) -println(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); +console.log(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); const dataCustom = schema.Execute(dataMichelson, { ticket: (val) => val.args[1].string}) -println(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); ``` ### How the Schema class is used inside Taquito @@ -404,7 +404,7 @@ const michelsonData = parameterSchema.Encode( 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', '12' ) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` --- Here is an example of `encodeObject`: @@ -414,7 +414,7 @@ const michelsonData = parameterSchema.EncodeObject({ spender: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', value: '12' }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### How the ParameterSchema class is used inside Taquito @@ -442,7 +442,7 @@ const storageSchema = new Schema({ ] }); const annotatedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(annotatedSchema, null, 2)); +console.log(JSON.stringify(annotatedSchema, null, 2)); ``` --- We can also have a similar definition without the annotations: @@ -461,7 +461,7 @@ const storageSchema = new Schema({ ] }); const noAnnotationsSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(noAnnotationsSchema, null, 2)); +console.log(JSON.stringify(noAnnotationsSchema, null, 2)); ``` In Taquito, we will flatten these nested `pair`s to make it easier to use them in typescript dApps. Please note how the result of `generateSchema` is different in the annotated vs non-annotated cases: @@ -510,7 +510,7 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` ### Unions @@ -531,5 +531,5 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` diff --git a/website/versioned_docs/version-17.5.0/on_chain_views.md b/website/versioned_docs/version-17.5.0/on_chain_views.md index 09aeb69119..8652d2dfe0 100644 --- a/website/versioned_docs/version-17.5.0/on_chain_views.md +++ b/website/versioned_docs/version-17.5.0/on_chain_views.md @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; ## On-chain views description -- The `On-chain views` feature was introduced in the Hangzhou protocol. +- The `On-chain views` feature was introduced in the Hangzhou protocol. - Views are meant to be called by a contract. It can be the contract where the view is defined or another contract. - Views help to avoid the need to use callbacks in contracts. - Views take arguments as input and may depend on the contract's storage declaring the view. @@ -89,8 +89,8 @@ view "fib" nat nat } } } -``` - +``` + ## Calling an on-chain view Views are meant to be called by a contract using the Michelson Instruction `View` followed by the view name and its result type. @@ -110,7 +110,7 @@ code { **Example of calling a contract entrypoint that makes a call to a view using Taquito:** -The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). +The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). The example first shows the initial storage of the contract `contractCallFib`. It calls the default entry point of `contractCallFib` with the value of its storage + 1 and the address of the contract `contractTopLevelViews`. A call is made to the `fib` view of `contractTopLevelViews` with the `storage + 1` as argument. The view returns the value of the Fibonacci sequence at the position represented by `storage + 1`. The storage of `contractCallFib` is updated to the result of the view. @@ -130,23 +130,23 @@ Tezos.contract.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -159,32 +159,32 @@ Tezos.wallet.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` ## How to simulate a view execution using Taquito -Taquito offers the ability to simulate the result of on-chain views. +Taquito offers the ability to simulate the result of on-chain views. -The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. +The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. *`contractViews` is an object where the key is the view name, and the value is a function that takes the view arguments as a parameter and returns an instance of `OnChainView` class.* @@ -192,7 +192,7 @@ If the view takes multiple arguments, the view parameter is expected in an objec *Note for reference, the flattened arguments are the expected format when calling a contract entry point using the `methods` member, but we plan to move away from this format in favor the object one, which is also used for the storage when deploying a contract [see the difference between `methodsObject` and `methods` members of the `ContractAbstraction`](smartcontracts.md#choosing-between-the-methods-or-methodsobject-members-to-interact-with-smart-contracts).* -A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. +A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. The `executeView` method of the `OnChainView` class allows simulating the view. It takes a `viewCaller` as a parameter representing the contract address which is the caller of the view, and an optional `source` which is the public key hash of the account that initialized this view execution. @@ -215,10 +215,10 @@ Tezos.contract.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -233,11 +233,11 @@ Tezos.wallet.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` diff --git a/website/versioned_docs/version-17.5.0/originate.md b/website/versioned_docs/version-17.5.0/originate.md index aec0ae1697..c1f5a88305 100644 --- a/website/versioned_docs/version-17.5.0/originate.md +++ b/website/versioned_docs/version-17.5.0/originate.md @@ -100,13 +100,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -130,13 +130,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -167,13 +167,13 @@ Tezos.contract init: `(Pair 0 (Pair 1 { "edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t" }))`, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -193,13 +193,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -240,13 +240,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -278,13 +278,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/quick_start.md b/website/versioned_docs/version-17.5.0/quick_start.md index 95a4e57850..d110457731 100644 --- a/website/versioned_docs/version-17.5.0/quick_start.md +++ b/website/versioned_docs/version-17.5.0/quick_start.md @@ -61,8 +61,8 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please Tezos.tz .getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY') - .then((balance) => println(`${balance.toNumber() / 1000000} ꜩ`)) - .catch((error) => println(JSON.stringify(error))); + .then((balance) => console.log(`${balance.toNumber() / 1000000} ꜩ`)) + .catch((error) => console.log(JSON.stringify(error))); ``` ### Using the inMemory Signer and Importing a key @@ -104,15 +104,15 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.contract .transfer({ to: address, amount: amount }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -122,16 +122,16 @@ Tezos.contract const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.wallet .transfer({ to: address, amount: amount }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -155,15 +155,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,15 +175,15 @@ Tezos.wallet .then((wallet) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return wallet.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/sapling.md b/website/versioned_docs/version-17.5.0/sapling.md index 69d41588bd..139751cb09 100644 --- a/website/versioned_docs/version-17.5.0/sapling.md +++ b/website/versioned_docs/version-17.5.0/sapling.md @@ -96,11 +96,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice balance in the shielded pool...`); + console.log(`Fetching Alice balance in the shielded pool...`); return txViewer.getBalance(); }) - .then((balance) => println(`Alice's balance is ${balance.toString()} mutez`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((balance) => console.log(`Alice's balance is ${balance.toString()} mutez`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to retrieve my transaction history? @@ -129,11 +129,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice's history of transactions in the shielded pool...`); + console.log(`Fetching Alice's history of transactions in the shielded pool...`); return txViewer.getIncomingAndOutgoingTransactions(); }) - .then((history) => println(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((history) => console.log(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to prepare a shielded transaction? @@ -174,12 +174,12 @@ const saplingToolkit = new SaplingToolkit( inMemorySpendingKey.getSaplingViewingKeyProvider() .then((inMemoryViewingKey) => { - println(`Fetching a payment address for Alice (zet)...`); + console.log(`Fetching a payment address for Alice (zet)...`); return inMemoryViewingKey.getAddress(); }) .then((paymentAddress) => { - println(`Alice's payment address is: ${paymentAddress.address}`); - println(`Preparing the shielded transaction...`); + console.log(`Alice's payment address is: ${paymentAddress.address}`); + console.log(`Preparing the shielded transaction...`); return saplingToolkit.prepareShieldedTransaction([{ to: paymentAddress.address, amount: 3, @@ -188,20 +188,20 @@ inMemorySpendingKey.getSaplingViewingKeyProvider() }]); }) .then((shieldedTx) => { - println(`The sapling transaction parameter is: ${shieldedTx}`); + console.log(`The sapling transaction parameter is: ${shieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); // The amount MUST be specified in the send method to transfer the 3 tez to the shielded pool return saplingContract.methodsObject.default([shieldedTx]).send({ amount: 3 }); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) - .catch((error) => println(`Error: ${(error)}`)); + .catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare a Sapling transaction? @@ -244,7 +244,7 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the sapling transaction...`); +console.log(`Preparing the sapling transaction...`); saplingToolkit.prepareSaplingTransaction([{ to: 'zet14CMN2T4x1f8sgXeAGWQwczSf6SJ8bm8nyP2Tg7HJn2VmtPtB2nE2q7MMgdmMEwpGQ', amount: 3, @@ -252,19 +252,19 @@ saplingToolkit.prepareSaplingTransaction([{ mutez: false // set to false by default }]) .then((saplingTx) => { - println(`The sapling transaction parameter is: ${saplingTx}`); + console.log(`The sapling transaction parameter is: ${saplingTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([saplingTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare an unshielded transaction? @@ -302,26 +302,26 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the unshielded transaction...`); +console.log(`Preparing the unshielded transaction...`); saplingToolkit.prepareUnshieldedTransaction({ to: 'tz1hDFKpVkT7jzYncaLma4vxh4Gg6JNqvdtB', amount: 20, mutez: true // set to false by default }) .then((unshieldedTx) => { - println(`The sapling transaction parameter is: ${unshieldedTx}`); + console.log(`The sapling transaction parameter is: ${unshieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([unshieldedTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` # SaplingTransactionViewer diff --git a/website/versioned_docs/version-17.5.0/sapling_in_memory_viewing_key.md b/website/versioned_docs/version-17.5.0/sapling_in_memory_viewing_key.md index 88ac26e839..da378c3158 100644 --- a/website/versioned_docs/version-17.5.0/sapling_in_memory_viewing_key.md +++ b/website/versioned_docs/version-17.5.0/sapling_in_memory_viewing_key.md @@ -7,7 +7,7 @@ The `InMemoryViewingKey` class can be instantiated from a viewing or spending ke ### Instantiation from a viewing key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( '000000000000000000977d725fc96387e8ec1e603e7ae60c6e63529fb84e36e126770e9db9899d7f2344259fd700dc80120d3c9ca65d698f6064043b048b079caa4f198aed96271740b1d6fd523d71b15cd0b3d75644afbe9abfedb6883e299165665ab692c14ca5c835c61a0e53de553a751c78fbc42d5e7eca807fd441206651c84bf88de803efba837583145a5f338b1a7af8a5f9bec4783054f9d063d365f2352f72cbced95e0a' @@ -16,22 +16,22 @@ const inMemoryViewingKey = new InMemoryViewingKey( ### Instantiation from an unencrypted spending key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; InMemoryViewingKey.fromSpendingKey( 'sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L', ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ### Instantiation from an encrypted spending key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; InMemoryViewingKey.fromSpendingKey( @@ -39,9 +39,9 @@ InMemoryViewingKey.fromSpendingKey( 'test' // password ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -49,7 +49,7 @@ InMemoryViewingKey.fromSpendingKey( The `InMemoryViewingKey` class has a method named `getAddress`, allowing to derive addresses (zet) from the viewing key. An index can be specified as a parameter, or the default value `0` will be used. -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( @@ -57,6 +57,6 @@ const inMemoryViewingKey = new InMemoryViewingKey( ); inMemoryViewingKey.getAddress() -.then((address) => println(`The address is ${JSON.stringify(address, null, 2)}`)) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.then((address) => console.log(`The address is ${JSON.stringify(address, null, 2)}`)) +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-17.5.0/signing.md b/website/versioned_docs/version-17.5.0/signing.md index 68b5bb3965..edfa044e48 100644 --- a/website/versioned_docs/version-17.5.0/signing.md +++ b/website/versioned_docs/version-17.5.0/signing.md @@ -167,8 +167,8 @@ const packed = packDataBytes( ); Tezos.signer .sign(packed.bytes) - .then((signed) => println(JSON.stringify(signed, null, 2))) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((signed) => console.log(JSON.stringify(signed, null, 2))) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` First, you provide the Michelson code to be signed as a string along with its type. diff --git a/website/versioned_docs/version-17.5.0/smartcontracts.md b/website/versioned_docs/version-17.5.0/smartcontracts.md index 1c7bdd9836..32ac82ab2a 100644 --- a/website/versioned_docs/version-17.5.0/smartcontracts.md +++ b/website/versioned_docs/version-17.5.0/smartcontracts.md @@ -81,7 +81,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -96,7 +96,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -129,7 +129,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -143,7 +143,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -174,15 +174,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(3).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -195,15 +195,15 @@ Tezos.wallet .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(3).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -236,8 +236,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methods.set_child_record().getSignature(), null, @@ -245,7 +245,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an array which contains the different possible signatures. Different signatures are possible as the `set_child_record` method contains some optional arguments. In the following example the `set_child_record` method is called by passing the arguments in the flattened way: @@ -272,11 +272,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -290,8 +290,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methodsObject.set_child_record().getSignature(), null, @@ -299,7 +299,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an object giving indication on how to structure the parameter when calling the`set_child_record` method. Here is an example where the `set_child_record` method is called by passing the parameter in an object format: @@ -325,11 +325,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-17.5.0/storage_annotations.md b/website/versioned_docs/version-17.5.0/storage_annotations.md index 6763d67634..d6a0bcc6c0 100644 --- a/website/versioned_docs/version-17.5.0/storage_annotations.md +++ b/website/versioned_docs/version-17.5.0/storage_annotations.md @@ -50,13 +50,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -77,14 +77,14 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -125,13 +125,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -152,14 +152,14 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -202,13 +202,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -230,13 +230,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` \ No newline at end of file diff --git a/website/versioned_docs/version-17.5.0/taquito_utils.md b/website/versioned_docs/version-17.5.0/taquito_utils.md index 02ebed525a..236fb758b9 100644 --- a/website/versioned_docs/version-17.5.0/taquito_utils.md +++ b/website/versioned_docs/version-17.5.0/taquito_utils.md @@ -43,12 +43,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -63,12 +63,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -83,7 +83,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -98,12 +98,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -116,12 +116,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -134,12 +134,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -152,12 +152,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -169,12 +169,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -186,12 +186,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -208,5 +208,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-17.5.0/tzip12.md b/website/versioned_docs/version-17.5.0/tzip12.md index e385f6ca6d..b59f951c26 100644 --- a/website/versioned_docs/version-17.5.0/tzip12.md +++ b/website/versioned_docs/version-17.5.0/tzip12.md @@ -9,7 +9,7 @@ The `@taquito/tzip12` package allows retrieving metadata associated with tokens ## How to use the tzip12 package -The package can act as an extension to the well-known Taquito contract abstraction. +The package can act as an extension to the well-known Taquito contract abstraction. 1. **We first need to create an instance of `Tzip12Module` and add it as an extension to our `TezosToolkit`** @@ -32,8 +32,8 @@ Tezos.addExtension(new Tzip12Module()); const contract = await Tezos.contract.at("contractAddress", tzip12) ``` -**The compose function** -The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. +**The compose function** +The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. Thus, all methods of the `ContractAbstraction`, `Tzip12ContractAbstraction` and `Tzip16ContractAbstraction` classes will be available on the contract abstraction instance. ```js @@ -50,7 +50,7 @@ await contract.tzip16().getMetadata(); // Tzip16ContractAbstraction method There are two scenarios to obtain the metadata of a token: 1. They can be obtained from executing an off-chain view named `token_metadata` present in the contract metadata -2. or from a big map named `token_metadata` in the contract storage. +2. or from a big map named `token_metadata` in the contract storage. The `getTokenMetadata` method of the `Tzip12ContractAbstraction` class will find the token metadata with precedence for the off-chain view, if there is one, as specified in the standard. @@ -97,13 +97,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, compose(tzip12, tzip16)) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -121,14 +121,14 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, compose(tzip12, tzip16)) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -154,19 +154,19 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip16) .then(contract => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -183,20 +183,20 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip16) .then(wallet => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -211,7 +211,7 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ @@ -229,15 +229,15 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ ``` prim: 'big_map', args: [ - { prim: 'nat' }, + { prim: 'nat' }, { prim: 'pair', args: [ - { prim: 'nat' , annots: ['%token_id']}, + { prim: 'nat' , annots: ['%token_id']}, { prim: "map", args: [{ prim: 'string' }, { prim: 'bytes' }], annots: ['%token_info'] }] }], annots: ['%token_metadata'] ``` - + Otherwise, the token metadata won't be found by the `getTokenMetadata` method, and a `TokenMetadataNotFound` error will be thrown. ::: @@ -262,13 +262,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip12) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -285,17 +285,17 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip12) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` -#### For more information on the contracts used in the examples: +#### For more information on the contracts used in the examples: integration-tests/tzip12-token-metadata.spec.ts \ No newline at end of file diff --git a/website/versioned_docs/version-17.5.0/validators.md b/website/versioned_docs/version-17.5.0/validators.md index dc1c5a0f36..d26f673290 100644 --- a/website/versioned_docs/version-17.5.0/validators.md +++ b/website/versioned_docs/version-17.5.0/validators.md @@ -26,12 +26,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -46,12 +46,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -66,7 +66,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -81,12 +81,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -99,12 +99,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -117,12 +117,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -135,12 +135,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -152,12 +152,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -169,12 +169,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -191,5 +191,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-17.5.0/version.md b/website/versioned_docs/version-17.5.0/version.md index 3b966ee454..b6e631f824 100644 --- a/website/versioned_docs/version-17.5.0/version.md +++ b/website/versioned_docs/version-17.5.0/version.md @@ -5,7 +5,7 @@ author: Jev Bjorsell # Taquito 17.5.0 **Important Note:** -In this version, we replaced instances of `Axios` in favour of `Fetch`. +In this version, we replaced instances of `Axios` in favour of `Fetch`. We are not expecting any breaking changes, but if there are any issues that you see regarding this, please reach out to the Taquito team. @@ -19,7 +19,7 @@ We are not expecting any breaking changes, but if there are any issues that you ### Documentation - Updated RPC nodes on the website [PR#2732](https://github.com/ecadlabs/taquito/pull/2732 - Updated Michelson encoder documentation to reference `generateSchema` instead of the outdated `extractSchema` #2630 -- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 +- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 ### Internals - Removed archive node, and references to it in Taquito [PR#2743](https://github.com/ecadlabs/taquito/pull/2743) @@ -39,7 +39,7 @@ With this change we hope for a more stable HTTP handler in Taquito while reducin # Taquito v17.4.0 -**Potential Breaking Changes** : +**Potential Breaking Changes** : We have updated various dependencies to the latest version in this release. Please update and test our packages for compatibility. We encourage all users to get in touch with the Taquito team if you encounter any unexpected behaviours and/or side effects. ## Summary @@ -2229,7 +2229,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta, the returned value was:* ```typescript= @@ -2279,7 +2279,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta the returned value was:* ```json= diff --git a/website/versioned_docs/version-17.5.0/wallet_API.md b/website/versioned_docs/version-17.5.0/wallet_API.md index eead068214..575f72909f 100644 --- a/website/versioned_docs/version-17.5.0/wallet_API.md +++ b/website/versioned_docs/version-17.5.0/wallet_API.md @@ -122,7 +122,7 @@ Make sure you have the Beacon browser extension installed (the extension offers wallet .requestPermissions() .then((_) => wallet.getPKH()) - .then((address) => println(`Your address: ${address}`)); + .then((address) => console.log(`Your address: ${address}`)); Tezos.setWalletProvider(wallet); ``` @@ -221,7 +221,7 @@ TempleWallet.isAvailable() return myWallet.getPKH(); }) .then((pkh) => { - println(`Your address: ${pkh}`); + console.log(`Your address: ${pkh}`); }); }) .catch((err) => console.log(err)); @@ -238,18 +238,18 @@ Tezos.wallet .transfer({ to: 'tz1NhNv9g7rtcjyNsH8Zqu79giY5aTqDDrzB', amount: 0.2 }) .send() .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); op.confirmation() .then((result) => { console.log(result); if (result.completed) { - println('Transaction correctly processed!'); + console.log('Transaction correctly processed!'); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) - .catch((err) => println(err)); + .catch((err) => console.log(err)); }); ``` @@ -262,11 +262,11 @@ Tezos.wallet .transfer({ to: 'KT1TBxaaeikEUcVN2qdQY7n9Q21ykcX1NLzY', amount: 0.2 }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash); }) - .then(() => println(`Operation injected!`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then(() => console.log(`Operation injected!`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example. @@ -296,17 +296,17 @@ Tezos.wallet .at('KT1SHiNUNmqBFGNysX9pmh1DC2tQ5pGmRagC') .then((contract) => contract.methodsObject.areYouThere(true).send()) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); @@ -321,17 +321,17 @@ Tezos.wallet contract.methodsObject.addName({0: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', 1: 'Alice'}).send() ) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); diff --git a/website/versioned_docs/version-19.0.0/complex_parameters.md b/website/versioned_docs/version-19.0.0/complex_parameters.md index 26031f5ae1..e0ac50e707 100644 --- a/website/versioned_docs/version-19.0.0/complex_parameters.md +++ b/website/versioned_docs/version-19.0.0/complex_parameters.md @@ -93,11 +93,11 @@ importKey(Tezos, secretKey) validators : validatorsMap }}) }).then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }).then((contract) => { - println(`Origination completed.`); -}).catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Origination completed.`); +}).catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Calling the function of a contract having a complex object as a parameter @@ -145,8 +145,8 @@ importKey(Tezos, secretKey) owner: 'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', parent: 'FFFF', ttl: { Some: '10' }}).toTransferParams(); - println(JSON.stringify(inspect, null, 2)) -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(JSON.stringify(inspect, null, 2)) +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when all the arguments are defined @@ -172,11 +172,11 @@ importKey(Tezos, secretKey) ttl: { Some: '10' } }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when optional arguments are null @@ -203,9 +203,9 @@ importKey(Tezos, secretKey) ttl: null }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/contract-test-collection.md b/website/versioned_docs/version-19.0.0/contract-test-collection.md index cd0f92b754..f8b7d5bee6 100644 --- a/website/versioned_docs/version-19.0.0/contract-test-collection.md +++ b/website/versioned_docs/version-19.0.0/contract-test-collection.md @@ -494,7 +494,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -506,10 +506,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/drain_account.md b/website/versioned_docs/version-19.0.0/drain_account.md index c57e3be73c..5086d56569 100644 --- a/website/versioned_docs/version-19.0.0/drain_account.md +++ b/website/versioned_docs/version-19.0.0/drain_account.md @@ -29,7 +29,7 @@ Tezos.signer .publicKeyHash() .then((address) => { Tezos.tz.getBalance(address).then((balance) => { - println( + console.log( `The account we want to drain is ${address}.\nIts initial balance is ${ balance.toNumber() / 1000000 } ꜩ.` @@ -44,7 +44,7 @@ Tezos.signer const maxAmount = balance.minus( estimate.suggestedFeeMutez + getRevealFee(address) ).toNumber(); - println( + console.log( `The estimated fees related to the emptying operation are ${ estimate.suggestedFeeMutez } mutez.\nThe fees related to the reveal operation are ${ @@ -63,19 +63,19 @@ Tezos.signer }); }) .then((op) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Draining originated accounts (KT1) @@ -118,24 +118,24 @@ Tezos.signer init: { string: address }, }) .then((contractOrigination) => { - println( + console.log( `Waiting for confirmation of origination for ${contractOrigination.contractAddress}...` ); return contractOrigination.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); Tezos.tz.getBalance(contract.address).then((balance) => { - println(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); const estimateOp = contract.methodsObject .do(transferImplicit('tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', balance.toNumber())) .toTransferParams({}); - println(`Waiting for the estimation of the smart contract call...`); + console.log(`Waiting for the estimation of the smart contract call...`); Tezos.estimate .transfer(estimateOp) .then((estimate) => { //Will be deducted from manager's address - println( + console.log( `The estimated fees related to the emptying operation are ${estimate.suggestedFeeMutez} mutez.` ); return contract.methodsObject @@ -143,18 +143,18 @@ Tezos.signer .send({ amount: 0 }); }) .then((operation) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return operation.confirmation(1).then(() => operation.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(contract.address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/estimate.md b/website/versioned_docs/version-19.0.0/estimate.md index 8fb8e1e385..4e532e360c 100644 --- a/website/versioned_docs/version-19.0.0/estimate.md +++ b/website/versioned_docs/version-19.0.0/estimate.md @@ -44,11 +44,11 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -69,11 +69,11 @@ Tezos.estimate const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -112,11 +112,11 @@ Tezos.contract return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -141,11 +141,11 @@ Tezos.wallet return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -176,7 +176,7 @@ values={[ // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -187,7 +187,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -195,7 +195,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -206,7 +206,7 @@ Tezos.estimate // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -217,7 +217,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -225,7 +225,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/inmemory_signer.md b/website/versioned_docs/version-19.0.0/inmemory_signer.md index 503b949641..1beaf8d42a 100644 --- a/website/versioned_docs/version-19.0.0/inmemory_signer.md +++ b/website/versioned_docs/version-19.0.0/inmemory_signer.md @@ -50,9 +50,9 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -67,9 +67,9 @@ InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNF return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` When required, Taquito offers the `b58cencode` function allowing to encode the secret in base58. The parameters of the function are the secret, that can be a `hex string` or an `Uint8Array`, and the desired prefix. Here is an example with a `hex string`: @@ -84,7 +84,7 @@ const b58encodedSecret = b58cencode( '7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d', prefix[Prefix.P2SK] ); -println( +console.log( `The secret is encoded in base58 and the prefix "p2sk" is added to it: ${b58encodedSecret}.` ); //We take the encoded secret to configure the signer. @@ -95,9 +95,9 @@ InMemorySigner.fromSecretKey(b58encodedSecret) return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ### Loading an encrypted private key with a passphrase @@ -131,9 +131,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -151,9 +151,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -171,9 +171,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,9 +202,9 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` With a non-default derivation path non-hardened with a tz2 address @@ -225,9 +225,9 @@ With a non-default derivation path non-hardened with a tz2 address Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` ### Using a testnet faucet key diff --git a/website/versioned_docs/version-19.0.0/lambda_view.md b/website/versioned_docs/version-19.0.0/lambda_view.md index 3a18cba0ba..cf8754e8d4 100644 --- a/website/versioned_docs/version-19.0.0/lambda_view.md +++ b/website/versioned_docs/version-19.0.0/lambda_view.md @@ -57,9 +57,9 @@ Tezos.contract return contract.views.getTotalSupply([['Unit']]).read(); }) .then((response) => { - println(response); + console.log(response); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` **More examples:** @@ -85,9 +85,9 @@ Tezos.contract .read(); }) .then((response) => { - println(JSON.stringify(response, null, 2)); + console.log(JSON.stringify(response, null, 2)); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/ledger_signer.md b/website/versioned_docs/version-19.0.0/ledger_signer.md index 9a5dff3274..1e91f88b90 100644 --- a/website/versioned_docs/version-19.0.0/ledger_signer.md +++ b/website/versioned_docs/version-19.0.0/ledger_signer.md @@ -226,13 +226,13 @@ function getAddressInfo(transport, index) { return Tezos.signer.publicKeyHash().then((pkh) => { Tezos.tz.getBalance(pkh).then((balance) => { Tezos.rpc.getManagerKey(pkh).then((getPublicKey) => { - println( + console.log( `The public key hash related to the derivation path having the index ${index} is ${pkh}.` ); if (getPublicKey) { - println(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); + console.log(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); } else { - println('This account is not revealed.\n'); + console.log('This account is not revealed.\n'); } }); }); diff --git a/website/versioned_docs/version-19.0.0/maps_bigmaps.md b/website/versioned_docs/version-19.0.0/maps_bigmaps.md index 34a7cb0ee4..4dc71ebabe 100644 --- a/website/versioned_docs/version-19.0.0/maps_bigmaps.md +++ b/website/versioned_docs/version-19.0.0/maps_bigmaps.md @@ -55,13 +55,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -85,13 +85,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -120,13 +120,13 @@ Tezos.contract }), }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -146,13 +146,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -181,7 +181,7 @@ Tezos.contract .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -191,25 +191,25 @@ Tezos.contract return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -224,7 +224,7 @@ Tezos.wallet .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -234,25 +234,25 @@ Tezos.wallet return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -326,13 +326,13 @@ Tezos.contract }, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -383,13 +383,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -422,10 +422,10 @@ Tezos.contract 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -442,10 +442,10 @@ Tezos.wallet 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -519,13 +519,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -571,13 +571,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -617,9 +617,9 @@ Tezos.contract 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -643,9 +643,9 @@ Tezos.wallet 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -717,13 +717,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -774,13 +774,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -810,7 +810,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -822,10 +822,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -843,7 +843,7 @@ Tezos.wallet 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -855,10 +855,10 @@ Tezos.wallet }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -908,11 +908,11 @@ values={[ Tezos.contract .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -922,10 +922,10 @@ Tezos.contract }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` @@ -938,11 +938,11 @@ Tezos.contract Tezos.wallet .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -952,10 +952,10 @@ Tezos.wallet }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` diff --git a/website/versioned_docs/version-19.0.0/metadata-tzip16.md b/website/versioned_docs/version-19.0.0/metadata-tzip16.md index 606fd676a3..162daa6209 100644 --- a/website/versioned_docs/version-19.0.0/metadata-tzip16.md +++ b/website/versioned_docs/version-19.0.0/metadata-tzip16.md @@ -104,13 +104,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -128,13 +128,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -162,13 +162,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -185,13 +185,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -218,13 +218,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -242,13 +242,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -276,13 +276,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -300,13 +300,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -366,18 +366,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytes2Char(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytes2Char(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -395,18 +395,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytes2Char(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytes2Char(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -437,19 +437,19 @@ Tezos.contract .at(contractAddress, tzip16) .then((contract) => { return contract.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -468,19 +468,19 @@ Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { return wallet.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -526,10 +526,10 @@ Tezos.contract ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -563,10 +563,10 @@ Tezos.wallet ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.0.0/michelson_encoder.md b/website/versioned_docs/version-19.0.0/michelson_encoder.md index bf64c5d3c3..73ae5050dd 100644 --- a/website/versioned_docs/version-19.0.0/michelson_encoder.md +++ b/website/versioned_docs/version-19.0.0/michelson_encoder.md @@ -81,7 +81,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- When there is no annotation, the keys of the object are indexes starting from 0. @@ -101,7 +101,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- Here is another example using a complex storage: @@ -242,7 +242,7 @@ const storageType = }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` ### The Typecheck method @@ -269,7 +269,7 @@ const typecheck = storageSchema.Typecheck({ threshold: 5, keys: ['edpkuLxx9PQD8fZ45eUzrK3yhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(typecheck); +console.log(typecheck); ``` ### The Encode method @@ -297,7 +297,7 @@ const michelsonData = storageSchema.Encode({ threshold: 5, keys: ['edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g', 'edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### The Execute method @@ -345,7 +345,7 @@ const dataMichelson = { ] } const data = storageSchema.Execute(dataMichelson) -println(JSON.stringify(data, null, 2)); +console.log(JSON.stringify(data, null, 2)); ``` The `Execute` method takes an optional parameter of type `Semantic`. It allows overriding the default representation returned by the Michelson Encoder for specific types. @@ -359,12 +359,12 @@ const schema = new Schema({ prim: 'big_map', args: [{ prim: 'address' }, { prim: const dataMichelson = { int: 123456 } const data = schema.Execute(dataMichelson) -println(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); +console.log(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); // instead of returning the big map id, we can override it // we return an object in this case const dataCustom = schema.Execute(dataMichelson, { big_map: (val) => Object({ id: val.int })}) -println(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); ``` --- Here is an example for the `ticket` type: @@ -374,10 +374,10 @@ const schema = new Schema({"prim":"ticket","args":[{"prim":"string"}]}); const dataMichelson = {"prim":"Pair","args":[{"string":"KT1PVuv7af4VkPsZVZ8oZz9GSSdGnGBCbFWw"},{"string":"test"},{"int":"2"}]} const data = schema.Execute(dataMichelson) -println(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); +console.log(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); const dataCustom = schema.Execute(dataMichelson, { ticket: (val) => val.args[1].string}) -println(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); ``` ### How the Schema class is used inside Taquito @@ -404,7 +404,7 @@ const michelsonData = parameterSchema.Encode( 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', '12' ) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` --- Here is an example of `encodeObject`: @@ -414,7 +414,7 @@ const michelsonData = parameterSchema.EncodeObject({ spender: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', value: '12' }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### How the ParameterSchema class is used inside Taquito @@ -442,7 +442,7 @@ const storageSchema = new Schema({ ] }); const annotatedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(annotatedSchema, null, 2)); +console.log(JSON.stringify(annotatedSchema, null, 2)); ``` --- We can also have a similar definition without the annotations: @@ -461,7 +461,7 @@ const storageSchema = new Schema({ ] }); const noAnnotationsSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(noAnnotationsSchema, null, 2)); +console.log(JSON.stringify(noAnnotationsSchema, null, 2)); ``` In Taquito, we will flatten these nested `pair`s to make it easier to use them in typescript dApps. Please note how the result of `generateSchema` is different in the annotated vs non-annotated cases: @@ -510,7 +510,7 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` ### Unions @@ -531,5 +531,5 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` diff --git a/website/versioned_docs/version-19.0.0/on_chain_views.md b/website/versioned_docs/version-19.0.0/on_chain_views.md index 09aeb69119..8652d2dfe0 100644 --- a/website/versioned_docs/version-19.0.0/on_chain_views.md +++ b/website/versioned_docs/version-19.0.0/on_chain_views.md @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; ## On-chain views description -- The `On-chain views` feature was introduced in the Hangzhou protocol. +- The `On-chain views` feature was introduced in the Hangzhou protocol. - Views are meant to be called by a contract. It can be the contract where the view is defined or another contract. - Views help to avoid the need to use callbacks in contracts. - Views take arguments as input and may depend on the contract's storage declaring the view. @@ -89,8 +89,8 @@ view "fib" nat nat } } } -``` - +``` + ## Calling an on-chain view Views are meant to be called by a contract using the Michelson Instruction `View` followed by the view name and its result type. @@ -110,7 +110,7 @@ code { **Example of calling a contract entrypoint that makes a call to a view using Taquito:** -The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). +The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). The example first shows the initial storage of the contract `contractCallFib`. It calls the default entry point of `contractCallFib` with the value of its storage + 1 and the address of the contract `contractTopLevelViews`. A call is made to the `fib` view of `contractTopLevelViews` with the `storage + 1` as argument. The view returns the value of the Fibonacci sequence at the position represented by `storage + 1`. The storage of `contractCallFib` is updated to the result of the view. @@ -130,23 +130,23 @@ Tezos.contract.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -159,32 +159,32 @@ Tezos.wallet.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` ## How to simulate a view execution using Taquito -Taquito offers the ability to simulate the result of on-chain views. +Taquito offers the ability to simulate the result of on-chain views. -The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. +The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. *`contractViews` is an object where the key is the view name, and the value is a function that takes the view arguments as a parameter and returns an instance of `OnChainView` class.* @@ -192,7 +192,7 @@ If the view takes multiple arguments, the view parameter is expected in an objec *Note for reference, the flattened arguments are the expected format when calling a contract entry point using the `methods` member, but we plan to move away from this format in favor the object one, which is also used for the storage when deploying a contract [see the difference between `methodsObject` and `methods` members of the `ContractAbstraction`](smartcontracts.md#choosing-between-the-methods-or-methodsobject-members-to-interact-with-smart-contracts).* -A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. +A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. The `executeView` method of the `OnChainView` class allows simulating the view. It takes a `viewCaller` as a parameter representing the contract address which is the caller of the view, and an optional `source` which is the public key hash of the account that initialized this view execution. @@ -215,10 +215,10 @@ Tezos.contract.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -233,11 +233,11 @@ Tezos.wallet.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` diff --git a/website/versioned_docs/version-19.0.0/originate.md b/website/versioned_docs/version-19.0.0/originate.md index 30a32b4795..ab3fd3393e 100644 --- a/website/versioned_docs/version-19.0.0/originate.md +++ b/website/versioned_docs/version-19.0.0/originate.md @@ -100,13 +100,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -130,13 +130,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -167,13 +167,13 @@ Tezos.contract init: `(Pair 0 (Pair 1 { "edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t" }))`, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -193,13 +193,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -240,13 +240,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -278,13 +278,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/quick_start.md b/website/versioned_docs/version-19.0.0/quick_start.md index 95a4e57850..d110457731 100644 --- a/website/versioned_docs/version-19.0.0/quick_start.md +++ b/website/versioned_docs/version-19.0.0/quick_start.md @@ -61,8 +61,8 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please Tezos.tz .getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY') - .then((balance) => println(`${balance.toNumber() / 1000000} ꜩ`)) - .catch((error) => println(JSON.stringify(error))); + .then((balance) => console.log(`${balance.toNumber() / 1000000} ꜩ`)) + .catch((error) => console.log(JSON.stringify(error))); ``` ### Using the inMemory Signer and Importing a key @@ -104,15 +104,15 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.contract .transfer({ to: address, amount: amount }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -122,16 +122,16 @@ Tezos.contract const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.wallet .transfer({ to: address, amount: amount }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -155,15 +155,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,15 +175,15 @@ Tezos.wallet .then((wallet) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return wallet.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/sapling.md b/website/versioned_docs/version-19.0.0/sapling.md index 69d41588bd..139751cb09 100644 --- a/website/versioned_docs/version-19.0.0/sapling.md +++ b/website/versioned_docs/version-19.0.0/sapling.md @@ -96,11 +96,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice balance in the shielded pool...`); + console.log(`Fetching Alice balance in the shielded pool...`); return txViewer.getBalance(); }) - .then((balance) => println(`Alice's balance is ${balance.toString()} mutez`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((balance) => console.log(`Alice's balance is ${balance.toString()} mutez`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to retrieve my transaction history? @@ -129,11 +129,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice's history of transactions in the shielded pool...`); + console.log(`Fetching Alice's history of transactions in the shielded pool...`); return txViewer.getIncomingAndOutgoingTransactions(); }) - .then((history) => println(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((history) => console.log(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to prepare a shielded transaction? @@ -174,12 +174,12 @@ const saplingToolkit = new SaplingToolkit( inMemorySpendingKey.getSaplingViewingKeyProvider() .then((inMemoryViewingKey) => { - println(`Fetching a payment address for Alice (zet)...`); + console.log(`Fetching a payment address for Alice (zet)...`); return inMemoryViewingKey.getAddress(); }) .then((paymentAddress) => { - println(`Alice's payment address is: ${paymentAddress.address}`); - println(`Preparing the shielded transaction...`); + console.log(`Alice's payment address is: ${paymentAddress.address}`); + console.log(`Preparing the shielded transaction...`); return saplingToolkit.prepareShieldedTransaction([{ to: paymentAddress.address, amount: 3, @@ -188,20 +188,20 @@ inMemorySpendingKey.getSaplingViewingKeyProvider() }]); }) .then((shieldedTx) => { - println(`The sapling transaction parameter is: ${shieldedTx}`); + console.log(`The sapling transaction parameter is: ${shieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); // The amount MUST be specified in the send method to transfer the 3 tez to the shielded pool return saplingContract.methodsObject.default([shieldedTx]).send({ amount: 3 }); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) - .catch((error) => println(`Error: ${(error)}`)); + .catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare a Sapling transaction? @@ -244,7 +244,7 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the sapling transaction...`); +console.log(`Preparing the sapling transaction...`); saplingToolkit.prepareSaplingTransaction([{ to: 'zet14CMN2T4x1f8sgXeAGWQwczSf6SJ8bm8nyP2Tg7HJn2VmtPtB2nE2q7MMgdmMEwpGQ', amount: 3, @@ -252,19 +252,19 @@ saplingToolkit.prepareSaplingTransaction([{ mutez: false // set to false by default }]) .then((saplingTx) => { - println(`The sapling transaction parameter is: ${saplingTx}`); + console.log(`The sapling transaction parameter is: ${saplingTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([saplingTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare an unshielded transaction? @@ -302,26 +302,26 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the unshielded transaction...`); +console.log(`Preparing the unshielded transaction...`); saplingToolkit.prepareUnshieldedTransaction({ to: 'tz1hDFKpVkT7jzYncaLma4vxh4Gg6JNqvdtB', amount: 20, mutez: true // set to false by default }) .then((unshieldedTx) => { - println(`The sapling transaction parameter is: ${unshieldedTx}`); + console.log(`The sapling transaction parameter is: ${unshieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([unshieldedTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` # SaplingTransactionViewer diff --git a/website/versioned_docs/version-19.0.0/sapling_in_memory_viewing_key.md b/website/versioned_docs/version-19.0.0/sapling_in_memory_viewing_key.md index 88ac26e839..da378c3158 100644 --- a/website/versioned_docs/version-19.0.0/sapling_in_memory_viewing_key.md +++ b/website/versioned_docs/version-19.0.0/sapling_in_memory_viewing_key.md @@ -7,7 +7,7 @@ The `InMemoryViewingKey` class can be instantiated from a viewing or spending ke ### Instantiation from a viewing key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( '000000000000000000977d725fc96387e8ec1e603e7ae60c6e63529fb84e36e126770e9db9899d7f2344259fd700dc80120d3c9ca65d698f6064043b048b079caa4f198aed96271740b1d6fd523d71b15cd0b3d75644afbe9abfedb6883e299165665ab692c14ca5c835c61a0e53de553a751c78fbc42d5e7eca807fd441206651c84bf88de803efba837583145a5f338b1a7af8a5f9bec4783054f9d063d365f2352f72cbced95e0a' @@ -16,22 +16,22 @@ const inMemoryViewingKey = new InMemoryViewingKey( ### Instantiation from an unencrypted spending key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; InMemoryViewingKey.fromSpendingKey( 'sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L', ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ### Instantiation from an encrypted spending key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; InMemoryViewingKey.fromSpendingKey( @@ -39,9 +39,9 @@ InMemoryViewingKey.fromSpendingKey( 'test' // password ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -49,7 +49,7 @@ InMemoryViewingKey.fromSpendingKey( The `InMemoryViewingKey` class has a method named `getAddress`, allowing to derive addresses (zet) from the viewing key. An index can be specified as a parameter, or the default value `0` will be used. -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( @@ -57,6 +57,6 @@ const inMemoryViewingKey = new InMemoryViewingKey( ); inMemoryViewingKey.getAddress() -.then((address) => println(`The address is ${JSON.stringify(address, null, 2)}`)) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.then((address) => console.log(`The address is ${JSON.stringify(address, null, 2)}`)) +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.0.0/signing.md b/website/versioned_docs/version-19.0.0/signing.md index 68b5bb3965..edfa044e48 100644 --- a/website/versioned_docs/version-19.0.0/signing.md +++ b/website/versioned_docs/version-19.0.0/signing.md @@ -167,8 +167,8 @@ const packed = packDataBytes( ); Tezos.signer .sign(packed.bytes) - .then((signed) => println(JSON.stringify(signed, null, 2))) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((signed) => console.log(JSON.stringify(signed, null, 2))) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` First, you provide the Michelson code to be signed as a string along with its type. diff --git a/website/versioned_docs/version-19.0.0/smartcontracts.md b/website/versioned_docs/version-19.0.0/smartcontracts.md index f4228884de..779e83b550 100644 --- a/website/versioned_docs/version-19.0.0/smartcontracts.md +++ b/website/versioned_docs/version-19.0.0/smartcontracts.md @@ -81,7 +81,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -96,7 +96,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -129,7 +129,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -143,7 +143,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -174,15 +174,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(3).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -195,15 +195,15 @@ Tezos.wallet .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(3).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -235,8 +235,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methodsObject.set_child_record().getSignature(), null, @@ -244,7 +244,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an object giving indication on how to structure the parameter when calling the`set_child_record` method. Here is an example where the `set_child_record` method is called by passing the parameter in an object format: @@ -270,11 +270,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -287,8 +287,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methods.set_child_record().getSignature(), null, @@ -296,7 +296,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an array which contains the different possible signatures. Different signatures are possible as the `set_child_record` method contains some optional arguments. In the following example the `set_child_record` method is called by passing the arguments in the flattened way: @@ -323,11 +323,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.0.0/storage_annotations.md b/website/versioned_docs/version-19.0.0/storage_annotations.md index 998103c9ac..f889263eba 100644 --- a/website/versioned_docs/version-19.0.0/storage_annotations.md +++ b/website/versioned_docs/version-19.0.0/storage_annotations.md @@ -50,13 +50,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -77,13 +77,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -125,13 +125,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -152,13 +152,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,13 +202,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -230,13 +230,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.0.0/taquito_utils.md b/website/versioned_docs/version-19.0.0/taquito_utils.md index 02ebed525a..236fb758b9 100644 --- a/website/versioned_docs/version-19.0.0/taquito_utils.md +++ b/website/versioned_docs/version-19.0.0/taquito_utils.md @@ -43,12 +43,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -63,12 +63,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -83,7 +83,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -98,12 +98,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -116,12 +116,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -134,12 +134,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -152,12 +152,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -169,12 +169,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -186,12 +186,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -208,5 +208,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-19.0.0/tzip12.md b/website/versioned_docs/version-19.0.0/tzip12.md index e385f6ca6d..b59f951c26 100644 --- a/website/versioned_docs/version-19.0.0/tzip12.md +++ b/website/versioned_docs/version-19.0.0/tzip12.md @@ -9,7 +9,7 @@ The `@taquito/tzip12` package allows retrieving metadata associated with tokens ## How to use the tzip12 package -The package can act as an extension to the well-known Taquito contract abstraction. +The package can act as an extension to the well-known Taquito contract abstraction. 1. **We first need to create an instance of `Tzip12Module` and add it as an extension to our `TezosToolkit`** @@ -32,8 +32,8 @@ Tezos.addExtension(new Tzip12Module()); const contract = await Tezos.contract.at("contractAddress", tzip12) ``` -**The compose function** -The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. +**The compose function** +The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. Thus, all methods of the `ContractAbstraction`, `Tzip12ContractAbstraction` and `Tzip16ContractAbstraction` classes will be available on the contract abstraction instance. ```js @@ -50,7 +50,7 @@ await contract.tzip16().getMetadata(); // Tzip16ContractAbstraction method There are two scenarios to obtain the metadata of a token: 1. They can be obtained from executing an off-chain view named `token_metadata` present in the contract metadata -2. or from a big map named `token_metadata` in the contract storage. +2. or from a big map named `token_metadata` in the contract storage. The `getTokenMetadata` method of the `Tzip12ContractAbstraction` class will find the token metadata with precedence for the off-chain view, if there is one, as specified in the standard. @@ -97,13 +97,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, compose(tzip12, tzip16)) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -121,14 +121,14 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, compose(tzip12, tzip16)) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -154,19 +154,19 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip16) .then(contract => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -183,20 +183,20 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip16) .then(wallet => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytes2Char((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytes2Char((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytes2Char((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytes2Char((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -211,7 +211,7 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ @@ -229,15 +229,15 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ ``` prim: 'big_map', args: [ - { prim: 'nat' }, + { prim: 'nat' }, { prim: 'pair', args: [ - { prim: 'nat' , annots: ['%token_id']}, + { prim: 'nat' , annots: ['%token_id']}, { prim: "map", args: [{ prim: 'string' }, { prim: 'bytes' }], annots: ['%token_info'] }] }], annots: ['%token_metadata'] ``` - + Otherwise, the token metadata won't be found by the `getTokenMetadata` method, and a `TokenMetadataNotFound` error will be thrown. ::: @@ -262,13 +262,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip12) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -285,17 +285,17 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip12) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` -#### For more information on the contracts used in the examples: +#### For more information on the contracts used in the examples: integration-tests/tzip12-token-metadata.spec.ts \ No newline at end of file diff --git a/website/versioned_docs/version-19.0.0/validators.md b/website/versioned_docs/version-19.0.0/validators.md index dc1c5a0f36..d26f673290 100644 --- a/website/versioned_docs/version-19.0.0/validators.md +++ b/website/versioned_docs/version-19.0.0/validators.md @@ -26,12 +26,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -46,12 +46,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -66,7 +66,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -81,12 +81,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -99,12 +99,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -117,12 +117,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -135,12 +135,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -152,12 +152,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -169,12 +169,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -191,5 +191,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-19.0.0/version.md b/website/versioned_docs/version-19.0.0/version.md index 62d64f0dd7..2d9ab5d3d0 100644 --- a/website/versioned_docs/version-19.0.0/version.md +++ b/website/versioned_docs/version-19.0.0/version.md @@ -5,7 +5,7 @@ author: Jev Bjorsell # Taquito v19.0.0 :::info -You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. +You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. - Oxford - v18 - Oxford2 - v19 @@ -36,7 +36,7 @@ Oxford2 changes: # Taquito 17.5.0 **Important Note:** -In this version, we replaced instances of `Axios` in favour of `Fetch`. +In this version, we replaced instances of `Axios` in favour of `Fetch`. We are not expecting any breaking changes, but if there are any issues that you see regarding this, please reach out to the Taquito team. @@ -50,7 +50,7 @@ We are not expecting any breaking changes, but if there are any issues that you ### Documentation - Updated RPC nodes on the website [PR#2732](https://github.com/ecadlabs/taquito/pull/2732 - Updated Michelson encoder documentation to reference `generateSchema` instead of the outdated `extractSchema` #2630 -- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 +- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 ### Internals - Removed archive node, and references to it in Taquito [PR#2743](https://github.com/ecadlabs/taquito/pull/2743) @@ -70,7 +70,7 @@ With this change we hope for a more stable HTTP handler in Taquito while reducin # Taquito v17.4.0 -**Potential Breaking Changes** : +**Potential Breaking Changes** : We have updated various dependencies to the latest version in this release. Please update and test our packages for compatibility. We encourage all users to get in touch with the Taquito team if you encounter any unexpected behaviours and/or side effects. ## Summary @@ -2260,7 +2260,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta, the returned value was:* ```typescript= @@ -2310,7 +2310,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta the returned value was:* ```json= diff --git a/website/versioned_docs/version-19.0.0/wallet_API.md b/website/versioned_docs/version-19.0.0/wallet_API.md index 90a5ab2fc4..36e5d01285 100644 --- a/website/versioned_docs/version-19.0.0/wallet_API.md +++ b/website/versioned_docs/version-19.0.0/wallet_API.md @@ -122,7 +122,7 @@ Make sure you have the Beacon browser extension installed (the extension offers wallet .requestPermissions() .then((_) => wallet.getPKH()) - .then((address) => println(`Your address: ${address}`)); + .then((address) => console.log(`Your address: ${address}`)); Tezos.setWalletProvider(wallet); ``` @@ -221,7 +221,7 @@ TempleWallet.isAvailable() return myWallet.getPKH(); }) .then((pkh) => { - println(`Your address: ${pkh}`); + console.log(`Your address: ${pkh}`); }); }) .catch((err) => console.log(err)); @@ -238,18 +238,18 @@ Tezos.wallet .transfer({ to: 'tz1NhNv9g7rtcjyNsH8Zqu79giY5aTqDDrzB', amount: 0.2 }) .send() .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); op.confirmation() .then((result) => { console.log(result); if (result.completed) { - println('Transaction correctly processed!'); + console.log('Transaction correctly processed!'); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) - .catch((err) => println(err)); + .catch((err) => console.log(err)); }); ``` @@ -262,11 +262,11 @@ Tezos.wallet .transfer({ to: 'KT1TBxaaeikEUcVN2qdQY7n9Q21ykcX1NLzY', amount: 0.2 }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash); }) - .then(() => println(`Operation injected!`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then(() => console.log(`Operation injected!`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example. @@ -296,17 +296,17 @@ Tezos.wallet .at('KT1SHiNUNmqBFGNysX9pmh1DC2tQ5pGmRagC') .then((contract) => contract.methodsObject.areYouThere(true).send()) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); @@ -321,17 +321,17 @@ Tezos.wallet contract.methodsObject.addName({0: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', 1: 'Alice'}).send() ) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); diff --git a/website/versioned_docs/version-19.1.0/complex_parameters.md b/website/versioned_docs/version-19.1.0/complex_parameters.md index 26031f5ae1..e0ac50e707 100644 --- a/website/versioned_docs/version-19.1.0/complex_parameters.md +++ b/website/versioned_docs/version-19.1.0/complex_parameters.md @@ -93,11 +93,11 @@ importKey(Tezos, secretKey) validators : validatorsMap }}) }).then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }).then((contract) => { - println(`Origination completed.`); -}).catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Origination completed.`); +}).catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Calling the function of a contract having a complex object as a parameter @@ -145,8 +145,8 @@ importKey(Tezos, secretKey) owner: 'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', parent: 'FFFF', ttl: { Some: '10' }}).toTransferParams(); - println(JSON.stringify(inspect, null, 2)) -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(JSON.stringify(inspect, null, 2)) +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when all the arguments are defined @@ -172,11 +172,11 @@ importKey(Tezos, secretKey) ttl: { Some: '10' } }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when optional arguments are null @@ -203,9 +203,9 @@ importKey(Tezos, secretKey) ttl: null }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/contract-test-collection.md b/website/versioned_docs/version-19.1.0/contract-test-collection.md index 25ea85fc76..2043138481 100644 --- a/website/versioned_docs/version-19.1.0/contract-test-collection.md +++ b/website/versioned_docs/version-19.1.0/contract-test-collection.md @@ -494,7 +494,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -506,10 +506,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/drain_account.md b/website/versioned_docs/version-19.1.0/drain_account.md index c57e3be73c..5086d56569 100644 --- a/website/versioned_docs/version-19.1.0/drain_account.md +++ b/website/versioned_docs/version-19.1.0/drain_account.md @@ -29,7 +29,7 @@ Tezos.signer .publicKeyHash() .then((address) => { Tezos.tz.getBalance(address).then((balance) => { - println( + console.log( `The account we want to drain is ${address}.\nIts initial balance is ${ balance.toNumber() / 1000000 } ꜩ.` @@ -44,7 +44,7 @@ Tezos.signer const maxAmount = balance.minus( estimate.suggestedFeeMutez + getRevealFee(address) ).toNumber(); - println( + console.log( `The estimated fees related to the emptying operation are ${ estimate.suggestedFeeMutez } mutez.\nThe fees related to the reveal operation are ${ @@ -63,19 +63,19 @@ Tezos.signer }); }) .then((op) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Draining originated accounts (KT1) @@ -118,24 +118,24 @@ Tezos.signer init: { string: address }, }) .then((contractOrigination) => { - println( + console.log( `Waiting for confirmation of origination for ${contractOrigination.contractAddress}...` ); return contractOrigination.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); Tezos.tz.getBalance(contract.address).then((balance) => { - println(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); const estimateOp = contract.methodsObject .do(transferImplicit('tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', balance.toNumber())) .toTransferParams({}); - println(`Waiting for the estimation of the smart contract call...`); + console.log(`Waiting for the estimation of the smart contract call...`); Tezos.estimate .transfer(estimateOp) .then((estimate) => { //Will be deducted from manager's address - println( + console.log( `The estimated fees related to the emptying operation are ${estimate.suggestedFeeMutez} mutez.` ); return contract.methodsObject @@ -143,18 +143,18 @@ Tezos.signer .send({ amount: 0 }); }) .then((operation) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return operation.confirmation(1).then(() => operation.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(contract.address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/estimate.md b/website/versioned_docs/version-19.1.0/estimate.md index d8e8f61971..509bf3ee60 100644 --- a/website/versioned_docs/version-19.1.0/estimate.md +++ b/website/versioned_docs/version-19.1.0/estimate.md @@ -48,11 +48,11 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -73,11 +73,11 @@ Tezos.estimate const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -116,11 +116,11 @@ Tezos.contract return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -145,11 +145,11 @@ Tezos.wallet return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -180,7 +180,7 @@ values={[ // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -191,7 +191,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -199,7 +199,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -210,7 +210,7 @@ Tezos.estimate // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -221,7 +221,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -229,7 +229,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/inmemory_signer.md b/website/versioned_docs/version-19.1.0/inmemory_signer.md index 503b949641..1beaf8d42a 100644 --- a/website/versioned_docs/version-19.1.0/inmemory_signer.md +++ b/website/versioned_docs/version-19.1.0/inmemory_signer.md @@ -50,9 +50,9 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -67,9 +67,9 @@ InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNF return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` When required, Taquito offers the `b58cencode` function allowing to encode the secret in base58. The parameters of the function are the secret, that can be a `hex string` or an `Uint8Array`, and the desired prefix. Here is an example with a `hex string`: @@ -84,7 +84,7 @@ const b58encodedSecret = b58cencode( '7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d', prefix[Prefix.P2SK] ); -println( +console.log( `The secret is encoded in base58 and the prefix "p2sk" is added to it: ${b58encodedSecret}.` ); //We take the encoded secret to configure the signer. @@ -95,9 +95,9 @@ InMemorySigner.fromSecretKey(b58encodedSecret) return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ### Loading an encrypted private key with a passphrase @@ -131,9 +131,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -151,9 +151,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -171,9 +171,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,9 +202,9 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` With a non-default derivation path non-hardened with a tz2 address @@ -225,9 +225,9 @@ With a non-default derivation path non-hardened with a tz2 address Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` ### Using a testnet faucet key diff --git a/website/versioned_docs/version-19.1.0/lambda_view.md b/website/versioned_docs/version-19.1.0/lambda_view.md index d9d797fbcd..0f3277dd4a 100644 --- a/website/versioned_docs/version-19.1.0/lambda_view.md +++ b/website/versioned_docs/version-19.1.0/lambda_view.md @@ -57,9 +57,9 @@ Tezos.contract return contract.views.getTotalSupply(UnitValue).read(); }) .then((response) => { - println(response); + console.log(response); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` **More examples:** @@ -85,9 +85,9 @@ Tezos.contract .read(); }) .then((response) => { - println(JSON.stringify(response, null, 2)); + console.log(JSON.stringify(response, null, 2)); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/ledger_signer.md b/website/versioned_docs/version-19.1.0/ledger_signer.md index 9a5dff3274..1e91f88b90 100644 --- a/website/versioned_docs/version-19.1.0/ledger_signer.md +++ b/website/versioned_docs/version-19.1.0/ledger_signer.md @@ -226,13 +226,13 @@ function getAddressInfo(transport, index) { return Tezos.signer.publicKeyHash().then((pkh) => { Tezos.tz.getBalance(pkh).then((balance) => { Tezos.rpc.getManagerKey(pkh).then((getPublicKey) => { - println( + console.log( `The public key hash related to the derivation path having the index ${index} is ${pkh}.` ); if (getPublicKey) { - println(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); + console.log(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); } else { - println('This account is not revealed.\n'); + console.log('This account is not revealed.\n'); } }); }); diff --git a/website/versioned_docs/version-19.1.0/maps_bigmaps.md b/website/versioned_docs/version-19.1.0/maps_bigmaps.md index 34a7cb0ee4..4dc71ebabe 100644 --- a/website/versioned_docs/version-19.1.0/maps_bigmaps.md +++ b/website/versioned_docs/version-19.1.0/maps_bigmaps.md @@ -55,13 +55,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -85,13 +85,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -120,13 +120,13 @@ Tezos.contract }), }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -146,13 +146,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -181,7 +181,7 @@ Tezos.contract .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -191,25 +191,25 @@ Tezos.contract return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -224,7 +224,7 @@ Tezos.wallet .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -234,25 +234,25 @@ Tezos.wallet return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -326,13 +326,13 @@ Tezos.contract }, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -383,13 +383,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -422,10 +422,10 @@ Tezos.contract 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -442,10 +442,10 @@ Tezos.wallet 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -519,13 +519,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -571,13 +571,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -617,9 +617,9 @@ Tezos.contract 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -643,9 +643,9 @@ Tezos.wallet 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -717,13 +717,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -774,13 +774,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -810,7 +810,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -822,10 +822,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -843,7 +843,7 @@ Tezos.wallet 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -855,10 +855,10 @@ Tezos.wallet }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -908,11 +908,11 @@ values={[ Tezos.contract .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -922,10 +922,10 @@ Tezos.contract }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` @@ -938,11 +938,11 @@ Tezos.contract Tezos.wallet .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -952,10 +952,10 @@ Tezos.wallet }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` diff --git a/website/versioned_docs/version-19.1.0/metadata-tzip16.md b/website/versioned_docs/version-19.1.0/metadata-tzip16.md index 1e31f2cced..2268343d3e 100644 --- a/website/versioned_docs/version-19.1.0/metadata-tzip16.md +++ b/website/versioned_docs/version-19.1.0/metadata-tzip16.md @@ -104,13 +104,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -128,13 +128,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -162,13 +162,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -185,13 +185,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -218,13 +218,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -242,13 +242,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -276,13 +276,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -300,13 +300,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -366,18 +366,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -395,18 +395,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -437,19 +437,19 @@ Tezos.contract .at(contractAddress, tzip16) .then((contract) => { return contract.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -468,19 +468,19 @@ Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { return wallet.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -526,10 +526,10 @@ Tezos.contract ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -563,10 +563,10 @@ Tezos.wallet ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.1.0/michelson_encoder.md b/website/versioned_docs/version-19.1.0/michelson_encoder.md index bf64c5d3c3..73ae5050dd 100644 --- a/website/versioned_docs/version-19.1.0/michelson_encoder.md +++ b/website/versioned_docs/version-19.1.0/michelson_encoder.md @@ -81,7 +81,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- When there is no annotation, the keys of the object are indexes starting from 0. @@ -101,7 +101,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- Here is another example using a complex storage: @@ -242,7 +242,7 @@ const storageType = }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` ### The Typecheck method @@ -269,7 +269,7 @@ const typecheck = storageSchema.Typecheck({ threshold: 5, keys: ['edpkuLxx9PQD8fZ45eUzrK3yhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(typecheck); +console.log(typecheck); ``` ### The Encode method @@ -297,7 +297,7 @@ const michelsonData = storageSchema.Encode({ threshold: 5, keys: ['edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g', 'edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### The Execute method @@ -345,7 +345,7 @@ const dataMichelson = { ] } const data = storageSchema.Execute(dataMichelson) -println(JSON.stringify(data, null, 2)); +console.log(JSON.stringify(data, null, 2)); ``` The `Execute` method takes an optional parameter of type `Semantic`. It allows overriding the default representation returned by the Michelson Encoder for specific types. @@ -359,12 +359,12 @@ const schema = new Schema({ prim: 'big_map', args: [{ prim: 'address' }, { prim: const dataMichelson = { int: 123456 } const data = schema.Execute(dataMichelson) -println(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); +console.log(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); // instead of returning the big map id, we can override it // we return an object in this case const dataCustom = schema.Execute(dataMichelson, { big_map: (val) => Object({ id: val.int })}) -println(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); ``` --- Here is an example for the `ticket` type: @@ -374,10 +374,10 @@ const schema = new Schema({"prim":"ticket","args":[{"prim":"string"}]}); const dataMichelson = {"prim":"Pair","args":[{"string":"KT1PVuv7af4VkPsZVZ8oZz9GSSdGnGBCbFWw"},{"string":"test"},{"int":"2"}]} const data = schema.Execute(dataMichelson) -println(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); +console.log(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); const dataCustom = schema.Execute(dataMichelson, { ticket: (val) => val.args[1].string}) -println(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); ``` ### How the Schema class is used inside Taquito @@ -404,7 +404,7 @@ const michelsonData = parameterSchema.Encode( 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', '12' ) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` --- Here is an example of `encodeObject`: @@ -414,7 +414,7 @@ const michelsonData = parameterSchema.EncodeObject({ spender: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', value: '12' }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### How the ParameterSchema class is used inside Taquito @@ -442,7 +442,7 @@ const storageSchema = new Schema({ ] }); const annotatedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(annotatedSchema, null, 2)); +console.log(JSON.stringify(annotatedSchema, null, 2)); ``` --- We can also have a similar definition without the annotations: @@ -461,7 +461,7 @@ const storageSchema = new Schema({ ] }); const noAnnotationsSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(noAnnotationsSchema, null, 2)); +console.log(JSON.stringify(noAnnotationsSchema, null, 2)); ``` In Taquito, we will flatten these nested `pair`s to make it easier to use them in typescript dApps. Please note how the result of `generateSchema` is different in the annotated vs non-annotated cases: @@ -510,7 +510,7 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` ### Unions @@ -531,5 +531,5 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` diff --git a/website/versioned_docs/version-19.1.0/on_chain_views.md b/website/versioned_docs/version-19.1.0/on_chain_views.md index 09aeb69119..8652d2dfe0 100644 --- a/website/versioned_docs/version-19.1.0/on_chain_views.md +++ b/website/versioned_docs/version-19.1.0/on_chain_views.md @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; ## On-chain views description -- The `On-chain views` feature was introduced in the Hangzhou protocol. +- The `On-chain views` feature was introduced in the Hangzhou protocol. - Views are meant to be called by a contract. It can be the contract where the view is defined or another contract. - Views help to avoid the need to use callbacks in contracts. - Views take arguments as input and may depend on the contract's storage declaring the view. @@ -89,8 +89,8 @@ view "fib" nat nat } } } -``` - +``` + ## Calling an on-chain view Views are meant to be called by a contract using the Michelson Instruction `View` followed by the view name and its result type. @@ -110,7 +110,7 @@ code { **Example of calling a contract entrypoint that makes a call to a view using Taquito:** -The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). +The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). The example first shows the initial storage of the contract `contractCallFib`. It calls the default entry point of `contractCallFib` with the value of its storage + 1 and the address of the contract `contractTopLevelViews`. A call is made to the `fib` view of `contractTopLevelViews` with the `storage + 1` as argument. The view returns the value of the Fibonacci sequence at the position represented by `storage + 1`. The storage of `contractCallFib` is updated to the result of the view. @@ -130,23 +130,23 @@ Tezos.contract.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -159,32 +159,32 @@ Tezos.wallet.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` ## How to simulate a view execution using Taquito -Taquito offers the ability to simulate the result of on-chain views. +Taquito offers the ability to simulate the result of on-chain views. -The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. +The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. *`contractViews` is an object where the key is the view name, and the value is a function that takes the view arguments as a parameter and returns an instance of `OnChainView` class.* @@ -192,7 +192,7 @@ If the view takes multiple arguments, the view parameter is expected in an objec *Note for reference, the flattened arguments are the expected format when calling a contract entry point using the `methods` member, but we plan to move away from this format in favor the object one, which is also used for the storage when deploying a contract [see the difference between `methodsObject` and `methods` members of the `ContractAbstraction`](smartcontracts.md#choosing-between-the-methods-or-methodsobject-members-to-interact-with-smart-contracts).* -A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. +A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. The `executeView` method of the `OnChainView` class allows simulating the view. It takes a `viewCaller` as a parameter representing the contract address which is the caller of the view, and an optional `source` which is the public key hash of the account that initialized this view execution. @@ -215,10 +215,10 @@ Tezos.contract.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -233,11 +233,11 @@ Tezos.wallet.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` diff --git a/website/versioned_docs/version-19.1.0/originate.md b/website/versioned_docs/version-19.1.0/originate.md index 30a32b4795..ab3fd3393e 100644 --- a/website/versioned_docs/version-19.1.0/originate.md +++ b/website/versioned_docs/version-19.1.0/originate.md @@ -100,13 +100,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -130,13 +130,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -167,13 +167,13 @@ Tezos.contract init: `(Pair 0 (Pair 1 { "edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t" }))`, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -193,13 +193,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -240,13 +240,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -278,13 +278,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/quick_start.md b/website/versioned_docs/version-19.1.0/quick_start.md index 95a4e57850..d110457731 100644 --- a/website/versioned_docs/version-19.1.0/quick_start.md +++ b/website/versioned_docs/version-19.1.0/quick_start.md @@ -61,8 +61,8 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please Tezos.tz .getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY') - .then((balance) => println(`${balance.toNumber() / 1000000} ꜩ`)) - .catch((error) => println(JSON.stringify(error))); + .then((balance) => console.log(`${balance.toNumber() / 1000000} ꜩ`)) + .catch((error) => console.log(JSON.stringify(error))); ``` ### Using the inMemory Signer and Importing a key @@ -104,15 +104,15 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.contract .transfer({ to: address, amount: amount }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -122,16 +122,16 @@ Tezos.contract const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.wallet .transfer({ to: address, amount: amount }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -155,15 +155,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,15 +175,15 @@ Tezos.wallet .then((wallet) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return wallet.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/sapling.md b/website/versioned_docs/version-19.1.0/sapling.md index 69d41588bd..139751cb09 100644 --- a/website/versioned_docs/version-19.1.0/sapling.md +++ b/website/versioned_docs/version-19.1.0/sapling.md @@ -96,11 +96,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice balance in the shielded pool...`); + console.log(`Fetching Alice balance in the shielded pool...`); return txViewer.getBalance(); }) - .then((balance) => println(`Alice's balance is ${balance.toString()} mutez`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((balance) => console.log(`Alice's balance is ${balance.toString()} mutez`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to retrieve my transaction history? @@ -129,11 +129,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice's history of transactions in the shielded pool...`); + console.log(`Fetching Alice's history of transactions in the shielded pool...`); return txViewer.getIncomingAndOutgoingTransactions(); }) - .then((history) => println(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((history) => console.log(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to prepare a shielded transaction? @@ -174,12 +174,12 @@ const saplingToolkit = new SaplingToolkit( inMemorySpendingKey.getSaplingViewingKeyProvider() .then((inMemoryViewingKey) => { - println(`Fetching a payment address for Alice (zet)...`); + console.log(`Fetching a payment address for Alice (zet)...`); return inMemoryViewingKey.getAddress(); }) .then((paymentAddress) => { - println(`Alice's payment address is: ${paymentAddress.address}`); - println(`Preparing the shielded transaction...`); + console.log(`Alice's payment address is: ${paymentAddress.address}`); + console.log(`Preparing the shielded transaction...`); return saplingToolkit.prepareShieldedTransaction([{ to: paymentAddress.address, amount: 3, @@ -188,20 +188,20 @@ inMemorySpendingKey.getSaplingViewingKeyProvider() }]); }) .then((shieldedTx) => { - println(`The sapling transaction parameter is: ${shieldedTx}`); + console.log(`The sapling transaction parameter is: ${shieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); // The amount MUST be specified in the send method to transfer the 3 tez to the shielded pool return saplingContract.methodsObject.default([shieldedTx]).send({ amount: 3 }); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) - .catch((error) => println(`Error: ${(error)}`)); + .catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare a Sapling transaction? @@ -244,7 +244,7 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the sapling transaction...`); +console.log(`Preparing the sapling transaction...`); saplingToolkit.prepareSaplingTransaction([{ to: 'zet14CMN2T4x1f8sgXeAGWQwczSf6SJ8bm8nyP2Tg7HJn2VmtPtB2nE2q7MMgdmMEwpGQ', amount: 3, @@ -252,19 +252,19 @@ saplingToolkit.prepareSaplingTransaction([{ mutez: false // set to false by default }]) .then((saplingTx) => { - println(`The sapling transaction parameter is: ${saplingTx}`); + console.log(`The sapling transaction parameter is: ${saplingTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([saplingTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare an unshielded transaction? @@ -302,26 +302,26 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the unshielded transaction...`); +console.log(`Preparing the unshielded transaction...`); saplingToolkit.prepareUnshieldedTransaction({ to: 'tz1hDFKpVkT7jzYncaLma4vxh4Gg6JNqvdtB', amount: 20, mutez: true // set to false by default }) .then((unshieldedTx) => { - println(`The sapling transaction parameter is: ${unshieldedTx}`); + console.log(`The sapling transaction parameter is: ${unshieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([unshieldedTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` # SaplingTransactionViewer diff --git a/website/versioned_docs/version-19.1.0/sapling_in_memory_viewing_key.md b/website/versioned_docs/version-19.1.0/sapling_in_memory_viewing_key.md index b7772ad39b..da378c3158 100644 --- a/website/versioned_docs/version-19.1.0/sapling_in_memory_viewing_key.md +++ b/website/versioned_docs/version-19.1.0/sapling_in_memory_viewing_key.md @@ -7,7 +7,7 @@ The `InMemoryViewingKey` class can be instantiated from a viewing or spending ke ### Instantiation from a viewing key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( '000000000000000000977d725fc96387e8ec1e603e7ae60c6e63529fb84e36e126770e9db9899d7f2344259fd700dc80120d3c9ca65d698f6064043b048b079caa4f198aed96271740b1d6fd523d71b15cd0b3d75644afbe9abfedb6883e299165665ab692c14ca5c835c61a0e53de553a751c78fbc42d5e7eca807fd441206651c84bf88de803efba837583145a5f338b1a7af8a5f9bec4783054f9d063d365f2352f72cbced95e0a' @@ -23,9 +23,9 @@ InMemoryViewingKey.fromSpendingKey( 'sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L', ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -39,9 +39,9 @@ InMemoryViewingKey.fromSpendingKey( 'test' // password ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -57,6 +57,6 @@ const inMemoryViewingKey = new InMemoryViewingKey( ); inMemoryViewingKey.getAddress() -.then((address) => println(`The address is ${JSON.stringify(address, null, 2)}`)) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.then((address) => console.log(`The address is ${JSON.stringify(address, null, 2)}`)) +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.1.0/signing.md b/website/versioned_docs/version-19.1.0/signing.md index 54903020f2..ed416e7443 100644 --- a/website/versioned_docs/version-19.1.0/signing.md +++ b/website/versioned_docs/version-19.1.0/signing.md @@ -167,8 +167,8 @@ const packed = packDataBytes( ); Tezos.signer .sign(packed.bytes) - .then((signed) => println(JSON.stringify(signed, null, 2))) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((signed) => console.log(JSON.stringify(signed, null, 2))) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` First, you provide the Michelson code to be signed as a string along with its type. diff --git a/website/versioned_docs/version-19.1.0/smartcontracts.md b/website/versioned_docs/version-19.1.0/smartcontracts.md index f4228884de..779e83b550 100644 --- a/website/versioned_docs/version-19.1.0/smartcontracts.md +++ b/website/versioned_docs/version-19.1.0/smartcontracts.md @@ -81,7 +81,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -96,7 +96,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -129,7 +129,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -143,7 +143,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -174,15 +174,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(3).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -195,15 +195,15 @@ Tezos.wallet .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(3).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -235,8 +235,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methodsObject.set_child_record().getSignature(), null, @@ -244,7 +244,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an object giving indication on how to structure the parameter when calling the`set_child_record` method. Here is an example where the `set_child_record` method is called by passing the parameter in an object format: @@ -270,11 +270,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -287,8 +287,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methods.set_child_record().getSignature(), null, @@ -296,7 +296,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an array which contains the different possible signatures. Different signatures are possible as the `set_child_record` method contains some optional arguments. In the following example the `set_child_record` method is called by passing the arguments in the flattened way: @@ -323,11 +323,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.1.0/storage_annotations.md b/website/versioned_docs/version-19.1.0/storage_annotations.md index 998103c9ac..f889263eba 100644 --- a/website/versioned_docs/version-19.1.0/storage_annotations.md +++ b/website/versioned_docs/version-19.1.0/storage_annotations.md @@ -50,13 +50,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -77,13 +77,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -125,13 +125,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -152,13 +152,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,13 +202,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -230,13 +230,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.1.0/taquito_utils.md b/website/versioned_docs/version-19.1.0/taquito_utils.md index 02ebed525a..236fb758b9 100644 --- a/website/versioned_docs/version-19.1.0/taquito_utils.md +++ b/website/versioned_docs/version-19.1.0/taquito_utils.md @@ -43,12 +43,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -63,12 +63,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -83,7 +83,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -98,12 +98,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -116,12 +116,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -134,12 +134,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -152,12 +152,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -169,12 +169,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -186,12 +186,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -208,5 +208,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-19.1.0/tzip12.md b/website/versioned_docs/version-19.1.0/tzip12.md index 4d130dddcb..bcbc463059 100644 --- a/website/versioned_docs/version-19.1.0/tzip12.md +++ b/website/versioned_docs/version-19.1.0/tzip12.md @@ -9,7 +9,7 @@ The `@taquito/tzip12` package allows retrieving metadata associated with tokens ## How to use the tzip12 package -The package can act as an extension to the well-known Taquito contract abstraction. +The package can act as an extension to the well-known Taquito contract abstraction. 1. **We first need to create an instance of `Tzip12Module` and add it as an extension to our `TezosToolkit`** @@ -32,8 +32,8 @@ Tezos.addExtension(new Tzip12Module()); const contract = await Tezos.contract.at("contractAddress", tzip12) ``` -**The compose function** -The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. +**The compose function** +The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. Thus, all methods of the `ContractAbstraction`, `Tzip12ContractAbstraction` and `Tzip16ContractAbstraction` classes will be available on the contract abstraction instance. ```js @@ -50,7 +50,7 @@ await contract.tzip16().getMetadata(); // Tzip16ContractAbstraction method There are two scenarios to obtain the metadata of a token: 1. They can be obtained from executing an off-chain view named `token_metadata` present in the contract metadata -2. or from a big map named `token_metadata` in the contract storage. +2. or from a big map named `token_metadata` in the contract storage. The `getTokenMetadata` method of the `Tzip12ContractAbstraction` class will find the token metadata with precedence for the off-chain view, if there is one, as specified in the standard. @@ -97,13 +97,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, compose(tzip12, tzip16)) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -121,14 +121,14 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, compose(tzip12, tzip16)) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -154,19 +154,19 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip16) .then(contract => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -183,20 +183,20 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip16) .then(wallet => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -211,7 +211,7 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ @@ -229,15 +229,15 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ ``` prim: 'big_map', args: [ - { prim: 'nat' }, + { prim: 'nat' }, { prim: 'pair', args: [ - { prim: 'nat' , annots: ['%token_id']}, + { prim: 'nat' , annots: ['%token_id']}, { prim: "map", args: [{ prim: 'string' }, { prim: 'bytes' }], annots: ['%token_info'] }] }], annots: ['%token_metadata'] ``` - + Otherwise, the token metadata won't be found by the `getTokenMetadata` method, and a `TokenMetadataNotFound` error will be thrown. ::: @@ -262,13 +262,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip12) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -285,17 +285,17 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip12) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` -#### For more information on the contracts used in the examples: +#### For more information on the contracts used in the examples: integration-tests/tzip12-token-metadata.spec.ts \ No newline at end of file diff --git a/website/versioned_docs/version-19.1.0/validators.md b/website/versioned_docs/version-19.1.0/validators.md index dc1c5a0f36..d26f673290 100644 --- a/website/versioned_docs/version-19.1.0/validators.md +++ b/website/versioned_docs/version-19.1.0/validators.md @@ -26,12 +26,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -46,12 +46,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -66,7 +66,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -81,12 +81,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -99,12 +99,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -117,12 +117,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -135,12 +135,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -152,12 +152,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -169,12 +169,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -191,5 +191,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-19.1.0/version.md b/website/versioned_docs/version-19.1.0/version.md index 6d5ae96ee9..9f36020e2c 100644 --- a/website/versioned_docs/version-19.1.0/version.md +++ b/website/versioned_docs/version-19.1.0/version.md @@ -5,10 +5,10 @@ author: Jev Bjorsell # Taquito v19.1.0 -**Potential Breaking Changes**: +**Potential Breaking Changes**: - `@taquito/rpc` - replaced `OperationBalanceUpdatesItem` in favour of `OperationMetadataBalanceUpdates` #2817 #2827 - `@taquito/taquito` - Several optimizations made to fees and estimation in Taquito #2532 - - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details + - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details - Added a small buffer to `gasLimit` (varying depending on operations) - Reduced `suggestedFeeMutez` buffer from 100 to 20 per op - Refined `gasLimit` and `storageLimit` according to `simulate_operation` results from the octez-client @@ -17,12 +17,12 @@ author: Jev Bjorsell ### New Features - `@taquito/taquito` - Added smart rollup execute outbox message operation #2321 (please note that this feature is not fully tested due to some parts requiring the use of `octez-client`) -`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 +`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 ### Improvement - `@taquito/michelson-encoder` - replaced references of `[['unit']]` to be `UnitValue` instead [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) -- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 -- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 +- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 +- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 ### Documentation - Added michel-codec to Typedoc documentation #2806 @@ -30,7 +30,7 @@ author: Jev Bjorsell - Removed `giganode` references from Taquito documentation [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) ### Deprecation -- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 +- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 - `@taquito/taquito` - Deprecated `methods` in favour of `methodsObject`. `methodsObject`'s syntax is more consistent with storage params, supports all Michelson data types, and will be maintained going forward #2813 ### Internals @@ -58,7 +58,7 @@ author: Jev Bjorsell # Taquito v19.0.0 :::info -You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. +You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. - Oxford - v18 - Oxford2 - v19 @@ -89,7 +89,7 @@ Oxford2 changes: # Taquito 17.5.0 **Important Note:** -In this version, we replaced instances of `Axios` in favour of `Fetch`. +In this version, we replaced instances of `Axios` in favour of `Fetch`. We are not expecting any breaking changes, but if there are any issues that you see regarding this, please reach out to the Taquito team. @@ -103,7 +103,7 @@ We are not expecting any breaking changes, but if there are any issues that you ### Documentation - Updated RPC nodes on the website [PR#2732](https://github.com/ecadlabs/taquito/pull/2732 - Updated Michelson encoder documentation to reference `generateSchema` instead of the outdated `extractSchema` #2630 -- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 +- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 ### Internals - Removed archive node, and references to it in Taquito [PR#2743](https://github.com/ecadlabs/taquito/pull/2743) @@ -123,7 +123,7 @@ With this change we hope for a more stable HTTP handler in Taquito while reducin # Taquito v17.4.0 -**Potential Breaking Changes** : +**Potential Breaking Changes** : We have updated various dependencies to the latest version in this release. Please update and test our packages for compatibility. We encourage all users to get in touch with the Taquito team if you encounter any unexpected behaviours and/or side effects. ## Summary @@ -2313,7 +2313,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta, the returned value was:* ```typescript= @@ -2363,7 +2363,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta the returned value was:* ```json= diff --git a/website/versioned_docs/version-19.1.0/wallet_API.md b/website/versioned_docs/version-19.1.0/wallet_API.md index 90a5ab2fc4..36e5d01285 100644 --- a/website/versioned_docs/version-19.1.0/wallet_API.md +++ b/website/versioned_docs/version-19.1.0/wallet_API.md @@ -122,7 +122,7 @@ Make sure you have the Beacon browser extension installed (the extension offers wallet .requestPermissions() .then((_) => wallet.getPKH()) - .then((address) => println(`Your address: ${address}`)); + .then((address) => console.log(`Your address: ${address}`)); Tezos.setWalletProvider(wallet); ``` @@ -221,7 +221,7 @@ TempleWallet.isAvailable() return myWallet.getPKH(); }) .then((pkh) => { - println(`Your address: ${pkh}`); + console.log(`Your address: ${pkh}`); }); }) .catch((err) => console.log(err)); @@ -238,18 +238,18 @@ Tezos.wallet .transfer({ to: 'tz1NhNv9g7rtcjyNsH8Zqu79giY5aTqDDrzB', amount: 0.2 }) .send() .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); op.confirmation() .then((result) => { console.log(result); if (result.completed) { - println('Transaction correctly processed!'); + console.log('Transaction correctly processed!'); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) - .catch((err) => println(err)); + .catch((err) => console.log(err)); }); ``` @@ -262,11 +262,11 @@ Tezos.wallet .transfer({ to: 'KT1TBxaaeikEUcVN2qdQY7n9Q21ykcX1NLzY', amount: 0.2 }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash); }) - .then(() => println(`Operation injected!`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then(() => console.log(`Operation injected!`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example. @@ -296,17 +296,17 @@ Tezos.wallet .at('KT1SHiNUNmqBFGNysX9pmh1DC2tQ5pGmRagC') .then((contract) => contract.methodsObject.areYouThere(true).send()) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); @@ -321,17 +321,17 @@ Tezos.wallet contract.methodsObject.addName({0: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', 1: 'Alice'}).send() ) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); diff --git a/website/versioned_docs/version-19.2.0/complex_parameters.md b/website/versioned_docs/version-19.2.0/complex_parameters.md index 26031f5ae1..e0ac50e707 100644 --- a/website/versioned_docs/version-19.2.0/complex_parameters.md +++ b/website/versioned_docs/version-19.2.0/complex_parameters.md @@ -93,11 +93,11 @@ importKey(Tezos, secretKey) validators : validatorsMap }}) }).then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }).then((contract) => { - println(`Origination completed.`); -}).catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Origination completed.`); +}).catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Calling the function of a contract having a complex object as a parameter @@ -145,8 +145,8 @@ importKey(Tezos, secretKey) owner: 'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', parent: 'FFFF', ttl: { Some: '10' }}).toTransferParams(); - println(JSON.stringify(inspect, null, 2)) -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(JSON.stringify(inspect, null, 2)) +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when all the arguments are defined @@ -172,11 +172,11 @@ importKey(Tezos, secretKey) ttl: { Some: '10' } }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when optional arguments are null @@ -203,9 +203,9 @@ importKey(Tezos, secretKey) ttl: null }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/contract-test-collection.md b/website/versioned_docs/version-19.2.0/contract-test-collection.md index 25ea85fc76..2043138481 100644 --- a/website/versioned_docs/version-19.2.0/contract-test-collection.md +++ b/website/versioned_docs/version-19.2.0/contract-test-collection.md @@ -494,7 +494,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -506,10 +506,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/drain_account.md b/website/versioned_docs/version-19.2.0/drain_account.md index c57e3be73c..5086d56569 100644 --- a/website/versioned_docs/version-19.2.0/drain_account.md +++ b/website/versioned_docs/version-19.2.0/drain_account.md @@ -29,7 +29,7 @@ Tezos.signer .publicKeyHash() .then((address) => { Tezos.tz.getBalance(address).then((balance) => { - println( + console.log( `The account we want to drain is ${address}.\nIts initial balance is ${ balance.toNumber() / 1000000 } ꜩ.` @@ -44,7 +44,7 @@ Tezos.signer const maxAmount = balance.minus( estimate.suggestedFeeMutez + getRevealFee(address) ).toNumber(); - println( + console.log( `The estimated fees related to the emptying operation are ${ estimate.suggestedFeeMutez } mutez.\nThe fees related to the reveal operation are ${ @@ -63,19 +63,19 @@ Tezos.signer }); }) .then((op) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Draining originated accounts (KT1) @@ -118,24 +118,24 @@ Tezos.signer init: { string: address }, }) .then((contractOrigination) => { - println( + console.log( `Waiting for confirmation of origination for ${contractOrigination.contractAddress}...` ); return contractOrigination.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); Tezos.tz.getBalance(contract.address).then((balance) => { - println(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); const estimateOp = contract.methodsObject .do(transferImplicit('tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', balance.toNumber())) .toTransferParams({}); - println(`Waiting for the estimation of the smart contract call...`); + console.log(`Waiting for the estimation of the smart contract call...`); Tezos.estimate .transfer(estimateOp) .then((estimate) => { //Will be deducted from manager's address - println( + console.log( `The estimated fees related to the emptying operation are ${estimate.suggestedFeeMutez} mutez.` ); return contract.methodsObject @@ -143,18 +143,18 @@ Tezos.signer .send({ amount: 0 }); }) .then((operation) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return operation.confirmation(1).then(() => operation.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(contract.address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/estimate.md b/website/versioned_docs/version-19.2.0/estimate.md index d8e8f61971..509bf3ee60 100644 --- a/website/versioned_docs/version-19.2.0/estimate.md +++ b/website/versioned_docs/version-19.2.0/estimate.md @@ -48,11 +48,11 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -73,11 +73,11 @@ Tezos.estimate const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -116,11 +116,11 @@ Tezos.contract return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -145,11 +145,11 @@ Tezos.wallet return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -180,7 +180,7 @@ values={[ // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -191,7 +191,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -199,7 +199,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -210,7 +210,7 @@ Tezos.estimate // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -221,7 +221,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -229,7 +229,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/inmemory_signer.md b/website/versioned_docs/version-19.2.0/inmemory_signer.md index 503b949641..1beaf8d42a 100644 --- a/website/versioned_docs/version-19.2.0/inmemory_signer.md +++ b/website/versioned_docs/version-19.2.0/inmemory_signer.md @@ -50,9 +50,9 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -67,9 +67,9 @@ InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNF return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` When required, Taquito offers the `b58cencode` function allowing to encode the secret in base58. The parameters of the function are the secret, that can be a `hex string` or an `Uint8Array`, and the desired prefix. Here is an example with a `hex string`: @@ -84,7 +84,7 @@ const b58encodedSecret = b58cencode( '7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d', prefix[Prefix.P2SK] ); -println( +console.log( `The secret is encoded in base58 and the prefix "p2sk" is added to it: ${b58encodedSecret}.` ); //We take the encoded secret to configure the signer. @@ -95,9 +95,9 @@ InMemorySigner.fromSecretKey(b58encodedSecret) return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ### Loading an encrypted private key with a passphrase @@ -131,9 +131,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -151,9 +151,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -171,9 +171,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,9 +202,9 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` With a non-default derivation path non-hardened with a tz2 address @@ -225,9 +225,9 @@ With a non-default derivation path non-hardened with a tz2 address Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` ### Using a testnet faucet key diff --git a/website/versioned_docs/version-19.2.0/lambda_view.md b/website/versioned_docs/version-19.2.0/lambda_view.md index d9d797fbcd..0f3277dd4a 100644 --- a/website/versioned_docs/version-19.2.0/lambda_view.md +++ b/website/versioned_docs/version-19.2.0/lambda_view.md @@ -57,9 +57,9 @@ Tezos.contract return contract.views.getTotalSupply(UnitValue).read(); }) .then((response) => { - println(response); + console.log(response); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` **More examples:** @@ -85,9 +85,9 @@ Tezos.contract .read(); }) .then((response) => { - println(JSON.stringify(response, null, 2)); + console.log(JSON.stringify(response, null, 2)); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/ledger_signer.md b/website/versioned_docs/version-19.2.0/ledger_signer.md index 9a5dff3274..1e91f88b90 100644 --- a/website/versioned_docs/version-19.2.0/ledger_signer.md +++ b/website/versioned_docs/version-19.2.0/ledger_signer.md @@ -226,13 +226,13 @@ function getAddressInfo(transport, index) { return Tezos.signer.publicKeyHash().then((pkh) => { Tezos.tz.getBalance(pkh).then((balance) => { Tezos.rpc.getManagerKey(pkh).then((getPublicKey) => { - println( + console.log( `The public key hash related to the derivation path having the index ${index} is ${pkh}.` ); if (getPublicKey) { - println(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); + console.log(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); } else { - println('This account is not revealed.\n'); + console.log('This account is not revealed.\n'); } }); }); diff --git a/website/versioned_docs/version-19.2.0/maps_bigmaps.md b/website/versioned_docs/version-19.2.0/maps_bigmaps.md index 34a7cb0ee4..4dc71ebabe 100644 --- a/website/versioned_docs/version-19.2.0/maps_bigmaps.md +++ b/website/versioned_docs/version-19.2.0/maps_bigmaps.md @@ -55,13 +55,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -85,13 +85,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -120,13 +120,13 @@ Tezos.contract }), }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -146,13 +146,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -181,7 +181,7 @@ Tezos.contract .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -191,25 +191,25 @@ Tezos.contract return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -224,7 +224,7 @@ Tezos.wallet .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -234,25 +234,25 @@ Tezos.wallet return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -326,13 +326,13 @@ Tezos.contract }, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -383,13 +383,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -422,10 +422,10 @@ Tezos.contract 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -442,10 +442,10 @@ Tezos.wallet 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -519,13 +519,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -571,13 +571,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -617,9 +617,9 @@ Tezos.contract 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -643,9 +643,9 @@ Tezos.wallet 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -717,13 +717,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -774,13 +774,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -810,7 +810,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -822,10 +822,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -843,7 +843,7 @@ Tezos.wallet 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -855,10 +855,10 @@ Tezos.wallet }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -908,11 +908,11 @@ values={[ Tezos.contract .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -922,10 +922,10 @@ Tezos.contract }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` @@ -938,11 +938,11 @@ Tezos.contract Tezos.wallet .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -952,10 +952,10 @@ Tezos.wallet }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` diff --git a/website/versioned_docs/version-19.2.0/metadata-tzip16.md b/website/versioned_docs/version-19.2.0/metadata-tzip16.md index 1e31f2cced..2268343d3e 100644 --- a/website/versioned_docs/version-19.2.0/metadata-tzip16.md +++ b/website/versioned_docs/version-19.2.0/metadata-tzip16.md @@ -104,13 +104,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -128,13 +128,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -162,13 +162,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -185,13 +185,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -218,13 +218,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -242,13 +242,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -276,13 +276,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -300,13 +300,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -366,18 +366,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -395,18 +395,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -437,19 +437,19 @@ Tezos.contract .at(contractAddress, tzip16) .then((contract) => { return contract.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -468,19 +468,19 @@ Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { return wallet.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -526,10 +526,10 @@ Tezos.contract ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -563,10 +563,10 @@ Tezos.wallet ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.2.0/michel_codec.md b/website/versioned_docs/version-19.2.0/michel_codec.md index 1deda205f2..010409f11e 100644 --- a/website/versioned_docs/version-19.2.0/michel_codec.md +++ b/website/versioned_docs/version-19.2.0/michel_codec.md @@ -44,14 +44,14 @@ Tezos.contract .at("KT1BJadpDyLCACMH7Tt9xtpx4dQZVKw9cDF7") .then(contract => { const code = p.parseJSON(contract.script.code); - println("Pretty print Michelson smart contract:"); - println(emitMicheline(code, {indent:" ", newline: "\n",})); + console.log("Pretty print Michelson smart contract:"); + console.log(emitMicheline(code, {indent:" ", newline: "\n",})); const storage = p.parseJSON(contract.script.storage); - println("Pretty print Storage:"); - println(emitMicheline(storage, {indent:" ", newline: "\n",})); + console.log("Pretty print Storage:"); + console.log(emitMicheline(storage, {indent:" ", newline: "\n",})); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ### parseMichelineExpression - Parse Micheline and convert it to JSON Michelson @@ -64,11 +64,11 @@ const p = new Parser(); const michelineScript = `{parameter unit; storage unit; code {CDR; NIL operation; PAIR};}` const script = p.parseMichelineExpression(michelineScript); -println('JSON Michelson script: ' + JSON.stringify(script) + '\n'); +console.log('JSON Michelson script: ' + JSON.stringify(script) + '\n'); const michelineData = `(IF_LEFT { IF_LEFT { SWAP ; SUB } { ADD } })`; const data = p.parseMichelineExpression(michelineData); -println('JSON Michelson data: ' + JSON.stringify(data)); +console.log('JSON Michelson data: ' + JSON.stringify(data)); ``` ## PACK and UNPACK locally diff --git a/website/versioned_docs/version-19.2.0/michelson_encoder.md b/website/versioned_docs/version-19.2.0/michelson_encoder.md index bf64c5d3c3..73ae5050dd 100644 --- a/website/versioned_docs/version-19.2.0/michelson_encoder.md +++ b/website/versioned_docs/version-19.2.0/michelson_encoder.md @@ -81,7 +81,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- When there is no annotation, the keys of the object are indexes starting from 0. @@ -101,7 +101,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- Here is another example using a complex storage: @@ -242,7 +242,7 @@ const storageType = }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` ### The Typecheck method @@ -269,7 +269,7 @@ const typecheck = storageSchema.Typecheck({ threshold: 5, keys: ['edpkuLxx9PQD8fZ45eUzrK3yhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(typecheck); +console.log(typecheck); ``` ### The Encode method @@ -297,7 +297,7 @@ const michelsonData = storageSchema.Encode({ threshold: 5, keys: ['edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g', 'edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### The Execute method @@ -345,7 +345,7 @@ const dataMichelson = { ] } const data = storageSchema.Execute(dataMichelson) -println(JSON.stringify(data, null, 2)); +console.log(JSON.stringify(data, null, 2)); ``` The `Execute` method takes an optional parameter of type `Semantic`. It allows overriding the default representation returned by the Michelson Encoder for specific types. @@ -359,12 +359,12 @@ const schema = new Schema({ prim: 'big_map', args: [{ prim: 'address' }, { prim: const dataMichelson = { int: 123456 } const data = schema.Execute(dataMichelson) -println(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); +console.log(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); // instead of returning the big map id, we can override it // we return an object in this case const dataCustom = schema.Execute(dataMichelson, { big_map: (val) => Object({ id: val.int })}) -println(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); ``` --- Here is an example for the `ticket` type: @@ -374,10 +374,10 @@ const schema = new Schema({"prim":"ticket","args":[{"prim":"string"}]}); const dataMichelson = {"prim":"Pair","args":[{"string":"KT1PVuv7af4VkPsZVZ8oZz9GSSdGnGBCbFWw"},{"string":"test"},{"int":"2"}]} const data = schema.Execute(dataMichelson) -println(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); +console.log(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); const dataCustom = schema.Execute(dataMichelson, { ticket: (val) => val.args[1].string}) -println(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); ``` ### How the Schema class is used inside Taquito @@ -404,7 +404,7 @@ const michelsonData = parameterSchema.Encode( 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', '12' ) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` --- Here is an example of `encodeObject`: @@ -414,7 +414,7 @@ const michelsonData = parameterSchema.EncodeObject({ spender: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', value: '12' }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### How the ParameterSchema class is used inside Taquito @@ -442,7 +442,7 @@ const storageSchema = new Schema({ ] }); const annotatedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(annotatedSchema, null, 2)); +console.log(JSON.stringify(annotatedSchema, null, 2)); ``` --- We can also have a similar definition without the annotations: @@ -461,7 +461,7 @@ const storageSchema = new Schema({ ] }); const noAnnotationsSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(noAnnotationsSchema, null, 2)); +console.log(JSON.stringify(noAnnotationsSchema, null, 2)); ``` In Taquito, we will flatten these nested `pair`s to make it easier to use them in typescript dApps. Please note how the result of `generateSchema` is different in the annotated vs non-annotated cases: @@ -510,7 +510,7 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` ### Unions @@ -531,5 +531,5 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` diff --git a/website/versioned_docs/version-19.2.0/on_chain_views.md b/website/versioned_docs/version-19.2.0/on_chain_views.md index 09aeb69119..8652d2dfe0 100644 --- a/website/versioned_docs/version-19.2.0/on_chain_views.md +++ b/website/versioned_docs/version-19.2.0/on_chain_views.md @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; ## On-chain views description -- The `On-chain views` feature was introduced in the Hangzhou protocol. +- The `On-chain views` feature was introduced in the Hangzhou protocol. - Views are meant to be called by a contract. It can be the contract where the view is defined or another contract. - Views help to avoid the need to use callbacks in contracts. - Views take arguments as input and may depend on the contract's storage declaring the view. @@ -89,8 +89,8 @@ view "fib" nat nat } } } -``` - +``` + ## Calling an on-chain view Views are meant to be called by a contract using the Michelson Instruction `View` followed by the view name and its result type. @@ -110,7 +110,7 @@ code { **Example of calling a contract entrypoint that makes a call to a view using Taquito:** -The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). +The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). The example first shows the initial storage of the contract `contractCallFib`. It calls the default entry point of `contractCallFib` with the value of its storage + 1 and the address of the contract `contractTopLevelViews`. A call is made to the `fib` view of `contractTopLevelViews` with the `storage + 1` as argument. The view returns the value of the Fibonacci sequence at the position represented by `storage + 1`. The storage of `contractCallFib` is updated to the result of the view. @@ -130,23 +130,23 @@ Tezos.contract.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -159,32 +159,32 @@ Tezos.wallet.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` ## How to simulate a view execution using Taquito -Taquito offers the ability to simulate the result of on-chain views. +Taquito offers the ability to simulate the result of on-chain views. -The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. +The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. *`contractViews` is an object where the key is the view name, and the value is a function that takes the view arguments as a parameter and returns an instance of `OnChainView` class.* @@ -192,7 +192,7 @@ If the view takes multiple arguments, the view parameter is expected in an objec *Note for reference, the flattened arguments are the expected format when calling a contract entry point using the `methods` member, but we plan to move away from this format in favor the object one, which is also used for the storage when deploying a contract [see the difference between `methodsObject` and `methods` members of the `ContractAbstraction`](smartcontracts.md#choosing-between-the-methods-or-methodsobject-members-to-interact-with-smart-contracts).* -A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. +A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. The `executeView` method of the `OnChainView` class allows simulating the view. It takes a `viewCaller` as a parameter representing the contract address which is the caller of the view, and an optional `source` which is the public key hash of the account that initialized this view execution. @@ -215,10 +215,10 @@ Tezos.contract.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -233,11 +233,11 @@ Tezos.wallet.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` diff --git a/website/versioned_docs/version-19.2.0/originate.md b/website/versioned_docs/version-19.2.0/originate.md index 9fd1899732..23ebf79d9b 100644 --- a/website/versioned_docs/version-19.2.0/originate.md +++ b/website/versioned_docs/version-19.2.0/originate.md @@ -108,13 +108,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -138,13 +138,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,13 +175,13 @@ Tezos.contract init: `(Pair 0 (Pair 1 { "edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t" }))`, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -201,13 +201,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -248,13 +248,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -286,13 +286,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/quick_start.md b/website/versioned_docs/version-19.2.0/quick_start.md index 95a4e57850..d110457731 100644 --- a/website/versioned_docs/version-19.2.0/quick_start.md +++ b/website/versioned_docs/version-19.2.0/quick_start.md @@ -61,8 +61,8 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please Tezos.tz .getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY') - .then((balance) => println(`${balance.toNumber() / 1000000} ꜩ`)) - .catch((error) => println(JSON.stringify(error))); + .then((balance) => console.log(`${balance.toNumber() / 1000000} ꜩ`)) + .catch((error) => console.log(JSON.stringify(error))); ``` ### Using the inMemory Signer and Importing a key @@ -104,15 +104,15 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.contract .transfer({ to: address, amount: amount }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -122,16 +122,16 @@ Tezos.contract const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.wallet .transfer({ to: address, amount: amount }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -155,15 +155,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,15 +175,15 @@ Tezos.wallet .then((wallet) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return wallet.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/sapling.md b/website/versioned_docs/version-19.2.0/sapling.md index 69d41588bd..139751cb09 100644 --- a/website/versioned_docs/version-19.2.0/sapling.md +++ b/website/versioned_docs/version-19.2.0/sapling.md @@ -96,11 +96,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice balance in the shielded pool...`); + console.log(`Fetching Alice balance in the shielded pool...`); return txViewer.getBalance(); }) - .then((balance) => println(`Alice's balance is ${balance.toString()} mutez`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((balance) => console.log(`Alice's balance is ${balance.toString()} mutez`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to retrieve my transaction history? @@ -129,11 +129,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice's history of transactions in the shielded pool...`); + console.log(`Fetching Alice's history of transactions in the shielded pool...`); return txViewer.getIncomingAndOutgoingTransactions(); }) - .then((history) => println(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((history) => console.log(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to prepare a shielded transaction? @@ -174,12 +174,12 @@ const saplingToolkit = new SaplingToolkit( inMemorySpendingKey.getSaplingViewingKeyProvider() .then((inMemoryViewingKey) => { - println(`Fetching a payment address for Alice (zet)...`); + console.log(`Fetching a payment address for Alice (zet)...`); return inMemoryViewingKey.getAddress(); }) .then((paymentAddress) => { - println(`Alice's payment address is: ${paymentAddress.address}`); - println(`Preparing the shielded transaction...`); + console.log(`Alice's payment address is: ${paymentAddress.address}`); + console.log(`Preparing the shielded transaction...`); return saplingToolkit.prepareShieldedTransaction([{ to: paymentAddress.address, amount: 3, @@ -188,20 +188,20 @@ inMemorySpendingKey.getSaplingViewingKeyProvider() }]); }) .then((shieldedTx) => { - println(`The sapling transaction parameter is: ${shieldedTx}`); + console.log(`The sapling transaction parameter is: ${shieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); // The amount MUST be specified in the send method to transfer the 3 tez to the shielded pool return saplingContract.methodsObject.default([shieldedTx]).send({ amount: 3 }); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) - .catch((error) => println(`Error: ${(error)}`)); + .catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare a Sapling transaction? @@ -244,7 +244,7 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the sapling transaction...`); +console.log(`Preparing the sapling transaction...`); saplingToolkit.prepareSaplingTransaction([{ to: 'zet14CMN2T4x1f8sgXeAGWQwczSf6SJ8bm8nyP2Tg7HJn2VmtPtB2nE2q7MMgdmMEwpGQ', amount: 3, @@ -252,19 +252,19 @@ saplingToolkit.prepareSaplingTransaction([{ mutez: false // set to false by default }]) .then((saplingTx) => { - println(`The sapling transaction parameter is: ${saplingTx}`); + console.log(`The sapling transaction parameter is: ${saplingTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([saplingTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare an unshielded transaction? @@ -302,26 +302,26 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the unshielded transaction...`); +console.log(`Preparing the unshielded transaction...`); saplingToolkit.prepareUnshieldedTransaction({ to: 'tz1hDFKpVkT7jzYncaLma4vxh4Gg6JNqvdtB', amount: 20, mutez: true // set to false by default }) .then((unshieldedTx) => { - println(`The sapling transaction parameter is: ${unshieldedTx}`); + console.log(`The sapling transaction parameter is: ${unshieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([unshieldedTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` # SaplingTransactionViewer diff --git a/website/versioned_docs/version-19.2.0/sapling_in_memory_viewing_key.md b/website/versioned_docs/version-19.2.0/sapling_in_memory_viewing_key.md index b7772ad39b..da378c3158 100644 --- a/website/versioned_docs/version-19.2.0/sapling_in_memory_viewing_key.md +++ b/website/versioned_docs/version-19.2.0/sapling_in_memory_viewing_key.md @@ -7,7 +7,7 @@ The `InMemoryViewingKey` class can be instantiated from a viewing or spending ke ### Instantiation from a viewing key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( '000000000000000000977d725fc96387e8ec1e603e7ae60c6e63529fb84e36e126770e9db9899d7f2344259fd700dc80120d3c9ca65d698f6064043b048b079caa4f198aed96271740b1d6fd523d71b15cd0b3d75644afbe9abfedb6883e299165665ab692c14ca5c835c61a0e53de553a751c78fbc42d5e7eca807fd441206651c84bf88de803efba837583145a5f338b1a7af8a5f9bec4783054f9d063d365f2352f72cbced95e0a' @@ -23,9 +23,9 @@ InMemoryViewingKey.fromSpendingKey( 'sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L', ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -39,9 +39,9 @@ InMemoryViewingKey.fromSpendingKey( 'test' // password ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -57,6 +57,6 @@ const inMemoryViewingKey = new InMemoryViewingKey( ); inMemoryViewingKey.getAddress() -.then((address) => println(`The address is ${JSON.stringify(address, null, 2)}`)) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.then((address) => console.log(`The address is ${JSON.stringify(address, null, 2)}`)) +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.2.0/signing.md b/website/versioned_docs/version-19.2.0/signing.md index 54903020f2..ed416e7443 100644 --- a/website/versioned_docs/version-19.2.0/signing.md +++ b/website/versioned_docs/version-19.2.0/signing.md @@ -167,8 +167,8 @@ const packed = packDataBytes( ); Tezos.signer .sign(packed.bytes) - .then((signed) => println(JSON.stringify(signed, null, 2))) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((signed) => console.log(JSON.stringify(signed, null, 2))) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` First, you provide the Michelson code to be signed as a string along with its type. diff --git a/website/versioned_docs/version-19.2.0/smartcontracts.md b/website/versioned_docs/version-19.2.0/smartcontracts.md index f4228884de..779e83b550 100644 --- a/website/versioned_docs/version-19.2.0/smartcontracts.md +++ b/website/versioned_docs/version-19.2.0/smartcontracts.md @@ -81,7 +81,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -96,7 +96,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -129,7 +129,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -143,7 +143,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -174,15 +174,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(3).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -195,15 +195,15 @@ Tezos.wallet .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(3).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -235,8 +235,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methodsObject.set_child_record().getSignature(), null, @@ -244,7 +244,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an object giving indication on how to structure the parameter when calling the`set_child_record` method. Here is an example where the `set_child_record` method is called by passing the parameter in an object format: @@ -270,11 +270,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -287,8 +287,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methods.set_child_record().getSignature(), null, @@ -296,7 +296,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an array which contains the different possible signatures. Different signatures are possible as the `set_child_record` method contains some optional arguments. In the following example the `set_child_record` method is called by passing the arguments in the flattened way: @@ -323,11 +323,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-19.2.0/storage_annotations.md b/website/versioned_docs/version-19.2.0/storage_annotations.md index 998103c9ac..f889263eba 100644 --- a/website/versioned_docs/version-19.2.0/storage_annotations.md +++ b/website/versioned_docs/version-19.2.0/storage_annotations.md @@ -50,13 +50,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -77,13 +77,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -125,13 +125,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -152,13 +152,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,13 +202,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -230,13 +230,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-19.2.0/taquito_utils.md b/website/versioned_docs/version-19.2.0/taquito_utils.md index 02ebed525a..236fb758b9 100644 --- a/website/versioned_docs/version-19.2.0/taquito_utils.md +++ b/website/versioned_docs/version-19.2.0/taquito_utils.md @@ -43,12 +43,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -63,12 +63,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -83,7 +83,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -98,12 +98,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -116,12 +116,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -134,12 +134,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -152,12 +152,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -169,12 +169,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -186,12 +186,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -208,5 +208,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-19.2.0/tzip12.md b/website/versioned_docs/version-19.2.0/tzip12.md index 4d130dddcb..bcbc463059 100644 --- a/website/versioned_docs/version-19.2.0/tzip12.md +++ b/website/versioned_docs/version-19.2.0/tzip12.md @@ -9,7 +9,7 @@ The `@taquito/tzip12` package allows retrieving metadata associated with tokens ## How to use the tzip12 package -The package can act as an extension to the well-known Taquito contract abstraction. +The package can act as an extension to the well-known Taquito contract abstraction. 1. **We first need to create an instance of `Tzip12Module` and add it as an extension to our `TezosToolkit`** @@ -32,8 +32,8 @@ Tezos.addExtension(new Tzip12Module()); const contract = await Tezos.contract.at("contractAddress", tzip12) ``` -**The compose function** -The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. +**The compose function** +The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. Thus, all methods of the `ContractAbstraction`, `Tzip12ContractAbstraction` and `Tzip16ContractAbstraction` classes will be available on the contract abstraction instance. ```js @@ -50,7 +50,7 @@ await contract.tzip16().getMetadata(); // Tzip16ContractAbstraction method There are two scenarios to obtain the metadata of a token: 1. They can be obtained from executing an off-chain view named `token_metadata` present in the contract metadata -2. or from a big map named `token_metadata` in the contract storage. +2. or from a big map named `token_metadata` in the contract storage. The `getTokenMetadata` method of the `Tzip12ContractAbstraction` class will find the token metadata with precedence for the off-chain view, if there is one, as specified in the standard. @@ -97,13 +97,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, compose(tzip12, tzip16)) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -121,14 +121,14 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, compose(tzip12, tzip16)) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -154,19 +154,19 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip16) .then(contract => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -183,20 +183,20 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip16) .then(wallet => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -211,7 +211,7 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ @@ -229,15 +229,15 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ ``` prim: 'big_map', args: [ - { prim: 'nat' }, + { prim: 'nat' }, { prim: 'pair', args: [ - { prim: 'nat' , annots: ['%token_id']}, + { prim: 'nat' , annots: ['%token_id']}, { prim: "map", args: [{ prim: 'string' }, { prim: 'bytes' }], annots: ['%token_info'] }] }], annots: ['%token_metadata'] ``` - + Otherwise, the token metadata won't be found by the `getTokenMetadata` method, and a `TokenMetadataNotFound` error will be thrown. ::: @@ -262,13 +262,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip12) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -285,17 +285,17 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip12) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` -#### For more information on the contracts used in the examples: +#### For more information on the contracts used in the examples: integration-tests/tzip12-token-metadata.spec.ts \ No newline at end of file diff --git a/website/versioned_docs/version-19.2.0/validators.md b/website/versioned_docs/version-19.2.0/validators.md index dc1c5a0f36..d26f673290 100644 --- a/website/versioned_docs/version-19.2.0/validators.md +++ b/website/versioned_docs/version-19.2.0/validators.md @@ -26,12 +26,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -46,12 +46,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -66,7 +66,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -81,12 +81,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -99,12 +99,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -117,12 +117,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -135,12 +135,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -152,12 +152,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -169,12 +169,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -191,5 +191,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-19.2.0/version.md b/website/versioned_docs/version-19.2.0/version.md index a206573a38..1441f108d6 100644 --- a/website/versioned_docs/version-19.2.0/version.md +++ b/website/versioned_docs/version-19.2.0/version.md @@ -26,10 +26,10 @@ author: Jev Bjorsell # Taquito v19.1.0 -**Potential Breaking Changes**: +**Potential Breaking Changes**: - `@taquito/rpc` - replaced `OperationBalanceUpdatesItem` in favour of `OperationMetadataBalanceUpdates` #2817 #2827 - `@taquito/taquito` - Several optimizations made to fees and estimation in Taquito #2532 - - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details + - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details - Added a small buffer to `gasLimit` (varying depending on operations) - Reduced `suggestedFeeMutez` buffer from 100 to 20 per op - Refined `gasLimit` and `storageLimit` according to `simulate_operation` results from the octez-client @@ -38,12 +38,12 @@ author: Jev Bjorsell ### New Features - `@taquito/taquito` - Added smart rollup execute outbox message operation #2321 (please note that this feature is not fully tested due to some parts requiring the use of `octez-client`) -`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 +`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 ### Improvement - `@taquito/michelson-encoder` - replaced references of `[['unit']]` to be `UnitValue` instead [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) -- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 -- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 +- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 +- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 ### Documentation - Added michel-codec to Typedoc documentation #2806 @@ -51,7 +51,7 @@ author: Jev Bjorsell - Removed `giganode` references from Taquito documentation [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) ### Deprecation -- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 +- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 - `@taquito/taquito` - Deprecated `methods` in favour of `methodsObject`. `methodsObject`'s syntax is more consistent with storage params, supports all Michelson data types, and will be maintained going forward #2813 ### Internals @@ -79,7 +79,7 @@ author: Jev Bjorsell # Taquito v19.0.0 :::info -You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. +You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. - Oxford - v18 - Oxford2 - v19 @@ -110,7 +110,7 @@ Oxford2 changes: # Taquito 17.5.0 **Important Note:** -In this version, we replaced instances of `Axios` in favour of `Fetch`. +In this version, we replaced instances of `Axios` in favour of `Fetch`. We are not expecting any breaking changes, but if there are any issues that you see regarding this, please reach out to the Taquito team. @@ -124,7 +124,7 @@ We are not expecting any breaking changes, but if there are any issues that you ### Documentation - Updated RPC nodes on the website [PR#2732](https://github.com/ecadlabs/taquito/pull/2732 - Updated Michelson encoder documentation to reference `generateSchema` instead of the outdated `extractSchema` #2630 -- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 +- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 ### Internals - Removed archive node, and references to it in Taquito [PR#2743](https://github.com/ecadlabs/taquito/pull/2743) @@ -144,7 +144,7 @@ With this change we hope for a more stable HTTP handler in Taquito while reducin # Taquito v17.4.0 -**Potential Breaking Changes** : +**Potential Breaking Changes** : We have updated various dependencies to the latest version in this release. Please update and test our packages for compatibility. We encourage all users to get in touch with the Taquito team if you encounter any unexpected behaviours and/or side effects. ## Summary @@ -2334,7 +2334,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta, the returned value was:* ```typescript= @@ -2384,7 +2384,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta the returned value was:* ```json= diff --git a/website/versioned_docs/version-19.2.0/wallet_API.md b/website/versioned_docs/version-19.2.0/wallet_API.md index f73f5d32e9..a45cbebf31 100644 --- a/website/versioned_docs/version-19.2.0/wallet_API.md +++ b/website/versioned_docs/version-19.2.0/wallet_API.md @@ -118,7 +118,7 @@ Make sure you have the Beacon browser extension installed (the extension offers wallet .requestPermissions() .then((_) => wallet.getPKH()) - .then((address) => println(`Your address: ${address}`)); + .then((address) => console.log(`Your address: ${address}`)); Tezos.setWalletProvider(wallet); ``` @@ -217,7 +217,7 @@ TempleWallet.isAvailable() return myWallet.getPKH(); }) .then((pkh) => { - println(`Your address: ${pkh}`); + console.log(`Your address: ${pkh}`); }); }) .catch((err) => console.log(err)); @@ -234,18 +234,18 @@ Tezos.wallet .transfer({ to: 'tz1NhNv9g7rtcjyNsH8Zqu79giY5aTqDDrzB', amount: 0.2 }) .send() .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); op.confirmation() .then((result) => { console.log(result); if (result.completed) { - println('Transaction correctly processed!'); + console.log('Transaction correctly processed!'); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) - .catch((err) => println(err)); + .catch((err) => console.log(err)); }); ``` @@ -258,11 +258,11 @@ Tezos.wallet .transfer({ to: 'KT1TBxaaeikEUcVN2qdQY7n9Q21ykcX1NLzY', amount: 0.2 }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash); }) - .then(() => println(`Operation injected!`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then(() => console.log(`Operation injected!`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example. @@ -292,17 +292,17 @@ Tezos.wallet .at('KT1SHiNUNmqBFGNysX9pmh1DC2tQ5pGmRagC') .then((contract) => contract.methodsObject.areYouThere(true).send()) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); @@ -317,17 +317,17 @@ Tezos.wallet contract.methodsObject.addName({0: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', 1: 'Alice'}).send() ) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); diff --git a/website/versioned_docs/version-20.0.0/complex_parameters.md b/website/versioned_docs/version-20.0.0/complex_parameters.md index 26031f5ae1..e0ac50e707 100644 --- a/website/versioned_docs/version-20.0.0/complex_parameters.md +++ b/website/versioned_docs/version-20.0.0/complex_parameters.md @@ -93,11 +93,11 @@ importKey(Tezos, secretKey) validators : validatorsMap }}) }).then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }).then((contract) => { - println(`Origination completed.`); -}).catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Origination completed.`); +}).catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Calling the function of a contract having a complex object as a parameter @@ -145,8 +145,8 @@ importKey(Tezos, secretKey) owner: 'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', parent: 'FFFF', ttl: { Some: '10' }}).toTransferParams(); - println(JSON.stringify(inspect, null, 2)) -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(JSON.stringify(inspect, null, 2)) +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when all the arguments are defined @@ -172,11 +172,11 @@ importKey(Tezos, secretKey) ttl: { Some: '10' } }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` #### Call the set_child_record function when optional arguments are null @@ -203,9 +203,9 @@ importKey(Tezos, secretKey) ttl: null }).send(); }).then(op => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }).then(hash => { - println(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); -}).catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); + console.log(`Operation injected: https://better-call.dev/ghostnet/KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN/operations`); +}).catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/contract-test-collection.md b/website/versioned_docs/version-20.0.0/contract-test-collection.md index 25ea85fc76..2043138481 100644 --- a/website/versioned_docs/version-20.0.0/contract-test-collection.md +++ b/website/versioned_docs/version-20.0.0/contract-test-collection.md @@ -494,7 +494,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -506,10 +506,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/drain_account.md b/website/versioned_docs/version-20.0.0/drain_account.md index c57e3be73c..5086d56569 100644 --- a/website/versioned_docs/version-20.0.0/drain_account.md +++ b/website/versioned_docs/version-20.0.0/drain_account.md @@ -29,7 +29,7 @@ Tezos.signer .publicKeyHash() .then((address) => { Tezos.tz.getBalance(address).then((balance) => { - println( + console.log( `The account we want to drain is ${address}.\nIts initial balance is ${ balance.toNumber() / 1000000 } ꜩ.` @@ -44,7 +44,7 @@ Tezos.signer const maxAmount = balance.minus( estimate.suggestedFeeMutez + getRevealFee(address) ).toNumber(); - println( + console.log( `The estimated fees related to the emptying operation are ${ estimate.suggestedFeeMutez } mutez.\nThe fees related to the reveal operation are ${ @@ -63,19 +63,19 @@ Tezos.signer }); }) .then((op) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## Draining originated accounts (KT1) @@ -118,24 +118,24 @@ Tezos.signer init: { string: address }, }) .then((contractOrigination) => { - println( + console.log( `Waiting for confirmation of origination for ${contractOrigination.contractAddress}...` ); return contractOrigination.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); Tezos.tz.getBalance(contract.address).then((balance) => { - println(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance of the contract is ${balance.toNumber() / 1000000} ꜩ.`); const estimateOp = contract.methodsObject .do(transferImplicit('tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr', balance.toNumber())) .toTransferParams({}); - println(`Waiting for the estimation of the smart contract call...`); + console.log(`Waiting for the estimation of the smart contract call...`); Tezos.estimate .transfer(estimateOp) .then((estimate) => { //Will be deducted from manager's address - println( + console.log( `The estimated fees related to the emptying operation are ${estimate.suggestedFeeMutez} mutez.` ); return contract.methodsObject @@ -143,18 +143,18 @@ Tezos.signer .send({ amount: 0 }); }) .then((operation) => { - println(`Waiting for confirmation of the draining operation...`); + console.log(`Waiting for confirmation of the draining operation...`); return operation.confirmation(1).then(() => operation.hash); }) .then((hash) => { - println(`The account has been emptied.`); + console.log(`The account has been emptied.`); return Tezos.tz.getBalance(contract.address); }) .then((finalBalance) => { - println(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); + console.log(`The balance is now ${finalBalance.toNumber() / 1000000} ꜩ.`); }); }); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/estimate.md b/website/versioned_docs/version-20.0.0/estimate.md index d8e8f61971..509bf3ee60 100644 --- a/website/versioned_docs/version-20.0.0/estimate.md +++ b/website/versioned_docs/version-20.0.0/estimate.md @@ -48,11 +48,11 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -73,11 +73,11 @@ Tezos.estimate const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Estimating the transfer of ${amount} ꜩ to ${address} : `); +console.log(`Estimating the transfer of ${amount} ꜩ to ${address} : `); Tezos.estimate .transfer({ to: address, amount: amount }) .then((est) => { - println(`burnFeeMutez : ${est.burnFeeMutez}, + console.log(`burnFeeMutez : ${est.burnFeeMutez}, gasLimit : ${est.gasLimit}, minimalFeeMutez : ${est.minimalFeeMutez}, storageLimit : ${est.storageLimit}, @@ -116,11 +116,11 @@ Tezos.contract return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -145,11 +145,11 @@ Tezos.wallet return contract.methodsObject.increment(7); }) .then((op) => { - println(`Estimating the smart contract call: `); + console.log(`Estimating the smart contract call: `); return Tezos.estimate.contractCall(op); }) .then((estimate) => { - println(`burnFeeMutez : ${estimate.burnFeeMutez}, + console.log(`burnFeeMutez : ${estimate.burnFeeMutez}, gasLimit : ${estimate.gasLimit}, minimalFeeMutez : ${estimate.minimalFeeMutez}, storageLimit : ${estimate.storageLimit}, @@ -180,7 +180,7 @@ values={[ // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -191,7 +191,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -199,7 +199,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -210,7 +210,7 @@ Tezos.estimate // import { TezosToolkit } from '@taquito/taquito'; // const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com'); -println(`Estimating the contract origination : `); +console.log(`Estimating the contract origination : `); Tezos.estimate .originate({ code: genericMultisigJSONfile, @@ -221,7 +221,7 @@ Tezos.estimate }, }) .then((originationOp) => { - println(`burnFeeMutez : ${originationOp.burnFeeMutez}, + console.log(`burnFeeMutez : ${originationOp.burnFeeMutez}, gasLimit : ${originationOp.gasLimit}, minimalFeeMutez : ${originationOp.minimalFeeMutez}, storageLimit : ${originationOp.storageLimit}, @@ -229,7 +229,7 @@ Tezos.estimate totalCost : ${originationOp.totalCost}, usingBaseFeeMutez : ${originationOp.usingBaseFeeMutez}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/inmemory_signer.md b/website/versioned_docs/version-20.0.0/inmemory_signer.md index 503b949641..1beaf8d42a 100644 --- a/website/versioned_docs/version-20.0.0/inmemory_signer.md +++ b/website/versioned_docs/version-20.0.0/inmemory_signer.md @@ -50,9 +50,9 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -67,9 +67,9 @@ InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNF return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` When required, Taquito offers the `b58cencode` function allowing to encode the secret in base58. The parameters of the function are the secret, that can be a `hex string` or an `Uint8Array`, and the desired prefix. Here is an example with a `hex string`: @@ -84,7 +84,7 @@ const b58encodedSecret = b58cencode( '7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d', prefix[Prefix.P2SK] ); -println( +console.log( `The secret is encoded in base58 and the prefix "p2sk" is added to it: ${b58encodedSecret}.` ); //We take the encoded secret to configure the signer. @@ -95,9 +95,9 @@ InMemorySigner.fromSecretKey(b58encodedSecret) return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ### Loading an encrypted private key with a passphrase @@ -131,9 +131,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -151,9 +151,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` ```js live noInline @@ -171,9 +171,9 @@ InMemorySigner.fromSecretKey( return Tezos.signer.publicKeyHash(); }) .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}.`); + console.log(`The public key hash associated is: ${publicKeyHash}.`); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,9 +202,9 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` With a non-default derivation path non-hardened with a tz2 address @@ -225,9 +225,9 @@ With a non-default derivation path non-hardened with a tz2 address Tezos.setSignerProvider(signer) Tezos.signer.publicKeyHash() .then((publicKeyHash) => { - println(`The public key hash associated is: ${publicKeyHash}`) + console.log(`The public key hash associated is: ${publicKeyHash}`) }) - .catch(err => println(err)) + .catch(err => console.log(err)) ``` ### Using a testnet faucet key diff --git a/website/versioned_docs/version-20.0.0/lambda_view.md b/website/versioned_docs/version-20.0.0/lambda_view.md index d9d797fbcd..0f3277dd4a 100644 --- a/website/versioned_docs/version-20.0.0/lambda_view.md +++ b/website/versioned_docs/version-20.0.0/lambda_view.md @@ -57,9 +57,9 @@ Tezos.contract return contract.views.getTotalSupply(UnitValue).read(); }) .then((response) => { - println(response); + console.log(response); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` **More examples:** @@ -85,9 +85,9 @@ Tezos.contract .read(); }) .then((response) => { - println(JSON.stringify(response, null, 2)); + console.log(JSON.stringify(response, null, 2)); }) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/ledger_signer.md b/website/versioned_docs/version-20.0.0/ledger_signer.md index 9a5dff3274..1e91f88b90 100644 --- a/website/versioned_docs/version-20.0.0/ledger_signer.md +++ b/website/versioned_docs/version-20.0.0/ledger_signer.md @@ -226,13 +226,13 @@ function getAddressInfo(transport, index) { return Tezos.signer.publicKeyHash().then((pkh) => { Tezos.tz.getBalance(pkh).then((balance) => { Tezos.rpc.getManagerKey(pkh).then((getPublicKey) => { - println( + console.log( `The public key hash related to the derivation path having the index ${index} is ${pkh}.` ); if (getPublicKey) { - println(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); + console.log(`The balance is ${balance.toNumber() / 1000000} ꜩ.\n`); } else { - println('This account is not revealed.\n'); + console.log('This account is not revealed.\n'); } }); }); diff --git a/website/versioned_docs/version-20.0.0/maps_bigmaps.md b/website/versioned_docs/version-20.0.0/maps_bigmaps.md index 34a7cb0ee4..4dc71ebabe 100644 --- a/website/versioned_docs/version-20.0.0/maps_bigmaps.md +++ b/website/versioned_docs/version-20.0.0/maps_bigmaps.md @@ -55,13 +55,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -85,13 +85,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -120,13 +120,13 @@ Tezos.contract }), }) .then((contractOriginated) => { - println(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -146,13 +146,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -181,7 +181,7 @@ Tezos.contract .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -191,25 +191,25 @@ Tezos.contract return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -224,7 +224,7 @@ Tezos.wallet .then((myStorage) => { //We want to see the value of the key "1" const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` @@ -234,25 +234,25 @@ Tezos.wallet return myContract.methodsObject.default('1').send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) .then((hash) => { - println(`Operation injected.`); + console.log(`Operation injected.`); //Use the get method to see the change in storage return myContract.storage(); }) .then((myStorage) => { const value = myStorage.get('1'); - println( + console.log( `The key "1" of the map has now a current_stock of ${ value[Object.keys(value)[0]] } and a max_price of ${value[Object.keys(value)[1]]}.` ); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -326,13 +326,13 @@ Tezos.contract }, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -383,13 +383,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -422,10 +422,10 @@ Tezos.contract 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -442,10 +442,10 @@ Tezos.wallet 0: '2', //nat 1: 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', //address }); - println(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : + console.log(`Values associated with this key : amount : ${value[Object.keys(value)[0]]}, quantity : ${value[Object.keys(value)[1]]}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -519,13 +519,13 @@ Tezos.contract storage: storageMap, }) .then((contractOriginated) => { - println(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); + console.log(`Waiting for the contract origination of ${contractOriginated.contractAddress}...`); return contractOriginated.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -571,13 +571,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -617,9 +617,9 @@ Tezos.contract 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -643,9 +643,9 @@ Tezos.wallet 7: '2019-09-06T15:08:29.000Z', // timestamp 8: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', // address }); - println(`The value associated to this key is ${value}.`); + console.log(`The value associated to this key is ${value}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -717,13 +717,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -774,13 +774,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -810,7 +810,7 @@ Tezos.contract 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -822,10 +822,10 @@ Tezos.contract }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -843,7 +843,7 @@ Tezos.wallet 0: '1', //nat 1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address }); - println(`The value associated with the specified key of the map is ${valueMap}.`); + console.log(`The value associated with the specified key of the map is ${valueMap}.`); return myContract.storage(); }) @@ -855,10 +855,10 @@ Tezos.wallet }); }) .then((valueBigMap) => { - println(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); + console.log(`The value associated with the specified key of the bigMap is ${valueBigMap}.`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -908,11 +908,11 @@ values={[ Tezos.contract .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -922,10 +922,10 @@ Tezos.contract }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` @@ -938,11 +938,11 @@ Tezos.contract Tezos.wallet .at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW') .then((contract) => { - println('Fetching the storage of the contract...'); + console.log('Fetching the storage of the contract...'); return contract.storage(); }) .then((storage) => { - println('Fetching the big map values...\n'); + console.log('Fetching the big map values...\n'); return storage['0'].getMultipleValues([ 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY', @@ -952,10 +952,10 @@ Tezos.wallet }) .then((values) => { values.forEach((value, key) => { - println(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); + console.log(`The value of the key ${key} is:\n${JSON.stringify(value, null, 2)}.\n`); }); }) - .catch((error) => println(JSON.stringify(error))); + .catch((error) => console.log(JSON.stringify(error))); ``` diff --git a/website/versioned_docs/version-20.0.0/metadata-tzip16.md b/website/versioned_docs/version-20.0.0/metadata-tzip16.md index 1e31f2cced..2268343d3e 100644 --- a/website/versioned_docs/version-20.0.0/metadata-tzip16.md +++ b/website/versioned_docs/version-20.0.0/metadata-tzip16.md @@ -104,13 +104,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -128,13 +128,13 @@ const contractAddress = 'KT1V9mi4SiN85aUKjkJGRDDxELSbMSMdBMcy'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -162,13 +162,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -185,13 +185,13 @@ const contractAddress = 'KT1MJ7wAZ9LBB797zhGJrXByaaUwvLGfe3qz'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -218,13 +218,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -242,13 +242,13 @@ const contractAddress = 'KT1JbEzvHn2Y2DjVQ7kgK8H8pxrspG893JsX'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -276,13 +276,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return contract.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -300,13 +300,13 @@ const contractAddress = 'KT1SDtsB4DHdh1QwFNgvsavxDwQJBdimgrcL'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Fetching the metadata for ${contractAddress}...`); + console.log(`Fetching the metadata for ${contractAddress}...`); return wallet.tzip16().getMetadata(); }) .then((metadata) => { - println(JSON.stringify(metadata, null, 2)); + console.log(JSON.stringify(metadata, null, 2)); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -366,18 +366,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.contract .at(contractAddress, tzip16) .then((contract) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -395,18 +395,18 @@ const contractAddress = 'KT1XdXkU9piczYpTU8ToAAGJunzFiGCWRvVK'; Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views.someJson().executeView(); }) .then((result) => { - println(`Result of the view someJson: ${result}`); - println(`Transform result to char: ${bytesToString(result)}`); + console.log(`Result of the view someJson: ${result}`); + console.log(`Transform result to char: ${bytesToString(result)}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -437,19 +437,19 @@ Tezos.contract .at(contractAddress, tzip16) .then((contract) => { return contract.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -468,19 +468,19 @@ Tezos.wallet .at(contractAddress, tzip16) .then((wallet) => { return wallet.storage().then((storage) => { - println(`The nat in the storage of the contract is: ${storage[0]}`); - println(`Initialising the views for ${contractAddress}...`); + console.log(`The nat in the storage of the contract is: ${storage[0]}`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }); }) .then((views) => { - println(`The following view names were found in the metadata: ${Object.keys(views)}`); + console.log(`The following view names were found in the metadata: ${Object.keys(views)}`); return views['multiply-the-nat-in-storage']().executeView(10); }) .then((result) => { - println(`Result of the view 'multiply-the-nat-in-storage': ${result}`); + console.log(`Result of the view 'multiply-the-nat-in-storage': ${result}`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -526,10 +526,10 @@ Tezos.contract ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -563,10 +563,10 @@ Tezos.wallet ); view.executeView(2).then((result) => { - println(`Result of the custom view: ${result}`); + console.log(`Result of the custom view: ${result}`); }); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-20.0.0/michelson_encoder.md b/website/versioned_docs/version-20.0.0/michelson_encoder.md index bf64c5d3c3..73ae5050dd 100644 --- a/website/versioned_docs/version-20.0.0/michelson_encoder.md +++ b/website/versioned_docs/version-20.0.0/michelson_encoder.md @@ -81,7 +81,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- When there is no annotation, the keys of the object are indexes starting from 0. @@ -101,7 +101,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` --- Here is another example using a complex storage: @@ -242,7 +242,7 @@ const storageType = }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.generateSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` ### The Typecheck method @@ -269,7 +269,7 @@ const typecheck = storageSchema.Typecheck({ threshold: 5, keys: ['edpkuLxx9PQD8fZ45eUzrK3yhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(typecheck); +console.log(typecheck); ``` ### The Encode method @@ -297,7 +297,7 @@ const michelsonData = storageSchema.Encode({ threshold: 5, keys: ['edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g', 'edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t'] }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### The Execute method @@ -345,7 +345,7 @@ const dataMichelson = { ] } const data = storageSchema.Execute(dataMichelson) -println(JSON.stringify(data, null, 2)); +console.log(JSON.stringify(data, null, 2)); ``` The `Execute` method takes an optional parameter of type `Semantic`. It allows overriding the default representation returned by the Michelson Encoder for specific types. @@ -359,12 +359,12 @@ const schema = new Schema({ prim: 'big_map', args: [{ prim: 'address' }, { prim: const dataMichelson = { int: 123456 } const data = schema.Execute(dataMichelson) -println(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); +console.log(`Default value returned by the Michelson Encoder for big_map: ${JSON.stringify(data, null, 2)}`); // instead of returning the big map id, we can override it // we return an object in this case const dataCustom = schema.Execute(dataMichelson, { big_map: (val) => Object({ id: val.int })}) -println(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the big_map value: ${JSON.stringify(dataCustom)}`); ``` --- Here is an example for the `ticket` type: @@ -374,10 +374,10 @@ const schema = new Schema({"prim":"ticket","args":[{"prim":"string"}]}); const dataMichelson = {"prim":"Pair","args":[{"string":"KT1PVuv7af4VkPsZVZ8oZz9GSSdGnGBCbFWw"},{"string":"test"},{"int":"2"}]} const data = schema.Execute(dataMichelson) -println(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); +console.log(`Default representation of the ticket value returned by the Michelson Encoder: ${JSON.stringify(data, null, 2)}`); const dataCustom = schema.Execute(dataMichelson, { ticket: (val) => val.args[1].string}) -println(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); +console.log(`Customized representation of the ticket value: ${JSON.stringify(dataCustom)}`); ``` ### How the Schema class is used inside Taquito @@ -404,7 +404,7 @@ const michelsonData = parameterSchema.Encode( 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', '12' ) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` --- Here is an example of `encodeObject`: @@ -414,7 +414,7 @@ const michelsonData = parameterSchema.EncodeObject({ spender: 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu', value: '12' }) -println(JSON.stringify(michelsonData, null, 2)); +console.log(JSON.stringify(michelsonData, null, 2)); ``` ### How the ParameterSchema class is used inside Taquito @@ -442,7 +442,7 @@ const storageSchema = new Schema({ ] }); const annotatedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(annotatedSchema, null, 2)); +console.log(JSON.stringify(annotatedSchema, null, 2)); ``` --- We can also have a similar definition without the annotations: @@ -461,7 +461,7 @@ const storageSchema = new Schema({ ] }); const noAnnotationsSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(noAnnotationsSchema, null, 2)); +console.log(JSON.stringify(noAnnotationsSchema, null, 2)); ``` In Taquito, we will flatten these nested `pair`s to make it easier to use them in typescript dApps. Please note how the result of `generateSchema` is different in the annotated vs non-annotated cases: @@ -510,7 +510,7 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` ### Unions @@ -531,5 +531,5 @@ const storageSchema = new Schema({ ] }); const mixedSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(mixedSchema, null, 2)); +console.log(JSON.stringify(mixedSchema, null, 2)); ``` diff --git a/website/versioned_docs/version-20.0.0/on_chain_views.md b/website/versioned_docs/version-20.0.0/on_chain_views.md index 09aeb69119..8652d2dfe0 100644 --- a/website/versioned_docs/version-20.0.0/on_chain_views.md +++ b/website/versioned_docs/version-20.0.0/on_chain_views.md @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; ## On-chain views description -- The `On-chain views` feature was introduced in the Hangzhou protocol. +- The `On-chain views` feature was introduced in the Hangzhou protocol. - Views are meant to be called by a contract. It can be the contract where the view is defined or another contract. - Views help to avoid the need to use callbacks in contracts. - Views take arguments as input and may depend on the contract's storage declaring the view. @@ -89,8 +89,8 @@ view "fib" nat nat } } } -``` - +``` + ## Calling an on-chain view Views are meant to be called by a contract using the Michelson Instruction `View` followed by the view name and its result type. @@ -110,7 +110,7 @@ code { **Example of calling a contract entrypoint that makes a call to a view using Taquito:** -The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). +The following live code example shows a contract (`contractCallFib`) calling the view `fib` of another contract (`contractTopLevelViews`). The example first shows the initial storage of the contract `contractCallFib`. It calls the default entry point of `contractCallFib` with the value of its storage + 1 and the address of the contract `contractTopLevelViews`. A call is made to the `fib` view of `contractTopLevelViews` with the `storage + 1` as argument. The view returns the value of the Fibonacci sequence at the position represented by `storage + 1`. The storage of `contractCallFib` is updated to the result of the view. @@ -130,23 +130,23 @@ Tezos.contract.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -159,32 +159,32 @@ Tezos.wallet.at(contractCallFib) .then((contract) => { contract.storage() .then((storage) => { - println(`The initial storage of ${contractCallFib} is ${storage}.`); + console.log(`The initial storage of ${contractCallFib} is ${storage}.`); const fibPosition = storage.toNumber() + 1; - println(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); + console.log(`Calling the default method of ${contractCallFib} will call the view fib of ${contractTopLevelViews} with ${fibPosition}.`); return contract.methodsObject.default({ 0: fibPosition, 1: contractTopLevelViews }).send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash) .then(() => { return contract.storage() .then((finalStorage) => { - println(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); + console.log(`The storage is now ${finalStorage} which corresponds to the value of the Fibonacci sequence at position ${fibPosition}.`); }) }) }) }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` ## How to simulate a view execution using Taquito -Taquito offers the ability to simulate the result of on-chain views. +Taquito offers the ability to simulate the result of on-chain views. -The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. +The user can create an instance of `ContractAbstraction` using the `at` method of the Contract or Wallet API with the contract's address that defines the views. The `contractViews` member of the `ContractAbstraction` instance is dynamically populated with methods that match the on-chain view names. *`contractViews` is an object where the key is the view name, and the value is a function that takes the view arguments as a parameter and returns an instance of `OnChainView` class.* @@ -192,7 +192,7 @@ If the view takes multiple arguments, the view parameter is expected in an objec *Note for reference, the flattened arguments are the expected format when calling a contract entry point using the `methods` member, but we plan to move away from this format in favor the object one, which is also used for the storage when deploying a contract [see the difference between `methodsObject` and `methods` members of the `ContractAbstraction`](smartcontracts.md#choosing-between-the-methods-or-methodsobject-members-to-interact-with-smart-contracts).* -A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. +A method named `getSignature` on the `OnChainView` class allows inspecting the parameter and the returned type of the view. The `executeView` method of the `OnChainView` class allows simulating the view. It takes a `viewCaller` as a parameter representing the contract address which is the caller of the view, and an optional `source` which is the public key hash of the account that initialized this view execution. @@ -215,10 +215,10 @@ Tezos.contract.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -233,11 +233,11 @@ Tezos.wallet.at(contractTopLevelViews) .then((contract) => { return contract.contractViews.fib(fibPosition).executeView({ viewCaller: contractCallFib }) .then((viewResult) => { - println(`The result of the view simulation is ${viewResult}.`); + console.log(`The result of the view simulation is ${viewResult}.`); }) }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` diff --git a/website/versioned_docs/version-20.0.0/originate.md b/website/versioned_docs/version-20.0.0/originate.md index 5ee4d99235..215fb5be8f 100644 --- a/website/versioned_docs/version-20.0.0/originate.md +++ b/website/versioned_docs/version-20.0.0/originate.md @@ -108,13 +108,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -138,13 +138,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,13 +175,13 @@ Tezos.contract init: `(Pair 0 (Pair 1 { "edpkuLxx9PQD8fZ45eUzrK3BhfDZJHhBuK4Zi49DcEGANwd2rpX82t" }))`, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -201,13 +201,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -248,13 +248,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -286,13 +286,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then((contract) => { - println(`Origination completed for ${contract.address}.`); + console.log(`Origination completed for ${contract.address}.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/quick_start.md b/website/versioned_docs/version-20.0.0/quick_start.md index 3db98ac188..10e2e0b4e2 100644 --- a/website/versioned_docs/version-20.0.0/quick_start.md +++ b/website/versioned_docs/version-20.0.0/quick_start.md @@ -61,8 +61,8 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please Tezos.tz .getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY') - .then((balance) => println(`${balance.toNumber() / 1000000} ꜩ`)) - .catch((error) => println(JSON.stringify(error))); + .then((balance) => console.log(`${balance.toNumber() / 1000000} ꜩ`)) + .catch((error) => console.log(JSON.stringify(error))); ``` ### Using the inMemory Signer and Importing a key @@ -104,15 +104,15 @@ values={[ const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.contract .transfer({ to: address, amount: amount }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -122,16 +122,16 @@ Tezos.contract const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY'; -println(`Transfering ${amount} ꜩ to ${address}...`); +console.log(`Transfering ${amount} ꜩ to ${address}...`); Tezos.wallet .transfer({ to: address, amount: amount }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` @@ -155,15 +155,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -175,15 +175,15 @@ Tezos.wallet .then((wallet) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return wallet.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(1).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/sapling.md b/website/versioned_docs/version-20.0.0/sapling.md index 69d41588bd..139751cb09 100644 --- a/website/versioned_docs/version-20.0.0/sapling.md +++ b/website/versioned_docs/version-20.0.0/sapling.md @@ -96,11 +96,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice balance in the shielded pool...`); + console.log(`Fetching Alice balance in the shielded pool...`); return txViewer.getBalance(); }) - .then((balance) => println(`Alice's balance is ${balance.toString()} mutez`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((balance) => console.log(`Alice's balance is ${balance.toString()} mutez`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to retrieve my transaction history? @@ -129,11 +129,11 @@ const saplingToolkit = new SaplingToolkit( saplingToolkit.getSaplingTransactionViewer() .then((txViewer) => { - println(`Fetching Alice's history of transactions in the shielded pool...`); + console.log(`Fetching Alice's history of transactions in the shielded pool...`); return txViewer.getIncomingAndOutgoingTransactions(); }) - .then((history) => println(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((history) => console.log(`Alice's transaction history is ${JSON.stringify(history, null, 2)}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` ## How to prepare a shielded transaction? @@ -174,12 +174,12 @@ const saplingToolkit = new SaplingToolkit( inMemorySpendingKey.getSaplingViewingKeyProvider() .then((inMemoryViewingKey) => { - println(`Fetching a payment address for Alice (zet)...`); + console.log(`Fetching a payment address for Alice (zet)...`); return inMemoryViewingKey.getAddress(); }) .then((paymentAddress) => { - println(`Alice's payment address is: ${paymentAddress.address}`); - println(`Preparing the shielded transaction...`); + console.log(`Alice's payment address is: ${paymentAddress.address}`); + console.log(`Preparing the shielded transaction...`); return saplingToolkit.prepareShieldedTransaction([{ to: paymentAddress.address, amount: 3, @@ -188,20 +188,20 @@ inMemorySpendingKey.getSaplingViewingKeyProvider() }]); }) .then((shieldedTx) => { - println(`The sapling transaction parameter is: ${shieldedTx}`); + console.log(`The sapling transaction parameter is: ${shieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); // The amount MUST be specified in the send method to transfer the 3 tez to the shielded pool return saplingContract.methodsObject.default([shieldedTx]).send({ amount: 3 }); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) - .catch((error) => println(`Error: ${(error)}`)); + .catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare a Sapling transaction? @@ -244,7 +244,7 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the sapling transaction...`); +console.log(`Preparing the sapling transaction...`); saplingToolkit.prepareSaplingTransaction([{ to: 'zet14CMN2T4x1f8sgXeAGWQwczSf6SJ8bm8nyP2Tg7HJn2VmtPtB2nE2q7MMgdmMEwpGQ', amount: 3, @@ -252,19 +252,19 @@ saplingToolkit.prepareSaplingTransaction([{ mutez: false // set to false by default }]) .then((saplingTx) => { - println(`The sapling transaction parameter is: ${saplingTx}`); + console.log(`The sapling transaction parameter is: ${saplingTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([saplingTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` ## How to prepare an unshielded transaction? @@ -302,26 +302,26 @@ const saplingToolkit = new SaplingToolkit( readProvider ); -println(`Preparing the unshielded transaction...`); +console.log(`Preparing the unshielded transaction...`); saplingToolkit.prepareUnshieldedTransaction({ to: 'tz1hDFKpVkT7jzYncaLma4vxh4Gg6JNqvdtB', amount: 20, mutez: true // set to false by default }) .then((unshieldedTx) => { - println(`The sapling transaction parameter is: ${unshieldedTx}`); + console.log(`The sapling transaction parameter is: ${unshieldedTx}`); Tezos.contract.at(saplingContractAddress) .then((saplingContract) => { - println(`Injecting the Sapling transaction using the ContractAbstraction...`); + console.log(`Injecting the Sapling transaction using the ContractAbstraction...`); return saplingContract.methodsObject.default([unshieldedTx]).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(1).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) }) -.catch((error) => println(`Error: ${(error)}`)); +.catch((error) => console.log(`Error: ${(error)}`)); ``` # SaplingTransactionViewer diff --git a/website/versioned_docs/version-20.0.0/sapling_in_memory_viewing_key.md b/website/versioned_docs/version-20.0.0/sapling_in_memory_viewing_key.md index b7772ad39b..da378c3158 100644 --- a/website/versioned_docs/version-20.0.0/sapling_in_memory_viewing_key.md +++ b/website/versioned_docs/version-20.0.0/sapling_in_memory_viewing_key.md @@ -7,7 +7,7 @@ The `InMemoryViewingKey` class can be instantiated from a viewing or spending ke ### Instantiation from a viewing key: -```js +```js import { InMemoryViewingKey } from '@taquito/sapling'; const inMemoryViewingKey = new InMemoryViewingKey( '000000000000000000977d725fc96387e8ec1e603e7ae60c6e63529fb84e36e126770e9db9899d7f2344259fd700dc80120d3c9ca65d698f6064043b048b079caa4f198aed96271740b1d6fd523d71b15cd0b3d75644afbe9abfedb6883e299165665ab692c14ca5c835c61a0e53de553a751c78fbc42d5e7eca807fd441206651c84bf88de803efba837583145a5f338b1a7af8a5f9bec4783054f9d063d365f2352f72cbced95e0a' @@ -23,9 +23,9 @@ InMemoryViewingKey.fromSpendingKey( 'sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L', ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -39,9 +39,9 @@ InMemoryViewingKey.fromSpendingKey( 'test' // password ).then((inMemoryViewingKey) => { const viewingKey = inMemoryViewingKey.getFullViewingKey() - println(`The viewing key is ${viewingKey.toString('hex')}`); + console.log(`The viewing key is ${viewingKey.toString('hex')}`); }) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -57,6 +57,6 @@ const inMemoryViewingKey = new InMemoryViewingKey( ); inMemoryViewingKey.getAddress() -.then((address) => println(`The address is ${JSON.stringify(address, null, 2)}`)) -.catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.then((address) => console.log(`The address is ${JSON.stringify(address, null, 2)}`)) +.catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-20.0.0/signing.md b/website/versioned_docs/version-20.0.0/signing.md index 022ee1021a..94330f955c 100644 --- a/website/versioned_docs/version-20.0.0/signing.md +++ b/website/versioned_docs/version-20.0.0/signing.md @@ -167,8 +167,8 @@ const packed = packDataBytes( ); Tezos.signer .sign(packed.bytes) - .then((signed) => println(JSON.stringify(signed, null, 2))) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((signed) => console.log(JSON.stringify(signed, null, 2))) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` First, you provide the Michelson code to be signed as a string along with its type. diff --git a/website/versioned_docs/version-20.0.0/smartcontracts.md b/website/versioned_docs/version-20.0.0/smartcontracts.md index f4228884de..779e83b550 100644 --- a/website/versioned_docs/version-20.0.0/smartcontracts.md +++ b/website/versioned_docs/version-20.0.0/smartcontracts.md @@ -81,7 +81,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -96,7 +96,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let methods = c.parameterSchema.ExtractSignatures(); - println(JSON.stringify(methods, null, 2)); + console.log(JSON.stringify(methods, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -129,7 +129,7 @@ Tezos.contract .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -143,7 +143,7 @@ Tezos.wallet .at('KT1KAUbe1gsdw5BeVQfgjh9xZFrHrKVs8ApD') .then((c) => { let incrementParams = c.methodsObject.increment(2).toTransferParams(); - println(JSON.stringify(incrementParams, null, 2)); + console.log(JSON.stringify(incrementParams, null, 2)); }) .catch((error) => console.log(`Error: ${error}`)); ``` @@ -174,15 +174,15 @@ Tezos.contract .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.hash} to be confirmed...`); + console.log(`Waiting for ${op.hash} to be confirmed...`); return op.confirmation(3).then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -195,15 +195,15 @@ Tezos.wallet .then((contract) => { const i = 7; - println(`Incrementing storage value by ${i}...`); + console.log(`Incrementing storage value by ${i}...`); return contract.methodsObject.increment(i).send(); }) .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation(3).then(() => op.opHash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -235,8 +235,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methodsObject.set_child_record().getSignature(), null, @@ -244,7 +244,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an object giving indication on how to structure the parameter when calling the`set_child_record` method. Here is an example where the `set_child_record` method is called by passing the parameter in an object format: @@ -270,11 +270,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -287,8 +287,8 @@ In the following example, a contract's `set_child_record` method will be called Tezos.contract .at('KT1B2exfRrGMjfZqWK1bDemr3nBFhHsUWQuN') .then((contract) => { - println(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); - println( + console.log(`List all contract methods: ${Object.keys(contract.methodsObject)}\n`); + console.log( `Inspect the signature of the 'set_child_record' contract method: ${JSON.stringify( contract.methods.set_child_record().getSignature(), null, @@ -296,7 +296,7 @@ Tezos.contract )}` ); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` The preceding example returns an array which contains the different possible signatures. Different signatures are possible as the `set_child_record` method contains some optional arguments. In the following example the `set_child_record` method is called by passing the arguments in the flattened way: @@ -323,11 +323,11 @@ importKey(Tezos, secretKey) .send(); }) .then((op) => { - println(`Awaiting for ${op.hash} to be confirmed...`); + console.log(`Awaiting for ${op.hash} to be confirmed...`); return op.confirmation().then(() => op.hash); }) - .then((hash) => println(`Operation injected: https://ghost.tzstats.com/${hash}`)) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .then((hash) => console.log(`Operation injected: https://ghost.tzstats.com/${hash}`)) + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` diff --git a/website/versioned_docs/version-20.0.0/storage_annotations.md b/website/versioned_docs/version-20.0.0/storage_annotations.md index 998103c9ac..f889263eba 100644 --- a/website/versioned_docs/version-20.0.0/storage_annotations.md +++ b/website/versioned_docs/version-20.0.0/storage_annotations.md @@ -50,13 +50,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -77,13 +77,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -125,13 +125,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -152,13 +152,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -202,13 +202,13 @@ Tezos.contract }, }) .then((originationOp) => { - println(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); + console.log(`Waiting for confirmation of origination for ${originationOp.contractAddress}...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -230,13 +230,13 @@ Tezos.wallet }) .send() .then((originationOp) => { - println(`Waiting for confirmation of origination...`); + console.log(`Waiting for confirmation of origination...`); return originationOp.contract(); }) .then(() => { - println(`Origination completed.`); + console.log(`Origination completed.`); }) - .catch((error) => println(`Error: ${JSON.stringify(error, null, 2)}`)); + .catch((error) => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` \ No newline at end of file diff --git a/website/versioned_docs/version-20.0.0/taquito_utils.md b/website/versioned_docs/version-20.0.0/taquito_utils.md index 02ebed525a..236fb758b9 100644 --- a/website/versioned_docs/version-20.0.0/taquito_utils.md +++ b/website/versioned_docs/version-20.0.0/taquito_utils.md @@ -43,12 +43,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -63,12 +63,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -83,7 +83,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -98,12 +98,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -116,12 +116,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -134,12 +134,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -152,12 +152,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -169,12 +169,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -186,12 +186,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -208,5 +208,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-20.0.0/tzip12.md b/website/versioned_docs/version-20.0.0/tzip12.md index 4d130dddcb..bcbc463059 100644 --- a/website/versioned_docs/version-20.0.0/tzip12.md +++ b/website/versioned_docs/version-20.0.0/tzip12.md @@ -9,7 +9,7 @@ The `@taquito/tzip12` package allows retrieving metadata associated with tokens ## How to use the tzip12 package -The package can act as an extension to the well-known Taquito contract abstraction. +The package can act as an extension to the well-known Taquito contract abstraction. 1. **We first need to create an instance of `Tzip12Module` and add it as an extension to our `TezosToolkit`** @@ -32,8 +32,8 @@ Tezos.addExtension(new Tzip12Module()); const contract = await Tezos.contract.at("contractAddress", tzip12) ``` -**The compose function** -The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. +**The compose function** +The contract abstraction can also be extended to a `Tzip12ContractAbstraction` and a `Tzip16ContractAbstraction` (at the same time) by using the `compose` function. Thus, all methods of the `ContractAbstraction`, `Tzip12ContractAbstraction` and `Tzip16ContractAbstraction` classes will be available on the contract abstraction instance. ```js @@ -50,7 +50,7 @@ await contract.tzip16().getMetadata(); // Tzip16ContractAbstraction method There are two scenarios to obtain the metadata of a token: 1. They can be obtained from executing an off-chain view named `token_metadata` present in the contract metadata -2. or from a big map named `token_metadata` in the contract storage. +2. or from a big map named `token_metadata` in the contract storage. The `getTokenMetadata` method of the `Tzip12ContractAbstraction` class will find the token metadata with precedence for the off-chain view, if there is one, as specified in the standard. @@ -97,13 +97,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, compose(tzip12, tzip16)) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -121,14 +121,14 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, compose(tzip12, tzip16)) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -154,19 +154,19 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip16) .then(contract => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return contract.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -183,20 +183,20 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip16) .then(wallet => { - println(`Initialising the views for ${contractAddress}...`); + console.log(`Initialising the views for ${contractAddress}...`); return wallet.tzip16().metadataViews(); }) .then (views => { return views['token_metadata']().executeView(tokenId) }).then (result => { - println('Result of the view token_metadata:'); - println(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); - println(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); - println(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); - println(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); + console.log('Result of the view token_metadata:'); + console.log(`name: ${bytesToString((Object.values(result)[1]).get('name'))}`); + console.log(`decimals: ${bytesToString((Object.values(result)[1]).get('decimals'))}`); + console.log(`symbol: ${bytesToString((Object.values(result)[1]).get('symbol'))}`); + console.log(`extra: ${bytesToString((Object.values(result)[1]).get('extra'))}`); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` @@ -211,7 +211,7 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ @@ -229,15 +229,15 @@ To be [Tzip-012 compliant](https://gitlab.com/tzip/tzip/-/blob/master/proposals/ ``` prim: 'big_map', args: [ - { prim: 'nat' }, + { prim: 'nat' }, { prim: 'pair', args: [ - { prim: 'nat' , annots: ['%token_id']}, + { prim: 'nat' , annots: ['%token_id']}, { prim: "map", args: [{ prim: 'string' }, { prim: 'bytes' }], annots: ['%token_info'] }] }], annots: ['%token_metadata'] ``` - + Otherwise, the token metadata won't be found by the `getTokenMetadata` method, and a `TokenMetadataNotFound` error will be thrown. ::: @@ -262,13 +262,13 @@ const tokenId = 1; Tezos.contract.at(contractAddress, tzip12) .then(contract => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return contract.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); ``` @@ -285,17 +285,17 @@ const tokenId = 1; Tezos.wallet.at(contractAddress, tzip12) .then(wallet => { - println(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); + console.log(`Fetching the token metadata for the token ID ${tokenId} of ${contractAddress}...`); return wallet.tzip12().getTokenMetadata(tokenId); }) .then (tokenMetadata => { - println(JSON.stringify(tokenMetadata, null, 2)); + console.log(JSON.stringify(tokenMetadata, null, 2)); }) -.catch(error => println(`Error: ${JSON.stringify(error, null, 2)}`)); -``` +.catch(error => console.log(`Error: ${JSON.stringify(error, null, 2)}`)); +``` -#### For more information on the contracts used in the examples: +#### For more information on the contracts used in the examples: integration-tests/tzip12-token-metadata.spec.ts \ No newline at end of file diff --git a/website/versioned_docs/version-20.0.0/validators.md b/website/versioned_docs/version-20.0.0/validators.md index dc1c5a0f36..d26f673290 100644 --- a/website/versioned_docs/version-20.0.0/validators.md +++ b/website/versioned_docs/version-20.0.0/validators.md @@ -26,12 +26,12 @@ import { validateAddress } from '@taquito/utils'; //valid const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateAddress(pkh); -println(`Calling the validateAddress function with ${pkh} returns ${validation}.`); +console.log(`Calling the validateAddress function with ${pkh} returns ${validation}.`); //invalid checksum const invalidPkh = 'tz1L9r8mWmRpndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateAddress(invalidPkh); -println(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); +console.log(`Calling the validateAddress function with ${invalidPkh} returns ${invalidValidation}.`); ``` #### The `validateKeyHash` function @@ -46,12 +46,12 @@ import { validateKeyHash } from '@taquito/utils'; //valid const keyHash = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const validation = validateKeyHash(keyHash); -println(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${validation}.`); //invalid prefix const keyHashWithoutPrefix = 'L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validateKeyHash(keyHashWithoutPrefix); -println(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); +console.log(`Calling the validateKeyHash function with ${keyHash} returns ${invalidValidation}.`); ``` #### The `validateContractAddress` function @@ -66,7 +66,7 @@ import { validateContractAddress } from '@taquito/utils'; //valid const contractAddress = 'KT1AfxAKKLnEg6rQ6kHdvCWwagjSaxEwURSJ'; const validation = validateContractAddress(contractAddress); -println(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); +console.log(`Calling the validateContractAddress function with ${contractAddress} returns ${validation}.`); ``` ### Validate a chain @@ -81,12 +81,12 @@ import { validateChain } from '@taquito/utils'; //valid const chainId = 'NetXdQprcVkpaWU'; const validation = validateChain(chainId); -println(`Calling the validateChain function with ${chainId} returns ${validation}.`); +console.log(`Calling the validateChain function with ${chainId} returns ${validation}.`); //invalid prefix const chainIdWithoutPrefix = 'XdQprcVkpaWU'; const invalidValidation = validateChain(chainIdWithoutPrefix); -println(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); +console.log(`Calling the validateChain function with ${chainIdWithoutPrefix} returns ${invalidValidation}.`); ``` ### Validate a public key @@ -99,12 +99,12 @@ import { validatePublicKey } from '@taquito/utils'; //valid const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'; const validation = validatePublicKey(publicKey); -println(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); +console.log(`Calling the validatePublicKey function with ${publicKey} returns ${validation}.`); //invalid prefix const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'; const invalidValidation = validatePublicKey(value); -println(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); +console.log(`Calling the validatePublicKey function with ${value} returns ${invalidValidation}.`); ``` ### Validate a signature @@ -117,12 +117,12 @@ import { validateSignature } from '@taquito/utils'; //valid const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'; const validation = validateSignature(signature); -println(`Calling the validateSignature function with ${signature} returns ${validation}.`); +console.log(`Calling the validateSignature function with ${signature} returns ${validation}.`); //invalid checksum const invalidSignature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuM'; const invalidValidation = validateSignature(invalidSignature); -println(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); +console.log(`Calling the validateSignature function with ${invalidSignature} returns ${invalidValidation}.`); ``` ### Validate a Block Hash @@ -135,12 +135,12 @@ import { validateBlock } from '@taquito/utils'; //valid const block ='BLJjnzaPtSsxykZ9pLTFLSfsKuiN3z7SjSPDPWwbE4Q68u5EpBw'; const validation = validateBlock(block); -println(`Calling the validateBlock function with ${block} returns ${validation}.`); +console.log(`Calling the validateBlock function with ${block} returns ${validation}.`); //invalid checksum const invalidBlock ='BMEdgRZbJJrtByoA5Jyuvy8mzp8mefbcrno82nQCAEbBCUhog'; const invalidValidation = validateBlock(invalidBlock); -println(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); +console.log(`Calling the validateBlock function with ${invalidBlock} returns ${invalidValidation}.`); ``` ### Validate an Operation Hash @@ -152,12 +152,12 @@ import { validateOperation } from '@taquito/utils'; //valid const operation ='ood2Y1FLHH9izvYghVcDGGAkvJFo1CgSEjPfWvGsaz3qypCmeUj'; const validation = validateOperation(operation); -println(`Calling the validateOperation function with ${operation} returns ${validation}.`); +console.log(`Calling the validateOperation function with ${operation} returns ${validation}.`); //invalid checksum const invalidOperation ='ont3n75kMA2xeoTdxkGM23h5XhWgyP51WEznc4zCDtGNz1TWSz'; const invalidValidation = validateOperation(invalidOperation); -println(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); +console.log(`Calling the validateOperation function with ${invalidOperation} returns ${invalidValidation}.`); ``` ### Validate a Protocol Hash @@ -169,12 +169,12 @@ import { validateProtocol } from '@taquito/utils'; //valid const protocol ='PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'; const validation = validateProtocol(protocol); -println(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); +console.log(`Calling the validateProtocol function with ${protocol} returns ${validation}.`); //invalid checksum const invalidProtocol ='PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95b3m53QJiXGmrbU'; const invalidValidation = validateProtocol(invalidProtocol); -println(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); +console.log(`Calling the validateProtocol function with ${invalidProtocol} returns ${invalidValidation}.`); ``` # Verification of a signature @@ -191,5 +191,5 @@ const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey'; const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx' const isValid = verifySignature(message, pk, sig); -println(isValid); +console.log(isValid); ``` diff --git a/website/versioned_docs/version-20.0.0/version.md b/website/versioned_docs/version-20.0.0/version.md index 705e323944..f2c9f94d9e 100644 --- a/website/versioned_docs/version-20.0.0/version.md +++ b/website/versioned_docs/version-20.0.0/version.md @@ -6,16 +6,16 @@ author: Jev Bjorsell # Taquito v20.0.0 ## Summary -### Paris(B) Protocol Support +### Paris(B) Protocol Support Paris(B) Protocol has new Adaptive Issuance features, including staking pseudo-operations and rpc endpoints. -⚠️ Warning ⚠️ +⚠️ Warning ⚠️ Adaptive Issuance, Staking, and Adaptive slashing will be in effect roughly two weeks (5 cycles) after the proposal is activated on Mainnet. The new AI features will not be usable until then. ### ⚠️ Breaking Changes ⚠️ ### Beacon Migration -As of Beacon version 4.2.0, Beacon has migrated from using `dAppClient.getActiveAccount()` to using an event subscription method `BeaconEvent.ACTIVE_ACCOUNT_SET` for handling active account changes. +As of Beacon version 4.2.0, Beacon has migrated from using `dAppClient.getActiveAccount()` to using an event subscription method `BeaconEvent.ACTIVE_ACCOUNT_SET` for handling active account changes. **IF YOU ARE STILL USING THE `eventHandlers` PROPERTY WHEN INITIALIZING A DAPP CLIENT, PLEASE UPDATE YOUR CODE.** @@ -62,10 +62,10 @@ New behaviour - inner object's field number will start with '0' - `@taquito/rpc` - Removed `getEndorsingRights` RPC endpoint along with its related type definition and tests #2884 - `@taquito/rpc` - Updated RPC types for `AttestationWithDal` and `EndorsementWithDal` #2880 - `@taquito/rpc` - Updated RPC response types to support DAL types #2882 -- `@taquito/rpc` - Updated RPC response type for the new manager op `dal_publish_commitment` #2881 +- `@taquito/rpc` - Updated RPC response type for the new manager op `dal_publish_commitment` #2881 - `@taquito/rpc` - Added a new RPC endpoint called `getAllDelegates` #2976 - `@taquito/local-forging` - Added local forging support for `AttestationWithDal` operation #2880 -- `@taquito/local-forging` - Added local forging support for the new manager operation `dal_publish_commitment` #2881 +- `@taquito/local-forging` - Added local forging support for the new manager operation `dal_publish_commitment` #2881 - `@taquito/michel-codec` - Updated Michelson type definitions and validators to include the new Paris protocol ticket literals [PR#2940](https://github.com/ecadlabs/taquito/pull/2940) ### Internals @@ -127,10 +127,10 @@ await op.confirmation(); # Taquito v19.1.0 -**Potential Breaking Changes**: +**Potential Breaking Changes**: - `@taquito/rpc` - replaced `OperationBalanceUpdatesItem` in favour of `OperationMetadataBalanceUpdates` #2817 #2827 - `@taquito/taquito` - Several optimizations made to fees and estimation in Taquito #2532 - - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details + - removed `DEFAULT_GAS_LIMIT`, `DEFAULT_STORAGE_LIMIT`, `DEFAULT_FEE` in favour of `getRevealFee`, more details - Added a small buffer to `gasLimit` (varying depending on operations) - Reduced `suggestedFeeMutez` buffer from 100 to 20 per op - Refined `gasLimit` and `storageLimit` according to `simulate_operation` results from the octez-client @@ -139,12 +139,12 @@ await op.confirmation(); ### New Features - `@taquito/taquito` - Added smart rollup execute outbox message operation #2321 (please note that this feature is not fully tested due to some parts requiring the use of `octez-client`) -`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 +`@taquito/beacon-wallet` - added beacon-wallet bundle script to output a `.zip` bundle for browser only environments #2744 ### Improvement - `@taquito/michelson-encoder` - replaced references of `[['unit']]` to be `UnitValue` instead [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) -- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 -- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 +- `@taquito/taquito` - added 20 storageLimit buffer to prevent `storage_exhausted` error #2854 +- `@taquito/taquito` - removed the storageLimit cap mechanism #2855 ### Documentation - Added michel-codec to Typedoc documentation #2806 @@ -152,7 +152,7 @@ await op.confirmation(); - Removed `giganode` references from Taquito documentation [PR#2813](https://github.com/ecadlabs/taquito/pull/2813) ### Deprecation -- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 +- `@taquito/utils` - Deprecated several util methods and updated their names into something more representative. Slight improvements to existing util methods #2372 #2274 - `@taquito/taquito` - Deprecated `methods` in favour of `methodsObject`. `methodsObject`'s syntax is more consistent with storage params, supports all Michelson data types, and will be maintained going forward #2813 ### Internals @@ -180,7 +180,7 @@ await op.confirmation(); # Taquito v19.0.0 :::info -You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. +You might have noticed that we jumped versions from v17.5.0 to v19.0.0 (no v18). We do this as an effort to be in parallel with the current Octez version. - Oxford - v18 - Oxford2 - v19 @@ -211,7 +211,7 @@ Oxford2 changes: # Taquito 17.5.0 **Important Note:** -In this version, we replaced instances of `Axios` in favour of `Fetch`. +In this version, we replaced instances of `Axios` in favour of `Fetch`. We are not expecting any breaking changes, but if there are any issues that you see regarding this, please reach out to the Taquito team. @@ -225,7 +225,7 @@ We are not expecting any breaking changes, but if there are any issues that you ### Documentation - Updated RPC nodes on the website [PR#2732](https://github.com/ecadlabs/taquito/pull/2732 - Updated Michelson encoder documentation to reference `generateSchema` instead of the outdated `extractSchema` #2630 -- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 +- Added a Taquito Chatbot assistant for the Taquito website to help answer user questions #2684 ### Internals - Removed archive node, and references to it in Taquito [PR#2743](https://github.com/ecadlabs/taquito/pull/2743) @@ -245,7 +245,7 @@ With this change we hope for a more stable HTTP handler in Taquito while reducin # Taquito v17.4.0 -**Potential Breaking Changes** : +**Potential Breaking Changes** : We have updated various dependencies to the latest version in this release. Please update and test our packages for compatibility. We encourage all users to get in touch with the Taquito team if you encounter any unexpected behaviours and/or side effects. ## Summary @@ -2435,7 +2435,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta, the returned value was:* ```typescript= @@ -2485,7 +2485,7 @@ const storageType = { }; const storageSchema = new Schema(storageType); const extractSchema = storageSchema.ExtractSchema(); -println(JSON.stringify(extractSchema, null, 2)); +console.log(JSON.stringify(extractSchema, null, 2)); ``` *before version 10.0.0-beta the returned value was:* ```json= diff --git a/website/versioned_docs/version-20.0.0/wallet_API.md b/website/versioned_docs/version-20.0.0/wallet_API.md index 04ad53a32c..f5b1111c05 100644 --- a/website/versioned_docs/version-20.0.0/wallet_API.md +++ b/website/versioned_docs/version-20.0.0/wallet_API.md @@ -118,7 +118,7 @@ Make sure you have the Beacon browser extension installed (the extension offers wallet .requestPermissions() .then((_) => wallet.getPKH()) - .then((address) => println(`Your address: ${address}`)); + .then((address) => console.log(`Your address: ${address}`)); Tezos.setWalletProvider(wallet); ``` @@ -217,7 +217,7 @@ TempleWallet.isAvailable() return myWallet.getPKH(); }) .then((pkh) => { - println(`Your address: ${pkh}`); + console.log(`Your address: ${pkh}`); }); }) .catch((err) => console.log(err)); @@ -234,18 +234,18 @@ Tezos.wallet .transfer({ to: 'tz1NhNv9g7rtcjyNsH8Zqu79giY5aTqDDrzB', amount: 0.2 }) .send() .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); op.confirmation() .then((result) => { console.log(result); if (result.completed) { - println('Transaction correctly processed!'); + console.log('Transaction correctly processed!'); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) - .catch((err) => println(err)); + .catch((err) => console.log(err)); }); ``` @@ -258,11 +258,11 @@ Tezos.wallet .transfer({ to: 'KT1TBxaaeikEUcVN2qdQY7n9Q21ykcX1NLzY', amount: 0.2 }) .send() .then((op) => { - println(`Waiting for ${op.opHash} to be confirmed...`); + console.log(`Waiting for ${op.opHash} to be confirmed...`); return op.confirmation().then(() => op.opHash); }) - .then(() => println(`Operation injected!`)) - .catch((error) => println(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); + .then(() => console.log(`Operation injected!`)) + .catch((error) => console.log(`Error: ${error} ${JSON.stringify(error, null, 2)}`)); ``` Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example. @@ -292,17 +292,17 @@ Tezos.wallet .at('KT1SHiNUNmqBFGNysX9pmh1DC2tQ5pGmRagC') .then((contract) => contract.methodsObject.areYouThere(true).send()) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err)); @@ -317,17 +317,17 @@ Tezos.wallet contract.methodsObject.addName({0: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', 1: 'Alice'}).send() ) .then((op) => { - println(`Hash: ${op.opHash}`); + console.log(`Hash: ${op.opHash}`); return op.confirmation(); }) .then((result) => { console.log(result); if (result.completed) { - println(`Transaction correctly processed! + console.log(`Transaction correctly processed! Block: ${result.block.header.level} Chain ID: ${result.block.chain_id}`); } else { - println('An error has occurred'); + console.log('An error has occurred'); } }) .catch((err) => console.log(err));