@snapshot-labs/snapshot.js 0.11.28 → 0.11.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -0
- package/dist/schemas/index.d.ts +18 -0
- package/dist/snapshot.cjs.js +73 -54
- package/dist/snapshot.esm.js +73 -54
- package/dist/snapshot.min.js +3 -3
- package/package.json +1 -1
- package/src/networks.json +46 -58
- package/src/schemas/profile.json +18 -0
- package/src/utils.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -554,6 +554,24 @@ declare const _default: {
|
|
|
554
554
|
format: string;
|
|
555
555
|
maxLength: number;
|
|
556
556
|
};
|
|
557
|
+
cover: {
|
|
558
|
+
type: string;
|
|
559
|
+
title: string;
|
|
560
|
+
format: string;
|
|
561
|
+
maxLength: number;
|
|
562
|
+
};
|
|
563
|
+
twitter: {
|
|
564
|
+
type: string;
|
|
565
|
+
title: string;
|
|
566
|
+
pattern: string;
|
|
567
|
+
maxLength: number;
|
|
568
|
+
};
|
|
569
|
+
github: {
|
|
570
|
+
type: string;
|
|
571
|
+
title: string;
|
|
572
|
+
pattern: string;
|
|
573
|
+
maxLength: number;
|
|
574
|
+
};
|
|
557
575
|
};
|
|
558
576
|
required: never[];
|
|
559
577
|
additionalProperties: boolean;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -550,6 +550,24 @@ declare const _default: {
|
|
|
550
550
|
format: string;
|
|
551
551
|
maxLength: number;
|
|
552
552
|
};
|
|
553
|
+
cover: {
|
|
554
|
+
type: string;
|
|
555
|
+
title: string;
|
|
556
|
+
format: string;
|
|
557
|
+
maxLength: number;
|
|
558
|
+
};
|
|
559
|
+
twitter: {
|
|
560
|
+
type: string;
|
|
561
|
+
title: string;
|
|
562
|
+
pattern: string;
|
|
563
|
+
maxLength: number;
|
|
564
|
+
};
|
|
565
|
+
github: {
|
|
566
|
+
type: string;
|
|
567
|
+
title: string;
|
|
568
|
+
pattern: string;
|
|
569
|
+
maxLength: number;
|
|
570
|
+
};
|
|
553
571
|
};
|
|
554
572
|
required: never[];
|
|
555
573
|
additionalProperties: boolean;
|
package/dist/snapshot.cjs.js
CHANGED
|
@@ -1271,6 +1271,24 @@ var definitions$4 = {
|
|
|
1271
1271
|
title: "avatar",
|
|
1272
1272
|
format: "customUrl",
|
|
1273
1273
|
maxLength: 256
|
|
1274
|
+
},
|
|
1275
|
+
cover: {
|
|
1276
|
+
type: "string",
|
|
1277
|
+
title: "avatar",
|
|
1278
|
+
format: "customUrl",
|
|
1279
|
+
maxLength: 256
|
|
1280
|
+
},
|
|
1281
|
+
twitter: {
|
|
1282
|
+
type: "string",
|
|
1283
|
+
title: "twitter",
|
|
1284
|
+
pattern: "^[A-Za-z0-9_]*$",
|
|
1285
|
+
maxLength: 15
|
|
1286
|
+
},
|
|
1287
|
+
github: {
|
|
1288
|
+
type: "string",
|
|
1289
|
+
title: "github",
|
|
1290
|
+
pattern: "^[A-Za-z0-9_-]*$",
|
|
1291
|
+
maxLength: 39
|
|
1274
1292
|
}
|
|
1275
1293
|
},
|
|
1276
1294
|
required: [
|
|
@@ -1679,30 +1697,6 @@ var networks = {
|
|
|
1679
1697
|
},
|
|
1680
1698
|
start: 7929876,
|
|
1681
1699
|
logo: "ipfs://bafkreid7ndxh6y2ljw2jhbisodiyrhcy2udvnwqgon5wgells3kh4si5z4"
|
|
1682
|
-
},
|
|
1683
|
-
"5": {
|
|
1684
|
-
key: "5",
|
|
1685
|
-
name: "Goerli testnet",
|
|
1686
|
-
shortName: "Goerli",
|
|
1687
|
-
chainId: 5,
|
|
1688
|
-
network: "goerli",
|
|
1689
|
-
testnet: true,
|
|
1690
|
-
multicall: "0x77dca2c955b15e9de4dbbcf1246b4b85b651e50e",
|
|
1691
|
-
ensResolvers: [
|
|
1692
|
-
"0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750",
|
|
1693
|
-
"0x4B1488B7a6B320d2D721406204aBc3eeAa9AD329"
|
|
1694
|
-
],
|
|
1695
|
-
ensNameWrapper: "0x114D4603199df73e7D157787f8778E21fCd13066",
|
|
1696
|
-
ensSubgraph: "https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli",
|
|
1697
|
-
rpc: [
|
|
1698
|
-
"https://eth-goerli.alchemyapi.io/v2/v4nqH_J-J3STit45Mm07TxuYexMHQsYZ"
|
|
1699
|
-
],
|
|
1700
|
-
explorer: {
|
|
1701
|
-
url: "https://goerli.etherscan.io",
|
|
1702
|
-
apiUrl: "https://api-goerli.etherscan.io"
|
|
1703
|
-
},
|
|
1704
|
-
start: 743550,
|
|
1705
|
-
logo: "ipfs://bafkreid7ndxh6y2ljw2jhbisodiyrhcy2udvnwqgon5wgells3kh4si5z4"
|
|
1706
1700
|
},
|
|
1707
1701
|
"8": {
|
|
1708
1702
|
key: "8",
|
|
@@ -2133,22 +2127,21 @@ var networks = {
|
|
|
2133
2127
|
start: 13960096,
|
|
2134
2128
|
logo: "ipfs://QmU7f1MyRz8rLELFfypnWZQjGbDGYgZtC9rjw47jYMYrnu"
|
|
2135
2129
|
},
|
|
2136
|
-
"
|
|
2137
|
-
key: "
|
|
2138
|
-
name: "zkSync
|
|
2139
|
-
shortName: "
|
|
2140
|
-
chainId:
|
|
2141
|
-
network: "
|
|
2142
|
-
|
|
2143
|
-
multicall: "0xbDAd32d600915cB70576D3d935d49bFf3C9cB0CF",
|
|
2130
|
+
"300": {
|
|
2131
|
+
key: "300",
|
|
2132
|
+
name: "zkSync Sepolia Testnet",
|
|
2133
|
+
shortName: "testnet",
|
|
2134
|
+
chainId: 300,
|
|
2135
|
+
network: "testnet",
|
|
2136
|
+
multicall: "0xF9cda624FBC7e059355ce98a31693d299FACd963",
|
|
2144
2137
|
rpc: [
|
|
2145
|
-
"https://testnet.era.zksync.dev"
|
|
2146
2138
|
],
|
|
2147
2139
|
explorer: {
|
|
2148
|
-
url: "https://
|
|
2140
|
+
url: "https://sepolia.explorer.zksync.dev/"
|
|
2149
2141
|
},
|
|
2150
|
-
start:
|
|
2151
|
-
logo: "ipfs://bafkreih6y7ri7h667cwxe5miisxghfheiidtbw2747y75stoxt3gp3a2yy"
|
|
2142
|
+
start: 2292,
|
|
2143
|
+
logo: "ipfs://bafkreih6y7ri7h667cwxe5miisxghfheiidtbw2747y75stoxt3gp3a2yy",
|
|
2144
|
+
testnet: true
|
|
2152
2145
|
},
|
|
2153
2146
|
"314": {
|
|
2154
2147
|
key: "314",
|
|
@@ -2989,19 +2982,19 @@ var networks = {
|
|
|
2989
2982
|
start: 62,
|
|
2990
2983
|
logo: "ipfs://QmZNkpVgPbuVbDcsi6arwH1om3456FGnwfDqYQJWUfHDEx"
|
|
2991
2984
|
},
|
|
2992
|
-
"
|
|
2993
|
-
key: "
|
|
2994
|
-
name: "Linea
|
|
2995
|
-
shortName: "
|
|
2996
|
-
chainId:
|
|
2985
|
+
"59141": {
|
|
2986
|
+
key: "59141",
|
|
2987
|
+
name: "Linea Sepolia",
|
|
2988
|
+
shortName: "testnet",
|
|
2989
|
+
chainId: 59141,
|
|
2997
2990
|
network: "testnet",
|
|
2998
2991
|
multicall: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
2999
2992
|
rpc: [
|
|
3000
2993
|
],
|
|
3001
2994
|
explorer: {
|
|
3002
|
-
url: "https://
|
|
2995
|
+
url: "https://sepolia.lineascan.build/"
|
|
3003
2996
|
},
|
|
3004
|
-
start:
|
|
2997
|
+
start: 227427,
|
|
3005
2998
|
logo: "ipfs://bafkreihtyzolub3sejuwc32hpdpjnt7ksowaguni2yuho3kyihhcqrtqce",
|
|
3006
2999
|
testnet: true
|
|
3007
3000
|
},
|
|
@@ -3056,21 +3049,21 @@ var networks = {
|
|
|
3056
3049
|
start: 88189,
|
|
3057
3050
|
logo: "ipfs://bafkreibfmkjg22cozxppzcoxswj45clvh2rqhxzax57cmmgudbtkf4dkce"
|
|
3058
3051
|
},
|
|
3059
|
-
"
|
|
3060
|
-
key: "
|
|
3061
|
-
name: "Base
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
multicall: "
|
|
3052
|
+
"84532": {
|
|
3053
|
+
key: "84532",
|
|
3054
|
+
name: "Base Sepolia",
|
|
3055
|
+
shortName: "testnet",
|
|
3056
|
+
chainId: 84532,
|
|
3057
|
+
network: "testnet",
|
|
3058
|
+
multicall: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
3066
3059
|
rpc: [
|
|
3067
|
-
"https://goerli.base.org"
|
|
3068
3060
|
],
|
|
3069
3061
|
explorer: {
|
|
3070
|
-
url: "https://
|
|
3062
|
+
url: "https://base-sepolia.blockscout.com/"
|
|
3071
3063
|
},
|
|
3072
|
-
start:
|
|
3073
|
-
logo: "ipfs://QmaxRoHpxZd8PqccAynherrMznMufG6sdmHZLihkECXmZv"
|
|
3064
|
+
start: 1059647,
|
|
3065
|
+
logo: "ipfs://QmaxRoHpxZd8PqccAynherrMznMufG6sdmHZLihkECXmZv",
|
|
3066
|
+
testnet: true
|
|
3074
3067
|
},
|
|
3075
3068
|
"686868": {
|
|
3076
3069
|
key: "686868",
|
|
@@ -3126,6 +3119,22 @@ var networks = {
|
|
|
3126
3119
|
},
|
|
3127
3120
|
start: 751532,
|
|
3128
3121
|
logo: "ipfs://bafkreid7ndxh6y2ljw2jhbisodiyrhcy2udvnwqgon5wgells3kh4si5z4"
|
|
3122
|
+
},
|
|
3123
|
+
"11155420": {
|
|
3124
|
+
key: "11155420",
|
|
3125
|
+
name: "OP Sepolia",
|
|
3126
|
+
shortName: "testnet",
|
|
3127
|
+
chainId: 11155420,
|
|
3128
|
+
network: "testnet",
|
|
3129
|
+
multicall: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
3130
|
+
rpc: [
|
|
3131
|
+
],
|
|
3132
|
+
explorer: {
|
|
3133
|
+
url: "https://sepolia-optimism.etherscan.io"
|
|
3134
|
+
},
|
|
3135
|
+
start: 1620204,
|
|
3136
|
+
logo: "ipfs://QmfF4kwhGL8QosUXvgq2KWCmavhKBvwD6kbhs7L4p5ZAWb",
|
|
3137
|
+
testnet: true
|
|
3129
3138
|
},
|
|
3130
3139
|
"111557560": {
|
|
3131
3140
|
key: "111557560",
|
|
@@ -3823,6 +3832,16 @@ ajv.addFormat('address', {
|
|
|
3823
3832
|
}
|
|
3824
3833
|
}
|
|
3825
3834
|
});
|
|
3835
|
+
ajv.addFormat('evmOrStarknetAddress', {
|
|
3836
|
+
validate: function (value) {
|
|
3837
|
+
try {
|
|
3838
|
+
return address.isAddress(value) || /^0x[0-9a-fA-F]{62,64}$/.test(value);
|
|
3839
|
+
}
|
|
3840
|
+
catch (err) {
|
|
3841
|
+
return false;
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
});
|
|
3826
3845
|
ajv.addFormat('long', {
|
|
3827
3846
|
validate: function () { return true; }
|
|
3828
3847
|
});
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -1261,6 +1261,24 @@ var definitions$4 = {
|
|
|
1261
1261
|
title: "avatar",
|
|
1262
1262
|
format: "customUrl",
|
|
1263
1263
|
maxLength: 256
|
|
1264
|
+
},
|
|
1265
|
+
cover: {
|
|
1266
|
+
type: "string",
|
|
1267
|
+
title: "avatar",
|
|
1268
|
+
format: "customUrl",
|
|
1269
|
+
maxLength: 256
|
|
1270
|
+
},
|
|
1271
|
+
twitter: {
|
|
1272
|
+
type: "string",
|
|
1273
|
+
title: "twitter",
|
|
1274
|
+
pattern: "^[A-Za-z0-9_]*$",
|
|
1275
|
+
maxLength: 15
|
|
1276
|
+
},
|
|
1277
|
+
github: {
|
|
1278
|
+
type: "string",
|
|
1279
|
+
title: "github",
|
|
1280
|
+
pattern: "^[A-Za-z0-9_-]*$",
|
|
1281
|
+
maxLength: 39
|
|
1264
1282
|
}
|
|
1265
1283
|
},
|
|
1266
1284
|
required: [
|
|
@@ -1669,30 +1687,6 @@ var networks = {
|
|
|
1669
1687
|
},
|
|
1670
1688
|
start: 7929876,
|
|
1671
1689
|
logo: "ipfs://bafkreid7ndxh6y2ljw2jhbisodiyrhcy2udvnwqgon5wgells3kh4si5z4"
|
|
1672
|
-
},
|
|
1673
|
-
"5": {
|
|
1674
|
-
key: "5",
|
|
1675
|
-
name: "Goerli testnet",
|
|
1676
|
-
shortName: "Goerli",
|
|
1677
|
-
chainId: 5,
|
|
1678
|
-
network: "goerli",
|
|
1679
|
-
testnet: true,
|
|
1680
|
-
multicall: "0x77dca2c955b15e9de4dbbcf1246b4b85b651e50e",
|
|
1681
|
-
ensResolvers: [
|
|
1682
|
-
"0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750",
|
|
1683
|
-
"0x4B1488B7a6B320d2D721406204aBc3eeAa9AD329"
|
|
1684
|
-
],
|
|
1685
|
-
ensNameWrapper: "0x114D4603199df73e7D157787f8778E21fCd13066",
|
|
1686
|
-
ensSubgraph: "https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli",
|
|
1687
|
-
rpc: [
|
|
1688
|
-
"https://eth-goerli.alchemyapi.io/v2/v4nqH_J-J3STit45Mm07TxuYexMHQsYZ"
|
|
1689
|
-
],
|
|
1690
|
-
explorer: {
|
|
1691
|
-
url: "https://goerli.etherscan.io",
|
|
1692
|
-
apiUrl: "https://api-goerli.etherscan.io"
|
|
1693
|
-
},
|
|
1694
|
-
start: 743550,
|
|
1695
|
-
logo: "ipfs://bafkreid7ndxh6y2ljw2jhbisodiyrhcy2udvnwqgon5wgells3kh4si5z4"
|
|
1696
1690
|
},
|
|
1697
1691
|
"8": {
|
|
1698
1692
|
key: "8",
|
|
@@ -2123,22 +2117,21 @@ var networks = {
|
|
|
2123
2117
|
start: 13960096,
|
|
2124
2118
|
logo: "ipfs://QmU7f1MyRz8rLELFfypnWZQjGbDGYgZtC9rjw47jYMYrnu"
|
|
2125
2119
|
},
|
|
2126
|
-
"
|
|
2127
|
-
key: "
|
|
2128
|
-
name: "zkSync
|
|
2129
|
-
shortName: "
|
|
2130
|
-
chainId:
|
|
2131
|
-
network: "
|
|
2132
|
-
|
|
2133
|
-
multicall: "0xbDAd32d600915cB70576D3d935d49bFf3C9cB0CF",
|
|
2120
|
+
"300": {
|
|
2121
|
+
key: "300",
|
|
2122
|
+
name: "zkSync Sepolia Testnet",
|
|
2123
|
+
shortName: "testnet",
|
|
2124
|
+
chainId: 300,
|
|
2125
|
+
network: "testnet",
|
|
2126
|
+
multicall: "0xF9cda624FBC7e059355ce98a31693d299FACd963",
|
|
2134
2127
|
rpc: [
|
|
2135
|
-
"https://testnet.era.zksync.dev"
|
|
2136
2128
|
],
|
|
2137
2129
|
explorer: {
|
|
2138
|
-
url: "https://
|
|
2130
|
+
url: "https://sepolia.explorer.zksync.dev/"
|
|
2139
2131
|
},
|
|
2140
|
-
start:
|
|
2141
|
-
logo: "ipfs://bafkreih6y7ri7h667cwxe5miisxghfheiidtbw2747y75stoxt3gp3a2yy"
|
|
2132
|
+
start: 2292,
|
|
2133
|
+
logo: "ipfs://bafkreih6y7ri7h667cwxe5miisxghfheiidtbw2747y75stoxt3gp3a2yy",
|
|
2134
|
+
testnet: true
|
|
2142
2135
|
},
|
|
2143
2136
|
"314": {
|
|
2144
2137
|
key: "314",
|
|
@@ -2979,19 +2972,19 @@ var networks = {
|
|
|
2979
2972
|
start: 62,
|
|
2980
2973
|
logo: "ipfs://QmZNkpVgPbuVbDcsi6arwH1om3456FGnwfDqYQJWUfHDEx"
|
|
2981
2974
|
},
|
|
2982
|
-
"
|
|
2983
|
-
key: "
|
|
2984
|
-
name: "Linea
|
|
2985
|
-
shortName: "
|
|
2986
|
-
chainId:
|
|
2975
|
+
"59141": {
|
|
2976
|
+
key: "59141",
|
|
2977
|
+
name: "Linea Sepolia",
|
|
2978
|
+
shortName: "testnet",
|
|
2979
|
+
chainId: 59141,
|
|
2987
2980
|
network: "testnet",
|
|
2988
2981
|
multicall: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
2989
2982
|
rpc: [
|
|
2990
2983
|
],
|
|
2991
2984
|
explorer: {
|
|
2992
|
-
url: "https://
|
|
2985
|
+
url: "https://sepolia.lineascan.build/"
|
|
2993
2986
|
},
|
|
2994
|
-
start:
|
|
2987
|
+
start: 227427,
|
|
2995
2988
|
logo: "ipfs://bafkreihtyzolub3sejuwc32hpdpjnt7ksowaguni2yuho3kyihhcqrtqce",
|
|
2996
2989
|
testnet: true
|
|
2997
2990
|
},
|
|
@@ -3046,21 +3039,21 @@ var networks = {
|
|
|
3046
3039
|
start: 88189,
|
|
3047
3040
|
logo: "ipfs://bafkreibfmkjg22cozxppzcoxswj45clvh2rqhxzax57cmmgudbtkf4dkce"
|
|
3048
3041
|
},
|
|
3049
|
-
"
|
|
3050
|
-
key: "
|
|
3051
|
-
name: "Base
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
multicall: "
|
|
3042
|
+
"84532": {
|
|
3043
|
+
key: "84532",
|
|
3044
|
+
name: "Base Sepolia",
|
|
3045
|
+
shortName: "testnet",
|
|
3046
|
+
chainId: 84532,
|
|
3047
|
+
network: "testnet",
|
|
3048
|
+
multicall: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
3056
3049
|
rpc: [
|
|
3057
|
-
"https://goerli.base.org"
|
|
3058
3050
|
],
|
|
3059
3051
|
explorer: {
|
|
3060
|
-
url: "https://
|
|
3052
|
+
url: "https://base-sepolia.blockscout.com/"
|
|
3061
3053
|
},
|
|
3062
|
-
start:
|
|
3063
|
-
logo: "ipfs://QmaxRoHpxZd8PqccAynherrMznMufG6sdmHZLihkECXmZv"
|
|
3054
|
+
start: 1059647,
|
|
3055
|
+
logo: "ipfs://QmaxRoHpxZd8PqccAynherrMznMufG6sdmHZLihkECXmZv",
|
|
3056
|
+
testnet: true
|
|
3064
3057
|
},
|
|
3065
3058
|
"686868": {
|
|
3066
3059
|
key: "686868",
|
|
@@ -3116,6 +3109,22 @@ var networks = {
|
|
|
3116
3109
|
},
|
|
3117
3110
|
start: 751532,
|
|
3118
3111
|
logo: "ipfs://bafkreid7ndxh6y2ljw2jhbisodiyrhcy2udvnwqgon5wgells3kh4si5z4"
|
|
3112
|
+
},
|
|
3113
|
+
"11155420": {
|
|
3114
|
+
key: "11155420",
|
|
3115
|
+
name: "OP Sepolia",
|
|
3116
|
+
shortName: "testnet",
|
|
3117
|
+
chainId: 11155420,
|
|
3118
|
+
network: "testnet",
|
|
3119
|
+
multicall: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
3120
|
+
rpc: [
|
|
3121
|
+
],
|
|
3122
|
+
explorer: {
|
|
3123
|
+
url: "https://sepolia-optimism.etherscan.io"
|
|
3124
|
+
},
|
|
3125
|
+
start: 1620204,
|
|
3126
|
+
logo: "ipfs://QmfF4kwhGL8QosUXvgq2KWCmavhKBvwD6kbhs7L4p5ZAWb",
|
|
3127
|
+
testnet: true
|
|
3119
3128
|
},
|
|
3120
3129
|
"111557560": {
|
|
3121
3130
|
key: "111557560",
|
|
@@ -3813,6 +3822,16 @@ ajv.addFormat('address', {
|
|
|
3813
3822
|
}
|
|
3814
3823
|
}
|
|
3815
3824
|
});
|
|
3825
|
+
ajv.addFormat('evmOrStarknetAddress', {
|
|
3826
|
+
validate: function (value) {
|
|
3827
|
+
try {
|
|
3828
|
+
return isAddress(value) || /^0x[0-9a-fA-F]{62,64}$/.test(value);
|
|
3829
|
+
}
|
|
3830
|
+
catch (err) {
|
|
3831
|
+
return false;
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
});
|
|
3816
3835
|
ajv.addFormat('long', {
|
|
3817
3836
|
validate: function () { return true; }
|
|
3818
3837
|
});
|