waves_ride_dapps_dev | Unsorted

Telegram-канал waves_ride_dapps_dev - Waves Dev Jedi | RIDE for dApps

-

Only tech topics about Waves: dev tools, libs, RIDE, dApps, Nodes Github: http://tiny.cc/github-waves IDE: https://ide.wavesplatform.com/ Online Course: https://stepik.org/course/54415 StackOverflow: #wavesplatform Jobs: https://t.me/wavesridejobs

Subscribe to a channel

Waves Dev Jedi | RIDE for dApps

Regarding you script it lacks a callable function https://docs.waves.tech/en/ride/functions/callable-function#annotation

Читать полностью…

Waves Dev Jedi | RIDE for dApps

{-# STDLIB_VERSION 5 #-}
{-# CONTENT_TYPE EXPRESSION #-}
{-# SCRIPT_TYPE ASSET #-}

let refTokenName = "REF-AMANAT"
let refTokenDescription = "Реферальный токен фонда AMANAT"
let refTokenQuantity = 1000000
let refTokenDecimals = 8
let fee = 1000000

issue(refTokenName, refTokenQuantity, refTokenDecimals, refTokenDescription, reissuable = true, fee = fee)
What am I doing to create a scrypt token?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I'm interested in this smart is written for distribution I'm testing for accrual to the referrer no what could be what's the problem

Читать полностью…

Waves Dev Jedi | RIDE for dApps

May be this is AI asking, again?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

While you keep not providing technical data of your problem, no-one can help.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Are you working in Waves IDE?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Installing how? Shows where? Error which?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

tried https://bridge.pepe.team/?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

https://github.com/PyWaves/PyWaves/blob/d491242815b89d257a3e74d5e63bee4f9a48289e/txGenerator.py#L370

Its a string, not an object

Читать полностью…

Waves Dev Jedi | RIDE for dApps

solved: 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Tell me what to do in this case?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Young soul... Hope synch fast... 😄

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Yes! Thanks everyone! Everything seems to be fine! Maybe I was panicking for nothing... Even besu hasn't had time to sync yet, and the blocks are already coming... Thanks everyone again!

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Is Oleksii Opanasiuk in this chat?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

https://waves-nodes.pepe.team/ mainnet)

Читать полностью…

Waves Dev Jedi | RIDE for dApps

If you need one token you can issue it by issue transaction and late reissue or burn it by script. https://docs.waves.tech/en/blockchain/transaction-type/issue-transaction

Читать полностью…

Waves Dev Jedi | RIDE for dApps

There is a referrer in the contract, where will he find out about his contract from the referral or should he write it down, who will tell him?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Definitely AI, no human would ignore such comments :)))

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Why it should work? It seems its written by some AI. Strange errors never seen from any dev. I made it at least compilable:

{-# STDLIB_VERSION 5 #-}
{-# CONTENT_TYPE DAPP #-}
{-# SCRIPT_TYPE ACCOUNT #-}

# Константы
let AMANAT_ASSET_ID = base58'8DkyFnkirQNRJs1YqaPUxPxgpLph7Zh4AnLtqqbc8xXf' # ID токена AMANAT
let FUND_ADDRESS = Address(base58'3PEDxtVDNovJViuBSbjRyE5TKrMnttenw6S') # Адрес фонда
let DEPOSIT_AMOUNT = 100000000 # 1 AMANAT в минимальных единицах (1 AMANAT = 10^8 минимальных единиц)

# Внесение депозита
@Callable(i)
func deposit(referrer: String) = {
let sender = i.caller
let payment = i.payments

# Проверка платежа
if (size(payment) != 1) then throw("Требуется отправить ровно один платеж") else
let payAsset = payment[0].assetId
let payAmount = payment[0].amount

# Проверка токена и суммы
if (payAsset != AMANAT_ASSET_ID) then throw("Неверный токен. Требуется AMANAT.") else
if (payAmount != DEPOSIT_AMOUNT) then throw("Требуется ровно 1 AMANAT.") else

# Проверка, что адрес еще не вносил депозит
if (getBoolean(toBase58String(sender.bytes)) != unit) then throw("Вы уже внесли депозит") else

# Распределение средств
let halfAmount = payAmount / 2

if (referrer != "" && referrer != toBase58String(sender.bytes)) then
let referrerAddress = addressFromStringValue(referrer)
[
ScriptTransfer(referrerAddress, halfAmount, AMANAT_ASSET_ID), # 50% рефереру
ScriptTransfer(FUND_ADDRESS, halfAmount, AMANAT_ASSET_ID), # 50% фонду
BooleanEntry(toBase58String(sender.bytes), true) # Отмечаем, что депозит внесен
]
else
[
ScriptTransfer(FUND_ADDRESS, payAmount, AMANAT_ASSET_ID), # 100% фонду, если реферер не указан
BooleanEntry(toBase58String(sender.bytes), true) # Отмечаем, что депозит внесен
]
}

# Получение баланса контракта
@Callable(i)
func getBalance() = {
let balance = assetBalance(this, AMANAT_ASSET_ID)
([], balance)
}

# Вывод средств (только для фонда)
@Callable(i)
func withdraw(amount: Int) = {
if (i.caller != FUND_ADDRESS) then throw("Только фонд может выводить средства") else

let balance = assetBalance(this, AMANAT_ASSET_ID)
if (amount > balance) then throw("Недостаточно средств") else

[
ScriptTransfer(FUND_ADDRESS, amount, AMANAT_ASSET_ID)
]
}

Have fun with AI.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

You mean "deploy the contract"?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Its not the answer, cannot help

Читать полностью…

Waves Dev Jedi | RIDE for dApps

https://wavesbridge.io/bridge ?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Hi guys! How can I bridge into Waves network, cheapest option

Читать полностью…

Waves Dev Jedi | RIDE for dApps

hi, i am trying to call a script with wavespy

 pw.setNode(config['waves']['node'], config['waves']['chain']);
addr = pw.address.Address(privateKey=config['waves']['pk']);

logger.info(f"Operating from address: {addr.address}");

dappaddr = pw.address.Address(config['waves']['claimwavesdaolpdappaddress'])
addr.invokeScript(dappaddr, 'processBlocks')


but line 489 of txSigner.py

        dApp.public_key_hash = base58.b58decode(tx['dApp'])[2:22]


gives this error:

base58.py", line 77, in b58decode
v = v.decode('ascii')
AttributeError: 'Address' object has no attribute 'decode'


Anyone has a clue about the reason?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Anyone knows the DAPP address for claiming WAVESDAOLP in testnet? thanks

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Yes. I deleted everything and installed everything from scratch. Besu synchronization lasted about two days. Everything worked fine, but today I saw that problems started again...

Читать полностью…

Waves Dev Jedi | RIDE for dApps

So basically you deleted data and resynced from scratch?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Have you start mining? https://unit0-testnet.w8.io/0xd05f487b252b860e479e422f37bcc5dc0a0604b0 ?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

These domains have automatic certificate issuance + height and peer monitoring

Читать полностью…

Waves Dev Jedi | RIDE for dApps

https://waves-nodes-testnet.pepe.team/

Читать полностью…
Subscribe to a channel