Skip to content

Instantly share code, notes, and snippets.

View goodylili's full-sized avatar
🎯
Focusing

Ukeje Goodness goodylili

🎯
Focusing
View GitHub Profile
@goodylili
goodylili / nft.move
Created April 22, 2025 09:57
NFT with Account
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;
@goodylili
goodylili / coin.move
Created April 21, 2025 19:05
basic coin on the Sui Network
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
@goodylili
goodylili / unwrap.sh
Created March 4, 2025 08:13
Unwrap all files into the root directory
#!/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
@goodylili
goodylili / precompiles.go
Created January 26, 2025 13:52
Avalanche Precompiles
package precompile
import (
"errors"
"github.com/ava-labs/avalanchego/utils/crypto/bls"
)
// BLSSignatureVerify is the precompiled contract for BLS signature verification
type BLSSignatureVerify struct{}
@goodylili
goodylili / move.gitignore
Created January 24, 2025 08:27
.gitignore template for Move codebases
# Move CLI build artifacts
/build/
/storage/
/.move/
/move.lock
# Temporary files
*.tmp
*.swp
*.swo
@goodylili
goodylili / swapback.go
Created August 27, 2024 08:09
SwapTokensforETH
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"
@goodylili
goodylili / v2.go
Last active August 21, 2024 14:19
listen to uniswap pair created events
package main
import (
"context"
"fmt"
"log"
"math/big"
"strings"
"time"
@goodylili
goodylili / simapp.md
Last active July 8, 2024 14:50
Possible updates to Simapp documentation from the Cosmos SDK
sidebar_position
1

SimApp

SimApp is a CLI application built using the Cosmos SDK for testing and educational purposes.

Running testnets with simd

@goodylili
goodylili / gitlab.go
Created December 30, 2023 09:33
GitLab Oauth Example
package main
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"io"
"net/http"
)
@goodylili
goodylili / gith.go
Created December 30, 2023 08:42
GitHub OAuth Golang
package main
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"
"io"
"net/http"