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
import { Transaction } from '@mysten/sui/transactions'; | |
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519'; | |
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client'; | |
async function sponsoredTransaction() { | |
const client = new SuiClient({ url: getFullnodeUrl('testnet') }); | |
// User's main keypair (your provided key) | |
const userKeypair = Ed25519Keypair.fromSecretKey( | |
'suiprivkey1qq9r6rkysny207t5vr7m5025swh7w0wzra9p0553paprhn8zshqsx2rz64r' |
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
module rendevous::airdrop; | |
use sui::coin::{Self, Coin}; | |
use sui::event; | |
/// Event emitted for every airdrop transfer. | |
public struct AirdropEvent has copy, drop { | |
amount: u64, | |
recipient: address, |
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
module rendevous::evacuate; | |
use sui::coin:: Coin; | |
use sui::event; | |
/// Event for each evacuation. | |
public struct AirdropEvent has copy, drop { | |
recipient: address, | |
num_tokens: u64, |
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
module impatient::goodylili{ | |
use std::string::{Self, String}; | |
use sui::url::{Self, Url}; | |
use sui::event; | |
use sui::balance::{Self, Balance}; | |
use sui::coin::{Self, Coin}; | |
use std::string::{utf8}; | |
use sui::display; | |
use sui::package; | |
use sui::sui::SUI; |
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
module impatient::goodylili; | |
use sui::coin::{Self, TreasuryCap}; | |
use sui::url; | |
public struct GOODYLILI has drop {} | |
fun init(witness: GOODYLILI, ctx: &mut TxContext) { | |
// Create the icon URL |
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
#!/bin/bash | |
# Unwrap all files from subdirectories into the root directory | |
# and remove empty folders. | |
ROOT_DIR="$1" | |
if [ -z "$ROOT_DIR" ]; then | |
echo "Usage: $0 <root_directory>" | |
exit 1 |
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 precompile | |
import ( | |
"errors" | |
"github.com/ava-labs/avalanchego/utils/crypto/bls" | |
) | |
// BLSSignatureVerify is the precompiled contract for BLS signature verification | |
type BLSSignatureVerify struct{} |
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
# Move CLI build artifacts | |
/build/ | |
/storage/ | |
/.move/ | |
/move.lock | |
# Temporary files | |
*.tmp | |
*.swp | |
*.swo |
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 main | |
import ( | |
"context" | |
"crypto/ecdsa" | |
"errors" | |
"fmt" | |
"github.com/ethereum/go-ethereum" | |
"github.com/ethereum/go-ethereum/accounts/abi/bind" | |
"github.com/ethereum/go-ethereum/core/types" |
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 main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"math/big" | |
"strings" | |
"time" |
NewerOlder