viem 2.0.0-alpha.5 → 2.0.0-alpha.6
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/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/public/readContract.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/public/readContract.d.ts +2 -1
- package/_types/actions/public/readContract.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts +2 -2
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/actions/public/readContract.ts +4 -1
- package/actions/wallet/writeContract.ts +26 -28
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":";;;AAaA,qFAA8E;AAC9E,iFAA0E;AAC1E,gFAAyE;AACzE,uCAAqD;AA8D9C,KAAK,UAAU,YAAY,CAMhC,MAAgC,EAChC,UAA2D;IAE3D,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GACjD,UAAoC,CAAA;IACtC,MAAM,QAAQ,GAAG,IAAA,0CAAkB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAChE,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,cAAI,EAAC,MAAM,EAAE;YAClC,GAAI,IAAuB;YAC3B,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,OAAO;SACZ,CAAC,CAAA;QACF,OAAO,IAAA,8CAAoB,EAAC;YAC1B,GAAG;YACH,IAAI;YACJ,YAAY;YACZ,IAAI,EAAE,IAAI,IAAI,IAAI;SACnB,CAA8C,CAAA;KAChD;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAA,sCAAgB,EAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,6BAA6B;YACvC,YAAY;SACb,CAAC,CAAA;KACH;AACH,CAAC;AAjCD,oCAiCC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":";;;AAeA,iFAA0E;AAE1E,6DAI6B;
|
1
|
+
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":";;;AAeA,iFAA0E;AAE1E,6DAI6B;AAwGtB,KAAK,UAAU,aAAa,CAQjC,MAAyC,EACzC,UAOC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GAChE,UAAqC,CAAA;IACvC,MAAM,IAAI,GAAG,IAAA,0CAAkB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAC5D,MAAM,IAAI,GAAG,MAAM,IAAA,oCAAe,EAAC,MAAM,EAAE;QACzC,IAAI,EAAE,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAChE,EAAE,EAAE,OAAO;QACX,GAAG,OAAO;KACX,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC;AA3BD,sCA2BC"}
|
package/_cjs/errors/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAuB,IAAI,EAAE,MAAM,WAAW,CAAA;AA+BrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAMhC,MAAgC,EAChC,UAA2D;IAE3D,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GACjD,UAAoC,CAAA;IACtC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAChE,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE;YAClC,GAAI,IAAuB;YAC3B,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,OAAO;SACZ,CAAC,CAAA;QACF,OAAO,oBAAoB,CAAC;YAC1B,GAAG;YACH,IAAI;YACJ,YAAY;YACZ,IAAI,EAAE,IAAI,IAAI,IAAI;SACnB,CAA8C,CAAA;KAChD;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,gBAAgB,CAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,6BAA6B;YACvC,YAAY;SACb,CAAC,CAAA;KACH;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE1E,OAAO,EAGL,eAAe,GAChB,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE1E,OAAO,EAGL,eAAe,GAChB,MAAM,sBAAsB,CAAA;AAsD7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAQjC,MAAyC,EACzC,UAOC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GAChE,UAAqC,CAAA;IACvC,MAAM,IAAI,GAAG,kBAAkB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAC5D,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE;QACzC,IAAI,EAAE,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAChE,EAAE,EAAE,OAAO;QACX,GAAG,OAAO;KACX,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/_esm/errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '2.0.0-alpha.
|
1
|
+
export const version = '2.0.0-alpha.6';
|
2
2
|
//# sourceMappingURL=version.js.map
|
@@ -3,8 +3,9 @@ import type { Client } from '../../clients/createClient.js';
|
|
3
3
|
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
4
|
import type { Chain } from '../../types/chain.js';
|
5
5
|
import type { ContractFunctionArgs, ContractFunctionName, ContractFunctionParameters, ContractFunctionReturnType } from '../../types/contract.js';
|
6
|
+
import type { UnionEvaluate } from '../../types/utils.js';
|
6
7
|
import { type CallParameters } from './call.js';
|
7
|
-
export type ReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = Pick<CallParameters, 'account' | 'blockNumber' | 'blockTag'
|
8
|
+
export type ReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = UnionEvaluate<Pick<CallParameters, 'account' | 'blockNumber' | 'blockTag'>> & ContractFunctionParameters<abi, 'pure' | 'view', functionName, args>;
|
8
9
|
export type ReadContractReturnType<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = ContractFunctionReturnType<abi, 'pure' | 'view', functionName, args>;
|
9
10
|
/**
|
10
11
|
* Calls a read-only function on a contract, and returns the response.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readContract.d.ts","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,yBAAyB,CAAA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,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,EAC9C,IAAI,SAAS,oBAAoB,CAC/B,GAAG,EACH,MAAM,GAAG,MAAM,EACf,YAAY,CACb,GAAG,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,IAC1D,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,YAAY,CAChC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,YAAY,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,EAC/D,IAAI,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EAErE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,EAChC,UAAU,EAAE,sBAAsB,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,GAC1D,OAAO,CAAC,sBAAsB,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,CAyB1D"}
|
@@ -9,10 +9,10 @@ import type { Hex } from '../../types/misc.js';
|
|
9
9
|
import type { Prettify, UnionEvaluate, UnionOmit } from '../../types/utils.js';
|
10
10
|
import type { FormattedTransactionRequest } from '../../utils/formatters/transactionRequest.js';
|
11
11
|
import { type SendTransactionParameters, type SendTransactionReturnType } from './sendTransaction.js';
|
12
|
-
export type WriteContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, allFunctionNames = ContractFunctionName<abi, 'nonpayable' | 'payable'>> =
|
12
|
+
export type WriteContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, allFunctionNames = ContractFunctionName<abi, 'nonpayable' | 'payable'>> = ContractFunctionParameters<abi, 'nonpayable' | 'payable', functionName, args, allFunctionNames> & Prettify<GetAccountParameter<account> & GetChain<chain, chainOverride> & GetValue<abi, functionName, SendTransactionParameters<chain, account, chainOverride> extends SendTransactionParameters ? SendTransactionParameters<chain, account, chainOverride>['value'] : SendTransactionParameters['value']> & {
|
13
13
|
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
14
14
|
dataSuffix?: Hex;
|
15
|
-
}>>;
|
15
|
+
}> & UnionEvaluate<UnionOmit<FormattedTransactionRequest<chainOverride extends Chain ? chainOverride : chain>, 'data' | 'from' | 'to' | 'value'>>;
|
16
16
|
export type WriteContractReturnType = SendTransactionReturnType;
|
17
17
|
/**
|
18
18
|
* Executes a write function on a contract.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"writeContract.d.ts","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,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AAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,uBAAuB,CACjC,GAAG,EACH,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,aAAa,CACd,GACA,OAAO,CAAC,uBAAuB,CAAC,CAUlC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "2.0.0-alpha.
|
1
|
+
export declare const version = "2.0.0-alpha.6";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -10,6 +10,7 @@ import type {
|
|
10
10
|
ContractFunctionParameters,
|
11
11
|
ContractFunctionReturnType,
|
12
12
|
} from '../../types/contract.js'
|
13
|
+
import type { UnionEvaluate } from '../../types/utils.js'
|
13
14
|
import { decodeFunctionResult } from '../../utils/abi/decodeFunctionResult.js'
|
14
15
|
import { encodeFunctionData } from '../../utils/abi/encodeFunctionData.js'
|
15
16
|
import { getContractError } from '../../utils/errors/getContractError.js'
|
@@ -26,7 +27,9 @@ export type ReadContractParameters<
|
|
26
27
|
'pure' | 'view',
|
27
28
|
functionName
|
28
29
|
> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
|
29
|
-
> =
|
30
|
+
> = UnionEvaluate<
|
31
|
+
Pick<CallParameters, 'account' | 'blockNumber' | 'blockTag'>
|
32
|
+
> &
|
30
33
|
ContractFunctionParameters<abi, 'pure' | 'view', functionName, args>
|
31
34
|
|
32
35
|
export type ReadContractReturnType<
|
@@ -37,7 +37,31 @@ export type WriteContractParameters<
|
|
37
37
|
chainOverride extends Chain | undefined = Chain | undefined,
|
38
38
|
///
|
39
39
|
allFunctionNames = ContractFunctionName<abi, 'nonpayable' | 'payable'>,
|
40
|
-
> =
|
40
|
+
> = ContractFunctionParameters<
|
41
|
+
abi,
|
42
|
+
'nonpayable' | 'payable',
|
43
|
+
functionName,
|
44
|
+
args,
|
45
|
+
allFunctionNames
|
46
|
+
> &
|
47
|
+
Prettify<
|
48
|
+
GetAccountParameter<account> &
|
49
|
+
GetChain<chain, chainOverride> &
|
50
|
+
GetValue<
|
51
|
+
abi,
|
52
|
+
functionName,
|
53
|
+
SendTransactionParameters<
|
54
|
+
chain,
|
55
|
+
account,
|
56
|
+
chainOverride
|
57
|
+
> extends SendTransactionParameters
|
58
|
+
? SendTransactionParameters<chain, account, chainOverride>['value']
|
59
|
+
: SendTransactionParameters['value']
|
60
|
+
> & {
|
61
|
+
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
62
|
+
dataSuffix?: Hex
|
63
|
+
}
|
64
|
+
> &
|
41
65
|
UnionEvaluate<
|
42
66
|
UnionOmit<
|
43
67
|
FormattedTransactionRequest<
|
@@ -45,33 +69,7 @@ export type WriteContractParameters<
|
|
45
69
|
>,
|
46
70
|
'data' | 'from' | 'to' | 'value'
|
47
71
|
>
|
48
|
-
>
|
49
|
-
ContractFunctionParameters<
|
50
|
-
abi,
|
51
|
-
'nonpayable' | 'payable',
|
52
|
-
functionName,
|
53
|
-
args,
|
54
|
-
allFunctionNames
|
55
|
-
> &
|
56
|
-
Prettify<
|
57
|
-
GetAccountParameter<account> &
|
58
|
-
GetChain<chain, chainOverride> &
|
59
|
-
GetValue<
|
60
|
-
abi,
|
61
|
-
functionName,
|
62
|
-
SendTransactionParameters<
|
63
|
-
chain,
|
64
|
-
account,
|
65
|
-
chainOverride
|
66
|
-
> extends SendTransactionParameters
|
67
|
-
? SendTransactionParameters<chain, account, chainOverride>['value']
|
68
|
-
: SendTransactionParameters['value']
|
69
|
-
> & {
|
70
|
-
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
71
|
-
dataSuffix?: Hex
|
72
|
-
}
|
73
|
-
>
|
74
|
-
>
|
72
|
+
>
|
75
73
|
|
76
74
|
export type WriteContractReturnType = SendTransactionReturnType
|
77
75
|
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.0.0-alpha.
|
1
|
+
export const version = '2.0.0-alpha.6'
|