This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +25
-16
lines changed
1kv-backend-staging/templates Expand file tree Collapse file tree 10 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 1717 source :
1818 repoURL : https://w3f.github.io/helm-charts/
1919 chart : otv-backend
20- targetRevision : v3.0.15
20+ targetRevision : v3.0.16
2121 plugin :
2222 env :
2323 - name : HELM_VALUES
Original file line number Diff line number Diff line change 1717 source :
1818 repoURL : https://w3f.github.io/helm-charts/
1919 chart : otv-backend
20- targetRevision : v3.0.15
20+ targetRevision : v3.0.16
2121 plugin :
2222 env :
2323 - name : HELM_VALUES
Original file line number Diff line number Diff line change 1717 source :
1818 repoURL : https://w3f.github.io/helm-charts/
1919 chart : otv-backend
20- targetRevision : v3.0.15
20+ targetRevision : v3.0.16
2121 plugin :
2222 env :
2323 - name : HELM_VALUES
Original file line number Diff line number Diff line change 1717 source :
1818 repoURL : https://w3f.github.io/helm-charts/
1919 chart : otv-backend
20- targetRevision : v3.0.15
20+ targetRevision : v3.0.16
2121 plugin :
2222 env :
2323 - name : HELM_VALUES
Original file line number Diff line number Diff line change 11description : 1K Validators Backend
22name : otv-backend
3- version : v3.0.15
4- appVersion : v3.0.15
3+ version : v3.0.16
4+ appVersion : v3.0.16
55apiVersion : v2
Original file line number Diff line number Diff line change 11{
22 "name" : " @1kv/common" ,
3- "version" : " 3.0.15 " ,
3+ "version" : " 3.0.16 " ,
44 "description" : " Services for running the Thousand Validator Program." ,
55 "main" : " build/index.js" ,
66 "types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @1kv/core" ,
3- "version" : " 3.0.15 " ,
3+ "version" : " 3.0.16 " ,
44 "description" : " Services for running the Thousand Validator Program." ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -114,12 +114,21 @@ export default class Nominator {
114114
115115 public async payee ( ) : Promise < any > {
116116 const api = this . handler . getApi ( ) ;
117- const ledger = await api . query . staking . ledger ( this . controller ) ;
118- const { stash } = ledger . unwrap ( ) ;
119- const payee = await api . query . staking . payee ( stash ) ;
120- if ( payee ) {
121- // @ts -ignore
122- return payee . toJSON ( ) . account ? payee . toJSON ( ) . account : payee . toString ( ) ;
117+ try {
118+ const ledger = await api . query . staking . ledger ( this . controller ) ;
119+ const { stash } = ledger . unwrap ( ) ;
120+ const payee = await api . query . staking . payee ( stash ) ;
121+ if ( payee ) {
122+ // @ts -ignore
123+ return payee . toJSON ( ) ?. account
124+ ? // @ts -ignore
125+ payee . toJSON ( ) ?. account
126+ : payee . toString ( ) ;
127+ }
128+ } catch ( e ) {
129+ logger . error ( `Error getting payee for ${ this . controller } : ${ e } ` , label ) ;
130+ logger . error ( e , label ) ;
131+ return this . controller ;
123132 }
124133 }
125134
Original file line number Diff line number Diff line change 11{
22 "name" : " @1kv/gateway" ,
3- "version" : " 3.0.15 " ,
3+ "version" : " 3.0.16 " ,
44 "description" : " Services for running the Thousand Validator Program." ,
55 "main" : " build/index.js" ,
66 "types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @1kv/worker" ,
3- "version" : " 3.0.15 " ,
3+ "version" : " 3.0.16 " ,
44 "description" : " Services for running the Thousand Validator Program." ,
55 "main" : " build/index.js" ,
66 "types" : " build/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments