const pack = dpack.build({
network: hh.network.name,
types: {
'Gem': {
artifact: hh.artifacts.readArtifact('Gem')
},
},
objects: {
'gemfab': {
typename: 'Gem',
address: gem.address,
artifact: hh.artifacts.readArtifact('Gem'),
alsoPackType: true
}
}
})
Based on our current usage it seems like we can just have a single pure
buildfunction. (We should also still have stateful builder pattern).notice:
alsoPackTypecan be patched onto the object directly