Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f3da187
validate /w team
BeroBurny Sep 26, 2024
47afc40
swap `zod` with `superstruct`
BeroBurny Sep 26, 2024
3956863
first case for api refactor
BeroBurny Sep 26, 2024
ce3b88c
move sprinter to separate file
BeroBurny Sep 26, 2024
db2a9cf
refactor
BeroBurny Sep 26, 2024
18f768b
smoll fixes
BeroBurny Sep 30, 2024
b1151a8
sprinter class docs
BeroBurny Sep 30, 2024
c72bc78
add enum :man_shrugging:
BeroBurny Sep 30, 2024
ddd45f2
micro bug fixes
BeroBurny Sep 30, 2024
c61895f
refactor POC to match new SDK
BeroBurny Sep 30, 2024
ed12547
lint
BeroBurny Sep 30, 2024
9c4272d
change sprinter sdk from dependencies to peer dependencies
BeroBurny Sep 30, 2024
2121e83
partially refactor react sdk
BeroBurny Sep 30, 2024
b8656c9
react sdk docs and smool fix
BeroBurny Oct 1, 2024
4d73265
fix yarn.lock
BeroBurny Oct 1, 2024
c84f104
fix ci
BeroBurny Oct 1, 2024
33ef698
fix yarn command
BeroBurny Oct 1, 2024
c5e921d
save
BeroBurny Oct 8, 2024
a7f93e3
save general
BeroBurny Oct 8, 2024
56231ea
refactor `sourceChains` behavior for single hop
BeroBurny Oct 8, 2024
dd1d8c8
sdk docs v1 on new approach
BeroBurny Oct 8, 2024
e46aeed
react docs v1
BeroBurny Oct 8, 2024
7f72af1
Merge branch 'master' into beroburny/api-refactor
BeroBurny Oct 8, 2024
046d431
dirty fix
BeroBurny Oct 8, 2024
a75d753
wtf is that? remove! purger!
BeroBurny Oct 8, 2024
f45864e
prettify category and push overview into index
BeroBurny Oct 9, 2024
eeb6625
fix example response for available tokens
BeroBurny Oct 9, 2024
0589132
fix network list
BeroBurny Oct 10, 2024
2efbfd7
implement remark plugins
BeroBurny Oct 10, 2024
fbe318b
fix `recipient`
BeroBurny Oct 10, 2024
7d69042
implement calldata usages
BeroBurny Oct 10, 2024
b86162e
gas tips
BeroBurny Oct 10, 2024
9acc443
smoll fix
BeroBurny Oct 10, 2024
a4ddc83
refactor gas tip
BeroBurny Oct 14, 2024
bc516e4
implement tabs in bridge and call
BeroBurny Oct 15, 2024
dfad461
ci / cd
BeroBurny Oct 15, 2024
e1fd86c
gas limit
BeroBurny Oct 15, 2024
2566a3c
aggregate
BeroBurny Oct 15, 2024
06a56ac
fix links
BeroBurny Oct 15, 2024
2ca9ae6
breaking changes docs
BeroBurny Oct 16, 2024
33156ae
comments
BeroBurny Oct 18, 2024
edc6911
curl example
BeroBurny Oct 18, 2024
6622bd5
address comments regarding method names
BeroBurny Oct 24, 2024
9b04fb4
fix breaking changes doc
BeroBurny Oct 24, 2024
ec6cd48
Merge branch 'master' of github.com:ChainSafe/sprinter-ts
saadahmsiddiqui Nov 13, 2024
4c79260
fix: import meta error when using webpack
saadahmsiddiqui Jan 6, 2025
e32a8da
Merge branch 'master' of github.com:ChainSafe/sprinter-ts into fix/we…
saadahmsiddiqui Jan 6, 2025
4ecdc79
Merge branch 'master' into fix/webpack-import-meta-error
BeroBurny Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/sdk/src/node.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
interface ImportMeta {
env: string;
}
2 changes: 1 addition & 1 deletion packages/sdk/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export function getEnv(envName: string, defaultValue: string): string {
try {
if (typeof process !== "undefined" && "env" in process)
variable = process.env[envName];
else if ("env" in import.meta) {
else if (import.meta.env) {
const env =
// @ts-expect-error @typescript-eslint/ban-ts-comment
(import.meta.env as { [key: string]: string | undefined }) || {};
Expand Down
Loading