• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language Cairo
  • License
    MIT License
  • Created about 3 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Core smart contracts of Snapshot X for Starknet

Snapshot X

A Cairo implementation of the Snapshot X Protocol. Refer to the documentation for more information.

Architecture

The repository is split into two different parts:

  1. The Cairo files are in a Scarb package under ./starknet. (Tested with Scarb version 0.7.0)
  2. The Solidity files are in a Forge package under ./ethereum. (Tested with Forge version 0.2.0)

There is also Hardhat Project in the root directory for crosschain tests.

Run Cairo Tests

Enter directory:

cd starknet

Build contracts:

scarb build

Run tests:

scarb test

Run Solidity Tests

Enter directory:

cd ethereum

Build contracts:

forge build

Run tests:

forge test

Run Hardhat Tests

The Hardhat tests can be run following the procedure followed in the CI. You will need local Starknet Devnet and Ethereum devnet instances running.

More Repositories

1

snapshot

Interface for Snapshot. Join us on Discord http://discord.snapshot.org
Vue
9,215
star
2

snapshot.js

A TypeScript SDK for Snapshot
TypeScript
226
star
3

snapshot-strategies

Snapshot voting strategies
TypeScript
215
star
4

snapshot-spaces

SCSS
212
star
5

snapshot-hub

GraphQL API for Snapshot
TypeScript
103
star
6

stamp

Avatars for web3
TypeScript
76
star
7

snapshot-docs

34
star
8

sx-ui

An open source interface for Snapshot X protocol.
Vue
32
star
9

lock

TypeScript
30
star
10

score-api

TypeScript
24
star
11

snapshot-sequencer

TypeScript
24
star
12

checkpoint

Checkpoint is a library for indexing data of StarkNet contracts.
TypeScript
22
star
13

sx-evm

Core smart contracts of Snapshot X for EVM
Solidity
20
star
14

snapshot-sidekick

TypeScript
18
star
15

pineapple

TypeScript
17
star
16

sx.js

TypeScript
17
star
17

boost

A protocol for token distribution
Solidity
12
star
18

snapshot-app

TypeScript
12
star
19

snapshot-subgraph

TypeScript
12
star
20

snapshot-plugins

TypeScript
11
star
21

sx-api

TypeScript
11
star
22

sx-monorepo

Snapshot monorepo
TypeScript
11
star
23

snapshot-webhook

Snapshot notification service.
TypeScript
9
star
24

pineapple.js

TypeScript
8
star
25

envelop-ui

Vue
7
star
26

envelop

TypeScript
7
star
27

mana

Meta transaction relayer for Starknet and EVM chains.
TypeScript
6
star
28

guest

Connect to web3 apps with any address
Vue
5
star
29

s.js

5
star
30

boost.js

TypeScript
4
star
31

blockfinder

Timestamp to block number in a GraphQL API
TypeScript
4
star
32

snapshot-relayer

Relayer for Safe signed messages
TypeScript
4
star
33

subgrapher

Subgraph proxy with smart caching
TypeScript
4
star
34

boost-guard

Rust
4
star
35

api-checkpoint

TypeScript
3
star
36

highlight

TypeScript
3
star
37

networks

Vue
3
star
38

snapshot-docs-vitepress

TypeScript
3
star
39

drop

3
star
40

boost-subgraph

TypeScript
3
star
41

sx-cli

TypeScript
3
star
42

checkpoint-ui

Vue
2
star
43

starknet-verifier

Cairo
2
star
44

brovider

TypeScript
2
star
45

starknet-proxy

TypeScript
2
star
46

starknet-delegation

Cairo
2
star
47

checkpoint-template

An example template to help you get started with Checkpoint.
TypeScript
2
star
48

hookah

TypeScript
2
star
49

ui

2
star
50

webhook-ui

2
star
51

poster-subgraph

Solidity
1
star
52

delegates-subgraph

TypeScript
1
star
53

delegates-api

TypeScript
1
star
54

discord-helpdesk

TypeScript
1
star
55

snapshot-networks

1
star
56

lobby

1
star
57

collection

1
star
58

evm-slot-key-verification

Verify the key of an Ethereum storage slot in Cairo
TypeScript
1
star
59

token-api-checkpoint

1
star
60

workers

JavaScript
1
star
61

brand

A collection of all our logos and other branding images
1
star
62

starknet-poster

Cairo
1
star
63

keycard.js

TypeScript
1
star
64

turbo

1
star
65

keycard

TypeScript
1
star
66

boost-docs

1
star
67

contracts

Solidity
1
star
68

sx-docs

1
star
69

tune

Vue
1
star
70

config

JavaScript
1
star
71

boost-ui

Vue
1
star
72

axiom-relayer

TypeScript
1
star
73

sx-subgraph

TypeScript
1
star