curvegrid / multibaas-for-google-sheets

MIT License
8 stars 4 forks source link

Add MBCONTRACTS to output a list of all contracts #45

Open shoenseiwaso opened 3 years ago

shoenseiwaso commented 3 years ago

Add the MBCONTRACTS function, which outputs a list of all of the contracts present in MultiBaas. Potential functions signature could be:

MBCONTRACTS([<filter>],[<include headers>],[<include linked addresses>])

The output (NOTE: with no would be, if <include linked addresses> is FALSE or not provided and <include headers> is TRUE:

label name
contract_label_a ContractNameA
contract_label_b ContractNameB

The output (NOTE: with no would be, if <include linked addresses> is TRUE or not provided and <include headers> is TRUE:

label name address_labels addresses
contract_label_a ContractNameA address_a 0xabc123...
contract_label_b ContractNameB address_b1,address_b2 0xdef456...,0xfga342...

Essentially, it returns the output of /api/v0/contracts.