Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View ripsource's full-sized avatar

ripsource ripsource

View GitHub Profile
@ripsource
ripsource / Cargo.toml
Created May 25, 2025 09:25
A commented and working examples of a subintent transaction on Radix using Radix Engine Toolkit
[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"
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",
<!-- 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)'
@ripsource
ripsource / .rs
Created August 10, 2024 19:29
basic nft sale component
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,