matt
04/07/2021, 3:05 AMjed
04/07/2021, 3:58 AMKevin W - Itty
04/07/2021, 3:59 AMKevin W - Itty
04/07/2021, 3:59 AMKevin W - Itty
04/07/2021, 4:04 AMKevin W - Itty
04/07/2021, 4:07 AMjed
04/07/2021, 4:16 AMjed
04/07/2021, 4:21 AMKevin W - Itty
04/07/2021, 4:37 AMupdate(newContent)
method on your durable and update while returning response/latest-state in one fetchKevin W - Itty
04/07/2021, 4:39 AMKevin W - Itty
04/07/2021, 4:43 AMBienvenu
04/07/2021, 5:53 AMUnsmart | Tech debt
04/07/2021, 9:54 AMcommands:[id]
.
The I would run list({ prefix: 'commands:' })
and I would have the list of commands normally. It seems the way you have this setup changes how that works quite a bit. Unless I am mistaken, havent yet made a DO as ive been pretty busy.luke
04/07/2021, 10:17 AMluke
04/07/2021, 10:18 AMawait (obj.foo = 'bar')
vs await obj.foo('bar')
for settersluke
04/07/2021, 10:21 AMawait obj.foo
for async gettersGreg Brimble | Cloudflare Pages
04/07/2021, 10:23 AMjs
const bookRepository = makeRepository(env.Book)
const newBook = new Book()
await bookRepository.save(newBook)
const loadedBook = await bookRepository.load(123)
const foundBook = await bookRepository.find({ title: "Hamlet" })
// etc.
Kevin W - Itty
04/07/2021, 2:10 PMKevin W - Itty
04/07/2021, 2:20 PMKevin W - Itty
04/07/2021, 2:20 PMKevin W - Itty
04/07/2021, 2:31 PMGreg Brimble | Cloudflare Pages
04/07/2021, 2:57 PMGreg Brimble | Cloudflare Pages
04/07/2021, 3:01 PMjs
await with(bookRepository, 123, (book) => {
book.title += 'abc'
})
Or something like thatKevin W - Itty
04/07/2021, 3:08 PMGreg Brimble | Cloudflare Pages
04/07/2021, 3:17 PMGreg Brimble | Cloudflare Pages
04/07/2021, 3:17 PMKevin W - Itty
04/07/2021, 3:24 PMGreg Brimble | Cloudflare Pages
04/07/2021, 3:27 PMKevin W - Itty
04/07/2021, 3:27 PMGreg Brimble | Cloudflare Pages
04/07/2021, 3:29 PMjs
const transferTransaction = TransferTransaction.create(
Deadline.create(epochAdjustment),
recipientAddress,
[new Mosaic(mosaicId, UInt64.fromUint(1))],
PlainMessage.create('enjoy your ticket'),
networkType,
UInt64.fromUint(2000000),
);
https://github.com/nemtech/symbol-sdk-typescript-javascript/blob/main/src/infrastructure/transaction/SerializeTransactionToJSON.ts