Skip to content

Commit

Permalink
add beneficiary address
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiong-stratos committed Jan 24, 2024
1 parent 75b7999 commit 9a7b579
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class MsgCreateMetaNode {
details: string;
};

public beneficiaryAddress: string;

public json: object;

constructor(payload: object) {
Expand All @@ -39,6 +41,7 @@ class MsgCreateMetaNode {
['description'],
payload
);
this.beneficiaryAddress = R.pathOr('', ['beneficiaryAddress'], payload);
this.json = R.pathOr({}, ['json'], payload);
}

Expand All @@ -64,6 +67,7 @@ class MsgCreateMetaNode {
securityContact: R.pathOr('', ['description', 'security_contact'], json),
details: R.pathOr('', ['description', 'details'], json),
},
beneficiaryAddress: R.pathOr("",['beneficiary_address'],json),
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class MsgCreateResourceNode {
details: string;
};

public beneficiaryAddress: string;

public nodeType: number;

public json: object;
Expand All @@ -42,6 +44,7 @@ class MsgCreateResourceNode {
payload
);
this.nodeType = R.pathOr(0, ['nodeType'], payload);
this.beneficiaryAddress = R.pathOr('', ['beneficiaryAddress'], payload);
this.json = R.pathOr({}, ['json'], payload);
}

Expand All @@ -68,6 +71,7 @@ class MsgCreateResourceNode {
details: R.pathOr('', ['description', 'details'], json),
},
nodeType: R.pathOr(0, ['node_type'], json),
beneficiaryAddress: R.pathOr("",['beneficiary_address'],json),
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MsgUpdateMetaNode {

public ownerAddress: string;

public beneficiaryAddress: string;

public json: object;

constructor(payload: object) {
Expand All @@ -30,6 +32,7 @@ class MsgUpdateMetaNode {
);
this.networkAddress = R.pathOr('', ['networkAddress'], payload);
this.ownerAddress = R.pathOr('', ['ownerAddress'], payload);
this.beneficiaryAddress = R.pathOr('', ['beneficiaryAddress'], payload);
this.json = R.pathOr({}, ['json'], payload);
}

Expand All @@ -47,6 +50,7 @@ class MsgUpdateMetaNode {
},
networkAddress: R.pathOr('', ['network_address'], json),
ownerAddress: R.pathOr('', ['owner_address'], json),
beneficiaryAddress: R.pathOr("",['beneficiary_address'],json),
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class MsgUpdateResourceNode {

public nodeType: number;

public beneficiaryAddress: string;

public json: object;

constructor(payload: object) {
Expand All @@ -33,6 +35,7 @@ class MsgUpdateResourceNode {
this.networkAddress = R.pathOr('', ['networkAddress'], payload);
this.ownerAddress = R.pathOr('', ['ownerAddress'], payload);
this.nodeType = R.pathOr(0, ['nodeType'], payload);
this.beneficiaryAddress = R.pathOr('', ['beneficiaryAddress'], payload);
this.json = R.pathOr({}, ['json'], payload);
}

Expand All @@ -51,6 +54,7 @@ class MsgUpdateResourceNode {
networkAddress: R.pathOr('', ['network_address'], json),
ownerAddress: R.pathOr('', ['owner_address'], json),
nodeType: R.pathOr(0, ['node_type'], json),
beneficiaryAddress: R.pathOr("",['beneficiary_address'],json),
};
}
}
Expand Down

0 comments on commit 9a7b579

Please sign in to comment.