-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into portal-api
- Loading branch information
Showing
31 changed files
with
268 additions
and
82 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
common/changes/@subsquid/borsh/master_2024-12-20-16-49.json
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
common/changes/@subsquid/solana-dump/master_2024-12-20-16-49.json
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
common/changes/@subsquid/solana-rpc/fix-solana-polling-crashes_2025-01-15-11-14.json
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
common/changes/@subsquid/solana-rpc/master_2024-12-20-16-49.json
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
common/changes/@subsquid/solana-stream/master_2024-12-20-16-49.json
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
common/changes/@subsquid/solana-typegen/master_2024-12-20-16-49.json
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@subsquid/borsh", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Borsh encoder/decoder", | ||
"license": "GPL-3.0-or-later", | ||
"repository": "[email protected]:subsquid/squid.git", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {Codec} from '../codec' | ||
import {Sink} from '../sink' | ||
import {Src} from '../src' | ||
|
||
|
||
export class HashMapCodec<K, V> implements Codec<Map<K, V>> { | ||
constructor(public readonly key: Codec<K>, public readonly value: Codec<V>) {} | ||
|
||
encode(sink: Sink, val: Map<K, V>): void { | ||
sink.u32(val.size) | ||
for (let [key, value] of val) { | ||
this.key.encode(sink, key) | ||
this.value.encode(sink, value) | ||
} | ||
} | ||
|
||
decode(src: Src): Map<K, V> { | ||
let len = src.u32() | ||
let res = new Map<K, V>() | ||
for (let i = 0; i < len; i++) { | ||
let key = this.key.decode(src) | ||
let value = this.value.decode(src) | ||
res.set(key, value) | ||
} | ||
return res | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {Codec} from '../codec' | ||
import {Sink} from '../sink' | ||
import {Src} from '../src' | ||
|
||
|
||
export class HashSetCodec<T> implements Codec<Set<T>> { | ||
constructor(public readonly item: Codec<T>) {} | ||
|
||
encode(sink: Sink, val: Set<T>): void { | ||
sink.u32(val.size) | ||
for (let value of val) { | ||
this.item.encode(sink, value) | ||
} | ||
} | ||
|
||
decode(src: Src): Set<T> { | ||
let len = src.u32() | ||
let res = new Set<T>() | ||
for (let i = 0; i < len; i++) { | ||
let value = this.item.decode(src) | ||
res.add(value) | ||
} | ||
return res | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@subsquid/solana-dump", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Data archiving tool for Solana", | ||
"license": "GPL-3.0-or-later", | ||
"repository": "[email protected]:subsquid/squid.git", | ||
|
@@ -20,7 +20,7 @@ | |
}, | ||
"dependencies": { | ||
"@subsquid/rpc-client": "^4.11.0", | ||
"@subsquid/solana-rpc": "^0.0.3", | ||
"@subsquid/solana-rpc": "^0.0.4", | ||
"@subsquid/util-internal": "^3.2.0", | ||
"@subsquid/util-internal-dump-cli": "^1.0.0" | ||
}, | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@subsquid/solana-rpc", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Solana RPC data ingestion tools", | ||
"license": "GPL-3.0-or-later", | ||
"repository": "[email protected]:subsquid/squid.git", | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@subsquid/solana-stream", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Solana block data streamer", | ||
"license": "GPL-3.0-or-later", | ||
"repository": "[email protected]:subsquid/squid.git", | ||
|
@@ -20,7 +20,7 @@ | |
"@subsquid/logger": "^1.3.3", | ||
"@subsquid/rpc-client": "^4.11.0", | ||
"@subsquid/solana-normalization": "^0.0.3", | ||
"@subsquid/solana-rpc": "^0.0.3", | ||
"@subsquid/solana-rpc": "^0.0.4", | ||
"@subsquid/solana-rpc-data": "^0.0.3", | ||
"@subsquid/util-internal": "^3.2.0", | ||
"@subsquid/util-internal-archive-client": "^0.1.2", | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.