-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gateway): improve Gateway contract #15
Conversation
de845d7
to
f2c3b17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
Just one comment to precise what run
is, this is not clear for someone not familiar with TON
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just some minor comments feel free to apply what makes sense since it is first time i am checking ton codebase
@@ -216,14 +209,20 @@ export class Gateway implements Contract { | |||
return state.balance; | |||
} | |||
|
|||
async getQueryState(provider: ContractProvider): Promise<[boolean, bigint, string]> { | |||
async getGatewayState(provider: ContractProvider): Promise<GatewayState> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, can be called getState since gateway.getGatewayState seems redundant, but up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, getState()
is reserved by TON which returns TON balance and last tx hash thus I chose this name
Changes
authority
concept. Move the following messages from TSS to authorityset_deposits_enabled
update_code
update_tss
update_authority
messageCloses #5, #11, #13, #14