Skip to content

Commit 91aaf8b

Browse files
committed
example
1 parent 3b93e1d commit 91aaf8b

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

.changeset/fresh-bushes-hear.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,29 @@
22
"chainlink-deployments-framework": patch
33
---
44

5-
Add confirm func options for faster ticker
5+
Adds a new EVM Confirm Functor which allows the user to specify a custom wait interval for checking confirmation.
6+
Example
7+
8+
```golang
9+
p, err := cldf_evm_provider.NewRPCChainProvider(
10+
d.ChainSelector,
11+
cldf_evm_provider.RPCChainProviderConfig{
12+
DeployerTransactorGen: cldf_evm_provider.TransactorFromRaw(
13+
getNetworkPrivateKey(),
14+
),
15+
RPCs: []rpcclient.RPC{
16+
{
17+
Name: "default",
18+
WSURL: rpcWSURL,
19+
HTTPURL: rpcHTTPURL,
20+
PreferredURLScheme: rpcclient.URLSchemePreferenceHTTP,
21+
},
22+
},
23+
ConfirmFunctor: cldf_evm_provider.ConfirmFuncGeth(
24+
30*time.Second,
25+
// set custom confirm ticker time because Anvil's blocks are instant
26+
cldf_evm_provider.WithTickInterval(5*time.Millisecond),
27+
),
28+
},
29+
).Initialize(context.Background())
30+
```

0 commit comments

Comments
 (0)