Skip to content

Commit

Permalink
feat: v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BastienFaivre committed Jun 23, 2024
1 parent 9cf4b12 commit 74a65e3
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 230 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Test

on:
push:
Expand Down
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,41 @@
<a href="https://github.com/metacube-games/starknetid.go/actions/workflows/go.yml">
<img src="https://github.com/metacube-games/starknetid.go/actions/workflows/go.yml/badge.svg?branch=main" alt="test">
</a>
<a href="https://github.com/metacube-games/starknetid.go">
<img src="https://img.shields.io/github/stars/metacube-games/starknetid.go?style=social"/>
</a>
</p>

# starknetid.go
<p align="center">
<a href="https://twitter.com/MetacubeGames">
<img src="https://img.shields.io/twitter/follow/MetacubeGames?style=social"/>
</a>
</p>

<h1 align="center">Starknetid.go</h1>

Starknetid.go is an unofficial Go library to interact with the [Starknet.id](https://starknet.id/) protocol. The implementation is based on the official Javascript library [Starknetid.js](https://github.com/starknet-id/starknetid.js).

## Getting Started

Coming soon...

## Features

The library is still in development and not all features are implemented yet

Documentation coming soon.
| Method | Implemented |
| --- | --- |
| `GetAddressFromStarkName` ||
| `GetStarkName` ||
| `GetStarknetId` ||
| `GetUserData` | 🛠️ |
| `GetStarkNames` ||
| `GetExtendedUserData` ||
| `GetUnboundedUserData` ||
| `GetVerifierData` ||
| `GetExtendedVerifierData` ||
| `GetUnboundedVerifierData` ||
| `GetPfpVerifierData` ||
| `GetProfileData` ||
| `GetStarkProfiles` ||
3 changes: 3 additions & 0 deletions constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"math/big"

"github.com/NethermindEth/juno/core/felt"
"github.com/NethermindEth/starknet.go/rpc"
"github.com/metacube-games/starknetid.go/types"
)

Expand Down Expand Up @@ -62,4 +63,6 @@ var (
SetUint64(uint64(len(EXTENDED_ALPHABET) + 1))
EXTENDED_ALPHABET_SIZE_PLUS_ONE_BIGINT = big.
NewInt(int64(len(EXTENDED_ALPHABET) + 1))

BLOCK_ID = rpc.BlockID{Tag: "latest"}
)
Loading

0 comments on commit 74a65e3

Please sign in to comment.