viem 2.55.10 → 2.55.11
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/CHANGELOG.md +14 -0
- package/_cjs/chains/definitions/story.js +7 -7
- package/_cjs/chains/definitions/story.js.map +1 -1
- package/_cjs/chains/definitions/storyAeneid.js +8 -8
- package/_cjs/chains/definitions/storyAeneid.js.map +1 -1
- package/_cjs/errors/typedData.js +11 -1
- package/_cjs/errors/typedData.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +5 -4
- package/_cjs/index.js.map +1 -1
- package/_cjs/tempo/Abis.js +642 -253
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/actions/earn.js +45 -17
- package/_cjs/tempo/actions/earn.js.map +1 -1
- package/_cjs/tempo/actions/token.js +18 -6
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tokens/definitions/usdc.js +7 -0
- package/_cjs/tokens/definitions/usdc.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js +2 -2
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/typedData.js +3 -0
- package/_cjs/utils/typedData.js.map +1 -1
- package/_esm/chains/definitions/story.js +7 -7
- package/_esm/chains/definitions/story.js.map +1 -1
- package/_esm/chains/definitions/storyAeneid.js +8 -8
- package/_esm/chains/definitions/storyAeneid.js.map +1 -1
- package/_esm/errors/typedData.js +9 -0
- package/_esm/errors/typedData.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/tempo/Abis.js +643 -254
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/actions/earn.js +45 -17
- package/_esm/tempo/actions/earn.js.map +1 -1
- package/_esm/tempo/actions/token.js +21 -8
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tokens/definitions/usdc.js +7 -0
- package/_esm/tokens/definitions/usdc.js.map +1 -1
- package/_esm/utils/promise/withRetry.js +2 -2
- package/_esm/utils/promise/withRetry.js.map +1 -1
- package/_esm/utils/typedData.js +4 -1
- package/_esm/utils/typedData.js.map +1 -1
- package/_types/chains/definitions/story.d.ts +7 -7
- package/_types/chains/definitions/storyAeneid.d.ts +8 -8
- package/_types/errors/typedData.d.ts +8 -0
- package/_types/errors/typedData.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +945 -388
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/actions/earn.d.ts +1141 -534
- package/_types/tempo/actions/earn.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +1 -1
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tokens/definitions/usdc.d.ts +7 -0
- package/_types/tokens/definitions/usdc.d.ts.map +1 -1
- package/_types/tokens/sets.d.ts +14 -0
- package/_types/tokens/sets.d.ts.map +1 -1
- package/_types/utils/typedData.d.ts.map +1 -1
- package/chains/definitions/story.ts +7 -7
- package/chains/definitions/storyAeneid.ts +8 -8
- package/errors/typedData.ts +13 -0
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
- package/tempo/Abis.ts +644 -254
- package/tempo/actions/earn.ts +80 -63
- package/tempo/actions/token.ts +60 -9
- package/tokens/definitions/usdc.ts +7 -0
- package/utils/promise/withRetry.ts +4 -4
- package/utils/typedData.ts +5 -0
|
@@ -2,12 +2,12 @@ import { defineChain } from '../../utils/chain/defineChain.js'
|
|
|
2
2
|
|
|
3
3
|
export const storyAeneid = /*#__PURE__*/ defineChain({
|
|
4
4
|
id: 1315,
|
|
5
|
-
name: '
|
|
6
|
-
network: '
|
|
5
|
+
name: 'Data Network Aeneid',
|
|
6
|
+
network: 'data-network-aeneid',
|
|
7
7
|
nativeCurrency: {
|
|
8
8
|
decimals: 18,
|
|
9
|
-
name: '
|
|
10
|
-
symbol: '
|
|
9
|
+
name: 'DATA',
|
|
10
|
+
symbol: 'DATA',
|
|
11
11
|
},
|
|
12
12
|
contracts: {
|
|
13
13
|
multicall3: {
|
|
@@ -24,13 +24,13 @@ export const storyAeneid = /*#__PURE__*/ defineChain({
|
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
rpcUrls: {
|
|
27
|
-
default: { http: ['https://aeneid.
|
|
27
|
+
default: { http: ['https://aeneid.datarpc.io'] },
|
|
28
28
|
},
|
|
29
29
|
blockExplorers: {
|
|
30
30
|
default: {
|
|
31
|
-
name: '
|
|
32
|
-
url: 'https://aeneid.
|
|
33
|
-
apiUrl: 'https://aeneid.
|
|
31
|
+
name: 'Data Network Aeneid Explorer',
|
|
32
|
+
url: 'https://aeneid.datanetscan.io',
|
|
33
|
+
apiUrl: 'https://aeneid.datanetscan.io/api/v2',
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
ensTlds: ['.ip'],
|
package/errors/typedData.ts
CHANGED
|
@@ -43,3 +43,16 @@ export class InvalidStructTypeError extends BaseError {
|
|
|
43
43
|
})
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
export type InvalidTypedDataTypeErrorType = InvalidTypedDataTypeError & {
|
|
48
|
+
name: 'InvalidTypedDataTypeError'
|
|
49
|
+
}
|
|
50
|
+
export class InvalidTypedDataTypeError extends BaseError {
|
|
51
|
+
constructor({ type }: { type: string }) {
|
|
52
|
+
const canonicalType = type.replace(/^(u?int)/, '$&256')
|
|
53
|
+
super(`Type "${type}" is not a valid EIP-712 type.`, {
|
|
54
|
+
metaMessages: [`Use "${canonicalType}" instead.`],
|
|
55
|
+
name: 'InvalidTypedDataTypeError',
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
}
|
package/errors/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.55.
|
|
1
|
+
export const version = '2.55.11'
|
package/index.ts
CHANGED
|
@@ -1060,6 +1060,8 @@ export {
|
|
|
1060
1060
|
type InvalidPrimaryTypeErrorType,
|
|
1061
1061
|
InvalidStructTypeError,
|
|
1062
1062
|
type InvalidStructTypeErrorType,
|
|
1063
|
+
InvalidTypedDataTypeError,
|
|
1064
|
+
type InvalidTypedDataTypeErrorType,
|
|
1063
1065
|
} from './errors/typedData.js'
|
|
1064
1066
|
export {
|
|
1065
1067
|
InvalidDecimalNumberError,
|