instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
status-im__status-go__6133
status-im/status-go
6,133
defect
3466ac2661bb19cd0eaa27761551de3b4d31b393
738c74d37f84cbc1d35c541c1581fea13695b3af
fix(edit)_: make sure the contentType stays the same after an edit
Fixes https://github.com/status-im/status-desktop/issues/16741 The issue was that in image messages, you can update the text, but then the ContentType would become Text and lose the image. The solution is to ignore ContentType changes, since there is no way to change the type of message. I'm not sure if I should ...
diff --git a/protocol/messenger_edit_message_test.go b/protocol/messenger_edit_message_test.go index e670329a7e6..661aed79601 100644 --- a/protocol/messenger_edit_message_test.go +++ b/protocol/messenger_edit_message_test.go @@ -90,6 +90,88 @@ func (s *MessengerEditMessageSuite) TestEditMessage() { s.Require().Equal(...
2
1
0
[{"id": "G0", "claim": "Since the ContentType field on requests.EditMessage is now used only in a test, the reviewer asks whether it would be safe to remove the field from the struct or whether that would break the endpoint using the request struct.", "category": "design", "verdict": "supported", "priority": "P2", "sco...
null
status-im__status-go__6147
status-im/status-go
6,147
defect
cdc41c3b6459924b9ac30e1b60b34669e48984bd
60964ab912826d7ec42eb66a80865830934c3d5e
fix(healthmanager)_: extract subscriber logic from RPC Health Manager
* Subscription common logic is extracted to a separate type. * Fix race where go routing extracts value from sync.map and then another go routine calls unsubscribe and closes the channel before the first go routing tries to write to the channel. * moved TestInterleavedChainStatusChanges TestDelayedChainUpdate to the ...
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2310d23cf4a..7c79679d5d5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -14,3 +14,4 @@ shell.nix @status-im/devops # Feel free to add yourself for any new packages you implement. /cmd/status-backend @igor-sirotin /internal/sentry ...
4
4
1
[{"id": "G0", "claim": "The per-subscriber verification loop should use require.Truef(t, received, ...) instead of the manual if/t.Errorf check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unsubscribed-channel check should assert with req...
null
status-im__status-go__6150
status-im/status-go
6,150
defect
cdc41c3b6459924b9ac30e1b60b34669e48984bd
08e94f16ba9b82e0f1bf63af4edbde24b3d9765b
feat_: api logging signals
# Major changes 1. Log signals 🎉 2. Replaced default text marshalling with json marshalling. We have `removeSensitiveInfo` expecting JSONs, otherwise its not doing it's job. In this case it didn't work for `pairing.Event.Data any`, which was marshalled to this: ``` 2024-12-05T12:44:10.275Z DEBUG Req...
diff --git a/mobile/callog/status_request_log.go b/mobile/callog/status_request_log.go index 57a14920c62..92486f63144 100644 --- a/mobile/callog/status_request_log.go +++ b/mobile/callog/status_request_log.go @@ -88,7 +88,7 @@ func Call(logger, requestLogger *zap.Logger, fn any, params ...any) any { if requestLogge...
3
1
1
[{"id": "G0", "claim": "Sensitive values (GifAPIKey, Password) flow in clear text into the new signal debug log call in LogSignal instead of being redacted.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Beyond passwords, identity-disclosing fields suc...
null
status-im__status-go__6190
status-im/status-go
6,190
defect
8b95c814886fd828de19acb2d1c6c384976c6bb0
9d13171b286abe9cacca4fd5995b8de9b74d69a5
feat_: SensitiveString type
Closes https://github.com/status-im/status-go/issues/5678 Just the implementation & tests for now. If all good, will add usage in a separate PR. Draft of usage here: - https://github.com/status-im/status-go/pull/6192
diff --git a/internal/security/sensitive_string.go b/internal/security/sensitive_string.go new file mode 100644 index 00000000000..eb630e5a5b9 --- /dev/null +++ b/internal/security/sensitive_string.go @@ -0,0 +1,54 @@ +package security + +import ( + "encoding/json" +) + +const redactionPlaceholder = "***" + +// Sensiti...
5
3
0
[{"id": "G0", "claim": "The SensitiveString struct should store the value as a *string to avoid copying.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NewSensitiveString should return SensitiveString by value instead of *SensitiveString, same as a no...
null
status-im__status-go__6346
status-im/status-go
6,346
defect
088e351f289e818c806a664663d8e7904db980a8
ec1c86999267111b6a42d2a6d472be1116aa6d1e
feat(wallet)_: calculating tx estimated time
The old estimation, the one using probability for estimating the time needed for the tx execution, is still here in case we decide to get back to it later or decide to improve on it more later. An issue with that approach is that the event is always calculated for the base fee from the last block (cause even if we can ...
diff --git a/services/connector/commands/send_transaction.go b/services/connector/commands/send_transaction.go index fe5be2daa87..fe28ef65609 100644 --- a/services/connector/commands/send_transaction.go +++ b/services/connector/commands/send_transaction.go @@ -97,7 +97,7 @@ func (c *SendTransactionCommand) Execute(ctx ...
7
4
1
[{"id": "G0", "claim": "The dead 'index correction' after computing the 60th-percentile priority-fee index should be removed, since int(len*0.6) can never reach len for non-empty slices and the author confirmed it was left over from removed network-congestion logic.", "category": "correctness", "verdict": "supported", ...
null
status-im__status-go__6456
status-im/status-go
6,456
defect
8bec5e322adeab08cb68603dc2c09985aee0d237
bbfa5e54247fa156979a90c098412e2ec6f9a1ef
chore_: move `Mailserver` to waku/types
Required for: - https://github.com/status-im/status-go/pull/6452 # Description Moved these types and funcs to `waku/types` package: - `Mailserver` and its methods - `MustDecodeENR` - `MustDecodeMultiaddress` Otherwise I get an import loop when I move the default mailservers to `params` package.
diff --git a/protocol/messenger_config_test.go b/protocol/messenger_config_test.go index e10b280d4ef..fd7a2665856 100644 --- a/protocol/messenger_config_test.go +++ b/protocol/messenger_config_test.go @@ -9,6 +9,7 @@ import ( "github.com/status-im/status-go/protocol/communities" "github.com/status-im/status-go/serv...
2
2
0
[{"id": "G0", "claim": "In protocol/storenodes/models.go the import alias for github.com/status-im/status-go/waku/types should be `wakutypes` instead of `types2`, for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In protocol/storen...
null
status-im__status-go__6489
status-im/status-go
6,489
defect
4dfa4e68cacee3f559116eda76bf517cf4685c5e
79c08ca5ad396cf0da7285513dfcabb55b0f52cd
fix(health-manager)_: fix nil healthmanager in copied rpc client
Issue from Sentry: https://sentry.infra.status.im/organizations/sentry/issues/161/events/3db6b31551c5474ea45d2b9069c61a19/?project=7 The identified root cause of the panics was likely related to improper copying in the ClientWithFallback implementation. The Copy() method was not properly copying the providersHealt...
diff --git a/healthmanager/providers_health_manager.go b/healthmanager/providers_health_manager.go index 052876c7be6..369ba629054 100644 --- a/healthmanager/providers_health_manager.go +++ b/healthmanager/providers_health_manager.go @@ -32,6 +32,12 @@ func NewProvidersHealthManager(chainID uint64) *ProvidersHealthManag...
2
2
0
[{"id": "G0", "claim": "Update should be refactored so that locking and status computation move into a doUpdate helper that releases the lock with defer, with Update calling the helper and emitting the chain status outside the lock.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existin...
null
status-im__status-go__6551
status-im/status-go
6,551
defect
40936e1b97a2a0ae052926dc49b4a258416e5c56
03f66cfa35a98a4aa60728e0df7692bf0878aad8
feat_: Use database snapshot for market data
* Do not start fetch loops when not requested on startup * Use only top context to stop loops instead of background * Added database snapshot logic * Added more unit tests Closes https://github.com/status-im/status-desktop/issues/17737
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 47011ec86d6..02832ec46fe 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -16,5 +16,7 @@ shell.nix @status-im/devops /_docs/policies @status-im/status-go-guild @jrainville @alaibe @shivekkhurana @ilmotta @plopezlpz /cmd/status-bac...
2
2
0
[{"id": "G0", "claim": "The database load of cryptoData duplicated behind the empty-check in every getter should be performed only once during initialisation instead of lazily in each accessor.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new persi...
null
status-im__status-go__6601
status-im/status-go
6,601
defect
5c64275737d7f4d3efcf208f79d0c874abf38c35
9f9a924f9a61969a0aabc8103a0982e34d72c2a5
perf(envelopes)_: only cache the hash and Processed status instead of whole envelope
Fixes #6523 Changes the envelopeCache to store a bool instead of a full envelope. That bool represents whether the envelope has been Processed. This is sufficient info for the code to process envelopes the same way as before. Only one test was affected by this. Other tests were just cleaned up and made simpler by th...
diff --git a/protocol/messenger_storenode_comunity_test.go b/protocol/messenger_storenode_comunity_test.go index ee5a24df15b..2b5b34978cd 100644 --- a/protocol/messenger_storenode_comunity_test.go +++ b/protocol/messenger_storenode_comunity_test.go @@ -9,6 +9,7 @@ import ( "github.com/libp2p/go-libp2p/core/peer" "g...
3
3
0
[{"id": "G0", "claim": "The Processed flag (e.Processed.Store in processMessage and the field behind it) looks unneeded now that processed status is tracked directly in the envelope cache, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
status-im__status-go__6692
status-im/status-go
6,692
defect
3265fa2886deee3c17e3b47a1bcd15cb50f5ef07
e7daf481ddfe5740f4d7e4bde2d298a788cc10a0
refactor(accounts-management)_: enhance AccountsManager with persistence interface
- Introduced a new `Persistence` interface to manage account data storage and retrieval. - Updated `AccountsManager` to require a `Persistence` instance during initialization. - Refactored related methods to utilize the new persistence layer, improving separation of concerns. - Updated tests to mock the persistence ...
diff --git a/account/accounts.go b/account/accounts.go deleted file mode 100644 index e7009338c55..00000000000 --- a/account/accounts.go +++ /dev/null @@ -1,364 +0,0 @@ -package account - -import ( - "crypto/ecdsa" - "errors" - "fmt" - "strings" - "sync" - - "github.com/google/uuid" - "go.uber.org/zap" - - "github.com/...
2
1
0
[{"id": "G0", "claim": "The path derivation line `path := \"m/\" + dbPath[strings.LastIndex(dbPath, \"/\")+1:]` should go after the error handling of `m.persistence.GetPath(address)`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G2", "claim": "The Persistence ...
null
status-im__status-go__6762
status-im/status-go
6,762
defect
49607704fc4bd5c7e2b81e14c59803693d003b87
a025db380c33672ae0da97574e9036b1380c05a0
perf_: Don't store community members for public chats
Avoid duplicating community members in public chats Rationale: reduce memory footprint <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'"><br> Startup memory footprint for status-desktop</p> Account type | With public chat members | Without public chat members -- | -- | -- Old account -...
diff --git a/protocol/chat.go b/protocol/chat.go index 84ae39d712c..df2ec9d24fa 100644 --- a/protocol/chat.go +++ b/protocol/chat.go @@ -519,7 +519,7 @@ func CreateOneToOneChat(name string, publicKey *ecdsa.PublicKey, timesource comm } } -func CreateCommunityChat(orgID, chatID string, orgChat *protobuf.CommunityCh...
5
4
2
[{"id": "G0", "claim": "createChat runs when the community is first created, so for an encrypted chat the encryption evaluation is not done yet and the members could simply be left empty and populated later.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
status-im__status-go__6903
status-im/status-go
6,903
defect
3fe5ea0b0317b010160e40ed37f3754319a6a052
7bdaf2a72a4462e9a1a7aad45cdb53839e012b06
feat(backup): implement messages backup poc
Fixes https://github.com/status-im/status-desktop/issues/18529 Implements a rough but functional proof of concept for message backup and import. It is guarded by a new setting so that you need to opt-in to have it, thus not breaking PFS by default. It works for text messages, contacts requests, images, emojis,...
diff --git a/appdatabase/migrations/sql/1757011767281_add_messages-backup_enabled.up.sql b/appdatabase/migrations/sql/1757011767281_add_messages-backup_enabled.up.sql new file mode 100644 index 00000000000..554ae1b740f --- /dev/null +++ b/appdatabase/migrations/sql/1757011767281_add_messages-backup_enabled.up.sql @@ -0...
6
6
2
[{"id": "G0", "claim": "Saving pinned messages crashes: buildPinMessageQueries fails when it calls db.db.BeginTx, and the author does not know why, asking for help.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The new migration's filename timestam...
null
status-im__status-go__6937
status-im/status-go
6,937
defect
840adb83d9d62584ef9d8a07f3ee7fbb74a07f05
4185fd891f7bfe1a0e8992176effcd5640b50195
fix(reactions): limit reactions to 20 per message
Needed for https://github.com/status-im/status-desktop/issues/18843 Blocks sending or receiving more than 20 different types of reactions on a single message. Adds a functional test testing it all I'll work on the frontend validation too before closing the issue
diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index 02e4edad192..0f5efdc195e 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -1846,6 +1846,52 @@ func (db sqlitePersistence) EmojiReactionsByChatIDMessageID(chatID string, messa return result, nil }...
7
4
1
[{"id": "G0", "claim": "Maybe the message is already cached, so CheckMaxNumberOfEmojiReactionsPerMessage does not need to query the DB for the reaction count.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use fake.emoji() from utils/fake.py instead o...
null
status-im__status-go__6950
status-im/status-go
6,950
defect
c8d89ff0b57a8399cc89005b00a31abc6c0fe78e
c2890689232dd5060c48aa2568a6933d295c92ad
feat(pairing): add config to let users enable message syncing
Fixes https://github.com/status-im/status-desktop/issues/18894 Based on top of https://github.com/status-im/status-go/pull/6948 I will merge this one into the base once it's reviewed. It will enable the the tests to run and the coverage to go up on the base. Adds a param for users to enable message syncing durin...
diff --git a/api/geth_backend.go b/api/geth_backend.go index 900ba0d64f8..c0d2a648085 100644 --- a/api/geth_backend.go +++ b/api/geth_backend.go @@ -157,6 +157,7 @@ func (b *GethStatusBackend) initialize() (err error) { b.statusNode.SetMultiaccountsDB(b.multiaccountsDB) b.LocalPairingStateManager = new(statecontrol...
4
1
0
[{"id": "G0", "claim": "The new assertion expects chat_messages() to return None when no messages were synced, but it likely returns an empty list, which would make test_pairing_server_as_receiver fail incorrectly; the suggestion is to assert `messages == []`.", "category": "correctness", "verdict": "uncertain", "prior...
null
status-im__status-go__7054
status-im/status-go
7,054
defect
8792a7ffe7655ce96389c1cfb7aa0857054c2e01
265acf1405d7c3a0124b6cb4440a5a2d2f2e5eef
fix: Crashing with slice bounds out of range
### Description The `func (b *VarHexBigInt) UnmarshalJSON(input []byte) error {` doesn't check for empty hex value Fixing a crash on activity: ``` panic: runtime error: slice bounds out of range [2:1] [recovered] panic: runtime error: slice bounds out of range [2:1] goroutine 244 [running]: github.com...
diff --git a/services/wallet/bigint/var_hex_big_int.go b/services/wallet/bigint/var_hex_big_int.go index a213e4b6760..60c8b25540e 100644 --- a/services/wallet/bigint/var_hex_big_int.go +++ b/services/wallet/bigint/var_hex_big_int.go @@ -17,8 +17,25 @@ func (b *VarHexBigInt) UnmarshalJSON(input []byte) error { return...
3
2
0
[{"id": "G0", "claim": "Replace the hand-rolled 0x-prefix stripping block with strings.TrimPrefix(hexStr, \"0x\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The length check in the prefix-strip condition is redundant because the string leng...
null
status-im__status-go__7100
status-im/status-go
7,100
defect
60cd348567abffbaf78e93da23b3044b8494bc3f
df936bad962344a0ec508bc6a240e70129b706a7
fix(messenger_handler): ignore messages from dismissed contacts
Part of https://github.com/status-im/status-desktop/issues/18674 We still had edge cases where we accepted messages/requests from dismissed contacts. The principle was ok, because it makes sense to receive messages from non-contacts, because we need to receive contact requests, but when the contact is dismissed, ...
diff --git a/protocol/messenger_handler.go b/protocol/messenger_handler.go index 9d1478473a6..5c8b9c83a9b 100644 --- a/protocol/messenger_handler.go +++ b/protocol/messenger_handler.go @@ -526,6 +526,11 @@ func (m *Messenger) HandleSyncInstallationContactV2(state *ReceivedMessageState, } } + if contact.Dismissed...
4
2
1
[{"id": "G0", "claim": "The new early return for dismissed contacts in HandleSyncInstallationContactV2 would skip processing the sync update if the contact was un-dismissed on the other device.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The revi...
null
status-im__status-go__7149
status-im/status-go
7,149
defect
265a609621848be64d355925298ee751f00f446d
351f552ee9ad2f60b07f9ad08740bf2fc16dc612
feat: Add SDS unwrap process for received messages
Add SDS unwrap process for received messages. Important changes: - [x] add SDS unwrap process for received message - [x] log interested content for SDS callbacks - [x] disable SDS wrap by default Relates #https://github.com/waku-org/pm/issues/194
diff --git a/messaging/api.go b/messaging/api.go index f7565d9254c..bda8d75425c 100644 --- a/messaging/api.go +++ b/messaging/api.go @@ -11,6 +11,7 @@ import ( "github.com/multiformats/go-multiaddr" "github.com/waku-org/go-waku/waku/v2/api/history" + "github.com/waku-org/sds-go-bindings/sds" ethcommon "github...
11
9
3
[{"id": "G0", "claim": "The SDS wrapping should happen inside the messaging/reliability layer rather than in protocol/common's MessageSender, with the SDS manager moved into Reliability directly instead of the shared MessagingStack.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
status-im__status-go__7163
status-im/status-go
7,163
defect
641a18b6f61cb989fb52e4df823349ae56fd05ef
332cf3cc67142a511c779f61b37e410e1121caca
feat(backup): implement emoji reaction backup
Fixes https://github.com/status-im/status-desktop/issues/19343 Enables users to backup and sync emoji reactions along with messages during a pairing. [emoji-backup.webm](https://github.com/user-attachments/assets/560d8c1d-653e-4479-8d4c-3b432e33651d)
diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index 4762cc023d2..c82d3b24040 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -146,7 +146,12 @@ func (db sqlitePersistence) tableUserMessagesProtobufFields() string { m1.payment_requests, - pm...
2
1
0
[{"id": "G0", "claim": "The reaction-filtering condition `AND NOT(e.retracted)` should arguably be moved from the LEFT JOIN's ON clause to the WHERE clause.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `err == sql.ErrNoRows` check in AllMess...
null
status-im__status-go__7213
status-im/status-go
7,213
defect
c67a6c5ceb74661dad00074a7fa8ad6f342c0a72
45418a8c53bf9a4eb73a911d742fc7e6d2c76969
feat(backup): backup spectated communities as well
Needed for https://github.com/status-im/status-app/issues/19592 [backup-spectated.webm](https://github.com/user-attachments/assets/62e8d6d9-ab2b-474f-bd0c-29367d0809fd)
diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index 72157d60925..96250f4097f 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -3469,7 +3469,6 @@ func (m *Messenger) handleSyncInstallationCommunity(ctx context.Context, message logger.Debug(...
2
1
0
[{"id": "G0", "claim": "The spectate case should be an `else if syncCommunity.Spectated` branch beside `if syncCommunity.Joined` instead of a nested if inside the else block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If this is the struct t...
null
status-im__status-go__7227
status-im/status-go
7,227
defect
d15db9dca7344f4df4466154b636bc478d404bae
c9899d70ae20440a428098cbc16d310147b89f74
feat: sds unwrapping
Requires: - https://github.com/logos-messaging/nim-sds/pull/40 Closes: - https://github.com/status-im/status-go/issues/7216 # Description 1. Bring back https://github.com/status-im/status-go/pull/7149 2. Call SDS `Cleanup()` on reliability `Stop()`. 3. Update `nim-sds` to get https://github.com/logos-messa...
diff --git a/Makefile b/Makefile index 210a2629bf1..4b2269ab84d 100644 --- a/Makefile +++ b/Makefile @@ -236,7 +236,7 @@ clone-nwaku: $(NWAKU_SOURCE_DIR) $(LIBWAKU): clone-nwaku ifeq ($(USE_NWAKU),true) @echo "Building libwaku" $(LIBWAKU) - $(MAKE) -C $(NWAKU_SOURCE_DIR) libwaku USE_SYSTEM_NIM=$(USE_SYSTEM_NIM) SHE...
4
1
0
[{"id": "G0", "claim": "The reviewer questions the value of TestSdsFileDescriptors, which is unconditionally skipped via t.Skip and so never runs.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added to the skipped test so that its pur...
null
status-im__status-go__7232
status-im/status-go
7,232
defect
d484f55facd66a02d3818a28ef67fc92f4d9d9d1
ea2dcf4d6b5d18d74d430aba604cd70f76ecb515
fix(contacts): fixes for dismissing contact requests
I was working on fixing a bug where dismissing contact requests didn't sync to other devices, but I ended up fixing more stuff along the way. Fixes multiple issues: https://github.com/status-im/status-app/issues/18674 https://github.com/status-im/status-app/issues/19587 https://github.com/status-im/status-app/iss...
diff --git a/protocol/messenger_activity_center.go b/protocol/messenger_activity_center.go index a3b0ebb6b01..8644be8d404 100644 --- a/protocol/messenger_activity_center.go +++ b/protocol/messenger_activity_center.go @@ -317,7 +317,7 @@ func (m *Messenger) processActivityCenterNotifications(notifications []*Activity ...
2
1
1
[{"id": "G0", "claim": "The tests should also cover the opposite case, where the contact request is accepted/declined without passing the pubKey, and the call should fail.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment line was intended to r...
null
status-im__status-go__7254
status-im/status-go
7,254
defect
0dc37350ad0681e85ccb8413a16c5052f2092aec
60c6b529a028b43f76a857ee09e81243ea346890
fix(community): disable creating anyone can be admin or member perms
Needed for https://github.com/status-im/status-app/issues/19620 It was possible to create permissions where "anyone can be admin", which would be a disaster. We also enabled creating "anyone can join the community", which makes no sense, because that's just the default when there are no permissions.
diff --git a/protocol/communities_messenger_test.go b/protocol/communities_messenger_test.go index bfcdab12cc4..324a06f9aa7 100644 --- a/protocol/communities_messenger_test.go +++ b/protocol/communities_messenger_test.go @@ -3170,6 +3170,27 @@ func (s *MessengerCommunitiesSuite) TestSyncCommunity_LeftCommunity() { s....
2
1
0
[{"id": "G0", "claim": "Removing the `anyone can become member` permission takes away a common join-and-observe capability (as in Telegram/Discord) where undecided users could spectate and later earn permission to post.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1",...
null
status-im__status-go__7264
status-im/status-go
7,264
defect
5398cd4d8e8b2db22325f5ddcdddda5a931ed121
8d5993afcf20ac3870654709f3ece1b6e3c38d03
feat: a new edpoint for checking if the chain is supported for swap via paraswap is added
- Added ListOfTokensAvailableForSwapViaParaswap method to retrieve the list of token keys available for swap via Paraswap if the list is empty, means the chain is not supported by Paraswap.
diff --git a/services/wallet/api.go b/services/wallet/api.go index c130b5b6b6c..622674b8310 100644 --- a/services/wallet/api.go +++ b/services/wallet/api.go @@ -182,11 +182,19 @@ func (api *API) GetTokensByKeys(keys []string) ([]*tokentypes.Token, error) { return api.s.tokenManager.GetTokensByKeys(keys) } +// Toke...
1
1
0
[{"id": "G0", "claim": "The new endpoint could cache the Paraswap tokens-list ETag in memory in client_v5.go and fetch via the existing DoGetRequestWithEtag() so that on a 304 the token list is not re-downloaded, reducing traffic.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
status-im__status-go__7343
status-im/status-go
7,343
defect
2d43041a7b9b6857ba20eb8b1f81caae7d045412
e94788267cfc256180883fd424963ce96dc60f4e
fix(wc): fix double session proposal
Wallet connect delivers the same message via both `FetchMessages` and `irn_subscription`. * Deduplicate wc_sessionPropose, wc_sessionRequest and wc_sessionDelete * tests https://github.com/user-attachments/assets/054ca922-dc5a-4456-84f9-574f9ff7fe17 fixes https://github.com/status-im/status-app/issues/20068 ...
diff --git a/services/connector/walletconnect/client.go b/services/connector/walletconnect/client.go index 226b88b82a5..f00f2f388d0 100644 --- a/services/connector/walletconnect/client.go +++ b/services/connector/walletconnect/client.go @@ -45,14 +45,15 @@ type pairingContext struct { // Client handles WalletConnect...
7
6
5
[{"id": "G0", "claim": "The wc_sessionPropose deduplication check is not atomic, so two concurrent deliveries can both see the proposal as not pending and both process it; the check+insert should be done under a single mutex critical section.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
status-im__status-go__7350
status-im/status-go
7,350
defect
87ac03209ce0a24b066753f4d67970d9975f943b
ea9bb63d49f3fd4de206844f2c586ca6110316d1
chore(connection): bring back connectionChange code
Part of https://github.com/status-im/status-app/issues/18388 Needed to let the user decide if they want to fetch on data. Status-app PR: https://github.com/status-im/status-app/pull/20147
diff --git a/mobile/status.go b/mobile/status.go index b0b1d29ce06..33b32654e76 100644 --- a/mobile/status.go +++ b/mobile/status.go @@ -1894,3 +1894,17 @@ func LoadLocalBackup(requestJSON string) string { err = statusBackend.StatusNode().LoadLocalBackup(request.FilePath) return makeJSONResponse(err) } + +func Con...
3
1
0
[{"id": "G0", "claim": "m.connectionState is read in canSyncWithStoreNodes() from goroutines while ConnectionChanged() writes it without synchronization, which can introduce data races and inconsistent sync behavior; protect it with a mutex/RWMutex or atomic.Value.", "category": "correctness", "verdict": "uncertain", "...
null
status-im__status-go__7387
status-im/status-go
7,387
defect
eba639978d6b288b709fcae39bb948f40937c30c
55aac8df81cb78b4aab540e0db6aac79b7397f90
feat: add Pausable interface, PausableTicker, and ServiceRegistry
This is the first PR in a series of PRs that will reduce the work done while the app is in the background. This introduces the concept of pausable services, pausable work and services registry. Introduce the core primitives for lifecycle-aware service control: - common/pausable.go: Pausable interface (PausableNa...
diff --git a/common/pausable.go b/common/pausable.go new file mode 100644 index 00000000000..3ea3859cc04 --- /dev/null +++ b/common/pausable.go @@ -0,0 +1,115 @@ +package common + +import ( + "sync" + + "github.com/status-im/status-go/pkg/pubsub" +) + +// ServiceState represents the lifecycle state of a pausable servic...
4
4
3
[{"id": "G0", "claim": "PauseBroadcaster.Subscribe uses a buffer of 1 and sends the initial pause state into the same channel that carries transitions, so TypePublisher can drop a subsequent MarkPaused/MarkResumed transition when the buffer is full; it asks to increase the buffer (e.g. to 2) and/or use a drain+send/ove...
null
status-im__status-go__7391
status-im/status-go
7,391
defect
eba639978d6b288b709fcae39bb948f40937c30c
c331e4531be665f9f73c5dec4c5229aa469ce58b
feat: make system/app services pausable
Embed PauseBroadcaster and implement Pausable in wallet, connector, newsfeed, ipfs downloader, NTP time source, and RPC rate limiter. Each service registers itself via service_pausable.go. Goroutine loops use PausableTicker or Subscription.C() to block while paused, reducing non-essential background work. Needs...
diff --git a/common/pausable.go b/common/pausable.go new file mode 100644 index 00000000000..b2fd0c38904 --- /dev/null +++ b/common/pausable.go @@ -0,0 +1,117 @@ +package common + +import ( + "sync" + + "github.com/status-im/status-go/pkg/pubsub" +) + +// ServiceState represents the lifecycle state of a pausable servic...
11
5
2
[{"id": "G0", "claim": "Resume() delegates to Start(), which returns early while s.started is still true because Pause() never clears it, so after Pause() the newsfeed service is effectively stuck and background polling is never restarted; implement Resume() to mark resumed and restart polling.", "category": "correctne...
null
status-im__status-go__7392
status-im/status-go
7,392
defect
eba639978d6b288b709fcae39bb948f40937c30c
a7b4ed188a1b2b9e420cf31b506c6481bab5bc54
fix(collectibles): reduce redundant nft fetches
Alchemy getNFTsForOwner improvements: - Set `pageSize=500` (was default 100) and `excludeFilters=SPAM` - Cap unbounded fetches (`FetchNoLimit`) at 10 pages (5000 tokens) - Trim results to exact limit when a page returns excess items - Fix pagination bug: use `pageKey` (not `cursor`) for subsequent page requests ...
diff --git a/services/wallet/collectibles/ownership/controller.go b/services/wallet/collectibles/ownership/controller.go index 5ea7abc3d77..5435307c46d 100644 --- a/services/wallet/collectibles/ownership/controller.go +++ b/services/wallet/collectibles/ownership/controller.go @@ -466,28 +466,28 @@ func (c *Controller) ...
4
1
1
[{"id": "G0", "claim": "TestFetchOwnedAssetsPagination counts requests but does not assert that the client sends the pagination token back, and adding an assertion on r.URL.Query().Get(\"pageKey\") per request would prevent regressions where the wrong query param key is used.", "category": "testing", "verdict": "uncert...
null
status-im__status-go__7396
status-im/status-go
7,396
defect
3eb935c999244481625ff82bd1539c6626543b33
f42738506770ed85c636cf5191aec67784fafcb2
fix(wallet): fix stop channel race causing goroutines to hang on pause/resume
PeriodicalLoader.Stop() nils out pl.stopCh, but goroutines spawned by Start() read the field directly. After Stop(), they see a nil channel (blocks forever on receive) instead of the closed one, so they never terminate. Fix by capturing stopCh in a local variable at Start() time and threading it through to all gorou...
diff --git a/services/wallet/collectibles/ownership/periodical_loader.go b/services/wallet/collectibles/ownership/periodical_loader.go index 1a4678fe30e..6dbf43b49c0 100644 --- a/services/wallet/collectibles/ownership/periodical_loader.go +++ b/services/wallet/collectibles/ownership/periodical_loader.go @@ -86,13 +86,1...
2
1
1
[{"id": "G0", "claim": "waitFor should use time.NewTimer instead of time.NewTicker for a one-shot delay, which would be clearer, match Loader.waitFor in the package, and allow simplifying the select branch.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1",...
null
stclib__STC__125
stclib/STC
125
defect
4ec006874e88e78092ca843c0548326c2152eb03
c66273ea4bf3d3fbecbc1000dae83a0c0c3b150c
Fix utf8 state in regex
This PR proposes the following changes when dealing with invalid utf8 sequences: 1. Invalid utf8 code will now return 0xFFFD when regexing 2. Other utf8 operations will not crash but yield undefined results, so prior checking is required.
diff --git a/include/stc/priv/cregex_prv.c b/include/stc/priv/cregex_prv.c index f6556e6a..3a84aceb 100644 --- a/include/stc/priv/cregex_prv.c +++ b/include/stc/priv/cregex_prv.c @@ -210,9 +210,17 @@ chartorune(_Rune *rune, const char *s) { utf8_decode_t ctx = {.state=0}; const uint8_t *b = (const uint8_t*)s...
2
2
2
[{"id": "G0", "claim": "The PR must keep utf8_dtab[] with 12 as the reject state, revert utf8_decode/utf8_decode_t/utf8_dtab back to unsigned, and use a switch on the decode state (as in the Hoehrmann decoder's error-recovery approach) instead of `state > 0`, updating the other files accordingly, because with -1 encode...
null
steelbrain__node-ssh__460
steelbrain/node-ssh
460
defect
71b27056966b9762ce653f260b092145099e3a3b
3e56d7b09d1ce23fcbffb1f39a673c52357e1616
🆕 Add support for TCP and UNIX socket forwarding
I've added support for the TCP/UNIX socket forwarding functions and also: * Moved `@types/ssh2` to dependencies - since you're reexporting those, I think it's good to include them like that. This has no impact on generated code. * Added type definitions for `SFTPWrapper`.`end` and `ClientChannel`.`close` since thos...
diff --git a/package.json b/package.json index 67d8ea8..8278c25 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,6 @@ "homepage": "https://github.com/steelbrain/node-ssh#readme", "devDependencies": { "@types/shell-escape": "^0.2.0", - "@types/ssh2": "^0.5.47", "ava": "^3.15.0", "eslint-...
3
3
3
[{"id": "G0", "claim": "Add tests for the new TCP/UNIX socket forwarding methods.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the returned handle's `unforward` method to `dispose` so it sticks to the Disposable interface.", "category": "design...
null
steemit__steem-js__213
steemit/steem-js
213
defect
53f503e73d8b55b8a1baa5432e2ec48e47046a22
aa137e3922c5addcdbce78ae2c9b4610cf57ba4c
Add & remove a key in key_auth
I have some trouble making this working and interested to have your feedback. I created 2 helpers functions: `addKeyAuth` and `removeKeyAuth` for adding and removing a key inside user account `key_auths` array. It's using the operation `account_update` to do this change (https://github.com/steemit/steem-js/blob/d81a...
diff --git a/examples/add-key-auth.js b/examples/add-key-auth.js new file mode 100644 index 00000000..7d802d3b --- /dev/null +++ b/examples/add-key-auth.js @@ -0,0 +1,22 @@ +const steem = require('../lib'); + +/* Generate private active WIF */ +const username = process.env.STEEM_USERNAME; +const password = process.env....
6
6
2
[{"id": "G0", "claim": "Keys are converted to addresses before sorting, so accounts and keys may not be sorted correctly (a possible serialization issue); they should be sorted correctly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "If the API c...
null
steemit__steem-js__444
steemit/steem-js
444
defect
c3c5d9b00da2108ed779e6097bdae9d480693297
791c7930a952415a0ee45855142e52ee0c657f8e
SPS/HF21 Support
Moved to a local branch from https://github.com/blocktradesdevs/steem-js/tree/sps-develop2
diff --git a/src/api/methods.js b/src/api/methods.js index fa2b4252..fa1afa04 100644 --- a/src/api/methods.js +++ b/src/api/methods.js @@ -1,495 +1,511 @@ export default [ - { - "api": "database_api", - "method": "set_subscribe_callback", - "params": ["callback", "clearFilter"] - }, - { - ...
1
1
1
[{"id": "G0", "claim": "In the new condenser_api definitions the params order is wrong: for list_proposals 'limit' should be the second parameter (and the same applies to list_voter_proposals, whose first argument should probably also be 'start').", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
stefanberger__swtpm__514
stefanberger/swtpm
514
defect
6961ec4878b4a569ac53f6e6f77416b44f3f26d9
4e249b9d9f6e3c9c44e1c732a768c7fc38f16e3b
Check libtpms version
After libtpms gains support for disabling TPM 1.2 (https://github.com/stefanberger/libtpms/pull/244), adapt swtpm to cope with and check the libtpms supported versions. I left a couple of things for later (eh, someone else? :)): - Some tests could be improved to work regardless of the supported versions. - Also, i...
diff --git a/configure.ac b/configure.ac index 3acb94603..928cb29f5 100644 --- a/configure.ac +++ b/configure.ac @@ -179,6 +179,17 @@ AC_CHECK_LIB(tpms, ) AC_SUBST([LIBTPMS_LIBS]) +PKG_CHECK_EXISTS([libtpms >= 0.9], [ + PKG_CHECK_VAR( + [WITH_TPM1], [libtpms], [with_tpm1], + [AC_DEFINE_UNQUOTED([WI...
5
5
3
[{"id": "G0", "claim": "The presence or absence of the tpm-1.2/tpm-2.0 verbs is ambiguous about actual availability (older swtpm output would make TPM 1.2 look unavailable), so the reviewer asked to reverse the logic and show 'no-tpm-1.2' (and likewise both 'no-tpm-2.0' and 'tpm-2.0'); in the ensuing discussion author ...
null
stefankoegl__python-json-patch__106
stefankoegl/python-json-patch
106
defect
3e44e04f640a1c10b68d00d2b9a6af0c397f06d7
97e18f38e03961c8984969214bdc082c2a4560e4
Fix issue not recognizing that, in JSON, 1 != 1.0 != True
Fixes: - https://github.com/stefankoegl/python-json-patch/issues/90 - https://github.com/stefankoegl/python-json-patch/issues/103
diff --git a/jsonpatch.py b/jsonpatch.py index 8ec01d3..5454f56 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -817,10 +817,7 @@ def _compare_lists(self, path, src, dst): self._item_added(path, key, dst[key]) def _compare_values(self, path, key, src, dst): - if src == dst: - r...
1
1
0
[{"id": "G0", "claim": "The new `json.dumps(src) == json.dumps(dst)` comparison in `_compare_values` should have a comment describing the comparison so its purpose is clear when read later.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stefankoegl__python-json-patch__114
stefankoegl/python-json-patch
114
defect
4fe5c2c6a1e082fd1bacd36d8862d3a4d968f20b
c37b40ffec5674bf76bbb2197917e528e74b4552
Allow custom JSON pointer class
@stefankoegl It would be nice to be able to pass a custom implementation of the JSON pointer.
diff --git a/jsonpatch.py b/jsonpatch.py index 7d5489a..201e9d1 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -56,7 +56,7 @@ # Will be parsed by setup.py to determine package metadata __author__ = 'Stefan Kögl <stefan@skoegl.net>' -__version__ = '1.24' +__version__ = '1.27' __website__ = 'https://github.com/stef...
2
1
1
[{"id": "G0", "claim": "Add more tests for a custom Pointer which is not extended from python-json-pointer.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Revert the version number bump (1.24 to 1.27) because that is done only when a new release is prep...
null
stefankoegl__python-json-patch__116
stefankoegl/python-json-patch
116
defect
4fe5c2c6a1e082fd1bacd36d8862d3a4d968f20b
b44e7a2031ad5cbe0a0d5ad2ab0763b7b9b8dc25
Fix #110 - validate patch document during creation
This PR verifies that the operations are valid during patch creation. I also added tests for the structure of each operation type.
diff --git a/.coveragerc b/.coveragerc index 2a98e09..f0d91db 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,8 +1,10 @@ # .coveragerc to control coverage.py [run] branch = True +source = jsonpatch [report] +show_missing = True # Regexes for lines to exclude from consideration exclude_lines = # Have to re...
1
1
0
[{"id": "G0", "claim": "Add a comment at the _get_operation loop in __init__ explaining what it does, since without the pull request's context it will not be obvious.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stefankoegl__python-json-patch__118
stefankoegl/python-json-patch
118
defect
f3c46e8d37833eb3cb7ff5f914d8dac85450fafb
1268e09ffaead08f22184b63b3ad34bb41ab8bab
Declare json-patch operations as a class-based attribute
I propose to declare available JSON-patch operations as class-based attributes rather than in the constructor. **Motivation:** - It seems a bit more logical. - It became impossible to add custom operations without complete copy-paste of the constructor due to added validation. Python 2.7 does not support `Mappi...
diff --git a/jsonpatch.py b/jsonpatch.py index 5522d50..a01a177 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -39,6 +39,11 @@ import functools import json import sys +try: + from types import MappingProxyType +except ImportError: + # Python < 3.3 + MappingProxyType = dict from jsonpointer import JsonPo...
2
1
1
[{"id": "G0", "claim": "The tests fail for most Python versions.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The diff contains a lot of unrelated changes (possibly whitespace-only) which should be removed.", "category": "maintainability", "verdic...
null
stefankoegl__python-json-patch__132
stefankoegl/python-json-patch
132
defect
55d4816975350ea3f683814f4d025951ddfb1693
427fe0849e9f4aff97e011d24e1bf01b73297dba
FIX: TypeError when one forgot to put its operation in a list.
Closes https://github.com/stefankoegl/python-json-patch/issues/131 ``` >>> import jsonpatch >>> jsonpatch.JsonPatch({'op': 'add', 'path': '/foo', 'value': 'bar'}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/mdk/clones/stefankoegl/python-json-patch/jsonpatch.py", line 5...
diff --git a/jsonpatch.py b/jsonpatch.py index 5213b32..7645b22 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -553,11 +553,16 @@ def __init__(self, patch, pointer_cls=JsonPointer): self.patch = patch self.pointer_cls = pointer_cls + # Verify that the structure of the patch document ...
3
2
0
[{"id": "G0", "claim": "The newly added check for basestring is overly specific since many types could be wrong, not just strings, and it would make more sense to check whether the element is not a list (or more generally a collections.abc.Sequence).", "category": "design", "verdict": "opposed", "priority": "P1", "scop...
null
stefankoegl__python-json-pointer__60
stefankoegl/python-json-pointer
60
defect
4c47628bbe1709cd2d759decc3ee21babedd5619
c06953431785ca9c7b951869b9792ea3cdd4a73c
Remove python 2.7
- format based on flake8. - fix GitHub workflow. - remove python 2.7.
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 554c462..fa172c1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,34 +1,58 @@ name: Python package -on: [push] +on: + push: + branches: + - master + pull_request: + branches: + - master j...
1
1
0
[{"id": "G0", "claim": "The Python 2 alias __div__ = __truediv__ is no longer needed now that the project no longer supports Python 2.x, and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stefanlogue__meteor__59
stefanlogue/meteor
59
defect
61b7c3c81cd6bdba2a93420d1fa3f31a8c02acbe
ab3b2ff48ba6b79607f4a105ed4af9546a2d3966
Add test for finding config file in parent directory
## Description This PR refactors the FindConfigFile function to be more easily testable by passing two new functions as arguments, `getwd` and `getHome`. These allow us to mock the current working directory and home directory respectively, allowing us to test the case where a config file exists in the parent directo...
diff --git a/config.go b/config.go index f12b51a..f4b4038 100644 --- a/config.go +++ b/config.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "os" "github.com/charmbracelet/huh" "github.com/charmbracelet/log" @@ -30,7 +31,7 @@ type LoadConfigReturn struct { // loadConfig loads the config file from the cu...
9
5
0
[{"id": "G0", "claim": "The test variable `expepcted` in pkg/config/find_test.go is misspelled and should be renamed to `expected`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no test covering the fallback to the XDG config path (~/....
null
stefanlogue__meteor__60
stefanlogue/meteor
60
defect
2882605a67cf0fe0ade7544aef8a1726c9c22ecb
070102518732e33be8d07d7261b7629595fad2c4
Commit body line length
## Description This PR adds an option to define a line length for the commit body. The outputted commit command will wrap at the correct word before the limit. > [!IMPORTANT] > The body will not wrap while you are writing it, only afterwards. You can test this behaviour by writing your body, going to the next se...
diff --git a/config.go b/config.go index f4b4038..e58cb29 100644 --- a/config.go +++ b/config.go @@ -13,6 +13,8 @@ import ( const ( defaultCommitTitleCharLimit = 48 defaultCommitBodyCharLimit = 0 + defaultCommitBodyLineLength = 0 + minimumCommitBodyLineLength = 20 defaultMessageTemplate ...
4
2
2
[{"id": "G0", "claim": "Consider validating CommitBodyLineLength against minimumCommitBodyLineLength (20) instead of defaultCommitBodyLineLength (0) in config.go so the validation matches the check performed in main.go.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
stefanlogue__meteor__76
stefanlogue/meteor
76
defect
ff3400de489825ab0840798d50df86f60590f934
41d9895c174510565d662794e2bdd8ee0fbf67dc
Test coverage
## Description This PR adds some more tests to try and improve our coverage. I've also refactored the code to use the path found for the `git` command.
diff --git a/git.go b/git.go index 650c622..1336922 100644 --- a/git.go +++ b/git.go @@ -12,17 +12,18 @@ import ( const maxGitRecursion = 32 -// checkGitInPath checks if git is in PATH and returns an error if not -func checkGitInPath() error { - if _, err := exec.LookPath("git"); err != nil { - return fmt.Errorf(...
4
4
0
[{"id": "G0", "claim": "Remove the now-unused constant maxGitRecursion from git.go to avoid dead code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Update the getGitPath comment to reflect that the function returns the path to the git execut...
null
stefanprodan__podinfo__271
stefanprodan/podinfo
271
defect
073f1ec5aff930bd3411d33534e91cbe23302324
3ef0b4cd09f09dd012c4a6fb0a9cfdbcc5b5fa78
feat(echo): add dynamic path support for echo endpoint
This pull request seeks to add dynamic path support for both the `echo` and `api/echo` endpoints, so that `echo/test` is also routed to the echo handler, as is `echo/test/test`. In addition, I've added support for PUT operations to this endpoint.
diff --git a/pkg/api/echo_test.go b/pkg/api/echo_test.go index a37da8e90..74e472a07 100644 --- a/pkg/api/echo_test.go +++ b/pkg/api/echo_test.go @@ -8,27 +8,41 @@ import ( ) func TestEchoHandler(t *testing.T) { - expected := `{"test": true}` - req, err := http.NewRequest("POST", "/api/echo", strings.NewReader(expec...
3
3
0
[{"id": "G0", "claim": "Use mux PathPrefix()/Path() routing so that dynamic sub-paths like /echo/{anyPath} are matched, per the suggested route block.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider accepting all HTTP methods on the echo paths in...
null
steinfletcher__apitest__11
steinfletcher/apitest
11
defect
509182c79e322a62efd65977499f52445d2ab676
8acd099787cec7352058a70b0122571dcc229504
Remove dependency on testify
Addresses issue #5 Remove dependency on testify. Add examples to test phase in travis.
diff --git a/.travis.yml b/.travis.yml index ddb4b68..727ce2e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_install: script: - diff -u <(echo -n) <(gofmt -s -d ./) - diff -u <(echo -n) <(go vet ./...) - - go test -v -race -covermode=atomic -coverprofile=coverage.out + - go test ./... -v -...
1
1
1
[{"id": "G0", "claim": "The testItem struct's unexported fields `name` and `drink` have json tags but are not exported, which govet (structtag) flags — the tags can never take effect and `go vet ./...` in CI fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
steinfletcher__apitest__23
steinfletcher/apitest
23
defect
563daa4b8e554c83c63c5dc20d29ff517667a1b9
c66fa9f8b487b2db0e24700f3a7829f323efa525
Add Further Mock Debug
@steinfletcher Resolves issue #16 to some extent. Will add further reporting as a second pass once we're happy with this. Update the mocks code to how each mock matcher failure as output when an error occurs during the serveHttp phase of testing.
diff --git a/apitest.go b/apitest.go index 07015f2..41a7aac 100644 --- a/apitest.go +++ b/apitest.go @@ -485,7 +485,7 @@ func (a *APITest) runTest() (*httptest.ResponseRecorder, *http.Request) { } } - a.request.handler.ServeHTTP(res, req) + a.serveHttp(res, req) if a.debugEnabled { responseDump, err := ht...
1
1
0
[{"id": "G0", "claim": "In mocks.go, the new matcher error returns should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
steipete__gogcli__403
steipete/gogcli
403
defect
0ed89978d37657b7a044571f9f381de0c156c483
64cd89a5f9e9e612d83b6f127725957f80521d6c
feat(admin): add user and group management (Admin Directory API)
## Summary Add Google Admin SDK Directory API support for user and group management in Google Workspace. Resolves #340 ## Changes - **New Service**: `ServiceAdmin` with scopes for `admin.directory.user`, `admin.directory.group`, and `admin.directory.group.member` - **New Commands**: - `gog admin users list --doma...
diff --git a/internal/cmd/admin.go b/internal/cmd/admin.go new file mode 100644 index 000000000..db8e4fba0 --- /dev/null +++ b/internal/cmd/admin.go @@ -0,0 +1,710 @@ +package cmd + +import ( + "context" + "fmt" + "os" + "strings" + + admin "google.golang.org/api/admin/directory/v1" + + "github.com/steipete/gogcli/inte...
3
2
2
[{"id": "G0", "claim": "Adding ServiceAdmin to the service registry is incomplete because scopesForServiceWithOptions has no ServiceAdmin branch and returns errUnknownService, so `gog auth add --services admin` fails before starting OAuth and the new admin workflow cannot be authorized through the documented command.",...
null
steipete__mcporter__43
steipete/mcporter
43
defect
8cc23a23881d982bf3fb6eb37b6a2f6633c3987d
18c94c23177432cfeb3864e6d13872367959a061
feat: add JSON Schema generation for config files
## Summary - Add `.describe()` to Zod schemas for rich JSON Schema documentation - Create `scripts/generate-json-schema.ts` using Zod v4's native `toJSONSchema()` method - Add `generate:schema` npm script - Generate `mcporter.schema.json` at repo root - Document `$schema` usage in `docs/config.md` ## Usage Add to your...
diff --git a/docs/config.md b/docs/config.md index eb365849..6a451737 100644 --- a/docs/config.md +++ b/docs/config.md @@ -41,6 +41,7 @@ mcporter keeps three configuration buckets in sync: repository-scoped JSON (`con 1. Create `config/mcporter.json` at the repo root: ```jsonc { + "$schema": "https://raw.g...
2
1
1
[{"id": "G0", "claim": "Because the top-level schema sets additionalProperties: false without listing $schema under properties, any config that follows docs/config.md and adds the $schema hint for IDE support will be rejected by JSON Schema validators/IDEs, unless $schema is added as an allowed property (or additionalP...
null
steipete__mcporter__72
steipete/mcporter
72
defect
8cc23a23881d982bf3fb6eb37b6a2f6633c3987d
c89f3f61add93f5ef86331e8cc82305f5980c77c
fix(oauth): headless server support + non-standard OAuth providers (Granola)
## Problem Three related issues prevent mcporter OAuth from working on headless Linux servers and with providers like Granola: 1. **`scope=mcp:tools` rejected by Granola** — The hardcoded `scope: 'mcp:tools'` in client metadata is not in Granola's `scopes_supported` (`email`, `offline_access`, `openid`, `profile`), c...
diff --git a/src/oauth.ts b/src/oauth.ts index 49866c3b..4d313f90 100644 --- a/src/oauth.ts +++ b/src/oauth.ts @@ -47,8 +47,13 @@ function openExternal(url: string) { }); child.unref(); } else { - const child = spawn('xdg-open', [url], { stdio, detached: true }); - child.unref(); + try...
2
2
2
[{"id": "G0", "claim": "Servers that don't advertise scopes_supported in their metadata leave users stuck because the SDK has nothing to derive a scope from; add an explicit oauthScope config field as an escape hatch.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
stellar__rs-soroban-sdk__1005
stellar/rs-soroban-sdk
1,005
defect
7ecb58a8ccb4d6ee0a183f7306671df6dd9786b0
b4b7bac243baad7c996ac07ff2d5c7c1e25d4b04
Rename logger to logs
### What Rename env.logger() to env.logs(). ### Why The logger function is inconsistently named compared to the other functions for accessing resources. E.g. `events`, `storage`, `ledger`. I keep looking for logs and having to remember it is logger. The type is used not just for the act of logging, but also the ac...
diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index 56f4303f7..9417c43ed 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -126,8 +126,8 @@ use crate::auth::InvokerContractAuthEntry; use crate::unwrap::UnwrapInfallible; use crate::unwrap::UnwrapOptimized; use crate::{ - crypto::Cr...
2
1
0
[{"id": "G0", "claim": "The name `logs().log` reads awkwardly, and the macro and method should be named either `logger().log()` or `logs().add()` instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method could instead be named `write`, ...
null
stellar__rs-soroban-sdk__1017
stellar/rs-soroban-sdk
1,017
defect
c20b456c01361ba008382ffbac798a1e84a9f8a4
674a9218c8e0a82e59d4f5cf795cf45078bcc16e
Add instance storage wrapper
### What Add instance storage wrapper ### Why Instance storage is introduced in host to make it cheaper to store data bound to the contract instance. ### Known limitations N/A
diff --git a/soroban-sdk/src/storage.rs b/soroban-sdk/src/storage.rs index 8581d7254..7337214ee 100644 --- a/soroban-sdk/src/storage.rs +++ b/soroban-sdk/src/storage.rs @@ -76,18 +76,59 @@ impl Storage { Storage { env: env.clone() } } + /// Storage for data that can stay in the ledger forever until d...
6
6
0
[{"id": "G0", "claim": "The persistent-storage doc comment should use the term 'expired' only instead of 'evicted', per the reviewer's suggested rewording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The temporary-storage doc line 'This is chea...
null
stellar__rs-soroban-sdk__1106
stellar/rs-soroban-sdk
1,106
defect
3db7a436c13d066ab1933c4444c0f476794e7993
15ab4b37a038b43ca93d7193d05a6b08d966cb92
Add fn to expose max expiration available
### What Add fn to expose max expiration available. ### Why It came up in the Discord meeting today that it would be helpful if contracts can access the max expiration as they may wish to simply bump to that. The host fn exists, but it isn't exposed in the SDK.
diff --git a/soroban-sdk/src/storage.rs b/soroban-sdk/src/storage.rs index 75e4edd61..5955a3df9 100644 --- a/soroban-sdk/src/storage.rs +++ b/soroban-sdk/src/storage.rs @@ -139,6 +139,14 @@ impl Storage { } } + /// Returns the maximum ledger sequence that an entry can live to + /// (inclusive). + ...
1
1
1
[{"id": "G0", "claim": "max_expiration returns an absolute max ledger sequence while the bump interface operates on relative ledger counts, so the SDK should at least compensate by subtracting the current ledger sequence, and possibly the host fn semantics should change to avoid unnecessary extra work.", "category": "c...
null
stellar__rs-soroban-sdk__1112
stellar/rs-soroban-sdk
1,112
defect
086a44c546c09631ff23364337a96bc24f0f9dd2
d8092a2a536348f4948d2428f3f421725483c375
Add SDK support for Address<->strkey conversions.
### What Add SDK support for Address<->strkey conversions. ### Why Supporting the respective env changes. ### Known limitations N/A
diff --git a/Cargo.lock b/Cargo.lock index 954a68e34..ec6da2b9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1103,7 +1103,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "soroban-env-common" version = "20.0.0-rc2" -source = "git+https://github.com/stellar/rs-soro...
7
4
2
[{"id": "G0", "claim": "The Address constructor should not be named `from_strkey`: ideally implement core FromStr, otherwise at minimum rename it (e.g. `from_string`), and address its infallibility.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename `...
null
stellar__rs-soroban-sdk__1118
stellar/rs-soroban-sdk
1,118
defect
24f9f746af237022fe0958f5dc796f19babd0887
b2d2a48d0f0b5856d9f204a09aa70a31a76f4de7
Add testutils for accessing all storage of a contract
### What Add testutils for accessing all storage of a contract. ### Why Sometimes when testing it is convenient to assert on all storage of a contract. Close #737
diff --git a/soroban-sdk/src/storage.rs b/soroban-sdk/src/storage.rs index e52e9e82f..da04fa8aa 100644 --- a/soroban-sdk/src/storage.rs +++ b/soroban-sdk/src/storage.rs @@ -7,6 +7,9 @@ use crate::{ Env, IntoVal, TryFromVal, }; +#[cfg(any(test, feature = "testutils"))] +use crate::{testutils, xdr, Map, TryIntoVa...
1
1
0
[{"id": "G0", "claim": "Create a shared helper to de-duplicate the persistent and temporary storage testutils code, since the only difference is the durability filter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__1175
stellar/rs-soroban-sdk
1,175
defect
8a6ea7ede02f1cb06fda27e879c92d411d912fe1
4076d2709912cc5b55b06e81ad823c9dae95c525
Make try_ fns return smaller SDK error type
### What Make try_ fns return smaller SDK error type instead of the large host error type. ### Why The host error type contains a massive number of possible errors. However, the host obfuscates the error when it is passed to the guest, and so the guest and sdk only ever see the Context/InvalidAction error. It's...
diff --git a/soroban-sdk-macros/src/derive_error_enum_int.rs b/soroban-sdk-macros/src/derive_error_enum_int.rs index 5b49e4649..da7b730bc 100644 --- a/soroban-sdk-macros/src/derive_error_enum_int.rs +++ b/soroban-sdk-macros/src/derive_error_enum_int.rs @@ -19,7 +19,7 @@ pub fn derive_type_error_enum_int( let mut e...
2
2
1
[{"id": "G0", "claim": "The doc comment on the InvokeError::Abort variant is wrong: it attributes irrecoverable errors like exceeding budget to the guest when those are not observable by the guest, and should instead describe any trap in the executed contract (explicit panic!, host function failure, runtime error).", "...
null
stellar__rs-soroban-sdk__1231
stellar/rs-soroban-sdk
1,231
defect
02cd29178b443aad3193b19c2f73eae22b0c9fcf
26a35674edcdc5cb041d0c2c1ecf409eeb6b0d40
Add Bytes to_buffer and to_alloc_vec
### What Add Bytes to_buffer and to_alloc_vec functions that provide access to the bytes in local guest memory. The to_buffer function provides access to the bytes in a statically specified buffer. The to_alloc_vec function is available only when the alloc feature is enabled and provides access to an alloc::vec::Vec c...
diff --git a/soroban-sdk/src/bytes.rs b/soroban-sdk/src/bytes.rs index 1e11c59d2..e40ba34b6 100644 --- a/soroban-sdk/src/bytes.rs +++ b/soroban-sdk/src/bytes.rs @@ -1,10 +1,13 @@ +#[cfg(feature = "alloc")] +extern crate alloc; + use core::{ borrow::Borrow, cmp::Ordering, convert::Infallible, fmt::D...
3
2
0
[{"id": "G0", "claim": "to_alloc_vec might be better returning a Box<[u8]> (perhaps via paired to_alloc_boxed/to_alloc_vec methods) so as not to involve Vec.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BytesBuffer should store a single usize length inst...
null
stellar__rs-soroban-sdk__1246
stellar/rs-soroban-sdk
1,246
defect
9ea532897eee52cfaa0f839fe25bf13034e9f487
1cd21bfd21a2e3efc8daf8fd1d294a9660c7916e
Add secp256r1 support
### What Add support for secp256r1 signature verification (picking up env changes https://github.com/stellar/rs-soroban-env/pull/1376). And adapts the existing `Crypto` module by split the cryptographic functions into two sets: - `Crypto`: standard, recommended set of cryptographic functions. This includes `secp...
diff --git a/Cargo.lock b/Cargo.lock index b011d84c1..354ec8260 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,9 +43,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41...
5
4
2
[{"id": "G0", "claim": "Change the crypto API to a wrapper-type flow: sha256 returns a Hash type creatable only via hash functions, a non-hazmat secp256r1_verify accepts that Hash, the BytesN-based variant lives under CryptoHazmat, and CustomAccountInterface takes the Hash type.", "category": "design", "verdict": "supp...
null
stellar__rs-soroban-sdk__1267
stellar/rs-soroban-sdk
1,267
defect
1aea75d0ab6ab726f2388261283ab2ec93eacc91
74ab05e30049f69b4a238b8b8bb3ea0a5e7b9e33
Add wrappers for `live_until_ledger` getters.
### What Add wrappers for `live_until_ledger` getters. Also cover the emulation of state expiration with some tests. ### Why Improving test utilities: https://github.com/stellar/rs-soroban-sdk/issues/1162 ### Known limitations N/A
diff --git a/Cargo.lock b/Cargo.lock index 535aad5a8..86eb9bb2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1112,8 +1112,7 @@ checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" [[package]] name = "soroban-builtin-sdk-macros" version = "21.0.1" -source = "registry+https://github.com/rust-l...
2
2
0
[{"id": "G0", "claim": "The phrase \"live until ledger\" is not clear or intuitive, so the new `get_live_until_ledger` getters should be renamed to something clearer (suggested: `get_ttl`, `get_live_till_ledger`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
stellar__rs-soroban-sdk__1320
stellar/rs-soroban-sdk
1,320
defect
47f91dcb6310067dd74bc64ad41173b2de31e11f
d2583141ccce591c72082a122b2e92bbf4ba3a2d
Add util to update issuer flags for SAC testing
### What Resolves #1117 Instead of making a general `storage` utility to modify the account, I added a specific method to update the issuer flag. because there isn't any reason to mess with the other fields directly. I didn't want to expose the xdr in the interface, but doing that would've made the interface...
diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index 1bd15d50c..85ff523d9 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -469,6 +469,79 @@ use std::{path::Path, rc::Rc}; #[cfg(any(test, feature = "testutils"))] use xdr::{LedgerEntry, LedgerKey, LedgerKeyContractData, SorobanAuthoriz...
12
11
1
[{"id": "G0", "claim": "Move the TestStellarAssetContractUtil type and its implementation into the testutils package and drop the `Test` prefix, since other types there carry no such redundancy.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename get_i...
null
stellar__rs-soroban-sdk__1373
stellar/rs-soroban-sdk
1,373
defect
b92471770d94cfe6b3b281bba2ffe9461e0e5476
39556b07000a047f8612d51682972493d463569d
expose `Fr` into its own type
### What Resolves https://github.com/stellar/rs-soroban-sdk/issues/1352 ### Why `Fr` is the 255-bit scalar with a fixed modulus (equal to the subgroup order `r`) and all its operations are modulo arithmetics. Exposing it as separate type (zero-sized wrapping of an `U256`) is better signaling that the two have ...
diff --git a/soroban-sdk/src/crypto/bls12_381.rs b/soroban-sdk/src/crypto/bls12_381.rs index cbfe9d41c..26338cee4 100644 --- a/soroban-sdk/src/crypto/bls12_381.rs +++ b/soroban-sdk/src/crypto/bls12_381.rs @@ -1,10 +1,14 @@ use crate::{ - env::internal::{self, BytesObject, U64Val}, + env::internal::{self, BytesOb...
1
1
0
[{"id": "G0", "claim": "Add a conversion between Fr and BytesN<32> (or explain why that would not make sense).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__1382
stellar/rs-soroban-sdk
1,382
defect
e7eccd3c857ef3e368a90ccf9b542eb4dfe852bd
c3a91a850e1daa549d78b9938d23c97ac95abc2c
Add ContractArgs for building function args
### What Add ContractArgs for building function args. ### Usage ```diff -let contract_id = env.register(Contract, (100_u32, 1000_i64)); +let contract_id = env.register(Contract, ContractArgs::__constructor(&100_u32, &1000_i64)); ``` ### Diff of generated code for constructor test vector ```diff @@ -7,6...
diff --git a/Cargo.lock b/Cargo.lock index ff8ae13a9..fe6606ed6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1202,8 +1202,6 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "soroban-builtin-sdk-macros" version = "22.0.0-rc.3" -source = "registry+https://github.com/r...
1
1
1
[{"id": "G0", "claim": "Confirm that the generated ContractArgs code will not bloat wasm builds in the case where the args are unused but the client is used.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__1411
stellar/rs-soroban-sdk
1,411
defect
31b2892ef4d20538004e52713cb81e4895a8de9a
84261a79bcd01f9434097a8d54a572d2b3ae20f6
Expose invocation metering in the SDK.
### What Expose invocation metering in the SDK. ### Why Improving testing UX. https://github.com/stellar/rs-soroban-sdk/issues/1319 ### Known limitations N/A
diff --git a/Cargo.lock b/Cargo.lock index 455889e5c..c856b811d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -462,6 +462,12 @@ dependencies = [ "subtle", ] +[[package]] +name = "dissimilar" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59f8e79d1fbf76bdfbde321e9027...
15
12
3
[{"id": "G0", "claim": "Invocation metering should be enabled by default (its cost is not material), with the switch hosted in EnvTestConfig rather than as a public testutils function.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The metering accessor ...
null
stellar__rs-soroban-sdk__1449
stellar/rs-soroban-sdk
1,449
defect
d53410395153f64c8c13acb76b6361d9406eb03b
6754f00b73d46f860fdf799d83d80f2fa6be2aa9
Implement BLS12-381 `contracttype` support
### What Add support for BLS12-381 curve points (`Fp`, `Fp2`, `G1Affine`, `G2Affine`, `Fr`) for internal data storage (via `contracttype`) and contract invocation arguments (contract spec). ### Why Improves usability of the BLS12-381 features in a Groth16 verifier application ([example contract](https://githu...
diff --git a/soroban-sdk/src/bytes.rs b/soroban-sdk/src/bytes.rs index 854233e41..1542dca40 100644 --- a/soroban-sdk/src/bytes.rs +++ b/soroban-sdk/src/bytes.rs @@ -143,12 +143,6 @@ macro_rules! impl_bytesn_repr { } } - impl IntoVal<Env, Val> for $elem { - fn into_val(&self, e:...
12
9
3
[{"id": "G0", "claim": "The comment 'Convert bytes to Fr via U256' is misleading because no U256 type is used in the conversion.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code clearing the top 3 bits should carry a comment explaining why ...
null
stellar__rs-soroban-sdk__1516
stellar/rs-soroban-sdk
1,516
defect
244e61d8719a30bafe17a339e71f36f5152f7eff
0624d806289d4e8a8a52b4f5d951d4ebe9bdbbda
Generate a seamless conversion from Address to MuxedAddress arguments in clients
### What Generate a seamless conversion from Address to MuxedAddress arguments in clients. Also switch the token interface to use MuxedAddress, as this shouldn't be a breaking change anymore. ### Why Besides removing the friction from the token interface users, this change corresponds to the protocol semant...
diff --git a/soroban-sdk-macros/src/derive_client.rs b/soroban-sdk-macros/src/derive_client.rs index bc9770a9f..5f31b27a1 100644 --- a/soroban-sdk-macros/src/derive_client.rs +++ b/soroban-sdk-macros/src/derive_client.rs @@ -1,9 +1,36 @@ use proc_macro2::TokenStream; use quote::{format_ident, quote}; -use syn::{Error...
3
3
0
[{"id": "G0", "claim": "The new mapping code could retain the unzip pattern by importing itertools::MultiUnzip, which supports unzipping more than two, as used elsewhere in the macros crate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "convert...
null
stellar__rs-soroban-sdk__1525
stellar/rs-soroban-sdk
1,525
defect
82eabd08be09d80176e2c463818a6727cd20b452
6e5e5cd610a5d3f50ef20a80e07de09224fd4320
Add a getter function for Address executable.
### What Add a getter function for Address executable. Also added exists() function for convenience/small optimization. ### Why Exposing new host function introduced in p23. Resolves https://github.com/stellar/rs-soroban-sdk/issues/1517 ### Known limitations N/A
diff --git a/soroban-sdk/src/address.rs b/soroban-sdk/src/address.rs index b5a09d8a0..44f33bc1e 100644 --- a/soroban-sdk/src/address.rs +++ b/soroban-sdk/src/address.rs @@ -1,15 +1,15 @@ use core::{cmp::Ordering, convert::Infallible, fmt::Debug}; use super::{ - env::internal::{AddressObject, Env as _}, - Conv...
4
4
1
[{"id": "G0", "claim": "Add standard derives such as Debug, PartialEq and Eq to the new Executable contracttype so it can be compared and used with assert_eq!.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Document in the executable() doc comment that i...
null
stellar__rs-soroban-sdk__1555
stellar/rs-soroban-sdk
1,555
defect
8da5d62973c8be27a86b99bcb3cdb134d9699cce
e9cf95ca6541c14a85a32e1b2ce1aaf936cf9705
Add mint event with mux support and other memo types to specs
### What Add a new Mint event with muxed address support. Add events to specs for other memo types that can occur with payments from classic. ### Why The mint event should be defined so that contract developers can choose to emit a mint event to a destination with a muxed id. The specs should contain all ...
diff --git a/soroban-token-sdk/src/events.rs b/soroban-token-sdk/src/events.rs index f2add6e55..10d59c5ff 100644 --- a/soroban-token-sdk/src/events.rs +++ b/soroban-token-sdk/src/events.rs @@ -37,9 +37,17 @@ pub struct Burn { } #[contractevent(topics = ["mint"], data_format = "single-value")] +pub struct MintLegacy...
3
2
0
[{"id": "G0", "claim": "The doc comment added above TransferWithMuxedBytes wrongly says \"Mint event published when a classic payment uses the MEMO_HASH or MEMO_RETURN memo type\" and should say \"Transfer event\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
stellar__rs-soroban-sdk__1623
stellar/rs-soroban-sdk
1,623
defect
f2173eb7790352414c7b91877e30f9024ee3c067
21962180402d6fa7fb121e6cb135c5c6ed6dd8b7
Store test name and env number in env itself
### What Store test name and environment number directly in EnvTestState instead of tracking them at the point where test snapshots are written. ### Why Snapshot file numbering is confusing and difficult to follow when multiple Env instances existed per test. It's because the order of the env numbers is base...
diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index 9675b013d..d88587d72 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -239,9 +239,23 @@ impl Default for Env { } } +#[cfg(any(test, feature = "testutils"))] +#[derive(Default, Clone)] +struct LastEnv { + test_name: String, ...
1
1
0
[{"id": "G0", "claim": "The comments in the test_snapshot_file unit test at lines 140 and 153 of soroban-sdk/src/tests/env.rs name the wrong snapshot file after the renumbering ('written to p1.' should read 'written to p3.', and 'written to p2.' should read 'written to p1.') and should be corrected (flagged by the revi...
null
stellar__rs-soroban-sdk__1630
stellar/rs-soroban-sdk
1,630
defect
d64ed4c27f9d3c919d4c5369de40a9ba88163f2c
d85110098463fcc5b13e26b45934d0e1e6eb6726
Feature/bn254 neg trait
Implement `Neg` trait for `G1Affine`. This is useful for verifying Groth16 proofs. ### What - Introduce an `Fq` newtype wrapping `BytesN<FP_SERIALIZED_SIZE>` as the BN254 base field element - Implement `Neg` for `Fq` - Implement `Neg` for `G1Affine` by: ### Why - We need this operation to make cheaper gro...
diff --git a/soroban-sdk/src/crypto/bn254.rs b/soroban-sdk/src/crypto/bn254.rs index 12c2ace75..27fb45043 100644 --- a/soroban-sdk/src/crypto/bn254.rs +++ b/soroban-sdk/src/crypto/bn254.rs @@ -1,6 +1,7 @@ #[cfg(not(target_family = "wasm"))] use crate::xdr::ScVal; use crate::{ + crypto::bls12_381::BigInt, env...
2
2
0
[{"id": "G0", "claim": "The new base-field type should be named `Fp` instead of `Fq` for consistency with the rest of the codebase (including renaming `FP_SERIALIZED_SIZE` to match).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `BigInt` struct shou...
null
stellar__rs-soroban-sdk__1645
stellar/rs-soroban-sdk
1,645
defect
e516750bd3e2d7624096b9681ad4174f6a7011a0
4b32c58258db35673adff20ca703c5ddc9b303f7
Update bn254 typenames and add mapping
### What Update typenames and add the contracttype mapping.
diff --git a/soroban-sdk-macros/src/map_type.rs b/soroban-sdk-macros/src/map_type.rs index 63ebe8fc5..b51458497 100644 --- a/soroban-sdk-macros/src/map_type.rs +++ b/soroban-sdk-macros/src/map_type.rs @@ -16,6 +16,11 @@ pub const FP2_SERIALIZED_SIZE: u32 = FP_SERIALIZED_SIZE * 2; pub const G1_SERIALIZED_SIZE: u32 = FP...
3
2
1
[{"id": "G0", "claim": "The BLS types such as `G1Affine` are not prefixed by `Bls12381`, which is ambiguous, and the author would like to rename them with the prefix as well, even though that is a minor breaking change for users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}...
null
stellar__rs-soroban-sdk__1677
stellar/rs-soroban-sdk
1,677
defect
7041ac2e5bb6e99da9b21f4cb7963d307bcda886
7970b11256af5dc3420006aa9b447a1a38bda3ae
Add test resource limit enforcement functionality.
### What Add test resource limit enforcement functionality. Also enable mainnet limit enforcement by default. These shouldn't be disruptive to most of the existing users (as they're likely able to run their contracts in testnet or mainnet), and for those in the experimentation stage this might be useful for early di...
diff --git a/Cargo.lock b/Cargo.lock index 690e7a8e8..d9207dafe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1319,9 +1319,9 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "soroban-builtin-sdk-macros" -version = "25.0.0" +version = "25.0.1" source = "registry+htt...
4
3
0
[{"id": "G0", "claim": "Extra whitespace on line 116 before the doc comment should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The trait name 'NetworkInvocationResourcesLimits' has redundant pluralization ('Resources' and 'Limits'...
null
stellar__rs-soroban-sdk__1680
stellar/rs-soroban-sdk
1,680
defect
7041ac2e5bb6e99da9b21f4cb7963d307bcda886
c09519d5fcb1bab4e2c4bda4d8252af8732fffce
Fix contractevent vec data format to preserve field declaration order
### What Only sort contractevent fields when building events where the data format is `map`. ### Why For contractevents with a data_format of vec, sorting the fields caused the data to be published in a different order than what the event defined, which is not expected. Closes https://github.com/stellar/rs-...
diff --git a/soroban-sdk-macros/src/derive_event.rs b/soroban-sdk-macros/src/derive_event.rs index 4e9359da9..c0b7157a0 100644 --- a/soroban-sdk-macros/src/derive_event.rs +++ b/soroban-sdk-macros/src/derive_event.rs @@ -229,17 +229,12 @@ fn derive_impls(args: &ContractEventArgs, input: &DeriveInput) -> Result<TokenSt ...
2
1
0
[{"id": "G0", "claim": "The Map arm's rebuild of data_idents_sorted/data_strs_sorted could be simplified to sort the existing data_idents by their string form, for clarity, though that would sort by the output of format_ident instead of p.name (currently the same).", "category": "maintainability", "verdict": "uncertain...
null
stellar__rs-soroban-sdk__1703
stellar/rs-soroban-sdk
1,703
defect
941448079eccf95627d2ffea13ba268e305a9077
d19e9e24e3e52985dbada8bed719002b7f173ccf
Fix range bound overflow in Vec/Bytes slice and GenRange gen_range for u64
### What - Replace unchecked `+1` / `-1` arithmetic in `Bytes::slice`, `Vec::slice`, and `Prng::gen_range` (u64) range bound conversions with `checked_add` / `checked_sub` using `expect_optimized` - Add `expect_optimized` to the `UnwrapOptimized` trait for `Option` and `Result`, which traps via `wasm32::unreachable...
diff --git a/soroban-sdk/src/bytes.rs b/soroban-sdk/src/bytes.rs index ef7a7566d..91f0662b6 100644 --- a/soroban-sdk/src/bytes.rs +++ b/soroban-sdk/src/bytes.rs @@ -739,11 +739,15 @@ impl Bytes { pub fn slice(&self, r: impl RangeBounds<u32>) -> Self { let start_bound = match r.start_bound() { ...
1
1
0
[{"id": "G0", "claim": "The new test_gen_range_u64_exclusive_end test should run gen_range 100 times in a loop for more coverage, like the inclusive test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__1713
stellar/rs-soroban-sdk
1,713
defect
59a2e01a26f9330f8d516690911cb2ca87a6f1b3
90a4030571721788b8098e6c12d4147f87e1814f
fix: use include_bytes for contractfile macro to improve file dependency tracking
### What Use `include_bytes!` during the `contractfile!` macro instead of embedding the WASM bytes directly to allow the file to be registered as a dependency, causing Cargo to rebuild when the file changes. ### Why The `contractimport!` macro contained path where stale WASMs could be used. Generally, this was...
diff --git a/soroban-sdk-macros/src/lib.rs b/soroban-sdk-macros/src/lib.rs index 9e7bb094a..2294e4e75 100644 --- a/soroban-sdk-macros/src/lib.rs +++ b/soroban-sdk-macros/src/lib.rs @@ -40,7 +40,7 @@ use derive_trait::derive_trait; use darling::{ast::NestedMeta, FromMeta}; use macro_string::MacroString; use proc_macr...
1
1
0
[{"id": "G0", "claim": "The macro should return a compiler error instead of silently changing the file path via to_string_lossy, since lossy replacement could make the macro verify the SHA256 hash of a different file than the one included.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": ...
null
stellar__rs-soroban-sdk__1745
stellar/rs-soroban-sdk
1,745
defect
13ae18e8f2bfa543ca80741e51e42e5fb3007831
4c71822f8a5089d2c2f4dc62d62bf351f2500017
Some v26 features
### What Adapt to CAP-0078, CAP-0079 and CAP-0080
diff --git a/soroban-sdk/src/crypto/bls12_381.rs b/soroban-sdk/src/crypto/bls12_381.rs index 43259d9e3..2cddf0355 100644 --- a/soroban-sdk/src/crypto/bls12_381.rs +++ b/soroban-sdk/src/crypto/bls12_381.rs @@ -538,6 +538,14 @@ impl Bls12_381 { res.into() } + /// Checks if a G1 point is on the BLS12-38...
3
3
0
[{"id": "G0", "claim": "Add a test case for fr_inv with zero input.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a g1_msm error-case test covering mismatched vector lengths and empty vectors.", "category": "testing", "verdict": "supported", "prior...
null
stellar__rs-soroban-sdk__1801
stellar/rs-soroban-sdk
1,801
defect
376dca4b5c08cbfaec6d4ddacafb1734554cd535
d73c506161eeb412f4020cfb43d8ebee4ebe1164
Implement CAP-82 checked {U,I}256 arith functions
### What Implement CAP-82 host functions wrapper for U256 and I256 - `checked_{add, sub, mul, pow}` as well as other `checked_` arithmetic functions (requiring no new host functions) - `checked_{div, rem_euclid, shl, shr}` these new functions return Option, which is `None` on overflow.
diff --git a/Cargo.lock b/Cargo.lock index b72360e5f..e8bd2c28d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1378,8 +1378,8 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "soroban-builtin-sdk-macros" -version = "26.0.0-rc.1" -source = "git+https://github.com/stel...
5
5
0
[{"id": "G0", "claim": "The checked {U,I}256 arithmetic methods should use an unsafe conversion to the value type (as the SDK does where the type is guaranteed) instead of try_from_val.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The I256::MIN li...
null
stellar__rs-soroban-sdk__1803
stellar/rs-soroban-sdk
1,803
defect
b92b36bfa0800de5d4c53290d474bd9c3bc74b63
2e85964bb283c1da375f581bf728688a36066836
Fix panic safety in register_contract_with_source and register_stellar_asset_contract_v2
### What Reorder operations in `register_contract_with_source` and `register_stellar_asset_contract_v2` so that the auth manager is always restored before any unwrap that could panic. Use `try_invoke_contract` instead of `invoke_contract` for the `set_admin` call in `register_stellar_asset_contract_v2`. ### Why ...
diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index eca29748a..aef587dfb 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -1120,15 +1120,15 @@ impl Env { self.env_impl .switch_to_recording_auth_inherited_from_snapshot(&prev_auth_manager) .unwrap(); - ...
1
1
1
[{"id": "G0", "claim": "The fallible `args_vec.try_into().unwrap()` VecM conversion still runs after switching the auth manager into recording mode, so a conversion panic would skip `set_auth_manager(prev_auth_manager)` and leave the auth manager stuck in recording mode; the conversion (and any unwrap/expect) should be...
null
stellar__rs-soroban-sdk__1829
stellar/rs-soroban-sdk
1,829
defect
0b4bb288c12c57623e922f38e6e774d57516e781
4197a19c93b080f25a647378ab42fcafd62cdb0b
clean up macro `impl_bytesn_repr` and remove export
### What clean up impl_bytesn_repr and remove its macro_export, it was intended as an internal helper macro.
diff --git a/soroban-sdk/src/bytes.rs b/soroban-sdk/src/bytes.rs index 9b537e597..511d1b706 100644 --- a/soroban-sdk/src/bytes.rs +++ b/soroban-sdk/src/bytes.rs @@ -105,14 +105,8 @@ macro_rules! bytesn { /// Internal macro that generates all `BytesN` wrapper methods and trait impls /// *except* `from_bytes`. Types us...
2
1
0
[{"id": "G0", "claim": "Removing `#[macro_export]` from `impl_bytesn_repr` is a breaking public-API change for downstream users relying on the macro, so consider documenting the break in release notes or keeping a deprecated exported shim for one release cycle.", "category": "design", "verdict": "uncertain", "priority"...
null
stellar__rs-soroban-sdk__261
stellar/rs-soroban-sdk
261
defect
af42ac867149e1826557b070375148edd1282d81
163578a076568a37fab55d1b15496444bec2551a
Change contractimpl to generate module per function
### What Change `contractimpl` to generate a module per function, containing functions `call` and `call_slice`. Then generate function to register all the contract functions in a `TestContract`. ### Why Makes the existence of wrapped functions generated by `contractimpl` invisible to developers. ### Known l...
diff --git a/examples/add_i32/src/lib.rs b/examples/add_i32/src/lib.rs index e35b7e96d..a0986bff9 100644 --- a/examples/add_i32/src/lib.rs +++ b/examples/add_i32/src/lib.rs @@ -5,7 +5,7 @@ contract!(); pub struct Contract; -#[contractimpl] +#[contractimpl(tests_if = "testutils")] impl Contract { pub fn add(a...
4
4
2
[{"id": "G0", "claim": "Introducing stateless function registration this way is suspected to break contracts that have multiple `impl` blocks, since the macro would implement the `AddFunctions` trait multiple times.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
stellar__rs-soroban-sdk__294
stellar/rs-soroban-sdk
294
defect
9481010ac820ce3694d5853db79beee38e302690
d99079f2f1c839eb9d5b6d0298ce719e29bb7f57
Remove FixedLengthBinary and VariableLengthBinary traits
### What Remove `FixedLengthBinary` and `VariableLengthBinary` traits. Also implement `Borrow`, `AsRef`, and `AsMut` for `ArrayBinary<N>` => `&Binary`. ### Why The traits `FixedLengthBinary` and `VariableLengthBinary` add complexity to the concepts a developer needs to learn when interacting with binary that is no...
diff --git a/sdk/src/binary.rs b/sdk/src/binary.rs index 53f2e48cc..31ff8f1a3 100644 --- a/sdk/src/binary.rs +++ b/sdk/src/binary.rs @@ -1,4 +1,5 @@ use core::{ + borrow::{Borrow, BorrowMut}, cmp::Ordering, fmt::Debug, iter::FusedIterator, @@ -13,36 +14,25 @@ use super::{ #[cfg(not(target_family = "...
2
2
2
[{"id": "G0", "claim": "BorrowMut<Binary> for ArrayBinary is unsafe because it could be used to change the length of an ArrayBinary; the author agrees the mut impls should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "BorrowMut<Binary> ...
null
stellar__rs-soroban-sdk__310
stellar/rs-soroban-sdk
310
defect
d42a9a97151b2d9194ae48ee0273af024b5d04af
6234cbb1f538daf3657d987adf66fd9838899452
Move Binary serialize/deserialize into traits
### What Move Binary serialize/deserialize into traits onto all the types. ### Why So that the more natural `my_value.serialize(&env)` that is more similar to the interfaces that libraries like serde provide, and can be used instead of `env.serialize_to_binary`. For #173
diff --git a/sdk/src/binary.rs b/sdk/src/binary.rs index bf274571d..5b8bce5cf 100644 --- a/sdk/src/binary.rs +++ b/sdk/src/binary.rs @@ -8,7 +8,7 @@ use core::{ use super::{ env::internal::Env as _, env::EnvType, xdr::ScObjectType, ConversionError, Env, EnvObj, EnvVal, - RawVal, RawValConvertible, + Objec...
1
1
0
[{"id": "G0", "claim": "The new test could use `binary_new_from_linear_memory` instead of dozens of repetitive `bin.push(...)` lines to build the expected binary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__368
stellar/rs-soroban-sdk
368
defect
bde7c8385ee0d214805e8c83e245360c90c04849
30fadc9ce60fea2a42464c99b8643dedbb924e4c
Use FixedBinary for contact IDs
### What Use FixedBinary<32> for contract IDs. ### Why It's annoying when writing contract tests and not realizing that the contract ID has to be a specific length. This tripped me up when writing my first contracts, and then dealing with panics. ### Known Limitation @jonjove has pointed out that use of Fixed...
diff --git a/macros/src/derive_fn.rs b/macros/src/derive_fn.rs index ad641139f..9ffea20f2 100644 --- a/macros/src/derive_fn.rs +++ b/macros/src/derive_fn.rs @@ -205,20 +205,20 @@ pub fn derive_fn( pub fn invoke( e: &soroban_sdk::Env, - contract_id: &soroban_sdk::Binary, + ...
1
1
1
[{"id": "G0", "claim": "The `salt` parameter of `create_contract_from_contract` should also be `FixedBinary<32>` since salt is also 32 bytes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__574
stellar/rs-soroban-sdk
574
defect
afcd1e536fef79497790c744abddd802b689c64d
87b93eec4adb44497eadae76539505d44b12d72c
Add get_current_call_stack method
Related to https://github.com/stellar/stellar-protocol/issues/1289.
diff --git a/Cargo.lock b/Cargo.lock index 884f3ed40..0c9160075 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -304,6 +304,13 @@ dependencies = [ "soroban-sdk", ] +[[package]] +name = "example_call_stack" +version = "0.0.4" +dependencies = [ + "soroban-sdk", +] + [[package]] name = "example_contract_data" version ...
3
2
1
[{"id": "G0", "claim": "The outer contract's test should add an assertion on what it sees as the call stack, which is assumed to be a length-one stack containing just itself.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The get_current_call_stack docu...
null
stellar__rs-soroban-sdk__597
stellar/rs-soroban-sdk
597
defect
a40b5c7b9e892b59ca4ec704074cf57c2669d729
98f5eaefe218c1c831a2e01209c544de8a411428
Remove replay protection from the auth crate
### What Resolves #590, #533, and #534.
diff --git a/soroban-auth/src/lib.rs b/soroban-auth/src/lib.rs index 067a082b7..9a24eab35 100644 --- a/soroban-auth/src/lib.rs +++ b/soroban-auth/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] -use soroban_sdk::{serde::Serialize, Account, BigInt, BytesN, Env, RawVal, Symbol, Vec}; +use soroban_sdk::{serde::Serialize, Account...
1
1
0
[{"id": "G0", "claim": "The equality checks in verify_and_consume_nonce should compare without dereferencing (`nonce != expected_nonce` instead of `*expected_nonce`), which the SDK now supports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__640
stellar/rs-soroban-sdk
640
defect
d120c5dbc788ad47955bdd1181b0b3eb9935d373
c43235a53812b8f7b9e7ae87a458da2c8fc42a24
Add docs to soroban-auth and align function names with docs
### What Add docs to soroban-auth. Also rename check_auth to verify. Also rename get_identifier to identifier. ### Why We need more docs for soroban-auth that at the least help the developer understand the concepts. The docs in this PR are a starting point. We still need examples in these docs, but this is a starting...
diff --git a/soroban-auth/src/lib.rs b/soroban-auth/src/lib.rs index aa13db50f..8cf7126bf 100644 --- a/soroban-auth/src/lib.rs +++ b/soroban-auth/src/lib.rs @@ -1,3 +1,11 @@ +//! Soroban auth provides basic authentication capabilities to Soroban +//! contracts. +//! +//! See [`verify`] for how to use. +//! +//! **The u...
4
4
1
[{"id": "G0", "claim": "The crate-level docs in soroban-auth/src/lib.rs misspell \"crate\" as \"create\" and should read \"The utilities in this crate\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The replay-protection warnings in soroban-auth...
null
stellar__rs-soroban-sdk__647
stellar/rs-soroban-sdk
647
defect
27e268ab501abc308339008f446099d7cde8ea9c
90c89c036b51cbd152a3ab7da6e61243d6f3f02d
Add testutils to soroban-auth
### What Add a `testutils` mod to `soroban-auth` that contains two functions: - `generate` that generates an identifier and corresponding signer that can sign for that identifier. - `sign` that can sign an invocation for the identifier. ### Why To make the `soroban-auth` crate more batteries included for tes...
diff --git a/Cargo.lock b/Cargo.lock index 487e427c0..c040948e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -767,7 +767,6 @@ name = "soroban-auth" version = "0.0.4" dependencies = [ "ed25519-dalek", - "rand", "soroban-sdk", ] @@ -844,6 +843,7 @@ dependencies = [ "bytes-lit", "ed25519-dalek", "hex", + "ra...
2
1
0
[{"id": "G0", "claim": "The make_identifier helper removed from the auth tests should be added back and exposed in the new testutils module.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Asks whether downstream dependencies will have to alias Identifi...
null
stellar__rs-soroban-sdk__724
stellar/rs-soroban-sdk
724
defect
47895a87b98a2fb8dd882839df7abde03f6c7fc6
9a6b3b6dc4f4c2b114339ceace48798d66ccd838
soroban-token-spec: Expose full token contract spec
### What Expose the full token contract spec Closes https://github.com/stellar/rs-soroban-env/issues/535 ### Why See https://github.com/stellar/rs-soroban-env/issues/535 and https://github.com/stellar/soroban-cli/pull/214#issuecomment-1273738006 ### Known limitations As noted by a TODO, the spec is no...
diff --git a/Cargo.lock b/Cargo.lock index 4ee996334..f1ef4008b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -107,6 +107,17 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "concat-...
7
5
2
[{"id": "G0", "claim": "The concat-arrays crate should not be used to build the spec — it uses transmute, is not widely used, and is LGPL licensed — and instead the specs should be concatenated manually with while loops and a final size check.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "...
null
stellar__rs-soroban-sdk__746
stellar/rs-soroban-sdk
746
defect
52134b3d56fb23c03ef98bbb2dda304e2bf2e975
98e3e1c323313c9d1dbadb7910491fe500df335d
Remove panic-catching and fix tests that use newly-working native try_call
fixes https://github.com/stellar/rs-soroban-env/issues/462 fixes https://github.com/stellar/rs-soroban-sdk/issues/642 This "fixes" the above bugs by removing the panic-catching machinery from the SDK as discussed with @leighmcculloch -- the host now does a `catch_panic` inside `try_call` and calls `rollback` itself...
diff --git a/Cargo.lock b/Cargo.lock index d2272f18e..df57a3f6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -614,12 +614,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "parity-wasm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be5e13c266502aadf83426d87d...
2
1
1
[{"id": "G0", "claim": "Make the test pass by retaining the panic string and plopping it into a debug event, instead of taking away the ability to should_panic on the error string that plenty of examples rely on.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
stellar__rs-soroban-sdk__764
stellar/rs-soroban-sdk
764
defect
2c9d157ed5ede9d4e38bb423d6ae965e411411bf
3b26b107cece6b5c9da9f1ce306b50fed2d3576f
Add testutils to build ed25519 keypairs
### What Test utils to build ed25519 keypairs from a Stellar public key and secret key. ### Why There currently is no way to build signatures for existing ed25519 keypairs, so if I wanted to generate signatures in tests or in a script to use them later with the CLI, I'd have to build the keypair and strkey de...
diff --git a/soroban-auth/src/tests/test_ed25519.rs b/soroban-auth/src/tests/test_ed25519.rs index a1cbe0094..587ff7a3d 100644 --- a/soroban-auth/src/tests/test_ed25519.rs +++ b/soroban-auth/src/tests/test_ed25519.rs @@ -7,7 +7,7 @@ use soroban_sdk::{ }; use crate::{ - testutils::ed25519::{generate, sign}, + ...
1
1
0
[{"id": "G0", "claim": "The part of this change that added the strkey package should be removed, because the strkey types can be used directly by importing them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__774
stellar/rs-soroban-sdk
774
defect
411dc826bf18c1fa1fd27e8fcecd0268828fcfbf
40346cc1971a34f0228cea81bf8ee0b5fe112619
Add back ability to register wasm contracts at any id
### What Add back ability to register wasm contracts at any id ### Why To avoid breaking the API when we need the ability in the future to register wasm contracts at specific addresses.
diff --git a/soroban-sdk-macros/src/lib.rs b/soroban-sdk-macros/src/lib.rs index 17e210e8a..0fd66ffd2 100644 --- a/soroban-sdk-macros/src/lib.rs +++ b/soroban-sdk-macros/src/lib.rs @@ -354,7 +354,7 @@ struct ContractImportArgs { /// fn test() { /// let env = Env::default(); /// // Register contract A using t...
1
1
0
[{"id": "G0", "claim": "Add a doc comment to register_contract_wasm (and the sibling register variant) stating that registering replaces the contract if one already exists at that id, since that is not obvious from the name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
stellar__rs-soroban-sdk__798
stellar/rs-soroban-sdk
798
defect
a114890db36e8bf89906270c3b9953d693687b01
86c80019111efbfe90a6231e165ab5a1b73cd283
Remove token deploy in anticipation of removal of the soroban only built-in token
### What The soroban-only built-in token is being removed in https://github.com/stellar/rs-soroban-env/pull/607. This is the corresponding sdk change required for updating soroban-test-wasms in rs-soroban-env. This PR does not add support for deploy the Stellar Asset Contract. That can be added in later after we de...
diff --git a/Cargo.lock b/Cargo.lock index 09784bfa0..9ae59c5fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -977,6 +977,7 @@ dependencies = [ "rand 0.7.3", "soroban-auth", "soroban-sdk", + "stellar-xdr", ] [[package]] diff --git a/soroban-sdk/src/deploy.rs b/soroban-sdk/src/deploy.rs index bb532fb0f..090beb04...
1
1
0
[{"id": "G0", "claim": "Use the `soroban_sdk::xdr` re-export instead of adding a direct `stellar-xdr` dependency in soroban-token-spec, to keep the dependency tree easier to navigate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__822
stellar/rs-soroban-sdk
822
defect
51e5e6d4a8a1110f73233e3bc54c69b76e65e637
385edf65bd4c6f080f5c1bec0af31408b2b83040
Allow xlm balance updates
### What This change allows a user to set the balance of an account ledger entry to allow testing with the XLM Stellar Asset Contract. We should consider adding similar functionality for trustlines.
diff --git a/soroban-sdk/src/accounts.rs b/soroban-sdk/src/accounts.rs index 4d3d611de..5e341555d 100644 --- a/soroban-sdk/src/accounts.rs +++ b/soroban-sdk/src/accounts.rs @@ -423,16 +423,23 @@ impl testutils::Accounts for Accounts { let k = xdr::LedgerKey::Account(xdr::LedgerKeyAccount { ...
1
1
0
[{"id": "G0", "claim": "The '/// Updates balance' doc comment on update_balance is useless and should be extended to mention that it is the native token balance of the classic account.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__rs-soroban-sdk__869
stellar/rs-soroban-sdk
869
defect
adf4870f89240ede2683d510478220e7b7611fbf
fa47d2fb18db540d185a472de965be3285655707
Expose reset budget functions to testutils
### What This PR exposes the various reset budget functions to the testutils. ### Why The ability to change the budget to arbitrary values was [just recently](https://github.com/stellar/rs-soroban-env/pull/677) added to the soroban-env. This PR also aims to allow this during the testing stage of a contract,...
diff --git a/soroban-sdk/src/testutils.rs b/soroban-sdk/src/testutils.rs index 0d0a9bbbe..b4c84ccbf 100644 --- a/soroban-sdk/src/testutils.rs +++ b/soroban-sdk/src/testutils.rs @@ -87,9 +87,28 @@ pub mod budget { /// Reset the budget. pub fn reset(&mut self) { self.0.reset_default(); + ...
3
2
0
[{"id": "G0", "claim": "Rename the new `reset` method to `reset_default` to be consistent with the env's method it wraps.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Most of the exposed reset methods are convenience-only and the PR should kee...
null
stellar__rs-soroban-sdk__914
stellar/rs-soroban-sdk
914
defect
cd01ad4327095132ef00c9f389d29f3b9f589e85
8ab0feb8cebeecb06cab9f346bd4717de8f6be34
Add macro for code metadata
### What Related to https://github.com/stellar/rs-soroban-sdk/issues/901. Adds a macro to write a "metadata" field to the WASM custom section. This PR uses the XDR from https://github.com/stellar/stellar-xdr/pull/49/files. Example usage `metadata!(key="metadata", val="desc=hello world contract,written by=bob")...
diff --git a/Cargo.lock b/Cargo.lock index 5a24c95dc..f72ba469c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -865,7 +865,6 @@ dependencies = [ [[package]] name = "soroban-env-common" version = "0.0.15" -source = "git+https://github.com/stellar/rs-soroban-env?rev=5ef87058f07ad67eeba4c350a6b6af82bd17f916#5ef87058f07ad6...
7
7
4
[{"id": "G0", "claim": "The macro should be named `contractmeta` instead of `metadata` for consistency with other macros.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The link section should be named `contractmetav0` rather than `metadata`, using the c...
null
stellar__rs-soroban-sdk__926
stellar/rs-soroban-sdk
926
defect
9b7a8da3c7f9df96c2213c3d687e79cc910e9fd9
e95e141b1b0d308b106c92d8f98d30019c857de2
Default to enforced auth in tests
### What Default to enforced auth in tests. Also renamed 'record' to 'mock' so clarity that when in use, these functions are mocking auth. Also as a side-effect the auths() fn that returns a list of seen auths during an invocation now works for enforced auth too. ### Example ```rust #[contractimpl] imp...
diff --git a/Cargo.lock b/Cargo.lock index 1582a1dd1..3c013ef47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -865,7 +865,7 @@ dependencies = [ [[package]] name = "soroban-env-common" version = "0.0.15" -source = "git+https://github.com/stellar/rs-soroban-env?rev=ad5d6d1c3aed2976ed6126b7f68dcfd17215dc2c#ad5d6d1c3aed29...
2
2
1
[{"id": "G0", "claim": "The new doc comment on `auths` is incorrect: it says repeated `require_auth` calls in the same tree of contract invocations appear only once in the vector, but trees are relative to the address so multiple addresses give multiple entries for one invocation, and `require_auth` may be called sever...
null
stellar__rs-soroban-sdk__929
stellar/rs-soroban-sdk
929
defect
30c87aec81f987ffab5f68aa7b8e006f5cc2b6fc
1d2952fed59aa2b1d7416bcb36eb59965c4d830e
Add granular mocking of auth in tests
### What Add granular mocking of auth in tests, as a capability that is available to developers in addition to the existing mock-everything approach. ### Example ```rust #[contractimpl] impl Contract { pub fn doit(a: Address) -> u64 { a.require_auth(); 2 } } ``` ```rust #[test...
diff --git a/soroban-sdk-macros/src/derive_client.rs b/soroban-sdk-macros/src/derive_client.rs index 4f618c111..341ae98e6 100644 --- a/soroban-sdk-macros/src/derive_client.rs +++ b/soroban-sdk-macros/src/derive_client.rs @@ -66,6 +66,9 @@ pub fn derive_client(crate_path: &Path, ty: &str, name: &str, fns: &[syn_ext::Fn ...
2
2
2
[{"id": "G0", "claim": "The code comment above the SAC setup in env.rs says recording auth is used, but the code actually uses enforcing mode with invoker auth, so the comment does not correspond to what the code does.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
stellar__rs-soroban-sdk__984
stellar/rs-soroban-sdk
984
defect
8343ecd8d9780c673d4d1f3fd1f8f68b2dbfda4a
27a5ed9e97ff717fd8620909ca2298029cc992df
SDK updates for recent host changes
### What - Support deep subcontract authorization - Update deployer interface to work on behalf of any address.rs - Use host fn for uploading Wasm instead of a test-only fn ### Why Supporting new host functionality ### Known limitations N/A
diff --git a/Cargo.lock b/Cargo.lock index 1d6826d86..56f1b19df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,9 +85,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.12.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1ce199063694f33ffb7dd4e0ee...
8
8
3
[{"id": "G0", "claim": "The DeployerWithCurrentContract type and its id function should not have been removed since the environment support to fill the method in is just landing — keep salt in the deployer type and forego the refactor.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
stellar__stellar-core__4024
stellar/stellar-core
4,024
defect
0448bf0e314d1afb68f11924802534fe03989d69
743a2ed8b7a99c0d381a5143137b44cb53d6dc97
Remove ltx from network config getter.
# Description Remove ltx from network config getter. There are just a few cases for when the config needs to be re-loaded: - When closing any ledger (start with protocol 20) - When restoring the ledger state that is already in protocol 20+ (catchup work and `loadLastKnownLedger` function). Now the latter c...
diff --git a/src/bucket/BucketList.cpp b/src/bucket/BucketList.cpp index 4d66c8cd91..232967645d 100644 --- a/src/bucket/BucketList.cpp +++ b/src/bucket/BucketList.cpp @@ -842,7 +842,7 @@ BucketList::scanForEviction(Application& app, AbstractLedgerTxn& ltx, SOROBAN_PROTOCOL_VERSION)) ...
2
2
2
[{"id": "G0", "claim": "Updating the network config in CatchupWork::runCatchupStep looks unnecessary and error-prone, since catchup goes through startup and ledger-close flows that should already have the config loaded, and the config should only be updated when a ledger that changed it is applied or when the node star...
null
stellar__stellar-core__4054
stellar/stellar-core
4,054
defect
4d150a5c00d744a160cc065d16149a3c7ce08407
f86934be3bc6dc385bf21da47e86ed8e4c0c8a61
Add more fee-related tests for Soroban.
# Description Resolves #4003 The tests revolve around high resource fee values. Also fixed the crash found thanks to the tests. # Checklist - [ ] Reviewed the [contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes) document - [ ] Rebased on top of master (no me...
diff --git a/src/transactions/FeeBumpTransactionFrame.cpp b/src/transactions/FeeBumpTransactionFrame.cpp index 3126b24bb4..3f3f3f3c23 100644 --- a/src/transactions/FeeBumpTransactionFrame.cpp +++ b/src/transactions/FeeBumpTransactionFrame.cpp @@ -221,14 +221,27 @@ FeeBumpTransactionFrame::commonValidPreSeqNum(AbstractL...
2
2
0
[{"id": "G0", "claim": "The tests should also cover the case where there is enough balance to cover the full fee but the resource fee exceeds uint32 after adding the base fee.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable initBalance in th...
null
stellar__stellar-core__4111
stellar/stellar-core
4,111
defect
3c95d00d5eba063bb4c07fe046e73ad4c5d6f462
ace6d847925a4fa0505a0072db5e004e781247e8
Test target size logic in upgrade test
# Description 1. Hit target size in upgrade test. 2. Add safety check in utils. 3. Increase fees to handle hitting target size. <!--- Describe what this pull request does, which issue it's resolving (usually applicable for code changes). ---> # Checklist - [ ] Reviewed the [contributing](https://githu...
diff --git a/src/main/SettingsUpgradeUtils.cpp b/src/main/SettingsUpgradeUtils.cpp index 0071680640..3aa71b1f30 100644 --- a/src/main/SettingsUpgradeUtils.cpp +++ b/src/main/SettingsUpgradeUtils.cpp @@ -15,7 +15,7 @@ getUploadTx(PublicKey const& publicKey, SequenceNumber seqNum) auto& tx = txEnv.v1().tx; tx...
1
1
0
[{"id": "G0", "claim": "Add a quick test covering the validateConfigUpgradeSet check triggering.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
stellar__stellar-core__4248
stellar/stellar-core
4,248
defect
ede03b14f262600dd14d5a11ddc7ed685e4a7430
02cb43f2c867aeaf5a643a5ed593bc9df9bdd98b
Add blended classic+soroban mode to loadgen
# Description Resolves #4218 This change adds a mode `blend_classic_soroban` to the `generateload` command that generates load with a mix of classic pay transactions, soroban upload transactions, and soroban invoke transactions. The distribution of these transaction types is configurable. This change also modi...
diff --git a/docs/software/commands.md b/docs/software/commands.md index 5e223f40cc..ab37c80aa1 100644 --- a/docs/software/commands.md +++ b/docs/software/commands.md @@ -379,7 +379,7 @@ format. ### The following HTTP commands are exposed on test instances * **generateload** `generateload[?mode= - (create|pay|pr...
18
16
4
[{"id": "G0", "claim": "The naming of the loadgen modes should be made consistent (e.g. \"mixed_classic\" and \"mixed_classic_soroban\" instead of \"mixed txs\" and \"blend classic soroban\").", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new BLEND_...
null