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
[package] | |
name = "example-radix-transaction" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
radix-client = { git = "https://github.com/ociswap/radix-client", features = [ | |
"gateway", | |
], tag = "v1.0.1" } | |
radix-transactions = "1.3.0" |
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
rdt.walletApi.setRequestData( | |
DataRequestBuilder.persona().withProof(), | |
DataRequestBuilder.accounts().withProof() | |
); | |
const getChallenge = async () => { | |
console.log("Getting challenge"); | |
try { | |
const response = await fetch( | |
"https://tg-rola.fly.dev/create-challenge", |
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
<!-- ShapeGrid.svelte --> | |
<script lang="ts"> | |
// Define possible shapes and styles | |
const shapes = ['circle', 'semicircle', 'square', 'triangle']; | |
const colors = ['#FF5733', '#33FF57', '#3357FF', '#FF33A6', '#33FFF5']; | |
const gradients = [ | |
// 'linear-gradient(to right, #FF5733, #FF33A6)' | |
// // 'linear-gradient(to right, #33FF57, #33FFF5)' | |
'linear-gradient(to right, #3357FF, #FF33A6)' | |
// 'linear-gradient(to right, #FF33A6, #33FF57)' |
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
use scrypto::prelude::*; | |
// to do: add admin roles so only an admin can add NFTs and collect the revenue. | |
#[blueprint] | |
mod sale { | |
struct Sale { | |
vault_of_nfts: Vault, | |
vault_of_xrd: Vault, | |
sale_price: Decimal, |