-
Notifications
You must be signed in to change notification settings - Fork 20
#291 Proxy refactoring #324
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
90a4e56
#291 extract transaction sender class
otselnik 143913b
#291 move perm accs to transaction sender
otselnik 16c9bff
#291 fix state
otselnik f2c0303
#291 fix errors
otselnik 57f3b53
Merge remote-tracking branch 'origin/develop' into 291_proxy_refactoring
otselnik 3369f67
#291 merge fixes
otselnik af721bb
#291 refactoring
otselnik e512bb8
#291 move EXTRA_GAS to environment
otselnik 8dc5e29
#291 capitalize CONFIRMATION_CHECK_DELAY
otselnik 8dce2a5
#291 sort imports
otselnik cef8f21
#291 relative paths
otselnik 1bf8383
#291 Should be fixed in #326
otselnik 9672438
#291 testing chnages
otselnik 2d42b73
fix storage account check
sinev-valentine ac2755c
Merge remote-tracking branch 'origin/develop' into 291_proxy_refactoring
otselnik 3519c61
Merge branch '371_add_FinalizedStorage_to_check' into 291_proxy_refac…
otselnik bf313a2
#291 rename `trx_with_create_and_airdrop` -> `make_trx_with_create_an…
otselnik 3093fcc
Merge remote-tracking branch 'origin/develop' into 291_proxy_refactoring
otselnik 4d685db
#291 pull request fixes
otselnik 6f63338
Merge remote-tracking branch 'origin/develop' into 291_proxy_refactoring
otselnik 5ebf76a
Merge remote-tracking branch 'origin/develop' into 291_proxy_refactoring
otselnik b464b1e
#291 merge fix
otselnik 75c8e9a
#291 rename operator and associated token accounts
otselnik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -198,8 +198,6 @@ def create_account_list_by_emulate(self): | |
| resize_instr = [] | ||
| for acc_desc in output_json["accounts"]: | ||
| if acc_desc["new"] == False: | ||
|
|
||
| address = bytes.fromhex(acc_desc["address"][2:]) | ||
| if acc_desc["code_size_current"] is not None and acc_desc["code_size"] is not None: | ||
| if acc_desc["code_size"] > acc_desc["code_size_current"]: | ||
| code_size = acc_desc["code_size"] + 2048 | ||
|
|
@@ -255,7 +253,7 @@ def create_account_list_by_emulate(self): | |
| # add_keys_05.append(AccountMeta(pubkey=code_account, is_signer=False, is_writable=acc_desc["writable"])) | ||
| code_account_writable = acc_desc["writable"] | ||
|
|
||
| create_trx = self.instruction.make_trx_with_create_and_airdrop (address, code_account) | ||
| create_trx = self.instruction.make_trx_with_create_and_airdrop(address, code_account) | ||
| self.create_acc_trx.add(create_trx) | ||
|
|
||
| if address == to_address: | ||
|
|
@@ -393,7 +391,7 @@ def call_continue_step_by_step(self): | |
| logger.debug("Continue iterative step:") | ||
| result = self.call_continue_step() | ||
| signature = check_if_continue_returned(result) | ||
| if signature: | ||
| if signature is not None: | ||
| return signature | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In other case you should check it like that: and return None explicitly |
||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I suggest renaming back.
We can talk about PDA (Program Derived Address) account only when it is built this way. For the operator's account, it's not correct, because the operator uses their own Solana account, which can't be PDA. So, this name confuse.
Which information gives
operator_associated_token_address? I thinkoperator_neon_balancewill be better in this case.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.
Yeah, you're right!
I propose instead of
associated_token_addressuseoperator_neon_addresshere andneon_addresseverywhere it is needed.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.
So, what in the end?
operator_associated_token_address->operator_neon_balanceassociated_token_address->neon_addressorneon_balance?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.
operator_neon_addressi think.getTokenAddractually doesn't return a balance )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.
Let's stop on
operator_neon_address