Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getPointee calls for all pointer types #1848

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions precompiles/pointerview/Pointerview.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

address constant POINTERVIEW_PRECOMPILE_ADDRESS = 0x000000000000000000000000000000000000100A;

IPointerview constant POINTERVIEW_CONTRACT = IPointerview(POINTERVIEW_PRECOMPILE_ADDRESS);

interface IPointerview {
Expand All @@ -17,4 +15,16 @@ interface IPointerview {
function getCW721Pointer(
string memory cwAddr
) view external returns (address addr, uint16 version, bool exists);
}

function getNativePointee(
address erc20Addr
) view external returns (string memory token, uint16 version, bool exists);

function getCW20Pointee(
address erc20Addr
) view external returns (string memory cwAddr, uint16 version, bool exists);

function getCW721Pointee(
address erc721Addr
) view external returns (string memory cwAddr, uint16 version, bool exists);
}
177 changes: 176 additions & 1 deletion precompiles/pointerview/abi.json
Original file line number Diff line number Diff line change
@@ -1 +1,176 @@
[{"inputs":[{"internalType":"string","name":"cwAddr","type":"string"}],"name":"getCW20Pointer","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint16","name":"version","type":"uint16"},{"internalType":"bool","name":"exists","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"cwAddr","type":"string"}],"name":"getCW721Pointer","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint16","name":"version","type":"uint16"},{"internalType":"bool","name":"exists","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"token","type":"string"}],"name":"getNativePointer","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint16","name":"version","type":"uint16"},{"internalType":"bool","name":"exists","type":"bool"}],"stateMutability":"view","type":"function"}]
[
{
"inputs": [
{
"internalType": "string",
"name": "cwAddr",
"type": "string"
}
],
"name": "getCW20Pointer",
"outputs": [
{
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"internalType": "uint16",
"name": "version",
"type": "uint16"
},
{
"internalType": "bool",
"name": "exists",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "cwAddr",
"type": "string"
}
],
"name": "getCW721Pointer",
"outputs": [
{
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"internalType": "uint16",
"name": "version",
"type": "uint16"
},
{
"internalType": "bool",
"name": "exists",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "token",
"type": "string"
}
],
"name": "getNativePointer",
"outputs": [
{
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"internalType": "uint16",
"name": "version",
"type": "uint16"
},
{
"internalType": "bool",
"name": "exists",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "erc20Addr",
"type": "address"
}
],
"name": "getNativePointee",
"outputs": [
{
"internalType": "string",
"name": "token",
"type": "string"
},
{
"internalType": "uint16",
"name": "version",
"type": "uint16"
},
{
"internalType": "bool",
"name": "exists",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "erc20Addr",
"type": "address"
}
],
"name": "getCW20Pointee",
"outputs": [
{
"internalType": "string",
"name": "cwAddr",
"type": "string"
},
{
"internalType": "uint16",
"name": "version",
"type": "uint16"
},
{
"internalType": "bool",
"name": "exists",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "erc721Addr",
"type": "address"
}
],
"name": "getCW721Pointee",
"outputs": [
{
"internalType": "string",
"name": "cwAddr",
"type": "string"
},
{
"internalType": "uint16",
"name": "version",
"type": "uint16"
},
{
"internalType": "bool",
"name": "exists",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
60 changes: 49 additions & 11 deletions precompiles/pointerview/pointerview.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pointerview

Check failure on line 1 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

: # github.com/sei-protocol/sei-chain/precompiles/pointerview

import (
"embed"
Expand All @@ -16,30 +16,31 @@
GetNativePointer = "getNativePointer"
GetCW20Pointer = "getCW20Pointer"
GetCW721Pointer = "getCW721Pointer"
GetNativePointee = "getNativePointee"
GetCW20Pointee = "getCW20Pointee"
GetCW721Pointee = "getCW721Pointee"
)

const PointerViewAddress = "0x000000000000000000000000000000000000100A"

// Embed abi json file to the executable binary. Needed when importing as dependency.
//
//go:embed abi.json
var f embed.FS

type PrecompileExecutor struct {
evmKeeper pcommon.EVMKeeper

GetNativePointerID []byte
GetCW20PointerID []byte
GetCW721PointerID []byte
evmKeeper pcommon.EVMKeeper
GetNativePointerID []byte
GetCW20PointerID []byte
GetCW721PointerID []byte
GetNativePointeeID []byte
GetCW20PointeeID []byte
GetCW721PointeeID []byte
}

func NewPrecompile(evmKeeper pcommon.EVMKeeper) (*pcommon.Precompile, error) {
newAbi := pcommon.MustGetABI(f, "abi.json")

p := &PrecompileExecutor{
evmKeeper: evmKeeper,
}

for name, m := range newAbi.Methods {
switch name {
case GetNativePointer:
Expand All @@ -48,13 +49,17 @@
p.GetCW20PointerID = m.ID
case GetCW721Pointer:
p.GetCW721PointerID = m.ID
case GetNativePointee:
p.GetNativePointeeID = m.ID
case GetCW20Pointee:
p.GetCW20PointeeID = m.ID
case GetCW721Pointee:
p.GetCW721PointeeID = m.ID
}
}

return pcommon.NewPrecompile(newAbi, p, common.HexToAddress(PointerViewAddress), "pointerview"), nil
}

// RequiredGas returns the required bare minimum gas to execute the precompile.
func (p PrecompileExecutor) RequiredGas([]byte, *abi.Method) uint64 {
return 2000
}
Expand All @@ -70,6 +75,12 @@
return p.GetCW20(ctx, method, args)
case GetCW721Pointer:
return p.GetCW721(ctx, method, args)
case GetNativePointee:
return p.GetNativePointee(ctx, method, args)
case GetCW20Pointee:
return p.GetCW20Pointee(ctx, method, args)
case GetCW721Pointee:
return p.GetCW721Pointee(ctx, method, args)
default:
err = fmt.Errorf("unknown method %s", method.Name)
}
Expand Down Expand Up @@ -102,3 +113,30 @@
existingAddr, existingVersion, exists := p.evmKeeper.GetERC721CW721Pointer(ctx, addr)
return method.Outputs.Pack(existingAddr, existingVersion, exists)
}

func (p PrecompileExecutor) GetNativePointee(ctx sdk.Context, method *abi.Method, args []interface{}) (ret []byte, err error) {
if err := pcommon.ValidateArgsLength(args, 1); err != nil {
return nil, err
}
erc20Address := args[0].(string)
token, version, exists := p.evmKeeper.GetNativePointee(ctx, common.HexToAddress(erc20Address))

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (09)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (00)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (07)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (11)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (08)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (08)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (16)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (12)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (01)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (10)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (13)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (06)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (06)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (02)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (17)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (19)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (14)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (03)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (05)

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 4

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 0

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 3

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 1

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 2

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)

Check failure on line 122 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

p.evmKeeper.GetNativePointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetNativePointee)
return method.Outputs.Pack(token, version, exists)
}

func (p PrecompileExecutor) GetCW20Pointee(ctx sdk.Context, method *abi.Method, args []interface{}) (ret []byte, err error) {
if err := pcommon.ValidateArgsLength(args, 1); err != nil {
return nil, err
}
erc20Address := args[0].(common.Address)
cw20Address, version, exists := p.evmKeeper.GetCW20Pointee(ctx, erc20Address)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (09)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (00)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (07)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (11)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (08)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (08)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (16)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (12)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (01)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (10)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (13)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (06)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (06)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (02)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (17)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (19)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (14)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (03)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (05)

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 4

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 0

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 3

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 1

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 2

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)

Check failure on line 131 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

p.evmKeeper.GetCW20Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW20Pointee)
return method.Outputs.Pack(cw20Address, version, exists)
}

func (p PrecompileExecutor) GetCW721Pointee(ctx sdk.Context, method *abi.Method, args []interface{}) (ret []byte, err error) {
if err := pcommon.ValidateArgsLength(args, 1); err != nil {
return nil, err
}
erc721Address := args[0].(common.Address)
cw721Address, version, exists := p.evmKeeper.GetCW721Pointee(ctx, erc721Address)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (09)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (00)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (07)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (11)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (08)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (08)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (16)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (12)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (01)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (10)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (13)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (15)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (06)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (06)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (02)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (17)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (19)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (14)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (03)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / tests (05)

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 4

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 0

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 3

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 1

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / Run ETH Blocktests 2

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee) (typecheck)

Check failure on line 140 in precompiles/pointerview/pointerview.go

View workflow job for this annotation

GitHub Actions / lint

p.evmKeeper.GetCW721Pointee undefined (type "github.com/sei-protocol/sei-chain/precompiles/common".EVMKeeper has no field or method GetCW721Pointee)) (typecheck)
return method.Outputs.Pack(cw721Address, version, exists)
}
Loading
Loading