This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Callable(invoke) | |
| func callMeBaby(uuid: String) = { | |
| if (isInWhiteList(invoke.caller) && invoke.fee == 500000) then { | |
| let id = extract(invoke.transactionId) | |
| let callerAddress = toBase58String(invoke.caller.bytes) | |
| ScriptResult( | |
| WriteSet([ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Callable(invoke) | |
| func callMeBaby() = { | |
| let callerAddress = invoke.caller.bytes.toBase58String() | |
| if (takeRight(invoke.caller.bytes, 4) == base16'ABCD') then | |
| TransferSet([ | |
| ScriptTransfer(invoke.caller, 100000000, unit) | |
| ]) | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { sponsorship } = require('@waves/waves-transactions') | |
| const seed = 'example seed phrase' | |
| const params = { | |
| assetId: '4uK8i4ThRGbehENwa6MxyLtxAjAo1Rj9fduborGExarC', | |
| minSponsoredAssetFee: 100 | |
| } | |
| const signedSponsorshipTx = sponsorship(params, seed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "swagger" : "2.0", | |
| "info" : { | |
| "description" : "<script>alert(document.cookie)</script>", | |
| "version" : "1.1.7", | |
| "title" : "Waves Full Node", | |
| "termsOfService" : "License: MIT License", | |
| "license" : { | |
| "name" : "MIT License", | |
| "url" : "https://github.com/wavesplatform/Waves/blob/master/LICENSE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WavesKeeper.signAndPublishTransaction({ | |
| type: 4, // 4 - transfer transaction | |
| data: { | |
| amount: { | |
| assetId: 'WAVES', | |
| tokens: "0.00100000" | |
| }, | |
| fee: { | |
| assetId: 'WAVES', | |
| tokens: "0.00100000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WavesKeeper.auth({name: 'Waves Keeper', data: 'Waves Keeper', icon: 'https://docs.wavesplatform.com/_theme/brand-logo/waves-docs-logo.png'}) | |
| .then(function (res) { | |
| // data in variable res is shown below | |
| //{ | |
| // "data":"Waves Keeper", | |
| // "prefix":"WavesWalletAuthentication", | |
| // "host":"localhost", | |
| // "name":"Waves Keeper", | |
| // "icon":"https://docs.wavesplatform.com/_theme/brand-logo/waves-docs-logo.png", | |
| // "timestamp":1543175910353, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WavesKeeper = { | |
| auth: function (){}, | |
| publicState: function (){}, | |
| signAndPublishCancelOrder: function (){}, | |
| signAndPublishOrder: function (){}, | |
| signAndPublishTransaction: function (){}, | |
| signCancelOrder: function (){}, | |
| signOrder: function (){}, | |
| signTransaction: function (){}, | |
| signRequest: function (){}, |
NewerOlder