seismic-viem 1.0.39 → 1.0.40
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/_cjs/index.js +4 -3
- package/dist/_esm/index.js +4 -3
- package/dist/_types/chain.d.ts +1 -1
- package/dist/_types/test.d.ts +41 -0
- package/package.json +1 -1
package/dist/_cjs/index.js
CHANGED
|
@@ -14552,7 +14552,7 @@ var sanvil = /* @__PURE__ */ defineChain({
|
|
|
14552
14552
|
rpcUrls: {
|
|
14553
14553
|
default: {
|
|
14554
14554
|
http: ["http://127.0.0.1:8545"],
|
|
14555
|
-
webSocket: ["ws://127.0.0.1:
|
|
14555
|
+
webSocket: ["ws://127.0.0.1:8545"]
|
|
14556
14556
|
}
|
|
14557
14557
|
},
|
|
14558
14558
|
formatters: seismicChainFormatters
|
|
@@ -15186,7 +15186,7 @@ async function signedCall(client, args) {
|
|
|
15186
15186
|
|
|
15187
15187
|
// src/contract/read.ts
|
|
15188
15188
|
var fillNonce = async (client, parameters) => {
|
|
15189
|
-
|
|
15189
|
+
let account = parseAccount(parameters.account || client.account);
|
|
15190
15190
|
const { nonce: nonce_ } = parameters;
|
|
15191
15191
|
if (nonce_) {
|
|
15192
15192
|
return nonce_;
|
|
@@ -15209,8 +15209,9 @@ async function signedReadContract(client, parameters) {
|
|
|
15209
15209
|
address,
|
|
15210
15210
|
...rest
|
|
15211
15211
|
} = parameters;
|
|
15212
|
+
let account = rest.account;
|
|
15212
15213
|
if (!rest.account) {
|
|
15213
|
-
|
|
15214
|
+
account = client.account;
|
|
15214
15215
|
}
|
|
15215
15216
|
const nonce = await fillNonce(client, parameters);
|
|
15216
15217
|
const seismicAbi = getAbiItem({ abi: abi2, name: functionName });
|
package/dist/_esm/index.js
CHANGED
|
@@ -14485,7 +14485,7 @@ var sanvil = /* @__PURE__ */ defineChain({
|
|
|
14485
14485
|
rpcUrls: {
|
|
14486
14486
|
default: {
|
|
14487
14487
|
http: ["http://127.0.0.1:8545"],
|
|
14488
|
-
webSocket: ["ws://127.0.0.1:
|
|
14488
|
+
webSocket: ["ws://127.0.0.1:8545"]
|
|
14489
14489
|
}
|
|
14490
14490
|
},
|
|
14491
14491
|
formatters: seismicChainFormatters
|
|
@@ -15119,7 +15119,7 @@ async function signedCall(client, args) {
|
|
|
15119
15119
|
|
|
15120
15120
|
// src/contract/read.ts
|
|
15121
15121
|
var fillNonce = async (client, parameters) => {
|
|
15122
|
-
|
|
15122
|
+
let account = parseAccount(parameters.account || client.account);
|
|
15123
15123
|
const { nonce: nonce_ } = parameters;
|
|
15124
15124
|
if (nonce_) {
|
|
15125
15125
|
return nonce_;
|
|
@@ -15142,8 +15142,9 @@ async function signedReadContract(client, parameters) {
|
|
|
15142
15142
|
address,
|
|
15143
15143
|
...rest
|
|
15144
15144
|
} = parameters;
|
|
15145
|
+
let account = rest.account;
|
|
15145
15146
|
if (!rest.account) {
|
|
15146
|
-
|
|
15147
|
+
account = client.account;
|
|
15147
15148
|
}
|
|
15148
15149
|
const nonce = await fillNonce(client, parameters);
|
|
15149
15150
|
const seismicAbi = getAbiItem({ abi: abi2, name: functionName });
|
package/dist/_types/chain.d.ts
CHANGED
|
@@ -213,7 +213,7 @@ export declare const sanvil: {
|
|
|
213
213
|
rpcUrls: {
|
|
214
214
|
readonly default: {
|
|
215
215
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
216
|
-
readonly webSocket: readonly ["ws://127.0.0.1:
|
|
216
|
+
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
sourceId?: number | undefined | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Account, Chain } from 'viem';
|
|
2
|
+
type ContractTestArgs = {
|
|
3
|
+
chain: Chain;
|
|
4
|
+
url: string;
|
|
5
|
+
account: Account;
|
|
6
|
+
};
|
|
7
|
+
export declare const contractABI: readonly [{
|
|
8
|
+
readonly type: "function";
|
|
9
|
+
readonly name: "increment";
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly outputs: readonly [];
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
readonly name: "isOdd";
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly type: "bool";
|
|
20
|
+
readonly internalType: "bool";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "view";
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
readonly name: "setNumber";
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly name: "newNumber";
|
|
28
|
+
readonly type: "suint256";
|
|
29
|
+
readonly internalType: "suint256";
|
|
30
|
+
}];
|
|
31
|
+
readonly outputs: readonly [];
|
|
32
|
+
readonly stateMutability: "nonpayable";
|
|
33
|
+
}];
|
|
34
|
+
export declare const bytecode: {
|
|
35
|
+
object: string;
|
|
36
|
+
sourceMap: string;
|
|
37
|
+
linkReferences: {};
|
|
38
|
+
};
|
|
39
|
+
export declare const testSeismicTx: ({ chain, url, account, }: ContractTestArgs) => Promise<void>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=test.d.ts.map
|