deltaDAO / nautilus

The Data Economy TypeScript Toolkit
https://nautilus.delta-dao.com
Apache License 2.0
4 stars 2 forks source link

[Feature] Automated Publishing #1

Closed moritzkirstein closed 1 year ago

moritzkirstein commented 1 year ago

Motivation / Problem

Add automated publishing of assets

Solution

type DatatokenConfig = { name: string; symbol: string }
type Pricing = 'free' | { fixedRate: number, marketFee?: number }
interface AssetConfig {
  metadata: Metadata | string
  service: Service | string
  web3: Web3
  pricing: Pricing
  datatoken?: DatatokenConfig
}

async function publishAsset(config: AssetConfig)

Alternatives

Additional context