This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Shipping Price per Quantity Plugin | |
Plugin URI: http://itsgoran.com | |
Description: Adds a new shipping method that calculates shipping price based on quantity of products - made for Cider. | |
Version: 1.0.0 | |
Author: Goran Jakovljevic | |
Author URI: http://itsgoran.com | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
TonApiClient, | |
Trace, | |
TraceID, | |
TraceIDs, | |
Transaction, | |
} from '@ton-api/client' | |
import { Address, Slice } from '@ton/core' | |
const CHANGE_NUMBER_NOTIFICATION_EVENT_CODE = 0x5c690c2f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cell event = begin_cell() | |
.store_slice("EventName") ;; more data can be stored here using store functions | |
.end_cell(); | |
send_raw_message(event, 0); |