Skip to content

Commit

Permalink
fix: realign with v12 types
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVerstraete committed Nov 15, 2022
1 parent 8481543 commit 688355c
Show file tree
Hide file tree
Showing 14 changed files with 578 additions and 9,409 deletions.
2 changes: 1 addition & 1 deletion indexer/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# indexer options #
###########################

WS_ENDPOINT=ws://192.168.49.1:9944
WS_ENDPOINT=ws://192.168.8.106:9944
#WS_ENDPOINT=wss://tfchain.dev.grid.tf
START_HEIGHT=0
2 changes: 1 addition & 1 deletion indexer/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: tfchainindexer
description: Helm Chart for the tfchain hydra indexer
version: 2.5.0
apiVersion: v2
appVersion: "2.6.0"
appVersion: "2.6.1"
115 changes: 92 additions & 23 deletions indexer/chart/templates/indexer-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
apiVersion: v1
data:
typesBundle.json: |
typesBundle.json: |-
{
"spec": {
"substrate-threefold": {
"types": [
{
"minmax": [9, null],
"minmax": [
9,
null
],
"types": {
"Farm": {
"version": "u32",
Expand Down Expand Up @@ -64,10 +67,16 @@ data:
"ips": "Vec<Vec<u8>>"
},
"CertificationType": {
"_enum": ["Diy", "Certified"]
"_enum": [
"Diy",
"Certified"
]
},
"CertificationCodeType": {
"_enum": ["Farm", "Entity"]
"_enum": [
"Farm",
"Entity"
]
},
"CertificationCodes": {
"version": "u32",
Expand All @@ -90,7 +99,13 @@ data:
]
},
"DiscountLevel": {
"_enum": ["None", "Default", "Bronze", "Silver", "Gold"]
"_enum": [
"None",
"Default",
"Bronze",
"Silver",
"Gold"
]
},
"NameRegistration": {
"nameRegistrationId": "u64",
Expand All @@ -115,10 +130,18 @@ data:
"amountBilled": "u128"
},
"PalletStorageVersion": {
"_enum": ["V1", "V2", "V3"]
"_enum": [
"V1",
"V2",
"V3"
]
},
"StorageVersion": {
"_enum": ["V1Struct", "V2Struct", "V3Struct"]
"_enum": [
"V1Struct",
"V2Struct",
"V3Struct"
]
},
"Address": "MultiAddress",
"LookupSource": "MultiAddress",
Expand Down Expand Up @@ -189,7 +212,11 @@ data:
"state": "ValidatorRequestState"
},
"ValidatorRequestState": {
"_enum": ["Created", "Approved", "Validating"]
"_enum": [
"Created",
"Approved",
"Validating"
]
},
"PricingPolicy": {
"version": "u32",
Expand Down Expand Up @@ -247,7 +274,10 @@ data:
}
},
{
"minmax": [9, 27],
"minmax": [
9,
27
],
"types": {
"Node": {
"version": "u32",
Expand All @@ -266,7 +296,10 @@ data:
}
},
{
"minmax": [9, 25],
"minmax": [
9,
25
],
"types": {
"Contract": {
"version": " u32",
Expand All @@ -285,7 +318,10 @@ data:
}
},
{
"minmax": [25, null],
"minmax": [
25,
null
],
"types": {
"Contract": {
"version": " u32",
Expand All @@ -301,12 +337,18 @@ data:
}
},
"Cause": {
"_enum": ["CanceledByUser", "OutOfFunds"]
"_enum": [
"CanceledByUser",
"OutOfFunds"
]
}
}
},
{
"minmax": [28, 42],
"minmax": [
28,
42
],
"types": {
"Node": {
"version": "u32",
Expand All @@ -326,7 +368,10 @@ data:
}
},
{
"minmax": [43, null],
"minmax": [
43,
null
],
"types": {
"Node": {
"version": "u32",
Expand All @@ -349,7 +394,10 @@ data:
}
},
{
"minmax": [50, null],
"minmax": [
50,
null
],
"types": {
"ContractData": {
"_enum": {
Expand All @@ -374,7 +422,10 @@ data:
}
},
{
"minmax": [51, null],
"minmax": [
51,
null
],
"types": {
"PricingPolicy": {
"version": "u32",
Expand All @@ -393,7 +444,10 @@ data:
}
},
{
"minmax": [59, null],
"minmax": [
59,
null
],
"types": {
"ContractState": {
"_enum": {
Expand All @@ -406,7 +460,10 @@ data:
}
},
{
"minmax": [63, null],
"minmax": [
63,
null
],
"types": {
"Farm": {
"version": "u32",
Expand Down Expand Up @@ -447,10 +504,16 @@ data:
"connectionPrice": "u32"
},
"NodeCertification": {
"_enum": ["Diy", "Certified"]
"_enum": [
"Diy",
"Certified"
]
},
"FarmCertification": {
"_enum": ["NotCertified", "Gold"]
"_enum": [
"NotCertified",
"Gold"
]
},
"FarmingPolicy": {
"version": "u32",
Expand Down Expand Up @@ -488,7 +551,10 @@ data:
}
},
{
"minmax": [105, null],
"minmax": [
105,
null
],
"types": {
"Contract": {
"version": " u32",
Expand All @@ -501,7 +567,10 @@ data:
}
},
{
"minmax": [118, null],
"minmax": [
118,
null
],
"types": {
"Node": {
"version": "u32",
Expand All @@ -519,7 +588,7 @@ data:
"certification": "NodeCertification",
"secureBoot": "bool",
"virtualized": "bool",
"serialNumber": "Vec<u8>",
"serialNumber": "Option<Vec<u8>>",
"connectionPrice": "u32"
},
"Location": {
Expand Down
Loading

0 comments on commit 688355c

Please sign in to comment.