Skip to content

Commit 24a7c3f

Browse files
authored
Godaml update decimal fields (#733)
1 parent 11823cc commit 24a7c3f

6 files changed

Lines changed: 13 additions & 8 deletions

File tree

bindings/generated/latest/ccip/core/core.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/cmd/bindings/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ func main() {
9797
"apGroupQuorums": true, // used in AdminParams.AP_SetConfig
9898
"apGroupParents": true, // used in AdminParams.AP_SetConfig
9999
},
100+
// hex:"decimal" — Daml Decimal fields encoded via MCMS.Codec.encodeDecimal (sign byte + 10^10 shift).
101+
DecimalFields: map[string]bool{
102+
"usdPerUnitGas": true, // FeeQuoter gas price updates
103+
"usdPerToken": true, // FeeQuoter token price updates
104+
},
100105
VariantTagByteMap: map[string]map[string]byte{
101106
"CCIP.LockReleaseTokenPoolTypes.TransferTimeout": {
102107
"Indefinite": 0x00,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ require (
4242
github.com/smartcontractkit/chainlink-deployments-framework v0.114.2
4343
github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.6-0.20260623160408-12abc7b173d8
4444
github.com/smartcontractkit/chainlink-testing-framework/wasp v1.52.0
45-
github.com/smartcontractkit/go-daml v0.0.0-20260615231356-88c6ee9b5774
45+
github.com/smartcontractkit/go-daml v0.0.0-20260630200614-6e739bf6e282
4646
github.com/spf13/viper v1.21.0
4747
github.com/stretchr/testify v1.11.1
4848
github.com/testcontainers/testcontainers-go v0.42.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,8 @@ github.com/smartcontractkit/chainlink/v2 v2.29.0 h1:MyvQ/LAhHw//yDXgo2EvH7jq4NH3
12331233
github.com/smartcontractkit/chainlink/v2 v2.29.0/go.mod h1:6SHH9QHlKh1mKuEhG8Y7nGutUzhQwu1Qrpp/0qLzaR0=
12341234
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad h1:lgHxTHuzJIF3Vj6LSMOnjhqKgRqYW+0MV2SExtCYL1Q=
12351235
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU=
1236-
github.com/smartcontractkit/go-daml v0.0.0-20260615231356-88c6ee9b5774 h1:EN2PhfCPJrLa6rVWkuv+MfsHk0cd4c8iL8cjEi4pmls=
1237-
github.com/smartcontractkit/go-daml v0.0.0-20260615231356-88c6ee9b5774/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM=
1236+
github.com/smartcontractkit/go-daml v0.0.0-20260630200614-6e739bf6e282 h1:96Jd9XwZ2OaFrbR7lSYXIC/DzEbO5oQEmkXg86blj40=
1237+
github.com/smartcontractkit/go-daml v0.0.0-20260630200614-6e739bf6e282/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM=
12381238
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs=
12391239
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA=
12401240
github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE=

integration-tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require (
3333
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89
3434
github.com/smartcontractkit/chainlink-deployments-framework v0.114.2
3535
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad
36-
github.com/smartcontractkit/go-daml v0.0.0-20260615231356-88c6ee9b5774
36+
github.com/smartcontractkit/go-daml v0.0.0-20260630200614-6e739bf6e282
3737
github.com/smartcontractkit/mcms v0.48.1-0.20260616002102-085d81f76b05
3838
github.com/stretchr/testify v1.11.1
3939
google.golang.org/protobuf v1.36.11

integration-tests/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.202510141
769769
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20251014120029-d73d15cc23f7/go.mod h1:ea1LESxlSSOgc2zZBqf1RTkXTMthHaspdqUHd7W4lF0=
770770
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad h1:lgHxTHuzJIF3Vj6LSMOnjhqKgRqYW+0MV2SExtCYL1Q=
771771
github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU=
772-
github.com/smartcontractkit/go-daml v0.0.0-20260615231356-88c6ee9b5774 h1:EN2PhfCPJrLa6rVWkuv+MfsHk0cd4c8iL8cjEi4pmls=
773-
github.com/smartcontractkit/go-daml v0.0.0-20260615231356-88c6ee9b5774/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM=
772+
github.com/smartcontractkit/go-daml v0.0.0-20260630200614-6e739bf6e282 h1:96Jd9XwZ2OaFrbR7lSYXIC/DzEbO5oQEmkXg86blj40=
773+
github.com/smartcontractkit/go-daml v0.0.0-20260630200614-6e739bf6e282/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM=
774774
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs=
775775
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA=
776776
github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE=

0 commit comments

Comments
 (0)