Questions tagged [dsproxy]
The dsproxy tag has no usage guidance.
9 questions
0
votes
1
answer
49
views
How do you implement diamond proxy fallback function?
According to the official EIP2535 in the fallback section:
It is missing the position slot:
// Find facet for function that is called and execute the
// function if a facet is found and return any ...
1
vote
0
answers
49
views
Proxy Smart Contracts
I am working on a KYC smart contract and I want to provide the upgradable feature so I can add more functions or add more fields to the struct in the future.
I have learned about proxies and the way I ...
0
votes
0
answers
44
views
Integration of Safe with our existing product lines Base and Magnum
We at Sharpe Labs have been using DSProxy as a smart account/wallet via proxies for letting users manage their leveraged positions.
Question with our products,
Product Magnum: User -> ...
1
vote
0
answers
46
views
How to decode DSProxy input data
I'm trying to debug a tx made through a DSProxy deployed on Polygonscan, but I'm having a difficult time since the _data part of the DSProxy function input is ABI-encoded. I would have to comb through ...
1
vote
2
answers
2k
views
Fastest way to find the function in a contract from it's selector?
Let's say I have a function selector:
0xa9059cbb
And I have a contract as such:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract CallAnything {
function balanceOf(address ...
0
votes
1
answer
853
views
How does Solidity decode a struct returned from a delegate call?
I have a proxy contract that delegate calls to a target contract. The proxy is similar to DSProxy.
In it, there is an execute function:
function execute(address target, bytes memory data) external ...
3
votes
0
answers
1k
views
Failed to decode output: Error: data out-of-bounds (length=0, offset=32, code=BUFFER_OVERRUN, version=abi/5.0.7)
When I try to call some of the unset getters through Proxy, I get this error in Remix
Failed to decode output: Error: data out-of-bounds (length=0, offset=32, code=BUFFER_OVERRUN, version=abi/5.0.7)
...
1
vote
1
answer
268
views
Why does this call to DSProxy fail?
Take these two contracts, both deployed on Kovan and with the source code verified:
DSProxy: 0xa92Bed719071A4d33B0B348513E7e866a6ff6B3F
TargetContract: 0xE3CD2e7a628b57d3e50c5f7B921182f676721bDF
And ...
11
votes
1
answer
9k
views
What is DSProxy and how does it work?
Several Ethereum projects use DSProxy to make their protocols more user-friendly. What is DSProxy exactly and how does it work?