diff --git a/.github/workflows/register-workflows-schemas.yaml b/.github/workflows/register-chip-schemas.yaml similarity index 82% rename from .github/workflows/register-workflows-schemas.yaml rename to .github/workflows/register-chip-schemas.yaml index 1da17a42..2f5382b2 100644 --- a/.github/workflows/register-workflows-schemas.yaml +++ b/.github/workflows/register-chip-schemas.yaml @@ -25,8 +25,9 @@ jobs: fail-fast: false matrix: config: - - { name: cre, file: chip-cre.json } - - { name: platform, file: chip-platform.json } + - { name: cre, dir: workflows, file: chip-cre.json } + - { name: platform, dir: workflows, file: chip-platform.json } + - { name: svr, dir: svr, file: chip-svr.json } steps: - uses: actions/checkout@v5 @@ -43,8 +44,8 @@ jobs: with: aws-account-id: ${{ secrets.AWS_ACCOUNT_ID_ROOT }} aws-region: us-west-2 - chip-schema-dir: "workflows" - chip-config-file-path: "workflows/${{ matrix.config.file }}" + chip-schema-dir: ${{ matrix.config.dir }} + chip-config-file-path: "${{ matrix.config.dir }}/${{ matrix.config.file }}" chip-config-host: ${{ github.ref_name == 'master' && secrets.chip_config_host_prod || secrets.chip_config_host_staging }} chip-config-user: ${{ secrets.chip_config_user }} chip-config-password: ${{ github.ref_name == 'master' && secrets.chip_config_password_prod || secrets.chip_config_password_staging }} diff --git a/svr/Makefile b/svr/Makefile index 46f3d8f4..fc7e43fc 100644 --- a/svr/Makefile +++ b/svr/Makefile @@ -15,3 +15,6 @@ deploy-prod: destroy-prod: iron-flask deploy-all -e prod -c ./iron-flask.yaml --destroy + +generate: + go generate ./... diff --git a/svr/chip-svr.json b/svr/chip-svr.json new file mode 100644 index 00000000..1bf6d711 --- /dev/null +++ b/svr/chip-svr.json @@ -0,0 +1,9 @@ +{ + "domain": "svr", + "schemas": [ + { + "entity": "svr.v1.FastLaneAtlasError", + "path": "v1/fastlane_atlas_error.proto" + } + ] +} diff --git a/svr/v1/fastlane_atlas_error.pb.go b/svr/v1/fastlane_atlas_error.pb.go new file mode 100644 index 00000000..47de1fd8 --- /dev/null +++ b/svr/v1/fastlane_atlas_error.pb.go @@ -0,0 +1,216 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: svr/v1/fastlane_atlas_error.proto + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type FastLaneAtlasError struct { + state protoimpl.MessageState `protogen:"open.v1"` + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` + ToAddress string `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` + FeedAddress string `protobuf:"bytes,4,opt,name=feed_address,json=feedAddress,proto3" json:"feed_address,omitempty"` + Nonce string `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"` + ErrorType string `protobuf:"bytes,6,opt,name=error_type,json=errorType,proto3" json:"error_type,omitempty"` + ErrorMessage string `protobuf:"bytes,7,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + HttpStatusCode int32 `protobuf:"varint,8,opt,name=http_status_code,json=httpStatusCode,proto3" json:"http_status_code,omitempty"` + TransactionId int64 `protobuf:"varint,9,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + AtlasUrl string `protobuf:"bytes,10,opt,name=atlas_url,json=atlasUrl,proto3" json:"atlas_url,omitempty"` + CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FastLaneAtlasError) Reset() { + *x = FastLaneAtlasError{} + mi := &file_svr_v1_fastlane_atlas_error_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FastLaneAtlasError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FastLaneAtlasError) ProtoMessage() {} + +func (x *FastLaneAtlasError) ProtoReflect() protoreflect.Message { + mi := &file_svr_v1_fastlane_atlas_error_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FastLaneAtlasError.ProtoReflect.Descriptor instead. +func (*FastLaneAtlasError) Descriptor() ([]byte, []int) { + return file_svr_v1_fastlane_atlas_error_proto_rawDescGZIP(), []int{0} +} + +func (x *FastLaneAtlasError) GetChainId() string { + if x != nil { + return x.ChainId + } + return "" +} + +func (x *FastLaneAtlasError) GetFromAddress() string { + if x != nil { + return x.FromAddress + } + return "" +} + +func (x *FastLaneAtlasError) GetToAddress() string { + if x != nil { + return x.ToAddress + } + return "" +} + +func (x *FastLaneAtlasError) GetFeedAddress() string { + if x != nil { + return x.FeedAddress + } + return "" +} + +func (x *FastLaneAtlasError) GetNonce() string { + if x != nil { + return x.Nonce + } + return "" +} + +func (x *FastLaneAtlasError) GetErrorType() string { + if x != nil { + return x.ErrorType + } + return "" +} + +func (x *FastLaneAtlasError) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage + } + return "" +} + +func (x *FastLaneAtlasError) GetHttpStatusCode() int32 { + if x != nil { + return x.HttpStatusCode + } + return 0 +} + +func (x *FastLaneAtlasError) GetTransactionId() int64 { + if x != nil { + return x.TransactionId + } + return 0 +} + +func (x *FastLaneAtlasError) GetAtlasUrl() string { + if x != nil { + return x.AtlasUrl + } + return "" +} + +func (x *FastLaneAtlasError) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +var File_svr_v1_fastlane_atlas_error_proto protoreflect.FileDescriptor + +const file_svr_v1_fastlane_atlas_error_proto_rawDesc = "" + + "\n" + + "!svr/v1/fastlane_atlas_error.proto\x12\x06svr.v1\"\xfb\x02\n" + + "\x12FastLaneAtlasError\x12\x19\n" + + "\bchain_id\x18\x01 \x01(\tR\achainId\x12!\n" + + "\ffrom_address\x18\x02 \x01(\tR\vfromAddress\x12\x1d\n" + + "\n" + + "to_address\x18\x03 \x01(\tR\ttoAddress\x12!\n" + + "\ffeed_address\x18\x04 \x01(\tR\vfeedAddress\x12\x14\n" + + "\x05nonce\x18\x05 \x01(\tR\x05nonce\x12\x1d\n" + + "\n" + + "error_type\x18\x06 \x01(\tR\terrorType\x12#\n" + + "\rerror_message\x18\a \x01(\tR\ferrorMessage\x12(\n" + + "\x10http_status_code\x18\b \x01(\x05R\x0ehttpStatusCode\x12%\n" + + "\x0etransaction_id\x18\t \x01(\x03R\rtransactionId\x12\x1b\n" + + "\tatlas_url\x18\n" + + " \x01(\tR\batlasUrl\x12\x1d\n" + + "\n" + + "created_at\x18\v \x01(\x03R\tcreatedAtB5Z3github.com/smartcontractkit/chainlink-protos/svr/v1b\x06proto3" + +var ( + file_svr_v1_fastlane_atlas_error_proto_rawDescOnce sync.Once + file_svr_v1_fastlane_atlas_error_proto_rawDescData []byte +) + +func file_svr_v1_fastlane_atlas_error_proto_rawDescGZIP() []byte { + file_svr_v1_fastlane_atlas_error_proto_rawDescOnce.Do(func() { + file_svr_v1_fastlane_atlas_error_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_svr_v1_fastlane_atlas_error_proto_rawDesc), len(file_svr_v1_fastlane_atlas_error_proto_rawDesc))) + }) + return file_svr_v1_fastlane_atlas_error_proto_rawDescData +} + +var file_svr_v1_fastlane_atlas_error_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_svr_v1_fastlane_atlas_error_proto_goTypes = []any{ + (*FastLaneAtlasError)(nil), // 0: svr.v1.FastLaneAtlasError +} +var file_svr_v1_fastlane_atlas_error_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_svr_v1_fastlane_atlas_error_proto_init() } +func file_svr_v1_fastlane_atlas_error_proto_init() { + if File_svr_v1_fastlane_atlas_error_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_svr_v1_fastlane_atlas_error_proto_rawDesc), len(file_svr_v1_fastlane_atlas_error_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_svr_v1_fastlane_atlas_error_proto_goTypes, + DependencyIndexes: file_svr_v1_fastlane_atlas_error_proto_depIdxs, + MessageInfos: file_svr_v1_fastlane_atlas_error_proto_msgTypes, + }.Build() + File_svr_v1_fastlane_atlas_error_proto = out.File + file_svr_v1_fastlane_atlas_error_proto_goTypes = nil + file_svr_v1_fastlane_atlas_error_proto_depIdxs = nil +} diff --git a/svr/v1/fastlane_atlas_error.proto b/svr/v1/fastlane_atlas_error.proto new file mode 100644 index 00000000..a960d361 --- /dev/null +++ b/svr/v1/fastlane_atlas_error.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package svr.v1; + +option go_package = "github.com/smartcontractkit/chainlink-protos/svr/v1"; + +message FastLaneAtlasError { + string chain_id = 1; + string from_address = 2; + string to_address = 3; + string feed_address = 4; + string nonce = 5; + string error_type = 6; + string error_message = 7; + int32 http_status_code = 8; + int64 transaction_id = 9; + string atlas_url = 10; + int64 created_at = 11; +} diff --git a/svr/v1/generate.go b/svr/v1/generate.go new file mode 100644 index 00000000..61d6201a --- /dev/null +++ b/svr/v1/generate.go @@ -0,0 +1,4 @@ +package v1 + +//go:generate protoc --go_out=. --go_opt=paths=source_relative beholder_tx_message.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative fastlane_atlas_error.proto