Skip to content

Commit 3d7c4e3

Browse files
authored
fix: adding ipfs export (#16)
1 parent 933dfd3 commit 3d7c4e3

10 files changed

Lines changed: 47 additions & 5 deletions

File tree

.changeset/empty-ducks-love.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bgd-labs/toolbox": patch
3+
---
4+
5+
Adding ipfs export

packages/toolbox/src/ecosystem/generated/alchemyNetworkMap.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const alchemyNetworkMap = {
3737
1868: "soneium-mainnet",
3838
1946: "soneium-minato",
3939
2020: "ronin-mainnet",
40-
2021: "ronin-saigon",
4140
2201: "stable-testnet",
4241
2442: "polygonzkevm-cardona",
4342
2523: "frax-sepolia",
@@ -97,6 +96,7 @@ export const alchemyNetworkMap = {
9796
81457: "blast-mainnet",
9897
84532: "base-sepolia",
9998
99999: "adi-testnet",
99+
202601: "ronin-saigon",
100100
421614: "arb-sepolia",
101101
510525: "clankermon-mainnet",
102102
534351: "scroll-sepolia",
@@ -116,9 +116,7 @@ export const alchemyNetworkMap = {
116116
351243127: "xmtp-ropsten",
117117
666666666: "degen-mainnet",
118118
728126428: "tron-mainnet",
119-
994873017: "lumia-prism",
120119
999999999: "zora-sepolia",
121-
2030232745: "lumia-beam",
122120
3448148188: "tron-testnet",
123121
"null": "sui-testnet"
124122
} as const;

packages/toolbox/src/ecosystem/generated/blockscoutExplorers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@ export const blockscoutExplorers = {
616616
api: "https://aiascan.com/api",
617617
explorer: "https://aiascan.com"
618618
},
619+
1330: {
620+
api: "https://onnscan.com/api",
621+
explorer: "https://onnscan.com"
622+
},
619623
1338: {
620624
api: "https://blockscout.atlantischain.network/api",
621625
explorer: "https://blockscout.atlantischain.network/"

packages/toolbox/src/ecosystem/generated/hyperRPC.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const hyperRPCSupportedNetworks = [
3131
1328,
3232
1329,
3333
1750,
34-
1776,
3534
1868,
3635
1923,
3736
2741,
@@ -85,5 +84,6 @@ export const hyperRPCSupportedNetworks = [
8584
531050104,
8685
1184075182,
8786
1313161554,
87+
1660990954,
8888
1666600000
8989
] as const;

packages/toolbox/src/ecosystem/generated/snapshot-org/schema.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ type Vote {
467467
vp: Float
468468
vp_by_strategy: [Float]
469469
vp_state: String
470+
vp_value: Float
470471
}
471472

472473
type Alias {
@@ -580,6 +581,7 @@ type Leaderboard {
580581
proposalsCount: Int
581582
votesCount: Int
582583
lastVote: Int
584+
vpValue: Float
583585
}
584586

585587
type Option {

packages/toolbox/src/ecosystem/generated/snapshot-org/schema.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export interface Vote {
222222
vp: (Scalars['Float'] | null)
223223
vp_by_strategy: ((Scalars['Float'] | null)[] | null)
224224
vp_state: (Scalars['String'] | null)
225+
vp_value: (Scalars['Float'] | null)
225226
__typename: 'Vote'
226227
}
227228

@@ -348,6 +349,7 @@ export interface Leaderboard {
348349
proposalsCount: (Scalars['Int'] | null)
349350
votesCount: (Scalars['Int'] | null)
350351
lastVote: (Scalars['Int'] | null)
352+
vpValue: (Scalars['Float'] | null)
351353
__typename: 'Leaderboard'
352354
}
353355

@@ -623,6 +625,7 @@ export interface VoteGenqlSelection{
623625
vp?: boolean | number
624626
vp_by_strategy?: boolean | number
625627
vp_state?: boolean | number
628+
vp_value?: boolean | number
626629
__typename?: boolean | number
627630
__scalar?: boolean | number
628631
}
@@ -762,6 +765,7 @@ export interface LeaderboardGenqlSelection{
762765
proposalsCount?: boolean | number
763766
votesCount?: boolean | number
764767
lastVote?: boolean | number
768+
vpValue?: boolean | number
765769
__typename?: boolean | number
766770
__scalar?: boolean | number
767771
}

packages/toolbox/src/ecosystem/generated/snapshot-org/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,9 @@ export default {
15641564
"vp_state": [
15651565
2
15661566
],
1567+
"vp_value": [
1568+
10
1569+
],
15671570
"__typename": [
15681571
2
15691572
]
@@ -1851,6 +1854,9 @@ export default {
18511854
"lastVote": [
18521855
3
18531856
],
1857+
"vpValue": [
1858+
10
1859+
],
18541860
"__typename": [
18551861
2
18561862
]

packages/toolbox/src/ecosystem/generated/tenderly.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const tenderlyNetworkMap = {
4444
9745: "plasma",
4545
9746: "plasma-testnet",
4646
10143: "monad-testnet",
47+
10200: "gnosis-chiado-testnet",
4748
11069: "interval-testnet",
4849
13371: "immutable",
4950
13473: "immutable-testnet",
@@ -132,7 +133,6 @@ export const tenderlyExplorerMap = {
132133
1946: "soneium-minato",
133134
1952: "xlayer-testnet",
134135
2020: "ronin",
135-
2021: "ronin-testnet",
136136
2201: "stable-testnet",
137137
2391: "tac-spb-testnet",
138138
2523: "fraxtal-hoodi",
@@ -151,6 +151,7 @@ export const tenderlyExplorerMap = {
151151
9746: "plasma-testnet",
152152
9990: "peaq-agung-testnet",
153153
10143: "monad-testnet",
154+
10200: "gnosis-chiado-testnet",
154155
11011: "shape-sepolia",
155156
11069: "interval-testnet",
156157
13371: "immutable",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { keccak256, toBytes, zeroHash } from "viem";
2+
3+
const makeRoleHash = (roleName: string) => keccak256(toBytes(roleName));
4+
5+
export const KNOWN_ROLES = {
6+
[makeRoleHash("PAUSE_ROLE")]: "PAUSE_ROLE",
7+
[makeRoleHash("ASSET_PROTECTION_ROLE")]: "ASSET_PROTECTION_ROLE",
8+
[makeRoleHash("POOL_ADMIN")]: "POOL_ADMIN",
9+
[makeRoleHash("EMERGENCY_ADMIN")]: "EMERGENCY_ADMIN",
10+
[makeRoleHash("RISK_ADMIN")]: "RISK_ADMIN",
11+
[makeRoleHash("FLASH_BORROWER")]: "FLASH_BORROWER",
12+
[makeRoleHash("BRIDGE")]: "BRIDGE",
13+
[makeRoleHash("ASSET_LISTING_ADMIN")]: "ASSET_LISTING_ADMIN",
14+
[makeRoleHash("EMODE_AGENT")]: "EMODE_AGENT",
15+
[makeRoleHash("ISOLATED_COLLATERAL_SUPPLIER")]:
16+
"ISOLATED_COLLATERAL_SUPPLIER",
17+
[zeroHash]: "DEFAULT_ADMIN",
18+
[makeRoleHash("COVERAGE_MANAGER")]: "COVERAGE_MANAGER",
19+
[makeRoleHash("PAUSE_GUARDIAN")]: "PAUSE_GUARDIAN",
20+
[makeRoleHash("RESCUE_GUARDIAN")]: "RESCUE_GUARDIAN",
21+
};

packages/toolbox/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// node.js specific entry point without node: imports
22
export * from "./browser";
33
export * from "./ecosystem/foundry";
4+
export * from "./ecosystem/ipfs";

0 commit comments

Comments
 (0)