Skip to content

Commit 640acab

Browse files
committed
alias CR types to pkg/types/aptos
1 parent c4f5a5f commit 640acab

3 files changed

Lines changed: 31 additions & 128 deletions

File tree

go.mod

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
module github.com/smartcontractkit/chainlink-aptos
22

3-
go 1.24.1
3+
go 1.24.2
44

55
require (
66
github.com/aptos-labs/aptos-go-sdk v1.7.1-0.20250602153733-bb1facae1d43
77
github.com/aptos-labs/tree-sitter-move-on-aptos v0.0.0-20250321090037-c820eb4716e1
88
github.com/ethereum/go-ethereum v1.15.3
9-
github.com/go-viper/mapstructure/v2 v2.2.1
9+
github.com/go-viper/mapstructure/v2 v2.3.0
1010
github.com/google/uuid v1.6.0
1111
github.com/hashicorp/go-plugin v1.6.3
1212
github.com/jpillora/backoff v1.0.0
1313
github.com/pelletier/go-toml/v2 v2.2.3
1414
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82
15-
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250519161208-80bc8b13c0e7
15+
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250627225301-71134bd746a8
16+
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250626141212-e50b2e7ffe2d
1617
github.com/stretchr/testify v1.10.0
1718
github.com/valyala/fastjson v1.6.4
1819
go.opentelemetry.io/otel v1.35.0
@@ -32,21 +33,14 @@ require (
3233
github.com/apache/arrow-go/v18 v18.0.0 // indirect
3334
github.com/bahlo/generic-list-go v0.2.0 // indirect
3435
github.com/beorn7/perks v1.0.1 // indirect
35-
github.com/bits-and-blooms/bitset v1.17.0 // indirect
3636
github.com/buger/jsonparser v1.1.1 // indirect
3737
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
3838
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3939
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.15.2 // indirect
4040
github.com/cloudevents/sdk-go/v2 v2.16.0 // indirect
4141
github.com/coder/websocket v1.8.12 // indirect
42-
github.com/consensys/bavard v0.1.22 // indirect
43-
github.com/consensys/gnark-crypto v0.14.0 // indirect
44-
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
45-
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
4642
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4743
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
48-
github.com/ethereum/c-kzg-4844 v1.0.3 // indirect
49-
github.com/ethereum/go-verkle v0.2.2 // indirect
5044
github.com/fatih/color v1.18.0 // indirect
5145
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
5246
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
@@ -91,7 +85,6 @@ require (
9185
github.com/mattn/go-isatty v0.0.20 // indirect
9286
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
9387
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect
94-
github.com/mmcloughlin/addchain v0.4.0 // indirect
9588
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
9689
github.com/modern-go/reflect2 v1.0.2 // indirect
9790
github.com/mr-tron/base58 v1.2.0 // indirect
@@ -107,12 +100,11 @@ require (
107100
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
108101
github.com/scylladb/go-reflectx v1.0.1 // indirect
109102
github.com/shopspring/decimal v1.4.0 // indirect
110-
github.com/smartcontractkit/freeport v0.1.0 // indirect
103+
github.com/smartcontractkit/freeport v0.1.1 // indirect
111104
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect
112105
github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298 // indirect
113106
github.com/spf13/pflag v1.0.6 // indirect
114107
github.com/stretchr/objx v0.5.2 // indirect
115-
github.com/supranational/blst v0.3.14 // indirect
116108
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
117109
github.com/x448/float16 v0.8.4 // indirect
118110
github.com/zeebo/xxh3 v1.0.2 // indirect
@@ -142,7 +134,6 @@ require (
142134
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
143135
google.golang.org/genproto/googleapis/api v0.0.0-20250219182151-9fdb1cabc7b2 // indirect
144136
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
145-
google.golang.org/grpc v1.71.0 // indirect
137+
google.golang.org/grpc v1.72.0 // indirect
146138
gopkg.in/yaml.v3 v3.0.1 // indirect
147-
rsc.io/tmplfunc v0.0.3 // indirect
148139
)

go.sum

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPn
2121
github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg=
2222
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
2323
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
24-
github.com/bits-and-blooms/bitset v1.17.0 h1:1X2TS7aHz1ELcC0yU1y2stUs/0ig5oMU6STFZGrhvHI=
25-
github.com/bits-and-blooms/bitset v1.17.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
2624
github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw=
2725
github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c=
2826
github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs=
@@ -42,16 +40,8 @@ github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I
4240
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
4341
github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
4442
github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
45-
github.com/consensys/bavard v0.1.22 h1:Uw2CGvbXSZWhqK59X0VG/zOjpTFuOMcPLStrp1ihI0A=
46-
github.com/consensys/bavard v0.1.22/go.mod h1:k/zVjHHC4B+PQy1Pg7fgvG3ALicQw540Crag8qx+dZs=
47-
github.com/consensys/gnark-crypto v0.14.0 h1:DDBdl4HaBtdQsq/wfMwJvZNE80sHidrK3Nfrefatm0E=
48-
github.com/consensys/gnark-crypto v0.14.0/go.mod h1:CU4UijNPsHawiVGNxe9co07FkzCeWHHrb1li/n1XoU0=
4943
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
5044
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
51-
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a h1:W8mUrRp6NOVl3J+MYp5kPMoUZPp7aOYHtaua31lwRHg=
52-
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a/go.mod h1:sTwzHBvIzm2RfVCGNEBZgRyjwK40bVoun3ZnGOCafNM=
53-
github.com/crate-crypto/go-kzg-4844 v1.1.0 h1:EN/u9k2TF6OWSHrCCDBBU6GLNMq88OspHHlMnHfoyU4=
54-
github.com/crate-crypto/go-kzg-4844 v1.1.0/go.mod h1:JolLjpSff1tCCJKaJx4psrlEdlXuJEC996PL3tTAFks=
5545
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
5646
github.com/cucumber/gherkin/go/v26 v26.2.0 h1:EgIjePLWiPeslwIWmNQ3XHcypPsWAHoMCz/YEBKP4GI=
5747
github.com/cucumber/gherkin/go/v26 v26.2.0/go.mod h1:t2GAPnB8maCT4lkHL99BDCVNzCh1d7dBhCLt150Nr/0=
@@ -71,14 +61,8 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
7161
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
7262
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
7363
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
74-
github.com/ethereum/c-kzg-4844 v1.0.3 h1:IEnbOHwjixW2cTvKRUlAAUOeleV7nNM/umJR+qy4WDs=
75-
github.com/ethereum/c-kzg-4844 v1.0.3/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
7664
github.com/ethereum/go-ethereum v1.15.3 h1:OeTWAq6r8iR89bfJDjmmOemE74ywArl9DUViFsVj3Y8=
7765
github.com/ethereum/go-ethereum v1.15.3/go.mod h1:jMXlpZXfSar1mGs/5sB0aEpEnPsiE1Jn6/3anlueqz8=
78-
github.com/ethereum/go-ethereum v1.15.7 h1:vm1XXruZVnqtODBgqFaTclzP0xAvCvQIDKyFNUA1JpY=
79-
github.com/ethereum/go-ethereum v1.15.7/go.mod h1:+S9k+jFzlyVTNcYGvqFhzN/SFhI6vA+aOY4T5tLSPL0=
80-
github.com/ethereum/go-verkle v0.2.2 h1:I2W0WjnrFUIzzVPwm8ykY+7pL2d4VhlsePn4j7cnFk8=
81-
github.com/ethereum/go-verkle v0.2.2/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk=
8266
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
8367
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
8468
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
@@ -106,8 +90,8 @@ github.com/go-playground/validator/v10 v10.25.0/go.mod h1:GGzBIJMuE98Ic/kJsBXbz1
10690
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
10791
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
10892
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
109-
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
110-
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
93+
github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk=
94+
github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
11195
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=
11296
github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
11397
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
@@ -145,7 +129,6 @@ github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/
145129
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
146130
github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
147131
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
148-
github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
149132
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
150133
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
151134
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -285,9 +268,6 @@ github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 h1:+n/aFZefKZp7spd8D
285268
github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE=
286269
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 h1:BpfhmLKZf+SjVanKKhCgf3bg+511DmU9eDQTen7LLbY=
287270
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
288-
github.com/mmcloughlin/addchain v0.4.0 h1:SobOdjm2xLj1KkXN5/n0xTIWyZA2+s99UCY1iPfkHRY=
289-
github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU=
290-
github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU=
291271
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
292272
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
293273
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -337,10 +317,12 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
337317
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
338318
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 h1:6C8qej6f1bStuePVkLSFxoU22XBS165D3klxlzRg8F4=
339319
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82/go.mod h1:xe4pgH49k4SsmkQq5OT8abwhWmnzkhpgnXeekbx2efw=
340-
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250519161208-80bc8b13c0e7 h1:yeDKMQSKJQwe5SdfPmbzjzgyZIeq1QlcR93K3e7tRCU=
341-
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250519161208-80bc8b13c0e7/go.mod h1:uNF6+noody47ZdmRwymDZAnQ7eKTXLzMKvl41LA63lo=
342-
github.com/smartcontractkit/freeport v0.1.0 h1:3MZHeti5m+tSTBCq5R8rhawFHxrnQZYBZVL+xgS1sPo=
343-
github.com/smartcontractkit/freeport v0.1.0/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU=
320+
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250627225301-71134bd746a8 h1:LBnFEfnTl/vf7jX52UH2CDPeGt010zM4oRRtxZG4MXw=
321+
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250627225301-71134bd746a8/go.mod h1:mRKPMPyJhg1RBjxtRTL2gHvRhTcZ+nk2Upu/u97Y16M=
322+
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250626141212-e50b2e7ffe2d h1:86gp4tIXRb6ccSrjcm4gV8iA5wJN6er3rJY9f2UxRLU=
323+
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250626141212-e50b2e7ffe2d/go.mod h1:QUEPHdSkH19Or+E1iMGG+rDQ6jpCTIbm//9Osa6MXDE=
324+
github.com/smartcontractkit/freeport v0.1.1 h1:B5fhEtmgomdIhw03uPVbVTP6oPv27fBhZsoZZMSIS8I=
325+
github.com/smartcontractkit/freeport v0.1.1/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU=
344326
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs=
345327
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA=
346328
github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298 h1:PKiqnVOTChlH4a4ljJKL3OKGRgYfIpJS4YD1daAIKks=
@@ -365,8 +347,6 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
365347
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
366348
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
367349
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
368-
github.com/supranational/blst v0.3.14 h1:xNMoHRJOTwMn63ip6qoWJ2Ymgvj7E2b9jY2FAwY+qRo=
369-
github.com/supranational/blst v0.3.14/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
370350
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
371351
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
372352
github.com/valyala/fastjson v1.6.4 h1:uAUNq9Z6ymTgGhcm0UynUAB6tlbakBrz6CQFax3BXVQ=
@@ -588,8 +568,8 @@ google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyac
588568
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
589569
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
590570
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
591-
google.golang.org/grpc v1.71.0 h1:kF77BGdPTQ4/JZWMlb9VpJ5pa25aqvVqogsxNHHdeBg=
592-
google.golang.org/grpc v1.71.0/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec=
571+
google.golang.org/grpc v1.72.0 h1:S7UkcVa60b5AAQTaO6ZKamFp1zMZSU0fGDK2WZLbBnM=
572+
google.golang.org/grpc v1.72.0/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
593573
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
594574
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
595575
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
@@ -617,5 +597,3 @@ honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWh
617597
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
618598
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
619599
honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
620-
rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU=
621-
rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA=
Lines changed: 15 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,24 @@
11
package config
22

3-
import (
4-
"time"
3+
import "github.com/smartcontractkit/chainlink-common/pkg/types/aptos"
54

6-
"github.com/smartcontractkit/chainlink-common/pkg/types"
7-
)
5+
// Deprecated
6+
type ChainReaderConfig = aptos.ChainReaderConfig
87

9-
type ChainReaderConfig struct {
10-
IsLoopPlugin bool
11-
Modules map[string]*ChainReaderModule
8+
// Deprecated
9+
type ChainReaderModule = aptos.ChainReaderModule
1210

13-
EventSyncInterval time.Duration
14-
EventSyncTimeout time.Duration
11+
// Deprecated
12+
type ChainReaderFunction = aptos.ChainReaderFunction
1513

16-
TxSyncInterval time.Duration
17-
TxSyncTimeout time.Duration
18-
}
14+
// Deprecated
15+
type AptosFunctionParam = aptos.FunctionParam
1916

20-
type ChainReaderModule struct {
21-
// The module name (optional). When not provided, the key in the map under which this module
22-
// is stored is used.
23-
Name string
24-
Functions map[string]*ChainReaderFunction
25-
Events map[string]*ChainReaderEvent
26-
}
17+
// Deprecated
18+
type ChainReaderEvent = aptos.ChainReaderEvent
2719

28-
type ChainReaderFunction struct {
29-
// The function name (optional). When not provided, the key in the map under which this function
30-
// is stored is used.
31-
Name string
32-
Params []AptosFunctionParam
20+
// Deprecated
21+
type RenamedField = aptos.RenamedField
3322

34-
ResultFieldRenames map[string]RenamedField
35-
ResultTupleToStruct []string
36-
ResultUnwrapStruct []string
37-
}
38-
39-
type AptosFunctionParam struct {
40-
// The function parameter name.
41-
Name string
42-
// The function parameter Move type.
43-
Type string
44-
// True if this is a required parameter, false otherwise.
45-
Required bool
46-
// If this is not a required parameter and it is not provided, this default value will be used.
47-
DefaultValue any
48-
}
49-
50-
type ChainReaderEvent struct {
51-
// The struct where the event handle is defined.
52-
EventHandleStructName string
53-
54-
// The name of the event handle field.
55-
// This field can be defined as path to the nested
56-
// struct that stores the event, e.g. "token_pool_state.burned_events"
57-
EventHandleFieldName string
58-
59-
// The event account address.
60-
// This field can be defined in several ways:
61-
// - Empty string, which means the event account address is the address of the bound contract.
62-
// - An exact address hex string (eg. 0x1234 or 1234) containing the events.
63-
// - A fully qualified function name (eg. 0x1234::my_contract::get_event_address) which
64-
// takes no parameters and returns the actual event account address.
65-
// - A name containing the module name and function name components
66-
// (eg. my_first_contract::get_event_address) stored at the address of the bound contract,
67-
// which takes no parameters and returns the actual event account address.
68-
EventAccountAddress string
69-
70-
// Renames of event field names (optional). When not provided, the field names are used as-is.
71-
EventFieldRenames map[string]RenamedField
72-
73-
// Renames provided filters to match the event field names (optional). When not provided, the filters are used as-is.
74-
EventFilterRenames map[string]string
75-
}
76-
77-
type RenamedField struct {
78-
// The new field name (optional). This does not need to be provided if this field does not need
79-
// to be renamed.
80-
NewName string
81-
82-
// Rename sub-fields. This assumes that the event field value is a struct or a map with string keys.
83-
SubFieldRenames map[string]RenamedField
84-
}
85-
86-
type SequenceWithMetadata struct {
87-
Sequence types.Sequence
88-
TxVersion uint64
89-
TxHash string
90-
}
23+
// Deprecated
24+
type SequenceWithMetadata = aptos.SequenceWithMetadata

0 commit comments

Comments
 (0)